diff --git a/grid-services.csv b/grid-services.csv index 9ceecced..4139b17d 100644 --- a/grid-services.csv +++ b/grid-services.csv @@ -1,30 +1,30 @@ service,version,fullname,id,namespace,protocol,generated,typechecked,bytecount,cachetime 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 +dynamodb,2012-08-10,Amazon DynamoDB,dynamodb,DynamoDB,json,ok,ok,123554,4625 +ec2,2016-11-15,Amazon Elastic Compute Cloud,ec2,EC2,ec2,ok,ok,1119734,18947 +ecr,2015-09-21,Amazon EC2 Container Registry,ecr,ECR,json,ok,ok,48619,2670 +eks,2017-11-01,Amazon Elastic Kubernetes Service,eks,EKS,rest-json,ok,ok,61233,4326 +elasticloadbalancing,2012-06-01,Elastic Load Balancing,elb,ELB,query,ok,ok,46251,4654 +elasticloadbalancingv2,2015-12-01,Elastic Load Balancing,elbv2,ELBv2,query,ok,ok,77082,5743 +email,2010-12-01,Amazon Simple Email Service,ses,SES,query,ok,ok,92386,3658 +es,2015-01-01,Amazon Elasticsearch Service,es,ES,rest-json,ok,ok,90175,5927 +iam,2010-05-08,AWS Identity and Access Management,iam,IAM,query,ok,ok,185002,9459 +kinesis,2013-12-02,Amazon Kinesis,kinesis,Kinesis,json,ok,ok,31140,3281 +kms,2014-11-01,AWS Key Management Service,kms,KMS,json,ok,ok,46817,2819 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 +lambda,2015-03-31,AWS Lambda,lambda,Lambda,rest-json,ok,ok,98913,4510 +monitoring,2010-08-01,Amazon CloudWatch,cloudwatch,CloudWatch,query,ok,ok,59817,3009 +pricing,2017-10-15,AWS Price List Service,pricing,Pricing,json,ok,ok,5055,2817 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 +rds,2014-10-31,Amazon Relational Database Service,rds,RDS,query,ok,ok,322292,10266 +route53,2013-04-01,Amazon Route 53,route53,Route53,rest-xml,ok,ok,97240,3756 +s3,2006-03-01,Amazon Simple Storage Service,s3,S3,rest-xml,ok,ok,262034,8624 +sesv2,2019-09-27,Amazon Simple Email Service,sesv2,SESV2,rest-json,ok,ok,109892,4289 +sns,2010-03-31,Amazon Simple Notification Service,sns,SNS,query,ok,ok,31733,3556 +sqs,2012-11-05,Amazon Simple Queue Service,sqs,SQS,query,ok,ok,29026,3150 +ssm,2014-11-06,Amazon Simple Systems Manager (SSM),ssm,SSM,json,ok,ok,264098,8372 +streams.dynamodb,2012-08-10,Amazon DynamoDB Streams,dynamodbstreams,DynamoDBStreams,json,ok,ok,10250,2052 +sts,2011-06-15,AWS Security Token Service,sts,STS,query,ok,ok,13866,2139 \ No newline at end of file diff --git a/lib/README.md b/lib/README.md index f4703e67..f614a98b 100644 --- a/lib/README.md +++ b/lib/README.md @@ -154,29 +154,29 @@ All API definitions are current as of [aws-sdk-js `v2.874.0`](https://github.com | 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 | +| `cloudwatch/mod.ts` | query | 58 KiB | 3.0 sec | +| `dynamodb/mod.ts` | json | 121 KiB | 4.6 sec | +| `dynamodbstreams/mod.ts` | json | 10 KiB | 2.1 sec | +| `ec2/mod.ts` | ec2 | 1093 KiB | 18.9 sec | +| `ecr/mod.ts` | json | 47 KiB | 2.7 sec | +| `eks/mod.ts` | rest-json | 60 KiB | 4.3 sec | +| `elb/mod.ts` | query | 45 KiB | 4.7 sec | +| `elbv2/mod.ts` | query | 75 KiB | 5.7 sec | +| `es/mod.ts` | rest-json | 88 KiB | 5.9 sec | +| `iam/mod.ts` | query | 181 KiB | 9.5 sec | +| `kinesis/mod.ts` | json | 30 KiB | 3.3 sec | +| `kms/mod.ts` | json | 46 KiB | 2.8 sec | +| `lambda/mod.ts` | rest-json | 97 KiB | 4.5 sec | +| `pricing/mod.ts` | json | 5 KiB | 2.8 sec | +| `rds/mod.ts` | query | 315 KiB | 10.3 sec | +| `route53/mod.ts` | rest-xml | 95 KiB | 3.8 sec | +| `s3/mod.ts` | rest-xml | 256 KiB | 8.6 sec | +| `ses/mod.ts` | query | 90 KiB | 3.7 sec | +| `sesv2/mod.ts` | rest-json | 107 KiB | 4.3 sec | +| `sns/mod.ts` | query | 31 KiB | 3.6 sec | +| `sqs/mod.ts` | query | 28 KiB | 3.2 sec | +| `ssm/mod.ts` | json | 258 KiB | 8.4 sec | +| `sts/mod.ts` | query | 14 KiB | 2.1 sec | [//]: # (Generated Content Barrier) diff --git a/lib/client/instance-metadata.ts b/lib/client/instance-metadata.ts index 757a295b..d69912e3 100644 --- a/lib/client/instance-metadata.ts +++ b/lib/client/instance-metadata.ts @@ -34,7 +34,7 @@ export class IMDSv2 { const httpFetch = fetch(new URL('api/token', this.baseUrl), { method: 'PUT', - signal: this.makeTimeoutSignal(), + // signal: this.makeTimeoutSignal(), headers: { "x-aws-ec2-metadata-token-ttl-seconds": ttlSeconds.toFixed(0), }}); diff --git a/lib/demo.ts b/lib/demo.ts index 0926cfc6..16e4bf73 100755 --- a/lib/demo.ts +++ b/lib/demo.ts @@ -1,12 +1,12 @@ #!/usr/bin/env -S deno run --allow-env --allow-read=${HOME}/.aws --allow-net -import {ApiFactory} from './client/mod.ts'; +import { ApiFactory } from './client/mod.ts'; const factory = new ApiFactory(); await factory.ensureCredentialsAvailable(); -import STS from './services/sts/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/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/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/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/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 cbae3e14..bb2820ab 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/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 ccd6ad6d..f54ce8c5 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/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 9bc11447..70f04e2a 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/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 f112cf31..d90bfae1 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/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 1c36ce3b..5367926f 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/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 90853a9d..9952d8ed 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/mod.ts'; +import { SQS } from '../services/sqs/mod.ts'; const factory = new ApiFactory(); const sqs = new SQS(factory); diff --git a/lib/services/cloudwatch/mod.ts b/lib/services/cloudwatch/mod.ts index f022b15c..c7d6de6f 100644 --- a/lib/services/cloudwatch/mod.ts +++ b/lib/services/cloudwatch/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon CloudWatch -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"; @@ -15,7 +11,7 @@ function parseBlob(input: string | null | undefined) { return Base64.decode(input); } -export default class CloudWatch { +export class CloudWatch { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(CloudWatch.ApiMetadata); @@ -34,20 +30,20 @@ export default class CloudWatch { }; async deleteAlarms( - {abortSignal, ...params}: RequestConfig & s.DeleteAlarmsInput, + params: s.DeleteAlarmsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["AlarmNames"]) qsP.appendList(body, prefix+"AlarmNames", params["AlarmNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteAlarms", }); await resp.arrayBuffer(); // consume body without use } async deleteAnomalyDetector( - {abortSignal, ...params}: RequestConfig & s.DeleteAnomalyDetectorInput, + params: s.DeleteAnomalyDetectorInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -56,33 +52,33 @@ export default class CloudWatch { if (params["Dimensions"]) qsP.appendList(body, prefix+"Dimensions", params["Dimensions"], {"appender":Dimension_Serialize,"entryPrefix":".member."}) body.append(prefix+"Stat", (params["Stat"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteAnomalyDetector", }); await resp.arrayBuffer(); // consume body without use } async deleteDashboards( - {abortSignal, ...params}: RequestConfig & s.DeleteDashboardsInput, + params: s.DeleteDashboardsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["DashboardNames"]) qsP.appendList(body, prefix+"DashboardNames", params["DashboardNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDashboards", }); await resp.arrayBuffer(); // consume body without use } async deleteInsightRules( - {abortSignal, ...params}: RequestConfig & s.DeleteInsightRulesInput, + params: s.DeleteInsightRulesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["RuleNames"]) qsP.appendList(body, prefix+"RuleNames", params["RuleNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteInsightRules", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteInsightRulesResult"); @@ -92,7 +88,7 @@ export default class CloudWatch { } async describeAlarmHistory( - {abortSignal, ...params}: RequestConfig & s.DescribeAlarmHistoryInput = {}, + params: s.DescribeAlarmHistoryInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -105,7 +101,7 @@ export default class CloudWatch { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("ScanBy" in params) body.append(prefix+"ScanBy", (params["ScanBy"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAlarmHistory", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeAlarmHistoryResult"); @@ -118,7 +114,7 @@ export default class CloudWatch { } async describeAlarms( - {abortSignal, ...params}: RequestConfig & s.DescribeAlarmsInput = {}, + params: s.DescribeAlarmsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -132,7 +128,7 @@ export default class CloudWatch { if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAlarms", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeAlarmsResult"); @@ -146,7 +142,7 @@ export default class CloudWatch { } async describeAlarmsForMetric( - {abortSignal, ...params}: RequestConfig & s.DescribeAlarmsForMetricInput, + params: s.DescribeAlarmsForMetricInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -158,7 +154,7 @@ export default class CloudWatch { if ("Period" in params) body.append(prefix+"Period", (params["Period"] ?? '').toString()); if ("Unit" in params) body.append(prefix+"Unit", (params["Unit"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAlarmsForMetric", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeAlarmsForMetricResult"); @@ -168,7 +164,7 @@ export default class CloudWatch { } async describeAnomalyDetectors( - {abortSignal, ...params}: RequestConfig & s.DescribeAnomalyDetectorsInput = {}, + params: s.DescribeAnomalyDetectorsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -178,7 +174,7 @@ export default class CloudWatch { if ("MetricName" in params) body.append(prefix+"MetricName", (params["MetricName"] ?? '').toString()); if (params["Dimensions"]) qsP.appendList(body, prefix+"Dimensions", params["Dimensions"], {"appender":Dimension_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAnomalyDetectors", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeAnomalyDetectorsResult"); @@ -191,14 +187,14 @@ export default class CloudWatch { } async describeInsightRules( - {abortSignal, ...params}: RequestConfig & s.DescribeInsightRulesInput = {}, + params: s.DescribeInsightRulesInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInsightRules", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeInsightRulesResult"); @@ -211,26 +207,26 @@ export default class CloudWatch { } async disableAlarmActions( - {abortSignal, ...params}: RequestConfig & s.DisableAlarmActionsInput, + params: s.DisableAlarmActionsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["AlarmNames"]) qsP.appendList(body, prefix+"AlarmNames", params["AlarmNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableAlarmActions", }); await resp.arrayBuffer(); // consume body without use } async disableInsightRules( - {abortSignal, ...params}: RequestConfig & s.DisableInsightRulesInput, + params: s.DisableInsightRulesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["RuleNames"]) qsP.appendList(body, prefix+"RuleNames", params["RuleNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableInsightRules", }); const xml = xmlP.readXmlResult(await resp.text(), "DisableInsightRulesResult"); @@ -240,26 +236,26 @@ export default class CloudWatch { } async enableAlarmActions( - {abortSignal, ...params}: RequestConfig & s.EnableAlarmActionsInput, + params: s.EnableAlarmActionsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["AlarmNames"]) qsP.appendList(body, prefix+"AlarmNames", params["AlarmNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableAlarmActions", }); await resp.arrayBuffer(); // consume body without use } async enableInsightRules( - {abortSignal, ...params}: RequestConfig & s.EnableInsightRulesInput, + params: s.EnableInsightRulesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["RuleNames"]) qsP.appendList(body, prefix+"RuleNames", params["RuleNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableInsightRules", }); const xml = xmlP.readXmlResult(await resp.text(), "EnableInsightRulesResult"); @@ -269,13 +265,13 @@ export default class CloudWatch { } async getDashboard( - {abortSignal, ...params}: RequestConfig & s.GetDashboardInput, + params: s.GetDashboardInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DashboardName", (params["DashboardName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetDashboard", }); const xml = xmlP.readXmlResult(await resp.text(), "GetDashboardResult"); @@ -285,7 +281,7 @@ export default class CloudWatch { } async getInsightRuleReport( - {abortSignal, ...params}: RequestConfig & s.GetInsightRuleReportInput, + params: s.GetInsightRuleReportInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -297,7 +293,7 @@ export default class CloudWatch { if (params["Metrics"]) qsP.appendList(body, prefix+"Metrics", params["Metrics"], {"entryPrefix":".member."}) if ("OrderBy" in params) body.append(prefix+"OrderBy", (params["OrderBy"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetInsightRuleReport", }); const xml = xmlP.readXmlResult(await resp.text(), "GetInsightRuleReportResult"); @@ -314,7 +310,7 @@ export default class CloudWatch { } async getMetricData( - {abortSignal, ...params}: RequestConfig & s.GetMetricDataInput, + params: s.GetMetricDataInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -326,7 +322,7 @@ export default class CloudWatch { if ("MaxDatapoints" in params) body.append(prefix+"MaxDatapoints", (params["MaxDatapoints"] ?? '').toString()); if (params["LabelOptions"] != null) LabelOptions_Serialize(body, prefix+"LabelOptions", params["LabelOptions"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetMetricData", }); const xml = xmlP.readXmlResult(await resp.text(), "GetMetricDataResult"); @@ -340,7 +336,7 @@ export default class CloudWatch { } async getMetricStatistics( - {abortSignal, ...params}: RequestConfig & s.GetMetricStatisticsInput, + params: s.GetMetricStatisticsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -354,7 +350,7 @@ export default class CloudWatch { if (params["ExtendedStatistics"]) qsP.appendList(body, prefix+"ExtendedStatistics", params["ExtendedStatistics"], {"entryPrefix":".member."}) if ("Unit" in params) body.append(prefix+"Unit", (params["Unit"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetMetricStatistics", }); const xml = xmlP.readXmlResult(await resp.text(), "GetMetricStatisticsResult"); @@ -367,14 +363,14 @@ export default class CloudWatch { } async getMetricWidgetImage( - {abortSignal, ...params}: RequestConfig & s.GetMetricWidgetImageInput, + params: s.GetMetricWidgetImageInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"MetricWidget", (params["MetricWidget"] ?? '').toString()); if ("OutputFormat" in params) body.append(prefix+"OutputFormat", (params["OutputFormat"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetMetricWidgetImage", }); const xml = xmlP.readXmlResult(await resp.text(), "GetMetricWidgetImageResult"); @@ -384,14 +380,14 @@ export default class CloudWatch { } async listDashboards( - {abortSignal, ...params}: RequestConfig & s.ListDashboardsInput = {}, + params: s.ListDashboardsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DashboardNamePrefix" in params) body.append(prefix+"DashboardNamePrefix", (params["DashboardNamePrefix"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListDashboards", }); const xml = xmlP.readXmlResult(await resp.text(), "ListDashboardsResult"); @@ -404,7 +400,7 @@ export default class CloudWatch { } async listMetrics( - {abortSignal, ...params}: RequestConfig & s.ListMetricsInput = {}, + params: s.ListMetricsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -414,7 +410,7 @@ export default class CloudWatch { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("RecentlyActive" in params) body.append(prefix+"RecentlyActive", (params["RecentlyActive"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListMetrics", }); const xml = xmlP.readXmlResult(await resp.text(), "ListMetricsResult"); @@ -427,13 +423,13 @@ export default class CloudWatch { } async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceInput, + params: s.ListTagsForResourceInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ResourceARN", (params["ResourceARN"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListTagsForResource", }); const xml = xmlP.readXmlResult(await resp.text(), "ListTagsForResourceResult"); @@ -443,7 +439,7 @@ export default class CloudWatch { } async putAnomalyDetector( - {abortSignal, ...params}: RequestConfig & s.PutAnomalyDetectorInput, + params: s.PutAnomalyDetectorInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -453,14 +449,14 @@ export default class CloudWatch { body.append(prefix+"Stat", (params["Stat"] ?? '').toString()); if (params["Configuration"] != null) AnomalyDetectorConfiguration_Serialize(body, prefix+"Configuration", params["Configuration"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutAnomalyDetector", }); await resp.arrayBuffer(); // consume body without use } async putCompositeAlarm( - {abortSignal, ...params}: RequestConfig & s.PutCompositeAlarmInput, + params: s.PutCompositeAlarmInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -473,21 +469,21 @@ export default class CloudWatch { if (params["OKActions"]) qsP.appendList(body, prefix+"OKActions", params["OKActions"], {"entryPrefix":".member."}) if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutCompositeAlarm", }); await resp.arrayBuffer(); // consume body without use } async putDashboard( - {abortSignal, ...params}: RequestConfig & s.PutDashboardInput, + params: s.PutDashboardInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DashboardName", (params["DashboardName"] ?? '').toString()); body.append(prefix+"DashboardBody", (params["DashboardBody"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutDashboard", }); const xml = xmlP.readXmlResult(await resp.text(), "PutDashboardResult"); @@ -497,7 +493,7 @@ export default class CloudWatch { } async putInsightRule( - {abortSignal, ...params}: RequestConfig & s.PutInsightRuleInput, + params: s.PutInsightRuleInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -506,14 +502,14 @@ export default class CloudWatch { body.append(prefix+"RuleDefinition", (params["RuleDefinition"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutInsightRule", }); await resp.arrayBuffer(); // consume body without use } async putMetricAlarm( - {abortSignal, ...params}: RequestConfig & s.PutMetricAlarmInput, + params: s.PutMetricAlarmInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -540,28 +536,28 @@ export default class CloudWatch { if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) if ("ThresholdMetricId" in params) body.append(prefix+"ThresholdMetricId", (params["ThresholdMetricId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutMetricAlarm", }); await resp.arrayBuffer(); // consume body without use } async putMetricData( - {abortSignal, ...params}: RequestConfig & s.PutMetricDataInput, + params: s.PutMetricDataInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Namespace", (params["Namespace"] ?? '').toString()); if (params["MetricData"]) qsP.appendList(body, prefix+"MetricData", params["MetricData"], {"appender":MetricDatum_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutMetricData", }); await resp.arrayBuffer(); // consume body without use } async setAlarmState( - {abortSignal, ...params}: RequestConfig & s.SetAlarmStateInput, + params: s.SetAlarmStateInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -570,35 +566,35 @@ export default class CloudWatch { body.append(prefix+"StateReason", (params["StateReason"] ?? '').toString()); if ("StateReasonData" in params) body.append(prefix+"StateReasonData", (params["StateReasonData"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetAlarmState", }); await resp.arrayBuffer(); // consume body without use } async tagResource( - {abortSignal, ...params}: RequestConfig & s.TagResourceInput, + params: s.TagResourceInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ResourceARN", (params["ResourceARN"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagResource", }); await resp.arrayBuffer(); // consume body without use } async untagResource( - {abortSignal, ...params}: RequestConfig & s.UntagResourceInput, + params: s.UntagResourceInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ResourceARN", (params["ResourceARN"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagResource", }); await resp.arrayBuffer(); // consume body without use @@ -608,7 +604,7 @@ export default class CloudWatch { /** Checks state up to 40 times, 5 seconds apart (about 4 minutes max wait time). */ async waitForAlarmExists( - params: RequestConfig & s.DescribeAlarmsInput, + params: s.DescribeAlarmsInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state AlarmExists'; for (let i = 0; i < 40; i++) { @@ -621,7 +617,7 @@ export default class CloudWatch { /** Checks state up to 40 times, 5 seconds apart (about 4 minutes max wait time). */ async waitForCompositeAlarmExists( - params: RequestConfig & s.DescribeAlarmsInput, + params: s.DescribeAlarmsInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state CompositeAlarmExists'; for (let i = 0; i < 40; i++) { diff --git a/lib/services/dynamodb/mod.ts b/lib/services/dynamodb/mod.ts index bbd1737c..fe4eac2e 100644 --- a/lib/services/dynamodb/mod.ts +++ b/lib/services/dynamodb/mod.ts @@ -1,9 +1,5 @@ // 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"; @@ -19,7 +15,7 @@ function serializeBlob(input: string | Uint8Array | null | undefined) { return Base64.encode(input); } -export default class DynamoDB { +export class DynamoDB { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(DynamoDB.ApiMetadata); @@ -39,13 +35,13 @@ export default class DynamoDB { }; async batchExecuteStatement( - {abortSignal, ...params}: RequestConfig & s.BatchExecuteStatementInput, + params: s.BatchExecuteStatementInput, ): Promise { const body: jsonP.JSONObject = { Statements: params["Statements"]?.map(x => fromBatchStatementRequest(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "BatchExecuteStatement", }); return jsonP.readObj({ @@ -57,14 +53,14 @@ export default class DynamoDB { } async batchGetItem( - {abortSignal, ...params}: RequestConfig & s.BatchGetItemInput, + params: s.BatchGetItemInput, ): Promise { const body: jsonP.JSONObject = { RequestItems: jsonP.serializeMap(params["RequestItems"], x => fromKeysAndAttributes(x)), ReturnConsumedCapacity: params["ReturnConsumedCapacity"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "BatchGetItem", }); return jsonP.readObj({ @@ -78,7 +74,7 @@ export default class DynamoDB { } async batchWriteItem( - {abortSignal, ...params}: RequestConfig & s.BatchWriteItemInput, + params: s.BatchWriteItemInput, ): Promise { const body: jsonP.JSONObject = { RequestItems: jsonP.serializeMap(params["RequestItems"], x => x?.map(fromWriteRequest)), @@ -86,7 +82,7 @@ export default class DynamoDB { ReturnItemCollectionMetrics: params["ReturnItemCollectionMetrics"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "BatchWriteItem", }); return jsonP.readObj({ @@ -100,14 +96,14 @@ export default class DynamoDB { } async createBackup( - {abortSignal, ...params}: RequestConfig & s.CreateBackupInput, + params: s.CreateBackupInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], BackupName: params["BackupName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateBackup", }); return jsonP.readObj({ @@ -119,14 +115,14 @@ export default class DynamoDB { } async createGlobalTable( - {abortSignal, ...params}: RequestConfig & s.CreateGlobalTableInput, + params: s.CreateGlobalTableInput, ): Promise { const body: jsonP.JSONObject = { GlobalTableName: params["GlobalTableName"], ReplicationGroup: params["ReplicationGroup"]?.map(x => fromReplica(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateGlobalTable", }); return jsonP.readObj({ @@ -138,7 +134,7 @@ export default class DynamoDB { } async createTable( - {abortSignal, ...params}: RequestConfig & s.CreateTableInput, + params: s.CreateTableInput, ): Promise { const body: jsonP.JSONObject = { AttributeDefinitions: params["AttributeDefinitions"]?.map(x => fromAttributeDefinition(x)), @@ -153,7 +149,7 @@ export default class DynamoDB { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTable", }); return jsonP.readObj({ @@ -165,13 +161,13 @@ export default class DynamoDB { } async deleteBackup( - {abortSignal, ...params}: RequestConfig & s.DeleteBackupInput, + params: s.DeleteBackupInput, ): Promise { const body: jsonP.JSONObject = { BackupArn: params["BackupArn"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteBackup", }); return jsonP.readObj({ @@ -183,7 +179,7 @@ export default class DynamoDB { } async deleteItem( - {abortSignal, ...params}: RequestConfig & s.DeleteItemInput, + params: s.DeleteItemInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], @@ -198,7 +194,7 @@ export default class DynamoDB { ExpressionAttributeValues: jsonP.serializeMap(params["ExpressionAttributeValues"], x => fromAttributeValue(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteItem", }); return jsonP.readObj({ @@ -212,13 +208,13 @@ export default class DynamoDB { } async deleteTable( - {abortSignal, ...params}: RequestConfig & s.DeleteTableInput, + params: s.DeleteTableInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTable", }); return jsonP.readObj({ @@ -230,13 +226,13 @@ export default class DynamoDB { } async describeBackup( - {abortSignal, ...params}: RequestConfig & s.DescribeBackupInput, + params: s.DescribeBackupInput, ): Promise { const body: jsonP.JSONObject = { BackupArn: params["BackupArn"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeBackup", }); return jsonP.readObj({ @@ -248,13 +244,13 @@ export default class DynamoDB { } async describeContinuousBackups( - {abortSignal, ...params}: RequestConfig & s.DescribeContinuousBackupsInput, + params: s.DescribeContinuousBackupsInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeContinuousBackups", }); return jsonP.readObj({ @@ -266,14 +262,14 @@ export default class DynamoDB { } async describeContributorInsights( - {abortSignal, ...params}: RequestConfig & s.DescribeContributorInsightsInput, + params: s.DescribeContributorInsightsInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], IndexName: params["IndexName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeContributorInsights", }); return jsonP.readObj({ @@ -289,12 +285,10 @@ export default class DynamoDB { }, await resp.json()); } - async describeEndpoints( - {abortSignal}: RequestConfig = {}, - ): Promise { + async describeEndpoints(): Promise { const body: jsonP.JSONObject = {}; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeEndpoints", }); return jsonP.readObj({ @@ -306,13 +300,13 @@ export default class DynamoDB { } async describeExport( - {abortSignal, ...params}: RequestConfig & s.DescribeExportInput, + params: s.DescribeExportInput, ): Promise { const body: jsonP.JSONObject = { ExportArn: params["ExportArn"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeExport", }); return jsonP.readObj({ @@ -324,13 +318,13 @@ export default class DynamoDB { } async describeGlobalTable( - {abortSignal, ...params}: RequestConfig & s.DescribeGlobalTableInput, + params: s.DescribeGlobalTableInput, ): Promise { const body: jsonP.JSONObject = { GlobalTableName: params["GlobalTableName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeGlobalTable", }); return jsonP.readObj({ @@ -342,13 +336,13 @@ export default class DynamoDB { } async describeGlobalTableSettings( - {abortSignal, ...params}: RequestConfig & s.DescribeGlobalTableSettingsInput, + params: s.DescribeGlobalTableSettingsInput, ): Promise { const body: jsonP.JSONObject = { GlobalTableName: params["GlobalTableName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeGlobalTableSettings", }); return jsonP.readObj({ @@ -361,13 +355,13 @@ export default class DynamoDB { } async describeKinesisStreamingDestination( - {abortSignal, ...params}: RequestConfig & s.DescribeKinesisStreamingDestinationInput, + params: s.DescribeKinesisStreamingDestinationInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeKinesisStreamingDestination", }); return jsonP.readObj({ @@ -379,12 +373,10 @@ export default class DynamoDB { }, await resp.json()); } - async describeLimits( - {abortSignal}: RequestConfig = {}, - ): Promise { + async describeLimits(): Promise { const body: jsonP.JSONObject = {}; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLimits", }); return jsonP.readObj({ @@ -399,13 +391,13 @@ export default class DynamoDB { } async describeTable( - {abortSignal, ...params}: RequestConfig & s.DescribeTableInput, + params: s.DescribeTableInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTable", }); return jsonP.readObj({ @@ -417,13 +409,13 @@ export default class DynamoDB { } async describeTableReplicaAutoScaling( - {abortSignal, ...params}: RequestConfig & s.DescribeTableReplicaAutoScalingInput, + params: s.DescribeTableReplicaAutoScalingInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTableReplicaAutoScaling", }); return jsonP.readObj({ @@ -435,13 +427,13 @@ export default class DynamoDB { } async describeTimeToLive( - {abortSignal, ...params}: RequestConfig & s.DescribeTimeToLiveInput, + params: s.DescribeTimeToLiveInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTimeToLive", }); return jsonP.readObj({ @@ -453,14 +445,14 @@ export default class DynamoDB { } async disableKinesisStreamingDestination( - {abortSignal, ...params}: RequestConfig & s.KinesisStreamingDestinationInput, + params: s.KinesisStreamingDestinationInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], StreamArn: params["StreamArn"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableKinesisStreamingDestination", }); return jsonP.readObj({ @@ -474,14 +466,14 @@ export default class DynamoDB { } async enableKinesisStreamingDestination( - {abortSignal, ...params}: RequestConfig & s.KinesisStreamingDestinationInput, + params: s.KinesisStreamingDestinationInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], StreamArn: params["StreamArn"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableKinesisStreamingDestination", }); return jsonP.readObj({ @@ -495,7 +487,7 @@ export default class DynamoDB { } async executeStatement( - {abortSignal, ...params}: RequestConfig & s.ExecuteStatementInput, + params: s.ExecuteStatementInput, ): Promise { const body: jsonP.JSONObject = { Statement: params["Statement"], @@ -504,7 +496,7 @@ export default class DynamoDB { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ExecuteStatement", }); return jsonP.readObj({ @@ -517,14 +509,14 @@ export default class DynamoDB { } async executeTransaction( - {abortSignal, ...params}: RequestConfig & s.ExecuteTransactionInput, + params: s.ExecuteTransactionInput, ): Promise { const body: jsonP.JSONObject = { TransactStatements: params["TransactStatements"]?.map(x => fromParameterizedStatement(x)), ClientRequestToken: params["ClientRequestToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ExecuteTransaction", }); return jsonP.readObj({ @@ -536,7 +528,7 @@ export default class DynamoDB { } async exportTableToPointInTime( - {abortSignal, ...params}: RequestConfig & s.ExportTableToPointInTimeInput, + params: s.ExportTableToPointInTimeInput, ): Promise { const body: jsonP.JSONObject = { TableArn: params["TableArn"], @@ -550,7 +542,7 @@ export default class DynamoDB { ExportFormat: params["ExportFormat"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ExportTableToPointInTime", }); return jsonP.readObj({ @@ -562,7 +554,7 @@ export default class DynamoDB { } async getItem( - {abortSignal, ...params}: RequestConfig & s.GetItemInput, + params: s.GetItemInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], @@ -574,7 +566,7 @@ export default class DynamoDB { ExpressionAttributeNames: params["ExpressionAttributeNames"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetItem", }); return jsonP.readObj({ @@ -587,7 +579,7 @@ export default class DynamoDB { } async listBackups( - {abortSignal, ...params}: RequestConfig & s.ListBackupsInput = {}, + params: s.ListBackupsInput = {}, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], @@ -598,7 +590,7 @@ export default class DynamoDB { BackupType: params["BackupType"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListBackups", }); return jsonP.readObj({ @@ -611,7 +603,7 @@ export default class DynamoDB { } async listContributorInsights( - {abortSignal, ...params}: RequestConfig & s.ListContributorInsightsInput = {}, + params: s.ListContributorInsightsInput = {}, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], @@ -619,7 +611,7 @@ export default class DynamoDB { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListContributorInsights", }); return jsonP.readObj({ @@ -632,7 +624,7 @@ export default class DynamoDB { } async listExports( - {abortSignal, ...params}: RequestConfig & s.ListExportsInput = {}, + params: s.ListExportsInput = {}, ): Promise { const body: jsonP.JSONObject = { TableArn: params["TableArn"], @@ -640,7 +632,7 @@ export default class DynamoDB { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListExports", }); return jsonP.readObj({ @@ -653,7 +645,7 @@ export default class DynamoDB { } async listGlobalTables( - {abortSignal, ...params}: RequestConfig & s.ListGlobalTablesInput = {}, + params: s.ListGlobalTablesInput = {}, ): Promise { const body: jsonP.JSONObject = { ExclusiveStartGlobalTableName: params["ExclusiveStartGlobalTableName"], @@ -661,7 +653,7 @@ export default class DynamoDB { RegionName: params["RegionName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListGlobalTables", }); return jsonP.readObj({ @@ -674,14 +666,14 @@ export default class DynamoDB { } async listTables( - {abortSignal, ...params}: RequestConfig & s.ListTablesInput = {}, + params: s.ListTablesInput = {}, ): Promise { const body: jsonP.JSONObject = { ExclusiveStartTableName: params["ExclusiveStartTableName"], Limit: params["Limit"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListTables", }); return jsonP.readObj({ @@ -694,14 +686,14 @@ export default class DynamoDB { } async listTagsOfResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsOfResourceInput, + params: s.ListTagsOfResourceInput, ): Promise { const body: jsonP.JSONObject = { ResourceArn: params["ResourceArn"], NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListTagsOfResource", }); return jsonP.readObj({ @@ -714,7 +706,7 @@ export default class DynamoDB { } async putItem( - {abortSignal, ...params}: RequestConfig & s.PutItemInput, + params: s.PutItemInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], @@ -729,7 +721,7 @@ export default class DynamoDB { ExpressionAttributeValues: jsonP.serializeMap(params["ExpressionAttributeValues"], x => fromAttributeValue(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutItem", }); return jsonP.readObj({ @@ -743,7 +735,7 @@ export default class DynamoDB { } async query( - {abortSignal, ...params}: RequestConfig & s.QueryInput, + params: s.QueryInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], @@ -765,7 +757,7 @@ export default class DynamoDB { ExpressionAttributeValues: jsonP.serializeMap(params["ExpressionAttributeValues"], x => fromAttributeValue(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "Query", }); return jsonP.readObj({ @@ -781,7 +773,7 @@ export default class DynamoDB { } async restoreTableFromBackup( - {abortSignal, ...params}: RequestConfig & s.RestoreTableFromBackupInput, + params: s.RestoreTableFromBackupInput, ): Promise { const body: jsonP.JSONObject = { TargetTableName: params["TargetTableName"], @@ -793,7 +785,7 @@ export default class DynamoDB { SSESpecificationOverride: fromSSESpecification(params["SSESpecificationOverride"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RestoreTableFromBackup", }); return jsonP.readObj({ @@ -805,7 +797,7 @@ export default class DynamoDB { } async restoreTableToPointInTime( - {abortSignal, ...params}: RequestConfig & s.RestoreTableToPointInTimeInput, + params: s.RestoreTableToPointInTimeInput, ): Promise { const body: jsonP.JSONObject = { SourceTableArn: params["SourceTableArn"], @@ -820,7 +812,7 @@ export default class DynamoDB { SSESpecificationOverride: fromSSESpecification(params["SSESpecificationOverride"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RestoreTableToPointInTime", }); return jsonP.readObj({ @@ -832,7 +824,7 @@ export default class DynamoDB { } async scan( - {abortSignal, ...params}: RequestConfig & s.ScanInput, + params: s.ScanInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], @@ -853,7 +845,7 @@ export default class DynamoDB { ConsistentRead: params["ConsistentRead"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "Scan", }); return jsonP.readObj({ @@ -869,28 +861,28 @@ export default class DynamoDB { } async tagResource( - {abortSignal, ...params}: RequestConfig & s.TagResourceInput, + params: s.TagResourceInput, ): Promise { const body: jsonP.JSONObject = { ResourceArn: params["ResourceArn"], Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagResource", }); await resp.arrayBuffer(); // consume body without use } async transactGetItems( - {abortSignal, ...params}: RequestConfig & s.TransactGetItemsInput, + params: s.TransactGetItemsInput, ): Promise { const body: jsonP.JSONObject = { TransactItems: params["TransactItems"]?.map(x => fromTransactGetItem(x)), ReturnConsumedCapacity: params["ReturnConsumedCapacity"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TransactGetItems", }); return jsonP.readObj({ @@ -903,7 +895,7 @@ export default class DynamoDB { } async transactWriteItems( - {abortSignal, ...params}: RequestConfig & s.TransactWriteItemsInput, + params: s.TransactWriteItemsInput, ): Promise { const body: jsonP.JSONObject = { TransactItems: params["TransactItems"]?.map(x => fromTransactWriteItem(x)), @@ -912,7 +904,7 @@ export default class DynamoDB { ClientRequestToken: params["ClientRequestToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TransactWriteItems", }); return jsonP.readObj({ @@ -925,28 +917,28 @@ export default class DynamoDB { } async untagResource( - {abortSignal, ...params}: RequestConfig & s.UntagResourceInput, + params: s.UntagResourceInput, ): Promise { const body: jsonP.JSONObject = { ResourceArn: params["ResourceArn"], TagKeys: params["TagKeys"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagResource", }); await resp.arrayBuffer(); // consume body without use } async updateContinuousBackups( - {abortSignal, ...params}: RequestConfig & s.UpdateContinuousBackupsInput, + params: s.UpdateContinuousBackupsInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], PointInTimeRecoverySpecification: fromPointInTimeRecoverySpecification(params["PointInTimeRecoverySpecification"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateContinuousBackups", }); return jsonP.readObj({ @@ -958,7 +950,7 @@ export default class DynamoDB { } async updateContributorInsights( - {abortSignal, ...params}: RequestConfig & s.UpdateContributorInsightsInput, + params: s.UpdateContributorInsightsInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], @@ -966,7 +958,7 @@ export default class DynamoDB { ContributorInsightsAction: params["ContributorInsightsAction"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateContributorInsights", }); return jsonP.readObj({ @@ -980,14 +972,14 @@ export default class DynamoDB { } async updateGlobalTable( - {abortSignal, ...params}: RequestConfig & s.UpdateGlobalTableInput, + params: s.UpdateGlobalTableInput, ): Promise { const body: jsonP.JSONObject = { GlobalTableName: params["GlobalTableName"], ReplicaUpdates: params["ReplicaUpdates"]?.map(x => fromReplicaUpdate(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateGlobalTable", }); return jsonP.readObj({ @@ -999,7 +991,7 @@ export default class DynamoDB { } async updateGlobalTableSettings( - {abortSignal, ...params}: RequestConfig & s.UpdateGlobalTableSettingsInput, + params: s.UpdateGlobalTableSettingsInput, ): Promise { const body: jsonP.JSONObject = { GlobalTableName: params["GlobalTableName"], @@ -1010,7 +1002,7 @@ export default class DynamoDB { ReplicaSettingsUpdate: params["ReplicaSettingsUpdate"]?.map(x => fromReplicaSettingsUpdate(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateGlobalTableSettings", }); return jsonP.readObj({ @@ -1023,7 +1015,7 @@ export default class DynamoDB { } async updateItem( - {abortSignal, ...params}: RequestConfig & s.UpdateItemInput, + params: s.UpdateItemInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], @@ -1040,7 +1032,7 @@ export default class DynamoDB { ExpressionAttributeValues: jsonP.serializeMap(params["ExpressionAttributeValues"], x => fromAttributeValue(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateItem", }); return jsonP.readObj({ @@ -1054,7 +1046,7 @@ export default class DynamoDB { } async updateTable( - {abortSignal, ...params}: RequestConfig & s.UpdateTableInput, + params: s.UpdateTableInput, ): Promise { const body: jsonP.JSONObject = { AttributeDefinitions: params["AttributeDefinitions"]?.map(x => fromAttributeDefinition(x)), @@ -1067,7 +1059,7 @@ export default class DynamoDB { ReplicaUpdates: params["ReplicaUpdates"]?.map(x => fromReplicationGroupUpdate(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateTable", }); return jsonP.readObj({ @@ -1079,7 +1071,7 @@ export default class DynamoDB { } async updateTableReplicaAutoScaling( - {abortSignal, ...params}: RequestConfig & s.UpdateTableReplicaAutoScalingInput, + params: s.UpdateTableReplicaAutoScalingInput, ): Promise { const body: jsonP.JSONObject = { GlobalSecondaryIndexUpdates: params["GlobalSecondaryIndexUpdates"]?.map(x => fromGlobalSecondaryIndexAutoScalingUpdate(x)), @@ -1088,7 +1080,7 @@ export default class DynamoDB { ReplicaUpdates: params["ReplicaUpdates"]?.map(x => fromReplicaAutoScalingUpdate(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateTableReplicaAutoScaling", }); return jsonP.readObj({ @@ -1100,14 +1092,14 @@ export default class DynamoDB { } async updateTimeToLive( - {abortSignal, ...params}: RequestConfig & s.UpdateTimeToLiveInput, + params: s.UpdateTimeToLiveInput, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], TimeToLiveSpecification: fromTimeToLiveSpecification(params["TimeToLiveSpecification"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateTimeToLive", }); return jsonP.readObj({ @@ -1122,7 +1114,7 @@ export default class DynamoDB { /** Checks state up to 25 times, 20 seconds apart (about 9 minutes max wait time). */ async waitForTableExists( - params: RequestConfig & s.DescribeTableInput, + params: s.DescribeTableInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state TableExists'; for (let i = 0; i < 25; i++) { @@ -1139,7 +1131,7 @@ export default class DynamoDB { /** Checks state up to 25 times, 20 seconds apart (about 9 minutes max wait time). */ async waitForTableNotExists( - params: RequestConfig & s.DescribeTableInput, + params: s.DescribeTableInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state TableNotExists'; for (let i = 0; i < 25; i++) { diff --git a/lib/services/dynamodbstreams/mod.ts b/lib/services/dynamodbstreams/mod.ts index 697d30ce..9e1724b2 100644 --- a/lib/services/dynamodbstreams/mod.ts +++ b/lib/services/dynamodbstreams/mod.ts @@ -1,16 +1,12 @@ // Autogenerated API client for: Amazon DynamoDB Streams -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 DynamoDBStreams { +export class DynamoDBStreams { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(DynamoDBStreams.ApiMetadata); @@ -30,7 +26,7 @@ export default class DynamoDBStreams { }; async describeStream( - {abortSignal, ...params}: RequestConfig & s.DescribeStreamInput, + params: s.DescribeStreamInput, ): Promise { const body: jsonP.JSONObject = { StreamArn: params["StreamArn"], @@ -38,7 +34,7 @@ export default class DynamoDBStreams { ExclusiveStartShardId: params["ExclusiveStartShardId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeStream", }); return jsonP.readObj({ @@ -50,14 +46,14 @@ export default class DynamoDBStreams { } async getRecords( - {abortSignal, ...params}: RequestConfig & s.GetRecordsInput, + params: s.GetRecordsInput, ): Promise { const body: jsonP.JSONObject = { ShardIterator: params["ShardIterator"], Limit: params["Limit"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetRecords", }); return jsonP.readObj({ @@ -70,7 +66,7 @@ export default class DynamoDBStreams { } async getShardIterator( - {abortSignal, ...params}: RequestConfig & s.GetShardIteratorInput, + params: s.GetShardIteratorInput, ): Promise { const body: jsonP.JSONObject = { StreamArn: params["StreamArn"], @@ -79,7 +75,7 @@ export default class DynamoDBStreams { SequenceNumber: params["SequenceNumber"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetShardIterator", }); return jsonP.readObj({ @@ -91,7 +87,7 @@ export default class DynamoDBStreams { } async listStreams( - {abortSignal, ...params}: RequestConfig & s.ListStreamsInput = {}, + params: s.ListStreamsInput = {}, ): Promise { const body: jsonP.JSONObject = { TableName: params["TableName"], @@ -99,7 +95,7 @@ export default class DynamoDBStreams { ExclusiveStartStreamArn: params["ExclusiveStartStreamArn"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListStreams", }); return jsonP.readObj({ diff --git a/lib/services/ec2/mod.ts b/lib/services/ec2/mod.ts index 42dc7d39..8c7b38f0 100644 --- a/lib/services/ec2/mod.ts +++ b/lib/services/ec2/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon Elastic Compute Cloud -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"; @@ -23,7 +19,7 @@ function parseBlob(input: string | null | undefined) { return Base64.decode(input); } -export default class EC2 { +export class EC2 { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(EC2.ApiMetadata); @@ -42,7 +38,7 @@ export default class EC2 { }; async acceptReservedInstancesExchangeQuote( - {abortSignal, ...params}: RequestConfig & s.AcceptReservedInstancesExchangeQuoteRequest, + params: s.AcceptReservedInstancesExchangeQuoteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -50,7 +46,7 @@ export default class EC2 { if (params["ReservedInstanceIds"]) qsP.appendList(body, prefix+"ReservedInstanceId", params["ReservedInstanceIds"], {"entryPrefix":"."}) if (params["TargetConfigurations"]) qsP.appendList(body, prefix+"TargetConfiguration", params["TargetConfigurations"], {"appender":TargetConfigurationRequest_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AcceptReservedInstancesExchangeQuote", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -60,7 +56,7 @@ export default class EC2 { } async acceptTransitGatewayMulticastDomainAssociations( - {abortSignal, ...params}: RequestConfig & s.AcceptTransitGatewayMulticastDomainAssociationsRequest = {}, + params: s.AcceptTransitGatewayMulticastDomainAssociationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -69,7 +65,7 @@ export default class EC2 { if (params["SubnetIds"]) qsP.appendList(body, prefix+"item", params["SubnetIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AcceptTransitGatewayMulticastDomainAssociations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -79,14 +75,14 @@ export default class EC2 { } async acceptTransitGatewayPeeringAttachment( - {abortSignal, ...params}: RequestConfig & s.AcceptTransitGatewayPeeringAttachmentRequest, + params: s.AcceptTransitGatewayPeeringAttachmentRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AcceptTransitGatewayPeeringAttachment", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -96,14 +92,14 @@ export default class EC2 { } async acceptTransitGatewayVpcAttachment( - {abortSignal, ...params}: RequestConfig & s.AcceptTransitGatewayVpcAttachmentRequest, + params: s.AcceptTransitGatewayVpcAttachmentRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AcceptTransitGatewayVpcAttachment", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -113,7 +109,7 @@ export default class EC2 { } async acceptVpcEndpointConnections( - {abortSignal, ...params}: RequestConfig & s.AcceptVpcEndpointConnectionsRequest, + params: s.AcceptVpcEndpointConnectionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -121,7 +117,7 @@ export default class EC2 { body.append(prefix+"ServiceId", (params["ServiceId"] ?? '').toString()); if (params["VpcEndpointIds"]) qsP.appendList(body, prefix+"VpcEndpointId", params["VpcEndpointIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AcceptVpcEndpointConnections", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -131,14 +127,14 @@ export default class EC2 { } async acceptVpcPeeringConnection( - {abortSignal, ...params}: RequestConfig & s.AcceptVpcPeeringConnectionRequest = {}, + params: s.AcceptVpcPeeringConnectionRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("VpcPeeringConnectionId" in params) body.append(prefix+"VpcPeeringConnectionId", (params["VpcPeeringConnectionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AcceptVpcPeeringConnection", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -148,14 +144,14 @@ export default class EC2 { } async advertiseByoipCidr( - {abortSignal, ...params}: RequestConfig & s.AdvertiseByoipCidrRequest, + params: s.AdvertiseByoipCidrRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Cidr", (params["Cidr"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AdvertiseByoipCidr", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -165,7 +161,7 @@ export default class EC2 { } async allocateAddress( - {abortSignal, ...params}: RequestConfig & s.AllocateAddressRequest = {}, + params: s.AllocateAddressRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -177,7 +173,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AllocateAddress", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -194,7 +190,7 @@ export default class EC2 { } async allocateHosts( - {abortSignal, ...params}: RequestConfig & s.AllocateHostsRequest, + params: s.AllocateHostsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -207,7 +203,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("HostRecovery" in params) body.append(prefix+"HostRecovery", (params["HostRecovery"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AllocateHosts", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -217,7 +213,7 @@ export default class EC2 { } async applySecurityGroupsToClientVpnTargetNetwork( - {abortSignal, ...params}: RequestConfig & s.ApplySecurityGroupsToClientVpnTargetNetworkRequest, + params: s.ApplySecurityGroupsToClientVpnTargetNetworkRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -226,7 +222,7 @@ export default class EC2 { if (params["SecurityGroupIds"]) qsP.appendList(body, prefix+"SecurityGroupId", params["SecurityGroupIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ApplySecurityGroupsToClientVpnTargetNetwork", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -236,7 +232,7 @@ export default class EC2 { } async assignIpv6Addresses( - {abortSignal, ...params}: RequestConfig & s.AssignIpv6AddressesRequest, + params: s.AssignIpv6AddressesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -244,7 +240,7 @@ export default class EC2 { if (params["Ipv6Addresses"]) qsP.appendList(body, prefix+"ipv6Addresses", params["Ipv6Addresses"], {"entryPrefix":"."}) body.append(prefix+"NetworkInterfaceId", (params["NetworkInterfaceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssignIpv6Addresses", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -255,7 +251,7 @@ export default class EC2 { } async assignPrivateIpAddresses( - {abortSignal, ...params}: RequestConfig & s.AssignPrivateIpAddressesRequest, + params: s.AssignPrivateIpAddressesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -264,7 +260,7 @@ export default class EC2 { if (params["PrivateIpAddresses"]) qsP.appendList(body, prefix+"privateIpAddress", params["PrivateIpAddresses"], {"entryPrefix":"."}) if ("SecondaryPrivateIpAddressCount" in params) body.append(prefix+"SecondaryPrivateIpAddressCount", (params["SecondaryPrivateIpAddressCount"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssignPrivateIpAddresses", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -275,7 +271,7 @@ export default class EC2 { } async associateAddress( - {abortSignal, ...params}: RequestConfig & s.AssociateAddressRequest = {}, + params: s.AssociateAddressRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -287,7 +283,7 @@ export default class EC2 { if ("NetworkInterfaceId" in params) body.append(prefix+"NetworkInterfaceId", (params["NetworkInterfaceId"] ?? '').toString()); if ("PrivateIpAddress" in params) body.append(prefix+"PrivateIpAddress", (params["PrivateIpAddress"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateAddress", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -297,7 +293,7 @@ export default class EC2 { } async associateClientVpnTargetNetwork( - {abortSignal, ...params}: RequestConfig & s.AssociateClientVpnTargetNetworkRequest, + params: s.AssociateClientVpnTargetNetworkRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -306,7 +302,7 @@ export default class EC2 { body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateClientVpnTargetNetwork", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -317,7 +313,7 @@ export default class EC2 { } async associateDhcpOptions( - {abortSignal, ...params}: RequestConfig & s.AssociateDhcpOptionsRequest, + params: s.AssociateDhcpOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -325,14 +321,14 @@ export default class EC2 { body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateDhcpOptions", }); await resp.arrayBuffer(); // consume body without use } async associateEnclaveCertificateIamRole( - {abortSignal, ...params}: RequestConfig & s.AssociateEnclaveCertificateIamRoleRequest = {}, + params: s.AssociateEnclaveCertificateIamRoleRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -340,7 +336,7 @@ export default class EC2 { if ("RoleArn" in params) body.append(prefix+"RoleArn", (params["RoleArn"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateEnclaveCertificateIamRole", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -352,14 +348,14 @@ export default class EC2 { } async associateIamInstanceProfile( - {abortSignal, ...params}: RequestConfig & s.AssociateIamInstanceProfileRequest, + params: s.AssociateIamInstanceProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; IamInstanceProfileSpecification_Serialize(body, prefix+"IamInstanceProfile", params["IamInstanceProfile"]); body.append(prefix+"InstanceId", (params["InstanceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateIamInstanceProfile", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -369,7 +365,7 @@ export default class EC2 { } async associateRouteTable( - {abortSignal, ...params}: RequestConfig & s.AssociateRouteTableRequest, + params: s.AssociateRouteTableRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -378,7 +374,7 @@ export default class EC2 { if ("SubnetId" in params) body.append(prefix+"SubnetId", (params["SubnetId"] ?? '').toString()); if ("GatewayId" in params) body.append(prefix+"GatewayId", (params["GatewayId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateRouteTable", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -389,14 +385,14 @@ export default class EC2 { } async associateSubnetCidrBlock( - {abortSignal, ...params}: RequestConfig & s.AssociateSubnetCidrBlockRequest, + params: s.AssociateSubnetCidrBlockRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SubnetId", (params["SubnetId"] ?? '').toString()); body.append(prefix+"Ipv6CidrBlock", (params["Ipv6CidrBlock"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateSubnetCidrBlock", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -407,7 +403,7 @@ export default class EC2 { } async associateTransitGatewayMulticastDomain( - {abortSignal, ...params}: RequestConfig & s.AssociateTransitGatewayMulticastDomainRequest = {}, + params: s.AssociateTransitGatewayMulticastDomainRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -416,7 +412,7 @@ export default class EC2 { if (params["SubnetIds"]) qsP.appendList(body, prefix+"item", params["SubnetIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateTransitGatewayMulticastDomain", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -426,7 +422,7 @@ export default class EC2 { } async associateTransitGatewayRouteTable( - {abortSignal, ...params}: RequestConfig & s.AssociateTransitGatewayRouteTableRequest, + params: s.AssociateTransitGatewayRouteTableRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -434,7 +430,7 @@ export default class EC2 { body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateTransitGatewayRouteTable", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -444,7 +440,7 @@ export default class EC2 { } async associateVpcCidrBlock( - {abortSignal, ...params}: RequestConfig & s.AssociateVpcCidrBlockRequest, + params: s.AssociateVpcCidrBlockRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -455,7 +451,7 @@ export default class EC2 { if ("Ipv6Pool" in params) body.append(prefix+"Ipv6Pool", (params["Ipv6Pool"] ?? '').toString()); if ("Ipv6CidrBlock" in params) body.append(prefix+"Ipv6CidrBlock", (params["Ipv6CidrBlock"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateVpcCidrBlock", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -467,7 +463,7 @@ export default class EC2 { } async attachClassicLinkVpc( - {abortSignal, ...params}: RequestConfig & s.AttachClassicLinkVpcRequest, + params: s.AttachClassicLinkVpcRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -476,7 +472,7 @@ export default class EC2 { body.append(prefix+"InstanceId", (params["InstanceId"] ?? '').toString()); body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AttachClassicLinkVpc", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -486,7 +482,7 @@ export default class EC2 { } async attachInternetGateway( - {abortSignal, ...params}: RequestConfig & s.AttachInternetGatewayRequest, + params: s.AttachInternetGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -494,14 +490,14 @@ export default class EC2 { body.append(prefix+"InternetGatewayId", (params["InternetGatewayId"] ?? '').toString()); body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AttachInternetGateway", }); await resp.arrayBuffer(); // consume body without use } async attachNetworkInterface( - {abortSignal, ...params}: RequestConfig & s.AttachNetworkInterfaceRequest, + params: s.AttachNetworkInterfaceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -511,7 +507,7 @@ export default class EC2 { body.append(prefix+"NetworkInterfaceId", (params["NetworkInterfaceId"] ?? '').toString()); if ("NetworkCardIndex" in params) body.append(prefix+"NetworkCardIndex", (params["NetworkCardIndex"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AttachNetworkInterface", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -522,7 +518,7 @@ export default class EC2 { } async attachVolume( - {abortSignal, ...params}: RequestConfig & s.AttachVolumeRequest, + params: s.AttachVolumeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -531,7 +527,7 @@ export default class EC2 { body.append(prefix+"VolumeId", (params["VolumeId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AttachVolume", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -539,7 +535,7 @@ export default class EC2 { } async attachVpnGateway( - {abortSignal, ...params}: RequestConfig & s.AttachVpnGatewayRequest, + params: s.AttachVpnGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -547,7 +543,7 @@ export default class EC2 { body.append(prefix+"VpnGatewayId", (params["VpnGatewayId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AttachVpnGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -557,7 +553,7 @@ export default class EC2 { } async authorizeClientVpnIngress( - {abortSignal, ...params}: RequestConfig & s.AuthorizeClientVpnIngressRequest, + params: s.AuthorizeClientVpnIngressRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -569,7 +565,7 @@ export default class EC2 { body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AuthorizeClientVpnIngress", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -579,7 +575,7 @@ export default class EC2 { } async authorizeSecurityGroupEgress( - {abortSignal, ...params}: RequestConfig & s.AuthorizeSecurityGroupEgressRequest, + params: s.AuthorizeSecurityGroupEgressRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -593,14 +589,14 @@ export default class EC2 { if ("SourceSecurityGroupName" in params) body.append(prefix+"SourceSecurityGroupName", (params["SourceSecurityGroupName"] ?? '').toString()); if ("SourceSecurityGroupOwnerId" in params) body.append(prefix+"SourceSecurityGroupOwnerId", (params["SourceSecurityGroupOwnerId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AuthorizeSecurityGroupEgress", }); await resp.arrayBuffer(); // consume body without use } async authorizeSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.AuthorizeSecurityGroupIngressRequest = {}, + params: s.AuthorizeSecurityGroupIngressRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -615,14 +611,14 @@ export default class EC2 { if ("ToPort" in params) body.append(prefix+"ToPort", (params["ToPort"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AuthorizeSecurityGroupIngress", }); await resp.arrayBuffer(); // consume body without use } async bundleInstance( - {abortSignal, ...params}: RequestConfig & s.BundleInstanceRequest, + params: s.BundleInstanceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -630,7 +626,7 @@ export default class EC2 { Storage_Serialize(body, prefix+"Storage", params["Storage"]); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "BundleInstance", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -640,14 +636,14 @@ export default class EC2 { } async cancelBundleTask( - {abortSignal, ...params}: RequestConfig & s.CancelBundleTaskRequest, + params: s.CancelBundleTaskRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"BundleId", (params["BundleId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelBundleTask", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -657,14 +653,14 @@ export default class EC2 { } async cancelCapacityReservation( - {abortSignal, ...params}: RequestConfig & s.CancelCapacityReservationRequest, + params: s.CancelCapacityReservationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"CapacityReservationId", (params["CapacityReservationId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelCapacityReservation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -674,7 +670,7 @@ export default class EC2 { } async cancelConversionTask( - {abortSignal, ...params}: RequestConfig & s.CancelConversionRequest, + params: s.CancelConversionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -682,27 +678,27 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("ReasonMessage" in params) body.append(prefix+"ReasonMessage", (params["ReasonMessage"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelConversionTask", }); await resp.arrayBuffer(); // consume body without use } async cancelExportTask( - {abortSignal, ...params}: RequestConfig & s.CancelExportTaskRequest, + params: s.CancelExportTaskRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ExportTaskId", (params["ExportTaskId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelExportTask", }); await resp.arrayBuffer(); // consume body without use } async cancelImportTask( - {abortSignal, ...params}: RequestConfig & s.CancelImportTaskRequest = {}, + params: s.CancelImportTaskRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -710,7 +706,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("ImportTaskId" in params) body.append(prefix+"ImportTaskId", (params["ImportTaskId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelImportTask", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -722,13 +718,13 @@ export default class EC2 { } async cancelReservedInstancesListing( - {abortSignal, ...params}: RequestConfig & s.CancelReservedInstancesListingRequest, + params: s.CancelReservedInstancesListingRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ReservedInstancesListingId", (params["ReservedInstancesListingId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelReservedInstancesListing", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -738,7 +734,7 @@ export default class EC2 { } async cancelSpotFleetRequests( - {abortSignal, ...params}: RequestConfig & s.CancelSpotFleetRequestsRequest, + params: s.CancelSpotFleetRequestsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -746,7 +742,7 @@ export default class EC2 { if (params["SpotFleetRequestIds"]) qsP.appendList(body, prefix+"spotFleetRequestId", params["SpotFleetRequestIds"], {"entryPrefix":"."}) body.append(prefix+"TerminateInstances", (params["TerminateInstances"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelSpotFleetRequests", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -757,14 +753,14 @@ export default class EC2 { } async cancelSpotInstanceRequests( - {abortSignal, ...params}: RequestConfig & s.CancelSpotInstanceRequestsRequest, + params: s.CancelSpotInstanceRequestsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["SpotInstanceRequestIds"]) qsP.appendList(body, prefix+"SpotInstanceRequestId", params["SpotInstanceRequestIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelSpotInstanceRequests", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -774,7 +770,7 @@ export default class EC2 { } async confirmProductInstance( - {abortSignal, ...params}: RequestConfig & s.ConfirmProductInstanceRequest, + params: s.ConfirmProductInstanceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -782,7 +778,7 @@ export default class EC2 { body.append(prefix+"ProductCode", (params["ProductCode"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ConfirmProductInstance", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -793,7 +789,7 @@ export default class EC2 { } async copyFpgaImage( - {abortSignal, ...params}: RequestConfig & s.CopyFpgaImageRequest, + params: s.CopyFpgaImageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -804,7 +800,7 @@ export default class EC2 { body.append(prefix+"SourceRegion", (params["SourceRegion"] ?? '').toString()); if ("ClientToken" in params) body.append(prefix+"ClientToken", (params["ClientToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CopyFpgaImage", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -814,7 +810,7 @@ export default class EC2 { } async copyImage( - {abortSignal, ...params}: RequestConfig & s.CopyImageRequest, + params: s.CopyImageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -828,7 +824,7 @@ export default class EC2 { if ("DestinationOutpostArn" in params) body.append(prefix+"DestinationOutpostArn", (params["DestinationOutpostArn"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CopyImage", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -838,7 +834,7 @@ export default class EC2 { } async copySnapshot( - {abortSignal, ...params}: RequestConfig & s.CopySnapshotRequest, + params: s.CopySnapshotRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -853,7 +849,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CopySnapshot", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -864,7 +860,7 @@ export default class EC2 { } async createCapacityReservation( - {abortSignal, ...params}: RequestConfig & s.CreateCapacityReservationRequest, + params: s.CreateCapacityReservationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -883,7 +879,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"item", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateCapacityReservation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -893,7 +889,7 @@ export default class EC2 { } async createCarrierGateway( - {abortSignal, ...params}: RequestConfig & s.CreateCarrierGatewayRequest, + params: s.CreateCarrierGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -902,7 +898,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateCarrierGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -912,7 +908,7 @@ export default class EC2 { } async createClientVpnEndpoint( - {abortSignal, ...params}: RequestConfig & s.CreateClientVpnEndpointRequest, + params: s.CreateClientVpnEndpointRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -933,7 +929,7 @@ export default class EC2 { if ("SelfServicePortal" in params) body.append(prefix+"SelfServicePortal", (params["SelfServicePortal"] ?? '').toString()); if (params["ClientConnectOptions"] != null) ClientConnectOptions_Serialize(body, prefix+"ClientConnectOptions", params["ClientConnectOptions"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateClientVpnEndpoint", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -945,7 +941,7 @@ export default class EC2 { } async createClientVpnRoute( - {abortSignal, ...params}: RequestConfig & s.CreateClientVpnRouteRequest, + params: s.CreateClientVpnRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -956,7 +952,7 @@ export default class EC2 { body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateClientVpnRoute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -966,7 +962,7 @@ export default class EC2 { } async createCustomerGateway( - {abortSignal, ...params}: RequestConfig & s.CreateCustomerGatewayRequest, + params: s.CreateCustomerGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -978,7 +974,7 @@ export default class EC2 { if ("DeviceName" in params) body.append(prefix+"DeviceName", (params["DeviceName"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateCustomerGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -988,14 +984,14 @@ export default class EC2 { } async createDefaultSubnet( - {abortSignal, ...params}: RequestConfig & s.CreateDefaultSubnetRequest, + params: s.CreateDefaultSubnetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDefaultSubnet", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1005,13 +1001,13 @@ export default class EC2 { } async createDefaultVpc( - {abortSignal, ...params}: RequestConfig & s.CreateDefaultVpcRequest = {}, + params: s.CreateDefaultVpcRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDefaultVpc", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1021,7 +1017,7 @@ export default class EC2 { } async createDhcpOptions( - {abortSignal, ...params}: RequestConfig & s.CreateDhcpOptionsRequest, + params: s.CreateDhcpOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1029,7 +1025,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDhcpOptions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1039,7 +1035,7 @@ export default class EC2 { } async createEgressOnlyInternetGateway( - {abortSignal, ...params}: RequestConfig & s.CreateEgressOnlyInternetGatewayRequest, + params: s.CreateEgressOnlyInternetGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1048,7 +1044,7 @@ export default class EC2 { body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateEgressOnlyInternetGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1059,7 +1055,7 @@ export default class EC2 { } async createFleet( - {abortSignal, ...params}: RequestConfig & s.CreateFleetRequest, + params: s.CreateFleetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1077,7 +1073,7 @@ export default class EC2 { if ("ReplaceUnhealthyInstances" in params) body.append(prefix+"ReplaceUnhealthyInstances", (params["ReplaceUnhealthyInstances"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateFleet", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1089,7 +1085,7 @@ export default class EC2 { } async createFlowLogs( - {abortSignal, ...params}: RequestConfig & s.CreateFlowLogsRequest, + params: s.CreateFlowLogsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1106,7 +1102,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("MaxAggregationInterval" in params) body.append(prefix+"MaxAggregationInterval", (params["MaxAggregationInterval"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateFlowLogs", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1118,7 +1114,7 @@ export default class EC2 { } async createFpgaImage( - {abortSignal, ...params}: RequestConfig & s.CreateFpgaImageRequest, + params: s.CreateFpgaImageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1130,7 +1126,7 @@ export default class EC2 { if ("ClientToken" in params) body.append(prefix+"ClientToken", (params["ClientToken"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateFpgaImage", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1141,7 +1137,7 @@ export default class EC2 { } async createImage( - {abortSignal, ...params}: RequestConfig & s.CreateImageRequest, + params: s.CreateImageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1153,7 +1149,7 @@ export default class EC2 { if ("NoReboot" in params) body.append(prefix+"NoReboot", (params["NoReboot"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateImage", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1163,7 +1159,7 @@ export default class EC2 { } async createInstanceExportTask( - {abortSignal, ...params}: RequestConfig & s.CreateInstanceExportTaskRequest, + params: s.CreateInstanceExportTaskRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1173,7 +1169,7 @@ export default class EC2 { body.append(prefix+"TargetEnvironment", (params["TargetEnvironment"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateInstanceExportTask", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1183,14 +1179,14 @@ export default class EC2 { } async createInternetGateway( - {abortSignal, ...params}: RequestConfig & s.CreateInternetGatewayRequest = {}, + params: s.CreateInternetGatewayRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateInternetGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1200,7 +1196,7 @@ export default class EC2 { } async createKeyPair( - {abortSignal, ...params}: RequestConfig & s.CreateKeyPairRequest, + params: s.CreateKeyPairRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1208,7 +1204,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateKeyPair", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1222,7 +1218,7 @@ export default class EC2 { } async createLaunchTemplate( - {abortSignal, ...params}: RequestConfig & s.CreateLaunchTemplateRequest, + params: s.CreateLaunchTemplateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1233,7 +1229,7 @@ export default class EC2 { RequestLaunchTemplateData_Serialize(body, prefix+"LaunchTemplateData", params["LaunchTemplateData"]); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateLaunchTemplate", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1244,7 +1240,7 @@ export default class EC2 { } async createLaunchTemplateVersion( - {abortSignal, ...params}: RequestConfig & s.CreateLaunchTemplateVersionRequest, + params: s.CreateLaunchTemplateVersionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1256,7 +1252,7 @@ export default class EC2 { if ("VersionDescription" in params) body.append(prefix+"VersionDescription", (params["VersionDescription"] ?? '').toString()); RequestLaunchTemplateData_Serialize(body, prefix+"LaunchTemplateData", params["LaunchTemplateData"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateLaunchTemplateVersion", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1267,7 +1263,7 @@ export default class EC2 { } async createLocalGatewayRoute( - {abortSignal, ...params}: RequestConfig & s.CreateLocalGatewayRouteRequest, + params: s.CreateLocalGatewayRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1276,7 +1272,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"LocalGatewayVirtualInterfaceGroupId", (params["LocalGatewayVirtualInterfaceGroupId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateLocalGatewayRoute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1286,7 +1282,7 @@ export default class EC2 { } async createLocalGatewayRouteTableVpcAssociation( - {abortSignal, ...params}: RequestConfig & s.CreateLocalGatewayRouteTableVpcAssociationRequest, + params: s.CreateLocalGatewayRouteTableVpcAssociationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1295,7 +1291,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateLocalGatewayRouteTableVpcAssociation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1305,7 +1301,7 @@ export default class EC2 { } async createManagedPrefixList( - {abortSignal, ...params}: RequestConfig & s.CreateManagedPrefixListRequest, + params: s.CreateManagedPrefixListRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1317,7 +1313,7 @@ export default class EC2 { body.append(prefix+"AddressFamily", (params["AddressFamily"] ?? '').toString()); body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateManagedPrefixList", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1327,7 +1323,7 @@ export default class EC2 { } async createNatGateway( - {abortSignal, ...params}: RequestConfig & s.CreateNatGatewayRequest, + params: s.CreateNatGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1337,7 +1333,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) body.append(prefix+"AllocationId", (params["AllocationId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateNatGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1348,7 +1344,7 @@ export default class EC2 { } async createNetworkAcl( - {abortSignal, ...params}: RequestConfig & s.CreateNetworkAclRequest, + params: s.CreateNetworkAclRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1356,7 +1352,7 @@ export default class EC2 { body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateNetworkAcl", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1366,7 +1362,7 @@ export default class EC2 { } async createNetworkAclEntry( - {abortSignal, ...params}: RequestConfig & s.CreateNetworkAclEntryRequest, + params: s.CreateNetworkAclEntryRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1381,14 +1377,14 @@ export default class EC2 { body.append(prefix+"RuleAction", (params["RuleAction"] ?? '').toString()); body.append(prefix+"RuleNumber", (params["RuleNumber"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateNetworkAclEntry", }); await resp.arrayBuffer(); // consume body without use } async createNetworkInsightsPath( - {abortSignal, ...params}: RequestConfig & s.CreateNetworkInsightsPathRequest, + params: s.CreateNetworkInsightsPathRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1402,7 +1398,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateNetworkInsightsPath", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1412,7 +1408,7 @@ export default class EC2 { } async createNetworkInterface( - {abortSignal, ...params}: RequestConfig & s.CreateNetworkInterfaceRequest, + params: s.CreateNetworkInterfaceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1428,7 +1424,7 @@ export default class EC2 { body.append(prefix+"SubnetId", (params["SubnetId"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateNetworkInterface", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1438,7 +1434,7 @@ export default class EC2 { } async createNetworkInterfacePermission( - {abortSignal, ...params}: RequestConfig & s.CreateNetworkInterfacePermissionRequest, + params: s.CreateNetworkInterfacePermissionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1448,7 +1444,7 @@ export default class EC2 { body.append(prefix+"Permission", (params["Permission"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateNetworkInterfacePermission", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1458,7 +1454,7 @@ export default class EC2 { } async createPlacementGroup( - {abortSignal, ...params}: RequestConfig & s.CreatePlacementGroupRequest = {}, + params: s.CreatePlacementGroupRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1468,7 +1464,7 @@ export default class EC2 { if ("PartitionCount" in params) body.append(prefix+"PartitionCount", (params["PartitionCount"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreatePlacementGroup", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1478,7 +1474,7 @@ export default class EC2 { } async createReservedInstancesListing( - {abortSignal, ...params}: RequestConfig & s.CreateReservedInstancesListingRequest, + params: s.CreateReservedInstancesListingRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1487,7 +1483,7 @@ export default class EC2 { if (params["PriceSchedules"]) qsP.appendList(body, prefix+"priceSchedules", params["PriceSchedules"], {"appender":PriceScheduleSpecification_Serialize,"entryPrefix":"."}) body.append(prefix+"ReservedInstancesId", (params["ReservedInstancesId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateReservedInstancesListing", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1497,7 +1493,7 @@ export default class EC2 { } async createRoute( - {abortSignal, ...params}: RequestConfig & s.CreateRouteRequest, + params: s.CreateRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1517,7 +1513,7 @@ export default class EC2 { body.append(prefix+"RouteTableId", (params["RouteTableId"] ?? '').toString()); if ("VpcPeeringConnectionId" in params) body.append(prefix+"VpcPeeringConnectionId", (params["VpcPeeringConnectionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateRoute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1527,7 +1523,7 @@ export default class EC2 { } async createRouteTable( - {abortSignal, ...params}: RequestConfig & s.CreateRouteTableRequest, + params: s.CreateRouteTableRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1535,7 +1531,7 @@ export default class EC2 { body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateRouteTable", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1545,7 +1541,7 @@ export default class EC2 { } async createSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.CreateSecurityGroupRequest, + params: s.CreateSecurityGroupRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1555,7 +1551,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateSecurityGroup", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1566,7 +1562,7 @@ export default class EC2 { } async createSnapshot( - {abortSignal, ...params}: RequestConfig & s.CreateSnapshotRequest, + params: s.CreateSnapshotRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1576,7 +1572,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateSnapshot", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1584,7 +1580,7 @@ export default class EC2 { } async createSnapshots( - {abortSignal, ...params}: RequestConfig & s.CreateSnapshotsRequest, + params: s.CreateSnapshotsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1595,7 +1591,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("CopyTagsFromSource" in params) body.append(prefix+"CopyTagsFromSource", (params["CopyTagsFromSource"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateSnapshots", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1605,7 +1601,7 @@ export default class EC2 { } async createSpotDatafeedSubscription( - {abortSignal, ...params}: RequestConfig & s.CreateSpotDatafeedSubscriptionRequest, + params: s.CreateSpotDatafeedSubscriptionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1613,7 +1609,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("Prefix" in params) body.append(prefix+"Prefix", (params["Prefix"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateSpotDatafeedSubscription", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1623,7 +1619,7 @@ export default class EC2 { } async createSubnet( - {abortSignal, ...params}: RequestConfig & s.CreateSubnetRequest, + params: s.CreateSubnetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1636,7 +1632,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"CidrBlock", (params["CidrBlock"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateSubnet", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1646,7 +1642,7 @@ export default class EC2 { } async createTags( - {abortSignal, ...params}: RequestConfig & s.CreateTagsRequest, + params: s.CreateTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1654,14 +1650,14 @@ export default class EC2 { if (params["Resources"]) qsP.appendList(body, prefix+"ResourceId", params["Resources"], {"entryPrefix":"."}) if (params["Tags"]) qsP.appendList(body, prefix+"Tag", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTags", }); await resp.arrayBuffer(); // consume body without use } async createTrafficMirrorFilter( - {abortSignal, ...params}: RequestConfig & s.CreateTrafficMirrorFilterRequest = {}, + params: s.CreateTrafficMirrorFilterRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1670,7 +1666,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTrafficMirrorFilter", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1681,7 +1677,7 @@ export default class EC2 { } async createTrafficMirrorFilterRule( - {abortSignal, ...params}: RequestConfig & s.CreateTrafficMirrorFilterRuleRequest, + params: s.CreateTrafficMirrorFilterRuleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1698,7 +1694,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTrafficMirrorFilterRule", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1709,7 +1705,7 @@ export default class EC2 { } async createTrafficMirrorSession( - {abortSignal, ...params}: RequestConfig & s.CreateTrafficMirrorSessionRequest, + params: s.CreateTrafficMirrorSessionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1724,7 +1720,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTrafficMirrorSession", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1735,7 +1731,7 @@ export default class EC2 { } async createTrafficMirrorTarget( - {abortSignal, ...params}: RequestConfig & s.CreateTrafficMirrorTargetRequest = {}, + params: s.CreateTrafficMirrorTargetRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1746,7 +1742,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTrafficMirrorTarget", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1757,7 +1753,7 @@ export default class EC2 { } async createTransitGateway( - {abortSignal, ...params}: RequestConfig & s.CreateTransitGatewayRequest = {}, + params: s.CreateTransitGatewayRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1766,7 +1762,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTransitGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1776,7 +1772,7 @@ export default class EC2 { } async createTransitGatewayConnect( - {abortSignal, ...params}: RequestConfig & s.CreateTransitGatewayConnectRequest, + params: s.CreateTransitGatewayConnectRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1785,7 +1781,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTransitGatewayConnect", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1795,7 +1791,7 @@ export default class EC2 { } async createTransitGatewayConnectPeer( - {abortSignal, ...params}: RequestConfig & s.CreateTransitGatewayConnectPeerRequest, + params: s.CreateTransitGatewayConnectPeerRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1807,7 +1803,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTransitGatewayConnectPeer", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1817,7 +1813,7 @@ export default class EC2 { } async createTransitGatewayMulticastDomain( - {abortSignal, ...params}: RequestConfig & s.CreateTransitGatewayMulticastDomainRequest, + params: s.CreateTransitGatewayMulticastDomainRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1826,7 +1822,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTransitGatewayMulticastDomain", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1836,7 +1832,7 @@ export default class EC2 { } async createTransitGatewayPeeringAttachment( - {abortSignal, ...params}: RequestConfig & s.CreateTransitGatewayPeeringAttachmentRequest, + params: s.CreateTransitGatewayPeeringAttachmentRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1847,7 +1843,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTransitGatewayPeeringAttachment", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1857,7 +1853,7 @@ export default class EC2 { } async createTransitGatewayPrefixListReference( - {abortSignal, ...params}: RequestConfig & s.CreateTransitGatewayPrefixListReferenceRequest, + params: s.CreateTransitGatewayPrefixListReferenceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1867,7 +1863,7 @@ export default class EC2 { if ("Blackhole" in params) body.append(prefix+"Blackhole", (params["Blackhole"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTransitGatewayPrefixListReference", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1877,7 +1873,7 @@ export default class EC2 { } async createTransitGatewayRoute( - {abortSignal, ...params}: RequestConfig & s.CreateTransitGatewayRouteRequest, + params: s.CreateTransitGatewayRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1887,7 +1883,7 @@ export default class EC2 { if ("Blackhole" in params) body.append(prefix+"Blackhole", (params["Blackhole"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTransitGatewayRoute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1897,7 +1893,7 @@ export default class EC2 { } async createTransitGatewayRouteTable( - {abortSignal, ...params}: RequestConfig & s.CreateTransitGatewayRouteTableRequest, + params: s.CreateTransitGatewayRouteTableRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1905,7 +1901,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"item", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTransitGatewayRouteTable", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1915,7 +1911,7 @@ export default class EC2 { } async createTransitGatewayVpcAttachment( - {abortSignal, ...params}: RequestConfig & s.CreateTransitGatewayVpcAttachmentRequest, + params: s.CreateTransitGatewayVpcAttachmentRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1926,7 +1922,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"item", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTransitGatewayVpcAttachment", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1936,7 +1932,7 @@ export default class EC2 { } async createVolume( - {abortSignal, ...params}: RequestConfig & s.CreateVolumeRequest, + params: s.CreateVolumeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1953,7 +1949,7 @@ export default class EC2 { if ("MultiAttachEnabled" in params) body.append(prefix+"MultiAttachEnabled", (params["MultiAttachEnabled"] ?? '').toString()); if ("Throughput" in params) body.append(prefix+"Throughput", (params["Throughput"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVolume", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1961,7 +1957,7 @@ export default class EC2 { } async createVpc( - {abortSignal, ...params}: RequestConfig & s.CreateVpcRequest, + params: s.CreateVpcRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1974,7 +1970,7 @@ export default class EC2 { if ("Ipv6CidrBlockNetworkBorderGroup" in params) body.append(prefix+"Ipv6CidrBlockNetworkBorderGroup", (params["Ipv6CidrBlockNetworkBorderGroup"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVpc", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -1984,7 +1980,7 @@ export default class EC2 { } async createVpcEndpoint( - {abortSignal, ...params}: RequestConfig & s.CreateVpcEndpointRequest, + params: s.CreateVpcEndpointRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2000,7 +1996,7 @@ export default class EC2 { if ("PrivateDnsEnabled" in params) body.append(prefix+"PrivateDnsEnabled", (params["PrivateDnsEnabled"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVpcEndpoint", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2011,7 +2007,7 @@ export default class EC2 { } async createVpcEndpointConnectionNotification( - {abortSignal, ...params}: RequestConfig & s.CreateVpcEndpointConnectionNotificationRequest, + params: s.CreateVpcEndpointConnectionNotificationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2022,7 +2018,7 @@ export default class EC2 { if (params["ConnectionEvents"]) qsP.appendList(body, prefix+"item", params["ConnectionEvents"], {"entryPrefix":"."}) if ("ClientToken" in params) body.append(prefix+"ClientToken", (params["ClientToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVpcEndpointConnectionNotification", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2033,7 +2029,7 @@ export default class EC2 { } async createVpcEndpointServiceConfiguration( - {abortSignal, ...params}: RequestConfig & s.CreateVpcEndpointServiceConfigurationRequest = {}, + params: s.CreateVpcEndpointServiceConfigurationRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2045,7 +2041,7 @@ export default class EC2 { if ("ClientToken" in params) body.append(prefix+"ClientToken", (params["ClientToken"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVpcEndpointServiceConfiguration", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2056,7 +2052,7 @@ export default class EC2 { } async createVpcPeeringConnection( - {abortSignal, ...params}: RequestConfig & s.CreateVpcPeeringConnectionRequest = {}, + params: s.CreateVpcPeeringConnectionRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2067,7 +2063,7 @@ export default class EC2 { if ("PeerRegion" in params) body.append(prefix+"PeerRegion", (params["PeerRegion"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVpcPeeringConnection", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2077,7 +2073,7 @@ export default class EC2 { } async createVpnConnection( - {abortSignal, ...params}: RequestConfig & s.CreateVpnConnectionRequest, + params: s.CreateVpnConnectionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2089,7 +2085,7 @@ export default class EC2 { if (params["Options"] != null) VpnConnectionOptionsSpecification_Serialize(body, prefix+"Options", params["Options"]); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVpnConnection", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2099,21 +2095,21 @@ export default class EC2 { } async createVpnConnectionRoute( - {abortSignal, ...params}: RequestConfig & s.CreateVpnConnectionRouteRequest, + params: s.CreateVpnConnectionRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DestinationCidrBlock", (params["DestinationCidrBlock"] ?? '').toString()); body.append(prefix+"VpnConnectionId", (params["VpnConnectionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVpnConnectionRoute", }); await resp.arrayBuffer(); // consume body without use } async createVpnGateway( - {abortSignal, ...params}: RequestConfig & s.CreateVpnGatewayRequest, + params: s.CreateVpnGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2123,7 +2119,7 @@ export default class EC2 { if ("AmazonSideAsn" in params) body.append(prefix+"AmazonSideAsn", (params["AmazonSideAsn"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVpnGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2133,14 +2129,14 @@ export default class EC2 { } async deleteCarrierGateway( - {abortSignal, ...params}: RequestConfig & s.DeleteCarrierGatewayRequest, + params: s.DeleteCarrierGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"CarrierGatewayId", (params["CarrierGatewayId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteCarrierGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2150,14 +2146,14 @@ export default class EC2 { } async deleteClientVpnEndpoint( - {abortSignal, ...params}: RequestConfig & s.DeleteClientVpnEndpointRequest, + params: s.DeleteClientVpnEndpointRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ClientVpnEndpointId", (params["ClientVpnEndpointId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteClientVpnEndpoint", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2167,7 +2163,7 @@ export default class EC2 { } async deleteClientVpnRoute( - {abortSignal, ...params}: RequestConfig & s.DeleteClientVpnRouteRequest, + params: s.DeleteClientVpnRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2176,7 +2172,7 @@ export default class EC2 { body.append(prefix+"DestinationCidrBlock", (params["DestinationCidrBlock"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteClientVpnRoute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2186,42 +2182,42 @@ export default class EC2 { } async deleteCustomerGateway( - {abortSignal, ...params}: RequestConfig & s.DeleteCustomerGatewayRequest, + params: s.DeleteCustomerGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"CustomerGatewayId", (params["CustomerGatewayId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteCustomerGateway", }); await resp.arrayBuffer(); // consume body without use } async deleteDhcpOptions( - {abortSignal, ...params}: RequestConfig & s.DeleteDhcpOptionsRequest, + params: s.DeleteDhcpOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DhcpOptionsId", (params["DhcpOptionsId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDhcpOptions", }); await resp.arrayBuffer(); // consume body without use } async deleteEgressOnlyInternetGateway( - {abortSignal, ...params}: RequestConfig & s.DeleteEgressOnlyInternetGatewayRequest, + params: s.DeleteEgressOnlyInternetGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"EgressOnlyInternetGatewayId", (params["EgressOnlyInternetGatewayId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteEgressOnlyInternetGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2231,7 +2227,7 @@ export default class EC2 { } async deleteFleets( - {abortSignal, ...params}: RequestConfig & s.DeleteFleetsRequest, + params: s.DeleteFleetsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2239,7 +2235,7 @@ export default class EC2 { if (params["FleetIds"]) qsP.appendList(body, prefix+"FleetId", params["FleetIds"], {"entryPrefix":"."}) body.append(prefix+"TerminateInstances", (params["TerminateInstances"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteFleets", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2250,14 +2246,14 @@ export default class EC2 { } async deleteFlowLogs( - {abortSignal, ...params}: RequestConfig & s.DeleteFlowLogsRequest, + params: s.DeleteFlowLogsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["FlowLogIds"]) qsP.appendList(body, prefix+"FlowLogId", params["FlowLogIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteFlowLogs", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2267,14 +2263,14 @@ export default class EC2 { } async deleteFpgaImage( - {abortSignal, ...params}: RequestConfig & s.DeleteFpgaImageRequest, + params: s.DeleteFpgaImageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"FpgaImageId", (params["FpgaImageId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteFpgaImage", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2284,21 +2280,21 @@ export default class EC2 { } async deleteInternetGateway( - {abortSignal, ...params}: RequestConfig & s.DeleteInternetGatewayRequest, + params: s.DeleteInternetGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"InternetGatewayId", (params["InternetGatewayId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteInternetGateway", }); await resp.arrayBuffer(); // consume body without use } async deleteKeyPair( - {abortSignal, ...params}: RequestConfig & s.DeleteKeyPairRequest = {}, + params: s.DeleteKeyPairRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2306,14 +2302,14 @@ export default class EC2 { if ("KeyPairId" in params) body.append(prefix+"KeyPairId", (params["KeyPairId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteKeyPair", }); await resp.arrayBuffer(); // consume body without use } async deleteLaunchTemplate( - {abortSignal, ...params}: RequestConfig & s.DeleteLaunchTemplateRequest = {}, + params: s.DeleteLaunchTemplateRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2321,7 +2317,7 @@ export default class EC2 { if ("LaunchTemplateId" in params) body.append(prefix+"LaunchTemplateId", (params["LaunchTemplateId"] ?? '').toString()); if ("LaunchTemplateName" in params) body.append(prefix+"LaunchTemplateName", (params["LaunchTemplateName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteLaunchTemplate", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2331,7 +2327,7 @@ export default class EC2 { } async deleteLaunchTemplateVersions( - {abortSignal, ...params}: RequestConfig & s.DeleteLaunchTemplateVersionsRequest, + params: s.DeleteLaunchTemplateVersionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2340,7 +2336,7 @@ export default class EC2 { if ("LaunchTemplateName" in params) body.append(prefix+"LaunchTemplateName", (params["LaunchTemplateName"] ?? '').toString()); if (params["Versions"]) qsP.appendList(body, prefix+"LaunchTemplateVersion", params["Versions"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteLaunchTemplateVersions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2351,7 +2347,7 @@ export default class EC2 { } async deleteLocalGatewayRoute( - {abortSignal, ...params}: RequestConfig & s.DeleteLocalGatewayRouteRequest, + params: s.DeleteLocalGatewayRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2359,7 +2355,7 @@ export default class EC2 { body.append(prefix+"LocalGatewayRouteTableId", (params["LocalGatewayRouteTableId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteLocalGatewayRoute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2369,14 +2365,14 @@ export default class EC2 { } async deleteLocalGatewayRouteTableVpcAssociation( - {abortSignal, ...params}: RequestConfig & s.DeleteLocalGatewayRouteTableVpcAssociationRequest, + params: s.DeleteLocalGatewayRouteTableVpcAssociationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LocalGatewayRouteTableVpcAssociationId", (params["LocalGatewayRouteTableVpcAssociationId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteLocalGatewayRouteTableVpcAssociation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2386,14 +2382,14 @@ export default class EC2 { } async deleteManagedPrefixList( - {abortSignal, ...params}: RequestConfig & s.DeleteManagedPrefixListRequest, + params: s.DeleteManagedPrefixListRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"PrefixListId", (params["PrefixListId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteManagedPrefixList", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2403,14 +2399,14 @@ export default class EC2 { } async deleteNatGateway( - {abortSignal, ...params}: RequestConfig & s.DeleteNatGatewayRequest, + params: s.DeleteNatGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"NatGatewayId", (params["NatGatewayId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteNatGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2420,21 +2416,21 @@ export default class EC2 { } async deleteNetworkAcl( - {abortSignal, ...params}: RequestConfig & s.DeleteNetworkAclRequest, + params: s.DeleteNetworkAclRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"NetworkAclId", (params["NetworkAclId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteNetworkAcl", }); await resp.arrayBuffer(); // consume body without use } async deleteNetworkAclEntry( - {abortSignal, ...params}: RequestConfig & s.DeleteNetworkAclEntryRequest, + params: s.DeleteNetworkAclEntryRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2443,21 +2439,21 @@ export default class EC2 { body.append(prefix+"NetworkAclId", (params["NetworkAclId"] ?? '').toString()); body.append(prefix+"RuleNumber", (params["RuleNumber"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteNetworkAclEntry", }); await resp.arrayBuffer(); // consume body without use } async deleteNetworkInsightsAnalysis( - {abortSignal, ...params}: RequestConfig & s.DeleteNetworkInsightsAnalysisRequest, + params: s.DeleteNetworkInsightsAnalysisRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"NetworkInsightsAnalysisId", (params["NetworkInsightsAnalysisId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteNetworkInsightsAnalysis", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2467,14 +2463,14 @@ export default class EC2 { } async deleteNetworkInsightsPath( - {abortSignal, ...params}: RequestConfig & s.DeleteNetworkInsightsPathRequest, + params: s.DeleteNetworkInsightsPathRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"NetworkInsightsPathId", (params["NetworkInsightsPathId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteNetworkInsightsPath", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2484,21 +2480,21 @@ export default class EC2 { } async deleteNetworkInterface( - {abortSignal, ...params}: RequestConfig & s.DeleteNetworkInterfaceRequest, + params: s.DeleteNetworkInterfaceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"NetworkInterfaceId", (params["NetworkInterfaceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteNetworkInterface", }); await resp.arrayBuffer(); // consume body without use } async deleteNetworkInterfacePermission( - {abortSignal, ...params}: RequestConfig & s.DeleteNetworkInterfacePermissionRequest, + params: s.DeleteNetworkInterfacePermissionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2506,7 +2502,7 @@ export default class EC2 { if ("Force" in params) body.append(prefix+"Force", (params["Force"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteNetworkInterfacePermission", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2516,28 +2512,28 @@ export default class EC2 { } async deletePlacementGroup( - {abortSignal, ...params}: RequestConfig & s.DeletePlacementGroupRequest, + params: s.DeletePlacementGroupRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeletePlacementGroup", }); await resp.arrayBuffer(); // consume body without use } async deleteQueuedReservedInstances( - {abortSignal, ...params}: RequestConfig & s.DeleteQueuedReservedInstancesRequest, + params: s.DeleteQueuedReservedInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["ReservedInstancesIds"]) qsP.appendList(body, prefix+"ReservedInstancesId", params["ReservedInstancesIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteQueuedReservedInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2548,7 +2544,7 @@ export default class EC2 { } async deleteRoute( - {abortSignal, ...params}: RequestConfig & s.DeleteRouteRequest, + params: s.DeleteRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2558,28 +2554,28 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"RouteTableId", (params["RouteTableId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteRoute", }); await resp.arrayBuffer(); // consume body without use } async deleteRouteTable( - {abortSignal, ...params}: RequestConfig & s.DeleteRouteTableRequest, + params: s.DeleteRouteTableRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"RouteTableId", (params["RouteTableId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteRouteTable", }); await resp.arrayBuffer(); // consume body without use } async deleteSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteSecurityGroupRequest = {}, + params: s.DeleteSecurityGroupRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2587,55 +2583,55 @@ export default class EC2 { if ("GroupName" in params) body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteSecurityGroup", }); await resp.arrayBuffer(); // consume body without use } async deleteSnapshot( - {abortSignal, ...params}: RequestConfig & s.DeleteSnapshotRequest, + params: s.DeleteSnapshotRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SnapshotId", (params["SnapshotId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteSnapshot", }); await resp.arrayBuffer(); // consume body without use } async deleteSpotDatafeedSubscription( - {abortSignal, ...params}: RequestConfig & s.DeleteSpotDatafeedSubscriptionRequest = {}, + params: s.DeleteSpotDatafeedSubscriptionRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteSpotDatafeedSubscription", }); await resp.arrayBuffer(); // consume body without use } async deleteSubnet( - {abortSignal, ...params}: RequestConfig & s.DeleteSubnetRequest, + params: s.DeleteSubnetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SubnetId", (params["SubnetId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteSubnet", }); await resp.arrayBuffer(); // consume body without use } async deleteTags( - {abortSignal, ...params}: RequestConfig & s.DeleteTagsRequest, + params: s.DeleteTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2643,21 +2639,21 @@ export default class EC2 { if (params["Resources"]) qsP.appendList(body, prefix+"resourceId", params["Resources"], {"entryPrefix":"."}) if (params["Tags"]) qsP.appendList(body, prefix+"tag", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTags", }); await resp.arrayBuffer(); // consume body without use } async deleteTrafficMirrorFilter( - {abortSignal, ...params}: RequestConfig & s.DeleteTrafficMirrorFilterRequest, + params: s.DeleteTrafficMirrorFilterRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TrafficMirrorFilterId", (params["TrafficMirrorFilterId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTrafficMirrorFilter", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2667,14 +2663,14 @@ export default class EC2 { } async deleteTrafficMirrorFilterRule( - {abortSignal, ...params}: RequestConfig & s.DeleteTrafficMirrorFilterRuleRequest, + params: s.DeleteTrafficMirrorFilterRuleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TrafficMirrorFilterRuleId", (params["TrafficMirrorFilterRuleId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTrafficMirrorFilterRule", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2684,14 +2680,14 @@ export default class EC2 { } async deleteTrafficMirrorSession( - {abortSignal, ...params}: RequestConfig & s.DeleteTrafficMirrorSessionRequest, + params: s.DeleteTrafficMirrorSessionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TrafficMirrorSessionId", (params["TrafficMirrorSessionId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTrafficMirrorSession", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2701,14 +2697,14 @@ export default class EC2 { } async deleteTrafficMirrorTarget( - {abortSignal, ...params}: RequestConfig & s.DeleteTrafficMirrorTargetRequest, + params: s.DeleteTrafficMirrorTargetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TrafficMirrorTargetId", (params["TrafficMirrorTargetId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTrafficMirrorTarget", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2718,14 +2714,14 @@ export default class EC2 { } async deleteTransitGateway( - {abortSignal, ...params}: RequestConfig & s.DeleteTransitGatewayRequest, + params: s.DeleteTransitGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayId", (params["TransitGatewayId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTransitGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2735,14 +2731,14 @@ export default class EC2 { } async deleteTransitGatewayConnect( - {abortSignal, ...params}: RequestConfig & s.DeleteTransitGatewayConnectRequest, + params: s.DeleteTransitGatewayConnectRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTransitGatewayConnect", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2752,14 +2748,14 @@ export default class EC2 { } async deleteTransitGatewayConnectPeer( - {abortSignal, ...params}: RequestConfig & s.DeleteTransitGatewayConnectPeerRequest, + params: s.DeleteTransitGatewayConnectPeerRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayConnectPeerId", (params["TransitGatewayConnectPeerId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTransitGatewayConnectPeer", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2769,14 +2765,14 @@ export default class EC2 { } async deleteTransitGatewayMulticastDomain( - {abortSignal, ...params}: RequestConfig & s.DeleteTransitGatewayMulticastDomainRequest, + params: s.DeleteTransitGatewayMulticastDomainRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayMulticastDomainId", (params["TransitGatewayMulticastDomainId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTransitGatewayMulticastDomain", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2786,14 +2782,14 @@ export default class EC2 { } async deleteTransitGatewayPeeringAttachment( - {abortSignal, ...params}: RequestConfig & s.DeleteTransitGatewayPeeringAttachmentRequest, + params: s.DeleteTransitGatewayPeeringAttachmentRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTransitGatewayPeeringAttachment", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2803,7 +2799,7 @@ export default class EC2 { } async deleteTransitGatewayPrefixListReference( - {abortSignal, ...params}: RequestConfig & s.DeleteTransitGatewayPrefixListReferenceRequest, + params: s.DeleteTransitGatewayPrefixListReferenceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2811,7 +2807,7 @@ export default class EC2 { body.append(prefix+"PrefixListId", (params["PrefixListId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTransitGatewayPrefixListReference", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2821,7 +2817,7 @@ export default class EC2 { } async deleteTransitGatewayRoute( - {abortSignal, ...params}: RequestConfig & s.DeleteTransitGatewayRouteRequest, + params: s.DeleteTransitGatewayRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2829,7 +2825,7 @@ export default class EC2 { body.append(prefix+"DestinationCidrBlock", (params["DestinationCidrBlock"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTransitGatewayRoute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2839,14 +2835,14 @@ export default class EC2 { } async deleteTransitGatewayRouteTable( - {abortSignal, ...params}: RequestConfig & s.DeleteTransitGatewayRouteTableRequest, + params: s.DeleteTransitGatewayRouteTableRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayRouteTableId", (params["TransitGatewayRouteTableId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTransitGatewayRouteTable", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2856,14 +2852,14 @@ export default class EC2 { } async deleteTransitGatewayVpcAttachment( - {abortSignal, ...params}: RequestConfig & s.DeleteTransitGatewayVpcAttachmentRequest, + params: s.DeleteTransitGatewayVpcAttachmentRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTransitGatewayVpcAttachment", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2873,42 +2869,42 @@ export default class EC2 { } async deleteVolume( - {abortSignal, ...params}: RequestConfig & s.DeleteVolumeRequest, + params: s.DeleteVolumeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"VolumeId", (params["VolumeId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVolume", }); await resp.arrayBuffer(); // consume body without use } async deleteVpc( - {abortSignal, ...params}: RequestConfig & s.DeleteVpcRequest, + params: s.DeleteVpcRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVpc", }); await resp.arrayBuffer(); // consume body without use } async deleteVpcEndpointConnectionNotifications( - {abortSignal, ...params}: RequestConfig & s.DeleteVpcEndpointConnectionNotificationsRequest, + params: s.DeleteVpcEndpointConnectionNotificationsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["ConnectionNotificationIds"]) qsP.appendList(body, prefix+"ConnectionNotificationId", params["ConnectionNotificationIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVpcEndpointConnectionNotifications", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2918,14 +2914,14 @@ export default class EC2 { } async deleteVpcEndpointServiceConfigurations( - {abortSignal, ...params}: RequestConfig & s.DeleteVpcEndpointServiceConfigurationsRequest, + params: s.DeleteVpcEndpointServiceConfigurationsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["ServiceIds"]) qsP.appendList(body, prefix+"ServiceId", params["ServiceIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVpcEndpointServiceConfigurations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2935,14 +2931,14 @@ export default class EC2 { } async deleteVpcEndpoints( - {abortSignal, ...params}: RequestConfig & s.DeleteVpcEndpointsRequest, + params: s.DeleteVpcEndpointsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["VpcEndpointIds"]) qsP.appendList(body, prefix+"VpcEndpointId", params["VpcEndpointIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVpcEndpoints", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2952,14 +2948,14 @@ export default class EC2 { } async deleteVpcPeeringConnection( - {abortSignal, ...params}: RequestConfig & s.DeleteVpcPeeringConnectionRequest, + params: s.DeleteVpcPeeringConnectionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"VpcPeeringConnectionId", (params["VpcPeeringConnectionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVpcPeeringConnection", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -2969,56 +2965,56 @@ export default class EC2 { } async deleteVpnConnection( - {abortSignal, ...params}: RequestConfig & s.DeleteVpnConnectionRequest, + params: s.DeleteVpnConnectionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"VpnConnectionId", (params["VpnConnectionId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVpnConnection", }); await resp.arrayBuffer(); // consume body without use } async deleteVpnConnectionRoute( - {abortSignal, ...params}: RequestConfig & s.DeleteVpnConnectionRouteRequest, + params: s.DeleteVpnConnectionRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DestinationCidrBlock", (params["DestinationCidrBlock"] ?? '').toString()); body.append(prefix+"VpnConnectionId", (params["VpnConnectionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVpnConnectionRoute", }); await resp.arrayBuffer(); // consume body without use } async deleteVpnGateway( - {abortSignal, ...params}: RequestConfig & s.DeleteVpnGatewayRequest, + params: s.DeleteVpnGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"VpnGatewayId", (params["VpnGatewayId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVpnGateway", }); await resp.arrayBuffer(); // consume body without use } async deprovisionByoipCidr( - {abortSignal, ...params}: RequestConfig & s.DeprovisionByoipCidrRequest, + params: s.DeprovisionByoipCidrRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Cidr", (params["Cidr"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeprovisionByoipCidr", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3028,28 +3024,28 @@ export default class EC2 { } async deregisterImage( - {abortSignal, ...params}: RequestConfig & s.DeregisterImageRequest, + params: s.DeregisterImageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ImageId", (params["ImageId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterImage", }); await resp.arrayBuffer(); // consume body without use } async deregisterInstanceEventNotificationAttributes( - {abortSignal, ...params}: RequestConfig & s.DeregisterInstanceEventNotificationAttributesRequest = {}, + params: s.DeregisterInstanceEventNotificationAttributesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["InstanceTagAttribute"] != null) DeregisterInstanceTagAttributeRequest_Serialize(body, prefix+"InstanceTagAttribute", params["InstanceTagAttribute"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterInstanceEventNotificationAttributes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3059,7 +3055,7 @@ export default class EC2 { } async deregisterTransitGatewayMulticastGroupMembers( - {abortSignal, ...params}: RequestConfig & s.DeregisterTransitGatewayMulticastGroupMembersRequest = {}, + params: s.DeregisterTransitGatewayMulticastGroupMembersRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3068,7 +3064,7 @@ export default class EC2 { if (params["NetworkInterfaceIds"]) qsP.appendList(body, prefix+"item", params["NetworkInterfaceIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterTransitGatewayMulticastGroupMembers", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3078,7 +3074,7 @@ export default class EC2 { } async deregisterTransitGatewayMulticastGroupSources( - {abortSignal, ...params}: RequestConfig & s.DeregisterTransitGatewayMulticastGroupSourcesRequest = {}, + params: s.DeregisterTransitGatewayMulticastGroupSourcesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3087,7 +3083,7 @@ export default class EC2 { if (params["NetworkInterfaceIds"]) qsP.appendList(body, prefix+"item", params["NetworkInterfaceIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterTransitGatewayMulticastGroupSources", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3097,14 +3093,14 @@ export default class EC2 { } async describeAccountAttributes( - {abortSignal, ...params}: RequestConfig & s.DescribeAccountAttributesRequest = {}, + params: s.DescribeAccountAttributesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["AttributeNames"]) qsP.appendList(body, prefix+"attributeName", params["AttributeNames"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAccountAttributes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3114,7 +3110,7 @@ export default class EC2 { } async describeAddresses( - {abortSignal, ...params}: RequestConfig & s.DescribeAddressesRequest = {}, + params: s.DescribeAddressesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3123,7 +3119,7 @@ export default class EC2 { if (params["AllocationIds"]) qsP.appendList(body, prefix+"AllocationId", params["AllocationIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAddresses", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3133,7 +3129,7 @@ export default class EC2 { } async describeAddressesAttribute( - {abortSignal, ...params}: RequestConfig & s.DescribeAddressesAttributeRequest = {}, + params: s.DescribeAddressesAttributeRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3143,7 +3139,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAddressesAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3154,13 +3150,13 @@ export default class EC2 { } async describeAggregateIdFormat( - {abortSignal, ...params}: RequestConfig & s.DescribeAggregateIdFormatRequest = {}, + params: s.DescribeAggregateIdFormatRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAggregateIdFormat", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3171,7 +3167,7 @@ export default class EC2 { } async describeAvailabilityZones( - {abortSignal, ...params}: RequestConfig & s.DescribeAvailabilityZonesRequest = {}, + params: s.DescribeAvailabilityZonesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3181,7 +3177,7 @@ export default class EC2 { if ("AllAvailabilityZones" in params) body.append(prefix+"AllAvailabilityZones", (params["AllAvailabilityZones"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAvailabilityZones", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3191,7 +3187,7 @@ export default class EC2 { } async describeBundleTasks( - {abortSignal, ...params}: RequestConfig & s.DescribeBundleTasksRequest = {}, + params: s.DescribeBundleTasksRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3199,7 +3195,7 @@ export default class EC2 { if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeBundleTasks", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3209,7 +3205,7 @@ export default class EC2 { } async describeByoipCidrs( - {abortSignal, ...params}: RequestConfig & s.DescribeByoipCidrsRequest, + params: s.DescribeByoipCidrsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3217,7 +3213,7 @@ export default class EC2 { body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeByoipCidrs", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3228,7 +3224,7 @@ export default class EC2 { } async describeCapacityReservations( - {abortSignal, ...params}: RequestConfig & s.DescribeCapacityReservationsRequest = {}, + params: s.DescribeCapacityReservationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3238,7 +3234,7 @@ export default class EC2 { if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeCapacityReservations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3249,7 +3245,7 @@ export default class EC2 { } async describeCarrierGateways( - {abortSignal, ...params}: RequestConfig & s.DescribeCarrierGatewaysRequest = {}, + params: s.DescribeCarrierGatewaysRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3259,7 +3255,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeCarrierGateways", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3270,7 +3266,7 @@ export default class EC2 { } async describeClassicLinkInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeClassicLinkInstancesRequest = {}, + params: s.DescribeClassicLinkInstancesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3280,7 +3276,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeClassicLinkInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3291,7 +3287,7 @@ export default class EC2 { } async describeClientVpnAuthorizationRules( - {abortSignal, ...params}: RequestConfig & s.DescribeClientVpnAuthorizationRulesRequest, + params: s.DescribeClientVpnAuthorizationRulesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3301,7 +3297,7 @@ export default class EC2 { if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeClientVpnAuthorizationRules", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3312,7 +3308,7 @@ export default class EC2 { } async describeClientVpnConnections( - {abortSignal, ...params}: RequestConfig & s.DescribeClientVpnConnectionsRequest, + params: s.DescribeClientVpnConnectionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3322,7 +3318,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeClientVpnConnections", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3333,7 +3329,7 @@ export default class EC2 { } async describeClientVpnEndpoints( - {abortSignal, ...params}: RequestConfig & s.DescribeClientVpnEndpointsRequest = {}, + params: s.DescribeClientVpnEndpointsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3343,7 +3339,7 @@ export default class EC2 { if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeClientVpnEndpoints", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3354,7 +3350,7 @@ export default class EC2 { } async describeClientVpnRoutes( - {abortSignal, ...params}: RequestConfig & s.DescribeClientVpnRoutesRequest, + params: s.DescribeClientVpnRoutesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3364,7 +3360,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeClientVpnRoutes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3375,7 +3371,7 @@ export default class EC2 { } async describeClientVpnTargetNetworks( - {abortSignal, ...params}: RequestConfig & s.DescribeClientVpnTargetNetworksRequest, + params: s.DescribeClientVpnTargetNetworksRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3386,7 +3382,7 @@ export default class EC2 { if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeClientVpnTargetNetworks", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3397,7 +3393,7 @@ export default class EC2 { } async describeCoipPools( - {abortSignal, ...params}: RequestConfig & s.DescribeCoipPoolsRequest = {}, + params: s.DescribeCoipPoolsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3407,7 +3403,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeCoipPools", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3418,14 +3414,14 @@ export default class EC2 { } async describeConversionTasks( - {abortSignal, ...params}: RequestConfig & s.DescribeConversionTasksRequest = {}, + params: s.DescribeConversionTasksRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["ConversionTaskIds"]) qsP.appendList(body, prefix+"conversionTaskId", params["ConversionTaskIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeConversionTasks", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3435,7 +3431,7 @@ export default class EC2 { } async describeCustomerGateways( - {abortSignal, ...params}: RequestConfig & s.DescribeCustomerGatewaysRequest = {}, + params: s.DescribeCustomerGatewaysRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3443,7 +3439,7 @@ export default class EC2 { if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeCustomerGateways", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3453,7 +3449,7 @@ export default class EC2 { } async describeDhcpOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeDhcpOptionsRequest = {}, + params: s.DescribeDhcpOptionsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3463,7 +3459,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDhcpOptions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3474,7 +3470,7 @@ export default class EC2 { } async describeEgressOnlyInternetGateways( - {abortSignal, ...params}: RequestConfig & s.DescribeEgressOnlyInternetGatewaysRequest = {}, + params: s.DescribeEgressOnlyInternetGatewaysRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3484,7 +3480,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeEgressOnlyInternetGateways", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3495,7 +3491,7 @@ export default class EC2 { } async describeElasticGpus( - {abortSignal, ...params}: RequestConfig & s.DescribeElasticGpusRequest = {}, + params: s.DescribeElasticGpusRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3505,7 +3501,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeElasticGpus", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3517,7 +3513,7 @@ export default class EC2 { } async describeExportImageTasks( - {abortSignal, ...params}: RequestConfig & s.DescribeExportImageTasksRequest = {}, + params: s.DescribeExportImageTasksRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3527,7 +3523,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeExportImageTasks", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3538,14 +3534,14 @@ export default class EC2 { } async describeExportTasks( - {abortSignal, ...params}: RequestConfig & s.DescribeExportTasksRequest = {}, + params: s.DescribeExportTasksRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["ExportTaskIds"]) qsP.appendList(body, prefix+"exportTaskId", params["ExportTaskIds"], {"entryPrefix":"."}) if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeExportTasks", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3555,7 +3551,7 @@ export default class EC2 { } async describeFastSnapshotRestores( - {abortSignal, ...params}: RequestConfig & s.DescribeFastSnapshotRestoresRequest = {}, + params: s.DescribeFastSnapshotRestoresRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3564,7 +3560,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeFastSnapshotRestores", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3575,7 +3571,7 @@ export default class EC2 { } async describeFleetHistory( - {abortSignal, ...params}: RequestConfig & s.DescribeFleetHistoryRequest, + params: s.DescribeFleetHistoryRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3586,7 +3582,7 @@ export default class EC2 { body.append(prefix+"FleetId", (params["FleetId"] ?? '').toString()); body.append(prefix+"StartTime", qsP.encodeDate_iso8601(params["StartTime"])); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeFleetHistory", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3600,7 +3596,7 @@ export default class EC2 { } async describeFleetInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeFleetInstancesRequest, + params: s.DescribeFleetInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3610,7 +3606,7 @@ export default class EC2 { body.append(prefix+"FleetId", (params["FleetId"] ?? '').toString()); if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeFleetInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3622,7 +3618,7 @@ export default class EC2 { } async describeFleets( - {abortSignal, ...params}: RequestConfig & s.DescribeFleetsRequest = {}, + params: s.DescribeFleetsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3632,7 +3628,7 @@ export default class EC2 { if (params["FleetIds"]) qsP.appendList(body, prefix+"FleetId", params["FleetIds"], {"entryPrefix":"."}) if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeFleets", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3643,7 +3639,7 @@ export default class EC2 { } async describeFlowLogs( - {abortSignal, ...params}: RequestConfig & s.DescribeFlowLogsRequest = {}, + params: s.DescribeFlowLogsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3653,7 +3649,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeFlowLogs", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3664,7 +3660,7 @@ export default class EC2 { } async describeFpgaImageAttribute( - {abortSignal, ...params}: RequestConfig & s.DescribeFpgaImageAttributeRequest, + params: s.DescribeFpgaImageAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3672,7 +3668,7 @@ export default class EC2 { body.append(prefix+"FpgaImageId", (params["FpgaImageId"] ?? '').toString()); body.append(prefix+"Attribute", (params["Attribute"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeFpgaImageAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3682,7 +3678,7 @@ export default class EC2 { } async describeFpgaImages( - {abortSignal, ...params}: RequestConfig & s.DescribeFpgaImagesRequest = {}, + params: s.DescribeFpgaImagesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3693,7 +3689,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeFpgaImages", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3704,7 +3700,7 @@ export default class EC2 { } async describeHostReservationOfferings( - {abortSignal, ...params}: RequestConfig & s.DescribeHostReservationOfferingsRequest = {}, + params: s.DescribeHostReservationOfferingsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3715,7 +3711,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("OfferingId" in params) body.append(prefix+"OfferingId", (params["OfferingId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeHostReservationOfferings", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3726,7 +3722,7 @@ export default class EC2 { } async describeHostReservations( - {abortSignal, ...params}: RequestConfig & s.DescribeHostReservationsRequest = {}, + params: s.DescribeHostReservationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3735,7 +3731,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeHostReservations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3746,7 +3742,7 @@ export default class EC2 { } async describeHosts( - {abortSignal, ...params}: RequestConfig & s.DescribeHostsRequest = {}, + params: s.DescribeHostsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3755,7 +3751,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeHosts", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3766,7 +3762,7 @@ export default class EC2 { } async describeIamInstanceProfileAssociations( - {abortSignal, ...params}: RequestConfig & s.DescribeIamInstanceProfileAssociationsRequest = {}, + params: s.DescribeIamInstanceProfileAssociationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3775,7 +3771,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeIamInstanceProfileAssociations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3786,13 +3782,13 @@ export default class EC2 { } async describeIdFormat( - {abortSignal, ...params}: RequestConfig & s.DescribeIdFormatRequest = {}, + params: s.DescribeIdFormatRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("Resource" in params) body.append(prefix+"Resource", (params["Resource"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeIdFormat", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3802,14 +3798,14 @@ export default class EC2 { } async describeIdentityIdFormat( - {abortSignal, ...params}: RequestConfig & s.DescribeIdentityIdFormatRequest, + params: s.DescribeIdentityIdFormatRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PrincipalArn", (params["PrincipalArn"] ?? '').toString()); if ("Resource" in params) body.append(prefix+"Resource", (params["Resource"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeIdentityIdFormat", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3819,7 +3815,7 @@ export default class EC2 { } async describeImageAttribute( - {abortSignal, ...params}: RequestConfig & s.DescribeImageAttributeRequest, + params: s.DescribeImageAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3827,7 +3823,7 @@ export default class EC2 { body.append(prefix+"ImageId", (params["ImageId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeImageAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3845,7 +3841,7 @@ export default class EC2 { } async describeImages( - {abortSignal, ...params}: RequestConfig & s.DescribeImagesRequest = {}, + params: s.DescribeImagesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3855,7 +3851,7 @@ export default class EC2 { if (params["Owners"]) qsP.appendList(body, prefix+"Owner", params["Owners"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeImages", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3865,7 +3861,7 @@ export default class EC2 { } async describeImportImageTasks( - {abortSignal, ...params}: RequestConfig & s.DescribeImportImageTasksRequest = {}, + params: s.DescribeImportImageTasksRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3875,7 +3871,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeImportImageTasks", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3886,7 +3882,7 @@ export default class EC2 { } async describeImportSnapshotTasks( - {abortSignal, ...params}: RequestConfig & s.DescribeImportSnapshotTasksRequest = {}, + params: s.DescribeImportSnapshotTasksRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3896,7 +3892,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeImportSnapshotTasks", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3907,7 +3903,7 @@ export default class EC2 { } async describeInstanceAttribute( - {abortSignal, ...params}: RequestConfig & s.DescribeInstanceAttributeRequest, + params: s.DescribeInstanceAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3915,7 +3911,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"InstanceId", (params["InstanceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstanceAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3940,7 +3936,7 @@ export default class EC2 { } async describeInstanceCreditSpecifications( - {abortSignal, ...params}: RequestConfig & s.DescribeInstanceCreditSpecificationsRequest = {}, + params: s.DescribeInstanceCreditSpecificationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3950,7 +3946,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstanceCreditSpecifications", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3961,13 +3957,13 @@ export default class EC2 { } async describeInstanceEventNotificationAttributes( - {abortSignal, ...params}: RequestConfig & s.DescribeInstanceEventNotificationAttributesRequest = {}, + params: s.DescribeInstanceEventNotificationAttributesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstanceEventNotificationAttributes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3977,7 +3973,7 @@ export default class EC2 { } async describeInstanceStatus( - {abortSignal, ...params}: RequestConfig & s.DescribeInstanceStatusRequest = {}, + params: s.DescribeInstanceStatusRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -3988,7 +3984,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("IncludeAllInstances" in params) body.append(prefix+"IncludeAllInstances", (params["IncludeAllInstances"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstanceStatus", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -3999,7 +3995,7 @@ export default class EC2 { } async describeInstanceTypeOfferings( - {abortSignal, ...params}: RequestConfig & s.DescribeInstanceTypeOfferingsRequest = {}, + params: s.DescribeInstanceTypeOfferingsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4009,7 +4005,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstanceTypeOfferings", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4020,7 +4016,7 @@ export default class EC2 { } async describeInstanceTypes( - {abortSignal, ...params}: RequestConfig & s.DescribeInstanceTypesRequest = {}, + params: s.DescribeInstanceTypesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4030,7 +4026,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstanceTypes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4041,7 +4037,7 @@ export default class EC2 { } async describeInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeInstancesRequest = {}, + params: s.DescribeInstancesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4051,7 +4047,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4062,7 +4058,7 @@ export default class EC2 { } async describeInternetGateways( - {abortSignal, ...params}: RequestConfig & s.DescribeInternetGatewaysRequest = {}, + params: s.DescribeInternetGatewaysRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4072,7 +4068,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInternetGateways", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4083,7 +4079,7 @@ export default class EC2 { } async describeIpv6Pools( - {abortSignal, ...params}: RequestConfig & s.DescribeIpv6PoolsRequest = {}, + params: s.DescribeIpv6PoolsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4093,7 +4089,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeIpv6Pools", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4104,7 +4100,7 @@ export default class EC2 { } async describeKeyPairs( - {abortSignal, ...params}: RequestConfig & s.DescribeKeyPairsRequest = {}, + params: s.DescribeKeyPairsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4113,7 +4109,7 @@ export default class EC2 { if (params["KeyPairIds"]) qsP.appendList(body, prefix+"KeyPairId", params["KeyPairIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeKeyPairs", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4123,7 +4119,7 @@ export default class EC2 { } async describeLaunchTemplateVersions( - {abortSignal, ...params}: RequestConfig & s.DescribeLaunchTemplateVersionsRequest = {}, + params: s.DescribeLaunchTemplateVersionsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4137,7 +4133,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLaunchTemplateVersions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4148,7 +4144,7 @@ export default class EC2 { } async describeLaunchTemplates( - {abortSignal, ...params}: RequestConfig & s.DescribeLaunchTemplatesRequest = {}, + params: s.DescribeLaunchTemplatesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4159,7 +4155,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLaunchTemplates", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4170,7 +4166,7 @@ export default class EC2 { } async describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations( - {abortSignal, ...params}: RequestConfig & s.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest = {}, + params: s.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4180,7 +4176,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4191,7 +4187,7 @@ export default class EC2 { } async describeLocalGatewayRouteTableVpcAssociations( - {abortSignal, ...params}: RequestConfig & s.DescribeLocalGatewayRouteTableVpcAssociationsRequest = {}, + params: s.DescribeLocalGatewayRouteTableVpcAssociationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4201,7 +4197,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLocalGatewayRouteTableVpcAssociations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4212,7 +4208,7 @@ export default class EC2 { } async describeLocalGatewayRouteTables( - {abortSignal, ...params}: RequestConfig & s.DescribeLocalGatewayRouteTablesRequest = {}, + params: s.DescribeLocalGatewayRouteTablesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4222,7 +4218,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLocalGatewayRouteTables", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4233,7 +4229,7 @@ export default class EC2 { } async describeLocalGatewayVirtualInterfaceGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeLocalGatewayVirtualInterfaceGroupsRequest = {}, + params: s.DescribeLocalGatewayVirtualInterfaceGroupsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4243,7 +4239,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLocalGatewayVirtualInterfaceGroups", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4254,7 +4250,7 @@ export default class EC2 { } async describeLocalGatewayVirtualInterfaces( - {abortSignal, ...params}: RequestConfig & s.DescribeLocalGatewayVirtualInterfacesRequest = {}, + params: s.DescribeLocalGatewayVirtualInterfacesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4264,7 +4260,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLocalGatewayVirtualInterfaces", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4275,7 +4271,7 @@ export default class EC2 { } async describeLocalGateways( - {abortSignal, ...params}: RequestConfig & s.DescribeLocalGatewaysRequest = {}, + params: s.DescribeLocalGatewaysRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4285,7 +4281,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLocalGateways", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4296,7 +4292,7 @@ export default class EC2 { } async describeManagedPrefixLists( - {abortSignal, ...params}: RequestConfig & s.DescribeManagedPrefixListsRequest = {}, + params: s.DescribeManagedPrefixListsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4306,7 +4302,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if (params["PrefixListIds"]) qsP.appendList(body, prefix+"PrefixListId", params["PrefixListIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeManagedPrefixLists", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4317,7 +4313,7 @@ export default class EC2 { } async describeMovingAddresses( - {abortSignal, ...params}: RequestConfig & s.DescribeMovingAddressesRequest = {}, + params: s.DescribeMovingAddressesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4327,7 +4323,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if (params["PublicIps"]) qsP.appendList(body, prefix+"publicIp", params["PublicIps"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeMovingAddresses", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4338,7 +4334,7 @@ export default class EC2 { } async describeNatGateways( - {abortSignal, ...params}: RequestConfig & s.DescribeNatGatewaysRequest = {}, + params: s.DescribeNatGatewaysRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4348,7 +4344,7 @@ export default class EC2 { if (params["NatGatewayIds"]) qsP.appendList(body, prefix+"NatGatewayId", params["NatGatewayIds"], {"entryPrefix":"."}) if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeNatGateways", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4359,7 +4355,7 @@ export default class EC2 { } async describeNetworkAcls( - {abortSignal, ...params}: RequestConfig & s.DescribeNetworkAclsRequest = {}, + params: s.DescribeNetworkAclsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4369,7 +4365,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeNetworkAcls", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4380,7 +4376,7 @@ export default class EC2 { } async describeNetworkInsightsAnalyses( - {abortSignal, ...params}: RequestConfig & s.DescribeNetworkInsightsAnalysesRequest = {}, + params: s.DescribeNetworkInsightsAnalysesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4393,7 +4389,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeNetworkInsightsAnalyses", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4404,7 +4400,7 @@ export default class EC2 { } async describeNetworkInsightsPaths( - {abortSignal, ...params}: RequestConfig & s.DescribeNetworkInsightsPathsRequest = {}, + params: s.DescribeNetworkInsightsPathsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4414,7 +4410,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeNetworkInsightsPaths", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4425,7 +4421,7 @@ export default class EC2 { } async describeNetworkInterfaceAttribute( - {abortSignal, ...params}: RequestConfig & s.DescribeNetworkInterfaceAttributeRequest, + params: s.DescribeNetworkInterfaceAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4433,7 +4429,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"NetworkInterfaceId", (params["NetworkInterfaceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeNetworkInterfaceAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4447,7 +4443,7 @@ export default class EC2 { } async describeNetworkInterfacePermissions( - {abortSignal, ...params}: RequestConfig & s.DescribeNetworkInterfacePermissionsRequest = {}, + params: s.DescribeNetworkInterfacePermissionsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4456,7 +4452,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeNetworkInterfacePermissions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4467,7 +4463,7 @@ export default class EC2 { } async describeNetworkInterfaces( - {abortSignal, ...params}: RequestConfig & s.DescribeNetworkInterfacesRequest = {}, + params: s.DescribeNetworkInterfacesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4477,7 +4473,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeNetworkInterfaces", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4488,7 +4484,7 @@ export default class EC2 { } async describePlacementGroups( - {abortSignal, ...params}: RequestConfig & s.DescribePlacementGroupsRequest = {}, + params: s.DescribePlacementGroupsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4497,7 +4493,7 @@ export default class EC2 { if (params["GroupNames"]) qsP.appendList(body, prefix+"groupName", params["GroupNames"], {"entryPrefix":"."}) if (params["GroupIds"]) qsP.appendList(body, prefix+"GroupId", params["GroupIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribePlacementGroups", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4507,7 +4503,7 @@ export default class EC2 { } async describePrefixLists( - {abortSignal, ...params}: RequestConfig & s.DescribePrefixListsRequest = {}, + params: s.DescribePrefixListsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4517,7 +4513,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if (params["PrefixListIds"]) qsP.appendList(body, prefix+"PrefixListId", params["PrefixListIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribePrefixLists", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4528,7 +4524,7 @@ export default class EC2 { } async describePrincipalIdFormat( - {abortSignal, ...params}: RequestConfig & s.DescribePrincipalIdFormatRequest = {}, + params: s.DescribePrincipalIdFormatRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4537,7 +4533,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribePrincipalIdFormat", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4548,7 +4544,7 @@ export default class EC2 { } async describePublicIpv4Pools( - {abortSignal, ...params}: RequestConfig & s.DescribePublicIpv4PoolsRequest = {}, + params: s.DescribePublicIpv4PoolsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4557,7 +4553,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if (params["Filters"]) qsP.appendList(body, prefix+"Filter", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribePublicIpv4Pools", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4568,7 +4564,7 @@ export default class EC2 { } async describeRegions( - {abortSignal, ...params}: RequestConfig & s.DescribeRegionsRequest = {}, + params: s.DescribeRegionsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4577,7 +4573,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("AllRegions" in params) body.append(prefix+"AllRegions", (params["AllRegions"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeRegions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4587,7 +4583,7 @@ export default class EC2 { } async describeReservedInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedInstancesRequest = {}, + params: s.DescribeReservedInstancesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4597,7 +4593,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("OfferingType" in params) body.append(prefix+"OfferingType", (params["OfferingType"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeReservedInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4607,7 +4603,7 @@ export default class EC2 { } async describeReservedInstancesListings( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedInstancesListingsRequest = {}, + params: s.DescribeReservedInstancesListingsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4615,7 +4611,7 @@ export default class EC2 { if ("ReservedInstancesId" in params) body.append(prefix+"ReservedInstancesId", (params["ReservedInstancesId"] ?? '').toString()); if ("ReservedInstancesListingId" in params) body.append(prefix+"ReservedInstancesListingId", (params["ReservedInstancesListingId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeReservedInstancesListings", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4625,7 +4621,7 @@ export default class EC2 { } async describeReservedInstancesModifications( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedInstancesModificationsRequest = {}, + params: s.DescribeReservedInstancesModificationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4633,7 +4629,7 @@ export default class EC2 { if (params["ReservedInstancesModificationIds"]) qsP.appendList(body, prefix+"ReservedInstancesModificationId", params["ReservedInstancesModificationIds"], {"entryPrefix":"."}) if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeReservedInstancesModifications", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4644,7 +4640,7 @@ export default class EC2 { } async describeReservedInstancesOfferings( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedInstancesOfferingsRequest = {}, + params: s.DescribeReservedInstancesOfferingsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4664,7 +4660,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("OfferingType" in params) body.append(prefix+"OfferingType", (params["OfferingType"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeReservedInstancesOfferings", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4675,7 +4671,7 @@ export default class EC2 { } async describeRouteTables( - {abortSignal, ...params}: RequestConfig & s.DescribeRouteTablesRequest = {}, + params: s.DescribeRouteTablesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4685,7 +4681,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeRouteTables", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4696,7 +4692,7 @@ export default class EC2 { } async describeScheduledInstanceAvailability( - {abortSignal, ...params}: RequestConfig & s.DescribeScheduledInstanceAvailabilityRequest, + params: s.DescribeScheduledInstanceAvailabilityRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4709,7 +4705,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); ScheduledInstanceRecurrenceRequest_Serialize(body, prefix+"Recurrence", params["Recurrence"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeScheduledInstanceAvailability", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4720,7 +4716,7 @@ export default class EC2 { } async describeScheduledInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeScheduledInstancesRequest = {}, + params: s.DescribeScheduledInstancesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4731,7 +4727,7 @@ export default class EC2 { if (params["ScheduledInstanceIds"]) qsP.appendList(body, prefix+"ScheduledInstanceId", params["ScheduledInstanceIds"], {"entryPrefix":"."}) if (params["SlotStartTimeRange"] != null) SlotStartTimeRangeRequest_Serialize(body, prefix+"SlotStartTimeRange", params["SlotStartTimeRange"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeScheduledInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4742,14 +4738,14 @@ export default class EC2 { } async describeSecurityGroupReferences( - {abortSignal, ...params}: RequestConfig & s.DescribeSecurityGroupReferencesRequest, + params: s.DescribeSecurityGroupReferencesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["GroupId"]) qsP.appendList(body, prefix+"item", params["GroupId"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSecurityGroupReferences", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4759,7 +4755,7 @@ export default class EC2 { } async describeSecurityGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeSecurityGroupsRequest = {}, + params: s.DescribeSecurityGroupsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4770,7 +4766,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSecurityGroups", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4781,7 +4777,7 @@ export default class EC2 { } async describeSnapshotAttribute( - {abortSignal, ...params}: RequestConfig & s.DescribeSnapshotAttributeRequest, + params: s.DescribeSnapshotAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4789,7 +4785,7 @@ export default class EC2 { body.append(prefix+"SnapshotId", (params["SnapshotId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSnapshotAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4801,7 +4797,7 @@ export default class EC2 { } async describeSnapshots( - {abortSignal, ...params}: RequestConfig & s.DescribeSnapshotsRequest = {}, + params: s.DescribeSnapshotsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4813,7 +4809,7 @@ export default class EC2 { if (params["SnapshotIds"]) qsP.appendList(body, prefix+"SnapshotId", params["SnapshotIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSnapshots", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4824,13 +4820,13 @@ export default class EC2 { } async describeSpotDatafeedSubscription( - {abortSignal, ...params}: RequestConfig & s.DescribeSpotDatafeedSubscriptionRequest = {}, + params: s.DescribeSpotDatafeedSubscriptionRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSpotDatafeedSubscription", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4840,7 +4836,7 @@ export default class EC2 { } async describeSpotFleetInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeSpotFleetInstancesRequest, + params: s.DescribeSpotFleetInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4849,7 +4845,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); body.append(prefix+"SpotFleetRequestId", (params["SpotFleetRequestId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSpotFleetInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4861,7 +4857,7 @@ export default class EC2 { } async describeSpotFleetRequestHistory( - {abortSignal, ...params}: RequestConfig & s.DescribeSpotFleetRequestHistoryRequest, + params: s.DescribeSpotFleetRequestHistoryRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4872,7 +4868,7 @@ export default class EC2 { body.append(prefix+"SpotFleetRequestId", (params["SpotFleetRequestId"] ?? '').toString()); body.append(prefix+"StartTime", qsP.encodeDate_iso8601(params["StartTime"])); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSpotFleetRequestHistory", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4886,7 +4882,7 @@ export default class EC2 { } async describeSpotFleetRequests( - {abortSignal, ...params}: RequestConfig & s.DescribeSpotFleetRequestsRequest = {}, + params: s.DescribeSpotFleetRequestsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4895,7 +4891,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if (params["SpotFleetRequestIds"]) qsP.appendList(body, prefix+"spotFleetRequestId", params["SpotFleetRequestIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSpotFleetRequests", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4906,7 +4902,7 @@ export default class EC2 { } async describeSpotInstanceRequests( - {abortSignal, ...params}: RequestConfig & s.DescribeSpotInstanceRequestsRequest = {}, + params: s.DescribeSpotInstanceRequestsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4916,7 +4912,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSpotInstanceRequests", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4927,7 +4923,7 @@ export default class EC2 { } async describeSpotPriceHistory( - {abortSignal, ...params}: RequestConfig & s.DescribeSpotPriceHistoryRequest = {}, + params: s.DescribeSpotPriceHistoryRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4941,7 +4937,7 @@ export default class EC2 { if (params["ProductDescriptions"]) qsP.appendList(body, prefix+"ProductDescription", params["ProductDescriptions"], {"entryPrefix":"."}) if ("StartTime" in params) body.append(prefix+"StartTime", qsP.encodeDate_iso8601(params["StartTime"])); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSpotPriceHistory", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4952,7 +4948,7 @@ export default class EC2 { } async describeStaleSecurityGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeStaleSecurityGroupsRequest, + params: s.DescribeStaleSecurityGroupsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4961,7 +4957,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeStaleSecurityGroups", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4972,7 +4968,7 @@ export default class EC2 { } async describeSubnets( - {abortSignal, ...params}: RequestConfig & s.DescribeSubnetsRequest = {}, + params: s.DescribeSubnetsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -4982,7 +4978,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSubnets", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -4993,7 +4989,7 @@ export default class EC2 { } async describeTags( - {abortSignal, ...params}: RequestConfig & s.DescribeTagsRequest = {}, + params: s.DescribeTagsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5002,7 +4998,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTags", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5013,7 +5009,7 @@ export default class EC2 { } async describeTrafficMirrorFilters( - {abortSignal, ...params}: RequestConfig & s.DescribeTrafficMirrorFiltersRequest = {}, + params: s.DescribeTrafficMirrorFiltersRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5023,7 +5019,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTrafficMirrorFilters", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5034,7 +5030,7 @@ export default class EC2 { } async describeTrafficMirrorSessions( - {abortSignal, ...params}: RequestConfig & s.DescribeTrafficMirrorSessionsRequest = {}, + params: s.DescribeTrafficMirrorSessionsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5044,7 +5040,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTrafficMirrorSessions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5055,7 +5051,7 @@ export default class EC2 { } async describeTrafficMirrorTargets( - {abortSignal, ...params}: RequestConfig & s.DescribeTrafficMirrorTargetsRequest = {}, + params: s.DescribeTrafficMirrorTargetsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5065,7 +5061,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTrafficMirrorTargets", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5076,7 +5072,7 @@ export default class EC2 { } async describeTransitGatewayAttachments( - {abortSignal, ...params}: RequestConfig & s.DescribeTransitGatewayAttachmentsRequest = {}, + params: s.DescribeTransitGatewayAttachmentsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5086,7 +5082,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTransitGatewayAttachments", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5097,7 +5093,7 @@ export default class EC2 { } async describeTransitGatewayConnectPeers( - {abortSignal, ...params}: RequestConfig & s.DescribeTransitGatewayConnectPeersRequest = {}, + params: s.DescribeTransitGatewayConnectPeersRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5107,7 +5103,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTransitGatewayConnectPeers", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5118,7 +5114,7 @@ export default class EC2 { } async describeTransitGatewayConnects( - {abortSignal, ...params}: RequestConfig & s.DescribeTransitGatewayConnectsRequest = {}, + params: s.DescribeTransitGatewayConnectsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5128,7 +5124,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTransitGatewayConnects", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5139,7 +5135,7 @@ export default class EC2 { } async describeTransitGatewayMulticastDomains( - {abortSignal, ...params}: RequestConfig & s.DescribeTransitGatewayMulticastDomainsRequest = {}, + params: s.DescribeTransitGatewayMulticastDomainsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5149,7 +5145,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTransitGatewayMulticastDomains", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5160,7 +5156,7 @@ export default class EC2 { } async describeTransitGatewayPeeringAttachments( - {abortSignal, ...params}: RequestConfig & s.DescribeTransitGatewayPeeringAttachmentsRequest = {}, + params: s.DescribeTransitGatewayPeeringAttachmentsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5170,7 +5166,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTransitGatewayPeeringAttachments", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5181,7 +5177,7 @@ export default class EC2 { } async describeTransitGatewayRouteTables( - {abortSignal, ...params}: RequestConfig & s.DescribeTransitGatewayRouteTablesRequest = {}, + params: s.DescribeTransitGatewayRouteTablesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5191,7 +5187,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTransitGatewayRouteTables", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5202,7 +5198,7 @@ export default class EC2 { } async describeTransitGatewayVpcAttachments( - {abortSignal, ...params}: RequestConfig & s.DescribeTransitGatewayVpcAttachmentsRequest = {}, + params: s.DescribeTransitGatewayVpcAttachmentsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5212,7 +5208,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTransitGatewayVpcAttachments", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5223,7 +5219,7 @@ export default class EC2 { } async describeTransitGateways( - {abortSignal, ...params}: RequestConfig & s.DescribeTransitGatewaysRequest = {}, + params: s.DescribeTransitGatewaysRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5233,7 +5229,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTransitGateways", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5244,7 +5240,7 @@ export default class EC2 { } async describeVolumeAttribute( - {abortSignal, ...params}: RequestConfig & s.DescribeVolumeAttributeRequest, + params: s.DescribeVolumeAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5252,7 +5248,7 @@ export default class EC2 { body.append(prefix+"VolumeId", (params["VolumeId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVolumeAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5264,7 +5260,7 @@ export default class EC2 { } async describeVolumeStatus( - {abortSignal, ...params}: RequestConfig & s.DescribeVolumeStatusRequest = {}, + params: s.DescribeVolumeStatusRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5274,7 +5270,7 @@ export default class EC2 { if (params["VolumeIds"]) qsP.appendList(body, prefix+"VolumeId", params["VolumeIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVolumeStatus", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5285,7 +5281,7 @@ export default class EC2 { } async describeVolumes( - {abortSignal, ...params}: RequestConfig & s.DescribeVolumesRequest = {}, + params: s.DescribeVolumesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5295,7 +5291,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVolumes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5306,7 +5302,7 @@ export default class EC2 { } async describeVolumesModifications( - {abortSignal, ...params}: RequestConfig & s.DescribeVolumesModificationsRequest = {}, + params: s.DescribeVolumesModificationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5316,7 +5312,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVolumesModifications", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5327,7 +5323,7 @@ export default class EC2 { } async describeVpcAttribute( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcAttributeRequest, + params: s.DescribeVpcAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5335,7 +5331,7 @@ export default class EC2 { body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5347,7 +5343,7 @@ export default class EC2 { } async describeVpcClassicLink( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcClassicLinkRequest = {}, + params: s.DescribeVpcClassicLinkRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5355,7 +5351,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["VpcIds"]) qsP.appendList(body, prefix+"VpcId", params["VpcIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcClassicLink", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5365,7 +5361,7 @@ export default class EC2 { } async describeVpcClassicLinkDnsSupport( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcClassicLinkDnsSupportRequest = {}, + params: s.DescribeVpcClassicLinkDnsSupportRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5373,7 +5369,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if (params["VpcIds"]) qsP.appendList(body, prefix+"VpcId", params["VpcIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcClassicLinkDnsSupport", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5384,7 +5380,7 @@ export default class EC2 { } async describeVpcEndpointConnectionNotifications( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcEndpointConnectionNotificationsRequest = {}, + params: s.DescribeVpcEndpointConnectionNotificationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5394,7 +5390,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcEndpointConnectionNotifications", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5405,7 +5401,7 @@ export default class EC2 { } async describeVpcEndpointConnections( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcEndpointConnectionsRequest = {}, + params: s.DescribeVpcEndpointConnectionsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5414,7 +5410,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcEndpointConnections", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5425,7 +5421,7 @@ export default class EC2 { } async describeVpcEndpointServiceConfigurations( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcEndpointServiceConfigurationsRequest = {}, + params: s.DescribeVpcEndpointServiceConfigurationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5435,7 +5431,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcEndpointServiceConfigurations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5446,7 +5442,7 @@ export default class EC2 { } async describeVpcEndpointServicePermissions( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcEndpointServicePermissionsRequest, + params: s.DescribeVpcEndpointServicePermissionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5456,7 +5452,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcEndpointServicePermissions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5467,7 +5463,7 @@ export default class EC2 { } async describeVpcEndpointServices( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcEndpointServicesRequest = {}, + params: s.DescribeVpcEndpointServicesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5477,7 +5473,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcEndpointServices", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5489,7 +5485,7 @@ export default class EC2 { } async describeVpcEndpoints( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcEndpointsRequest = {}, + params: s.DescribeVpcEndpointsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5499,7 +5495,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcEndpoints", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5510,7 +5506,7 @@ export default class EC2 { } async describeVpcPeeringConnections( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcPeeringConnectionsRequest = {}, + params: s.DescribeVpcPeeringConnectionsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5520,7 +5516,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcPeeringConnections", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5531,7 +5527,7 @@ export default class EC2 { } async describeVpcs( - {abortSignal, ...params}: RequestConfig & s.DescribeVpcsRequest = {}, + params: s.DescribeVpcsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5541,7 +5537,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpcs", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5552,7 +5548,7 @@ export default class EC2 { } async describeVpnConnections( - {abortSignal, ...params}: RequestConfig & s.DescribeVpnConnectionsRequest = {}, + params: s.DescribeVpnConnectionsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5560,7 +5556,7 @@ export default class EC2 { if (params["VpnConnectionIds"]) qsP.appendList(body, prefix+"VpnConnectionId", params["VpnConnectionIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpnConnections", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5570,7 +5566,7 @@ export default class EC2 { } async describeVpnGateways( - {abortSignal, ...params}: RequestConfig & s.DescribeVpnGatewaysRequest = {}, + params: s.DescribeVpnGatewaysRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5578,7 +5574,7 @@ export default class EC2 { if (params["VpnGatewayIds"]) qsP.appendList(body, prefix+"VpnGatewayId", params["VpnGatewayIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeVpnGateways", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5588,7 +5584,7 @@ export default class EC2 { } async detachClassicLinkVpc( - {abortSignal, ...params}: RequestConfig & s.DetachClassicLinkVpcRequest, + params: s.DetachClassicLinkVpcRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5596,7 +5592,7 @@ export default class EC2 { body.append(prefix+"InstanceId", (params["InstanceId"] ?? '').toString()); body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DetachClassicLinkVpc", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5606,7 +5602,7 @@ export default class EC2 { } async detachInternetGateway( - {abortSignal, ...params}: RequestConfig & s.DetachInternetGatewayRequest, + params: s.DetachInternetGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5614,14 +5610,14 @@ export default class EC2 { body.append(prefix+"InternetGatewayId", (params["InternetGatewayId"] ?? '').toString()); body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DetachInternetGateway", }); await resp.arrayBuffer(); // consume body without use } async detachNetworkInterface( - {abortSignal, ...params}: RequestConfig & s.DetachNetworkInterfaceRequest, + params: s.DetachNetworkInterfaceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5629,14 +5625,14 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("Force" in params) body.append(prefix+"Force", (params["Force"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DetachNetworkInterface", }); await resp.arrayBuffer(); // consume body without use } async detachVolume( - {abortSignal, ...params}: RequestConfig & s.DetachVolumeRequest, + params: s.DetachVolumeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5646,7 +5642,7 @@ export default class EC2 { body.append(prefix+"VolumeId", (params["VolumeId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DetachVolume", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5654,7 +5650,7 @@ export default class EC2 { } async detachVpnGateway( - {abortSignal, ...params}: RequestConfig & s.DetachVpnGatewayRequest, + params: s.DetachVpnGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5662,20 +5658,20 @@ export default class EC2 { body.append(prefix+"VpnGatewayId", (params["VpnGatewayId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DetachVpnGateway", }); await resp.arrayBuffer(); // consume body without use } async disableEbsEncryptionByDefault( - {abortSignal, ...params}: RequestConfig & s.DisableEbsEncryptionByDefaultRequest = {}, + params: s.DisableEbsEncryptionByDefaultRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableEbsEncryptionByDefault", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5685,7 +5681,7 @@ export default class EC2 { } async disableFastSnapshotRestores( - {abortSignal, ...params}: RequestConfig & s.DisableFastSnapshotRestoresRequest, + params: s.DisableFastSnapshotRestoresRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5693,7 +5689,7 @@ export default class EC2 { if (params["SourceSnapshotIds"]) qsP.appendList(body, prefix+"SourceSnapshotId", params["SourceSnapshotIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableFastSnapshotRestores", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5704,7 +5700,7 @@ export default class EC2 { } async disableTransitGatewayRouteTablePropagation( - {abortSignal, ...params}: RequestConfig & s.DisableTransitGatewayRouteTablePropagationRequest, + params: s.DisableTransitGatewayRouteTablePropagationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5712,7 +5708,7 @@ export default class EC2 { body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableTransitGatewayRouteTablePropagation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5722,7 +5718,7 @@ export default class EC2 { } async disableVgwRoutePropagation( - {abortSignal, ...params}: RequestConfig & s.DisableVgwRoutePropagationRequest, + params: s.DisableVgwRoutePropagationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5730,21 +5726,21 @@ export default class EC2 { body.append(prefix+"RouteTableId", (params["RouteTableId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableVgwRoutePropagation", }); await resp.arrayBuffer(); // consume body without use } async disableVpcClassicLink( - {abortSignal, ...params}: RequestConfig & s.DisableVpcClassicLinkRequest, + params: s.DisableVpcClassicLinkRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableVpcClassicLink", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5754,13 +5750,13 @@ export default class EC2 { } async disableVpcClassicLinkDnsSupport( - {abortSignal, ...params}: RequestConfig & s.DisableVpcClassicLinkDnsSupportRequest = {}, + params: s.DisableVpcClassicLinkDnsSupportRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("VpcId" in params) body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableVpcClassicLinkDnsSupport", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5770,7 +5766,7 @@ export default class EC2 { } async disassociateAddress( - {abortSignal, ...params}: RequestConfig & s.DisassociateAddressRequest = {}, + params: s.DisassociateAddressRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5778,14 +5774,14 @@ export default class EC2 { if ("PublicIp" in params) body.append(prefix+"PublicIp", (params["PublicIp"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateAddress", }); await resp.arrayBuffer(); // consume body without use } async disassociateClientVpnTargetNetwork( - {abortSignal, ...params}: RequestConfig & s.DisassociateClientVpnTargetNetworkRequest, + params: s.DisassociateClientVpnTargetNetworkRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5793,7 +5789,7 @@ export default class EC2 { body.append(prefix+"AssociationId", (params["AssociationId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateClientVpnTargetNetwork", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5804,7 +5800,7 @@ export default class EC2 { } async disassociateEnclaveCertificateIamRole( - {abortSignal, ...params}: RequestConfig & s.DisassociateEnclaveCertificateIamRoleRequest = {}, + params: s.DisassociateEnclaveCertificateIamRoleRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5812,7 +5808,7 @@ export default class EC2 { if ("RoleArn" in params) body.append(prefix+"RoleArn", (params["RoleArn"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateEnclaveCertificateIamRole", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5822,13 +5818,13 @@ export default class EC2 { } async disassociateIamInstanceProfile( - {abortSignal, ...params}: RequestConfig & s.DisassociateIamInstanceProfileRequest, + params: s.DisassociateIamInstanceProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"AssociationId", (params["AssociationId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateIamInstanceProfile", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5838,27 +5834,27 @@ export default class EC2 { } async disassociateRouteTable( - {abortSignal, ...params}: RequestConfig & s.DisassociateRouteTableRequest, + params: s.DisassociateRouteTableRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"AssociationId", (params["AssociationId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateRouteTable", }); await resp.arrayBuffer(); // consume body without use } async disassociateSubnetCidrBlock( - {abortSignal, ...params}: RequestConfig & s.DisassociateSubnetCidrBlockRequest, + params: s.DisassociateSubnetCidrBlockRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"AssociationId", (params["AssociationId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateSubnetCidrBlock", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5869,7 +5865,7 @@ export default class EC2 { } async disassociateTransitGatewayMulticastDomain( - {abortSignal, ...params}: RequestConfig & s.DisassociateTransitGatewayMulticastDomainRequest = {}, + params: s.DisassociateTransitGatewayMulticastDomainRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5878,7 +5874,7 @@ export default class EC2 { if (params["SubnetIds"]) qsP.appendList(body, prefix+"item", params["SubnetIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateTransitGatewayMulticastDomain", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5888,7 +5884,7 @@ export default class EC2 { } async disassociateTransitGatewayRouteTable( - {abortSignal, ...params}: RequestConfig & s.DisassociateTransitGatewayRouteTableRequest, + params: s.DisassociateTransitGatewayRouteTableRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5896,7 +5892,7 @@ export default class EC2 { body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateTransitGatewayRouteTable", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5906,13 +5902,13 @@ export default class EC2 { } async disassociateVpcCidrBlock( - {abortSignal, ...params}: RequestConfig & s.DisassociateVpcCidrBlockRequest, + params: s.DisassociateVpcCidrBlockRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"AssociationId", (params["AssociationId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateVpcCidrBlock", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5924,13 +5920,13 @@ export default class EC2 { } async enableEbsEncryptionByDefault( - {abortSignal, ...params}: RequestConfig & s.EnableEbsEncryptionByDefaultRequest = {}, + params: s.EnableEbsEncryptionByDefaultRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableEbsEncryptionByDefault", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5940,7 +5936,7 @@ export default class EC2 { } async enableFastSnapshotRestores( - {abortSignal, ...params}: RequestConfig & s.EnableFastSnapshotRestoresRequest, + params: s.EnableFastSnapshotRestoresRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5948,7 +5944,7 @@ export default class EC2 { if (params["SourceSnapshotIds"]) qsP.appendList(body, prefix+"SourceSnapshotId", params["SourceSnapshotIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableFastSnapshotRestores", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5959,7 +5955,7 @@ export default class EC2 { } async enableTransitGatewayRouteTablePropagation( - {abortSignal, ...params}: RequestConfig & s.EnableTransitGatewayRouteTablePropagationRequest, + params: s.EnableTransitGatewayRouteTablePropagationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5967,7 +5963,7 @@ export default class EC2 { body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableTransitGatewayRouteTablePropagation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -5977,7 +5973,7 @@ export default class EC2 { } async enableVgwRoutePropagation( - {abortSignal, ...params}: RequestConfig & s.EnableVgwRoutePropagationRequest, + params: s.EnableVgwRoutePropagationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -5985,35 +5981,35 @@ export default class EC2 { body.append(prefix+"RouteTableId", (params["RouteTableId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableVgwRoutePropagation", }); await resp.arrayBuffer(); // consume body without use } async enableVolumeIO( - {abortSignal, ...params}: RequestConfig & s.EnableVolumeIORequest, + params: s.EnableVolumeIORequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"VolumeId", (params["VolumeId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableVolumeIO", }); await resp.arrayBuffer(); // consume body without use } async enableVpcClassicLink( - {abortSignal, ...params}: RequestConfig & s.EnableVpcClassicLinkRequest, + params: s.EnableVpcClassicLinkRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableVpcClassicLink", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6023,13 +6019,13 @@ export default class EC2 { } async enableVpcClassicLinkDnsSupport( - {abortSignal, ...params}: RequestConfig & s.EnableVpcClassicLinkDnsSupportRequest = {}, + params: s.EnableVpcClassicLinkDnsSupportRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("VpcId" in params) body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableVpcClassicLinkDnsSupport", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6039,14 +6035,14 @@ export default class EC2 { } async exportClientVpnClientCertificateRevocationList( - {abortSignal, ...params}: RequestConfig & s.ExportClientVpnClientCertificateRevocationListRequest, + params: s.ExportClientVpnClientCertificateRevocationListRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ClientVpnEndpointId", (params["ClientVpnEndpointId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ExportClientVpnClientCertificateRevocationList", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6057,14 +6053,14 @@ export default class EC2 { } async exportClientVpnClientConfiguration( - {abortSignal, ...params}: RequestConfig & s.ExportClientVpnClientConfigurationRequest, + params: s.ExportClientVpnClientConfigurationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ClientVpnEndpointId", (params["ClientVpnEndpointId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ExportClientVpnClientConfiguration", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6074,7 +6070,7 @@ export default class EC2 { } async exportImage( - {abortSignal, ...params}: RequestConfig & s.ExportImageRequest, + params: s.ExportImageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6087,7 +6083,7 @@ export default class EC2 { if ("RoleName" in params) body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ExportImage", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6106,7 +6102,7 @@ export default class EC2 { } async exportTransitGatewayRoutes( - {abortSignal, ...params}: RequestConfig & s.ExportTransitGatewayRoutesRequest, + params: s.ExportTransitGatewayRoutesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6115,7 +6111,7 @@ export default class EC2 { body.append(prefix+"S3Bucket", (params["S3Bucket"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ExportTransitGatewayRoutes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6125,14 +6121,14 @@ export default class EC2 { } async getAssociatedEnclaveCertificateIamRoles( - {abortSignal, ...params}: RequestConfig & s.GetAssociatedEnclaveCertificateIamRolesRequest = {}, + params: s.GetAssociatedEnclaveCertificateIamRolesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("CertificateArn" in params) body.append(prefix+"CertificateArn", (params["CertificateArn"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetAssociatedEnclaveCertificateIamRoles", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6142,7 +6138,7 @@ export default class EC2 { } async getAssociatedIpv6PoolCidrs( - {abortSignal, ...params}: RequestConfig & s.GetAssociatedIpv6PoolCidrsRequest, + params: s.GetAssociatedIpv6PoolCidrsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6151,7 +6147,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetAssociatedIpv6PoolCidrs", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6162,7 +6158,7 @@ export default class EC2 { } async getCapacityReservationUsage( - {abortSignal, ...params}: RequestConfig & s.GetCapacityReservationUsageRequest, + params: s.GetCapacityReservationUsageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6171,7 +6167,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetCapacityReservationUsage", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6187,7 +6183,7 @@ export default class EC2 { } async getCoipPoolUsage( - {abortSignal, ...params}: RequestConfig & s.GetCoipPoolUsageRequest, + params: s.GetCoipPoolUsageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6197,7 +6193,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetCoipPoolUsage", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6209,7 +6205,7 @@ export default class EC2 { } async getConsoleOutput( - {abortSignal, ...params}: RequestConfig & s.GetConsoleOutputRequest, + params: s.GetConsoleOutputRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6217,7 +6213,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("Latest" in params) body.append(prefix+"Latest", (params["Latest"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetConsoleOutput", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6229,7 +6225,7 @@ export default class EC2 { } async getConsoleScreenshot( - {abortSignal, ...params}: RequestConfig & s.GetConsoleScreenshotRequest, + params: s.GetConsoleScreenshotRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6237,7 +6233,7 @@ export default class EC2 { body.append(prefix+"InstanceId", (params["InstanceId"] ?? '').toString()); if ("WakeUp" in params) body.append(prefix+"WakeUp", (params["WakeUp"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetConsoleScreenshot", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6248,14 +6244,14 @@ export default class EC2 { } async getDefaultCreditSpecification( - {abortSignal, ...params}: RequestConfig & s.GetDefaultCreditSpecificationRequest, + params: s.GetDefaultCreditSpecificationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"InstanceFamily", (params["InstanceFamily"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetDefaultCreditSpecification", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6265,13 +6261,13 @@ export default class EC2 { } async getEbsDefaultKmsKeyId( - {abortSignal, ...params}: RequestConfig & s.GetEbsDefaultKmsKeyIdRequest = {}, + params: s.GetEbsDefaultKmsKeyIdRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetEbsDefaultKmsKeyId", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6281,13 +6277,13 @@ export default class EC2 { } async getEbsEncryptionByDefault( - {abortSignal, ...params}: RequestConfig & s.GetEbsEncryptionByDefaultRequest = {}, + params: s.GetEbsEncryptionByDefaultRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetEbsEncryptionByDefault", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6297,7 +6293,7 @@ export default class EC2 { } async getGroupsForCapacityReservation( - {abortSignal, ...params}: RequestConfig & s.GetGroupsForCapacityReservationRequest, + params: s.GetGroupsForCapacityReservationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6306,7 +6302,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetGroupsForCapacityReservation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6317,14 +6313,14 @@ export default class EC2 { } async getHostReservationPurchasePreview( - {abortSignal, ...params}: RequestConfig & s.GetHostReservationPurchasePreviewRequest, + params: s.GetHostReservationPurchasePreviewRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["HostIdSet"]) qsP.appendList(body, prefix+"item", params["HostIdSet"], {"entryPrefix":"."}) body.append(prefix+"OfferingId", (params["OfferingId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetHostReservationPurchasePreview", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6337,14 +6333,14 @@ export default class EC2 { } async getLaunchTemplateData( - {abortSignal, ...params}: RequestConfig & s.GetLaunchTemplateDataRequest, + params: s.GetLaunchTemplateDataRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"InstanceId", (params["InstanceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetLaunchTemplateData", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6354,7 +6350,7 @@ export default class EC2 { } async getManagedPrefixListAssociations( - {abortSignal, ...params}: RequestConfig & s.GetManagedPrefixListAssociationsRequest, + params: s.GetManagedPrefixListAssociationsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6363,7 +6359,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetManagedPrefixListAssociations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6374,7 +6370,7 @@ export default class EC2 { } async getManagedPrefixListEntries( - {abortSignal, ...params}: RequestConfig & s.GetManagedPrefixListEntriesRequest, + params: s.GetManagedPrefixListEntriesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6384,7 +6380,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetManagedPrefixListEntries", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6395,14 +6391,14 @@ export default class EC2 { } async getPasswordData( - {abortSignal, ...params}: RequestConfig & s.GetPasswordDataRequest, + params: s.GetPasswordDataRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"InstanceId", (params["InstanceId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetPasswordData", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6414,7 +6410,7 @@ export default class EC2 { } async getReservedInstancesExchangeQuote( - {abortSignal, ...params}: RequestConfig & s.GetReservedInstancesExchangeQuoteRequest, + params: s.GetReservedInstancesExchangeQuoteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6422,7 +6418,7 @@ export default class EC2 { if (params["ReservedInstanceIds"]) qsP.appendList(body, prefix+"ReservedInstanceId", params["ReservedInstanceIds"], {"entryPrefix":"."}) if (params["TargetConfigurations"]) qsP.appendList(body, prefix+"TargetConfiguration", params["TargetConfigurations"], {"appender":TargetConfigurationRequest_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetReservedInstancesExchangeQuote", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6440,7 +6436,7 @@ export default class EC2 { } async getTransitGatewayAttachmentPropagations( - {abortSignal, ...params}: RequestConfig & s.GetTransitGatewayAttachmentPropagationsRequest, + params: s.GetTransitGatewayAttachmentPropagationsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6450,7 +6446,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetTransitGatewayAttachmentPropagations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6461,7 +6457,7 @@ export default class EC2 { } async getTransitGatewayMulticastDomainAssociations( - {abortSignal, ...params}: RequestConfig & s.GetTransitGatewayMulticastDomainAssociationsRequest = {}, + params: s.GetTransitGatewayMulticastDomainAssociationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6471,7 +6467,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetTransitGatewayMulticastDomainAssociations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6482,7 +6478,7 @@ export default class EC2 { } async getTransitGatewayPrefixListReferences( - {abortSignal, ...params}: RequestConfig & s.GetTransitGatewayPrefixListReferencesRequest, + params: s.GetTransitGatewayPrefixListReferencesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6492,7 +6488,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetTransitGatewayPrefixListReferences", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6503,7 +6499,7 @@ export default class EC2 { } async getTransitGatewayRouteTableAssociations( - {abortSignal, ...params}: RequestConfig & s.GetTransitGatewayRouteTableAssociationsRequest, + params: s.GetTransitGatewayRouteTableAssociationsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6513,7 +6509,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetTransitGatewayRouteTableAssociations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6524,7 +6520,7 @@ export default class EC2 { } async getTransitGatewayRouteTablePropagations( - {abortSignal, ...params}: RequestConfig & s.GetTransitGatewayRouteTablePropagationsRequest, + params: s.GetTransitGatewayRouteTablePropagationsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6534,7 +6530,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetTransitGatewayRouteTablePropagations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6545,7 +6541,7 @@ export default class EC2 { } async importClientVpnClientCertificateRevocationList( - {abortSignal, ...params}: RequestConfig & s.ImportClientVpnClientCertificateRevocationListRequest, + params: s.ImportClientVpnClientCertificateRevocationListRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6553,7 +6549,7 @@ export default class EC2 { body.append(prefix+"CertificateRevocationList", (params["CertificateRevocationList"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ImportClientVpnClientCertificateRevocationList", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6563,7 +6559,7 @@ export default class EC2 { } async importImage( - {abortSignal, ...params}: RequestConfig & s.ImportImageRequest = {}, + params: s.ImportImageRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6582,7 +6578,7 @@ export default class EC2 { if (params["LicenseSpecifications"]) qsP.appendList(body, prefix+"item", params["LicenseSpecifications"], {"appender":ImportImageLicenseConfigurationRequest_Serialize,"entryPrefix":"."}) if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ImportImage", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6606,7 +6602,7 @@ export default class EC2 { } async importInstance( - {abortSignal, ...params}: RequestConfig & s.ImportInstanceRequest, + params: s.ImportInstanceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6616,7 +6612,7 @@ export default class EC2 { if (params["LaunchSpecification"] != null) ImportInstanceLaunchSpecification_Serialize(body, prefix+"LaunchSpecification", params["LaunchSpecification"]); body.append(prefix+"Platform", (params["Platform"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ImportInstance", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6626,7 +6622,7 @@ export default class EC2 { } async importKeyPair( - {abortSignal, ...params}: RequestConfig & s.ImportKeyPairRequest, + params: s.ImportKeyPairRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6635,7 +6631,7 @@ export default class EC2 { body.append(prefix+"PublicKeyMaterial", serializeBlob(params["PublicKeyMaterial"]) ?? ''); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ImportKeyPair", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6648,7 +6644,7 @@ export default class EC2 { } async importSnapshot( - {abortSignal, ...params}: RequestConfig & s.ImportSnapshotRequest = {}, + params: s.ImportSnapshotRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6662,7 +6658,7 @@ export default class EC2 { if ("RoleName" in params) body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ImportSnapshot", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6675,7 +6671,7 @@ export default class EC2 { } async importVolume( - {abortSignal, ...params}: RequestConfig & s.ImportVolumeRequest, + params: s.ImportVolumeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6685,7 +6681,7 @@ export default class EC2 { DiskImageDetail_Serialize(body, prefix+"Image", params["Image"]); VolumeDetail_Serialize(body, prefix+"Volume", params["Volume"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ImportVolume", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6695,7 +6691,7 @@ export default class EC2 { } async modifyAddressAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifyAddressAttributeRequest, + params: s.ModifyAddressAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6703,7 +6699,7 @@ export default class EC2 { if ("DomainName" in params) body.append(prefix+"DomainName", (params["DomainName"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyAddressAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6713,7 +6709,7 @@ export default class EC2 { } async modifyAvailabilityZoneGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyAvailabilityZoneGroupRequest, + params: s.ModifyAvailabilityZoneGroupRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6721,7 +6717,7 @@ export default class EC2 { body.append(prefix+"OptInStatus", (params["OptInStatus"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyAvailabilityZoneGroup", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6731,7 +6727,7 @@ export default class EC2 { } async modifyCapacityReservation( - {abortSignal, ...params}: RequestConfig & s.ModifyCapacityReservationRequest, + params: s.ModifyCapacityReservationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6742,7 +6738,7 @@ export default class EC2 { if ("Accept" in params) body.append(prefix+"Accept", (params["Accept"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyCapacityReservation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6752,7 +6748,7 @@ export default class EC2 { } async modifyClientVpnEndpoint( - {abortSignal, ...params}: RequestConfig & s.ModifyClientVpnEndpointRequest, + params: s.ModifyClientVpnEndpointRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6769,7 +6765,7 @@ export default class EC2 { if ("SelfServicePortal" in params) body.append(prefix+"SelfServicePortal", (params["SelfServicePortal"] ?? '').toString()); if (params["ClientConnectOptions"] != null) ClientConnectOptions_Serialize(body, prefix+"ClientConnectOptions", params["ClientConnectOptions"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyClientVpnEndpoint", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6779,7 +6775,7 @@ export default class EC2 { } async modifyDefaultCreditSpecification( - {abortSignal, ...params}: RequestConfig & s.ModifyDefaultCreditSpecificationRequest, + params: s.ModifyDefaultCreditSpecificationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6787,7 +6783,7 @@ export default class EC2 { body.append(prefix+"InstanceFamily", (params["InstanceFamily"] ?? '').toString()); body.append(prefix+"CpuCredits", (params["CpuCredits"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDefaultCreditSpecification", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6797,14 +6793,14 @@ export default class EC2 { } async modifyEbsDefaultKmsKeyId( - {abortSignal, ...params}: RequestConfig & s.ModifyEbsDefaultKmsKeyIdRequest, + params: s.ModifyEbsDefaultKmsKeyIdRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"KmsKeyId", (params["KmsKeyId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyEbsDefaultKmsKeyId", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6814,7 +6810,7 @@ export default class EC2 { } async modifyFleet( - {abortSignal, ...params}: RequestConfig & s.ModifyFleetRequest, + params: s.ModifyFleetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6824,7 +6820,7 @@ export default class EC2 { body.append(prefix+"FleetId", (params["FleetId"] ?? '').toString()); if (params["TargetCapacitySpecification"] != null) TargetCapacitySpecificationRequest_Serialize(body, prefix+"TargetCapacitySpecification", params["TargetCapacitySpecification"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyFleet", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6834,7 +6830,7 @@ export default class EC2 { } async modifyFpgaImageAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifyFpgaImageAttributeRequest, + params: s.ModifyFpgaImageAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6849,7 +6845,7 @@ export default class EC2 { if ("Description" in params) body.append(prefix+"Description", (params["Description"] ?? '').toString()); if ("Name" in params) body.append(prefix+"Name", (params["Name"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyFpgaImageAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6859,7 +6855,7 @@ export default class EC2 { } async modifyHosts( - {abortSignal, ...params}: RequestConfig & s.ModifyHostsRequest, + params: s.ModifyHostsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6869,7 +6865,7 @@ export default class EC2 { if ("InstanceType" in params) body.append(prefix+"InstanceType", (params["InstanceType"] ?? '').toString()); if ("InstanceFamily" in params) body.append(prefix+"InstanceFamily", (params["InstanceFamily"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyHosts", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6880,21 +6876,21 @@ export default class EC2 { } async modifyIdFormat( - {abortSignal, ...params}: RequestConfig & s.ModifyIdFormatRequest, + params: s.ModifyIdFormatRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Resource", (params["Resource"] ?? '').toString()); body.append(prefix+"UseLongIds", (params["UseLongIds"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyIdFormat", }); await resp.arrayBuffer(); // consume body without use } async modifyIdentityIdFormat( - {abortSignal, ...params}: RequestConfig & s.ModifyIdentityIdFormatRequest, + params: s.ModifyIdentityIdFormatRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6902,14 +6898,14 @@ export default class EC2 { body.append(prefix+"Resource", (params["Resource"] ?? '').toString()); body.append(prefix+"UseLongIds", (params["UseLongIds"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyIdentityIdFormat", }); await resp.arrayBuffer(); // consume body without use } async modifyImageAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifyImageAttributeRequest, + params: s.ModifyImageAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6924,14 +6920,14 @@ export default class EC2 { if ("Value" in params) body.append(prefix+"Value", (params["Value"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyImageAttribute", }); await resp.arrayBuffer(); // consume body without use } async modifyInstanceAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifyInstanceAttributeRequest, + params: s.ModifyInstanceAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6952,14 +6948,14 @@ export default class EC2 { if (params["UserData"] != null) BlobAttributeValue_Serialize(body, prefix+"UserData", params["UserData"]); if ("Value" in params) body.append(prefix+"Value", (params["Value"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyInstanceAttribute", }); await resp.arrayBuffer(); // consume body without use } async modifyInstanceCapacityReservationAttributes( - {abortSignal, ...params}: RequestConfig & s.ModifyInstanceCapacityReservationAttributesRequest, + params: s.ModifyInstanceCapacityReservationAttributesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6967,7 +6963,7 @@ export default class EC2 { CapacityReservationSpecification_Serialize(body, prefix+"CapacityReservationSpecification", params["CapacityReservationSpecification"]); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyInstanceCapacityReservationAttributes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6977,7 +6973,7 @@ export default class EC2 { } async modifyInstanceCreditSpecification( - {abortSignal, ...params}: RequestConfig & s.ModifyInstanceCreditSpecificationRequest, + params: s.ModifyInstanceCreditSpecificationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -6985,7 +6981,7 @@ export default class EC2 { if ("ClientToken" in params) body.append(prefix+"ClientToken", (params["ClientToken"] ?? '').toString()); if (params["InstanceCreditSpecifications"]) qsP.appendList(body, prefix+"InstanceCreditSpecification", params["InstanceCreditSpecifications"], {"appender":InstanceCreditSpecificationRequest_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyInstanceCreditSpecification", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -6996,7 +6992,7 @@ export default class EC2 { } async modifyInstanceEventStartTime( - {abortSignal, ...params}: RequestConfig & s.ModifyInstanceEventStartTimeRequest, + params: s.ModifyInstanceEventStartTimeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7005,7 +7001,7 @@ export default class EC2 { body.append(prefix+"InstanceEventId", (params["InstanceEventId"] ?? '').toString()); body.append(prefix+"NotBefore", qsP.encodeDate_iso8601(params["NotBefore"])); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyInstanceEventStartTime", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7015,7 +7011,7 @@ export default class EC2 { } async modifyInstanceMetadataOptions( - {abortSignal, ...params}: RequestConfig & s.ModifyInstanceMetadataOptionsRequest, + params: s.ModifyInstanceMetadataOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7025,7 +7021,7 @@ export default class EC2 { if ("HttpEndpoint" in params) body.append(prefix+"HttpEndpoint", (params["HttpEndpoint"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyInstanceMetadataOptions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7036,7 +7032,7 @@ export default class EC2 { } async modifyInstancePlacement( - {abortSignal, ...params}: RequestConfig & s.ModifyInstancePlacementRequest, + params: s.ModifyInstancePlacementRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7048,7 +7044,7 @@ export default class EC2 { if ("PartitionNumber" in params) body.append(prefix+"PartitionNumber", (params["PartitionNumber"] ?? '').toString()); if ("HostResourceGroupArn" in params) body.append(prefix+"HostResourceGroupArn", (params["HostResourceGroupArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyInstancePlacement", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7058,7 +7054,7 @@ export default class EC2 { } async modifyLaunchTemplate( - {abortSignal, ...params}: RequestConfig & s.ModifyLaunchTemplateRequest = {}, + params: s.ModifyLaunchTemplateRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7068,7 +7064,7 @@ export default class EC2 { if ("LaunchTemplateName" in params) body.append(prefix+"LaunchTemplateName", (params["LaunchTemplateName"] ?? '').toString()); if ("DefaultVersion" in params) body.append(prefix+"SetDefaultVersion", (params["DefaultVersion"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyLaunchTemplate", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7078,7 +7074,7 @@ export default class EC2 { } async modifyManagedPrefixList( - {abortSignal, ...params}: RequestConfig & s.ModifyManagedPrefixListRequest, + params: s.ModifyManagedPrefixListRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7089,7 +7085,7 @@ export default class EC2 { if (params["AddEntries"]) qsP.appendList(body, prefix+"AddEntry", params["AddEntries"], {"appender":AddPrefixListEntry_Serialize,"entryPrefix":"."}) if (params["RemoveEntries"]) qsP.appendList(body, prefix+"RemoveEntry", params["RemoveEntries"], {"appender":RemovePrefixListEntry_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyManagedPrefixList", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7099,7 +7095,7 @@ export default class EC2 { } async modifyNetworkInterfaceAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifyNetworkInterfaceAttributeRequest, + params: s.ModifyNetworkInterfaceAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7110,14 +7106,14 @@ export default class EC2 { body.append(prefix+"NetworkInterfaceId", (params["NetworkInterfaceId"] ?? '').toString()); if (params["SourceDestCheck"] != null) AttributeBooleanValue_Serialize(body, prefix+"SourceDestCheck", params["SourceDestCheck"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyNetworkInterfaceAttribute", }); await resp.arrayBuffer(); // consume body without use } async modifyReservedInstances( - {abortSignal, ...params}: RequestConfig & s.ModifyReservedInstancesRequest, + params: s.ModifyReservedInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7125,7 +7121,7 @@ export default class EC2 { if ("ClientToken" in params) body.append(prefix+"ClientToken", (params["ClientToken"] ?? '').toString()); if (params["TargetConfigurations"]) qsP.appendList(body, prefix+"ReservedInstancesConfigurationSetItemType", params["TargetConfigurations"], {"appender":ReservedInstancesConfiguration_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyReservedInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7135,7 +7131,7 @@ export default class EC2 { } async modifySnapshotAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifySnapshotAttributeRequest, + params: s.ModifySnapshotAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7147,14 +7143,14 @@ export default class EC2 { if (params["UserIds"]) qsP.appendList(body, prefix+"UserId", params["UserIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifySnapshotAttribute", }); await resp.arrayBuffer(); // consume body without use } async modifySpotFleetRequest( - {abortSignal, ...params}: RequestConfig & s.ModifySpotFleetRequestRequest, + params: s.ModifySpotFleetRequestRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7164,7 +7160,7 @@ export default class EC2 { if ("TargetCapacity" in params) body.append(prefix+"TargetCapacity", (params["TargetCapacity"] ?? '').toString()); if ("OnDemandTargetCapacity" in params) body.append(prefix+"OnDemandTargetCapacity", (params["OnDemandTargetCapacity"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifySpotFleetRequest", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7174,7 +7170,7 @@ export default class EC2 { } async modifySubnetAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifySubnetAttributeRequest, + params: s.ModifySubnetAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7184,14 +7180,14 @@ export default class EC2 { if (params["MapCustomerOwnedIpOnLaunch"] != null) AttributeBooleanValue_Serialize(body, prefix+"MapCustomerOwnedIpOnLaunch", params["MapCustomerOwnedIpOnLaunch"]); if ("CustomerOwnedIpv4Pool" in params) body.append(prefix+"CustomerOwnedIpv4Pool", (params["CustomerOwnedIpv4Pool"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifySubnetAttribute", }); await resp.arrayBuffer(); // consume body without use } async modifyTrafficMirrorFilterNetworkServices( - {abortSignal, ...params}: RequestConfig & s.ModifyTrafficMirrorFilterNetworkServicesRequest, + params: s.ModifyTrafficMirrorFilterNetworkServicesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7200,7 +7196,7 @@ export default class EC2 { if (params["RemoveNetworkServices"]) qsP.appendList(body, prefix+"RemoveNetworkService", params["RemoveNetworkServices"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyTrafficMirrorFilterNetworkServices", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7210,7 +7206,7 @@ export default class EC2 { } async modifyTrafficMirrorFilterRule( - {abortSignal, ...params}: RequestConfig & s.ModifyTrafficMirrorFilterRuleRequest, + params: s.ModifyTrafficMirrorFilterRuleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7227,7 +7223,7 @@ export default class EC2 { if (params["RemoveFields"]) qsP.appendList(body, prefix+"RemoveField", params["RemoveFields"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyTrafficMirrorFilterRule", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7237,7 +7233,7 @@ export default class EC2 { } async modifyTrafficMirrorSession( - {abortSignal, ...params}: RequestConfig & s.ModifyTrafficMirrorSessionRequest, + params: s.ModifyTrafficMirrorSessionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7251,7 +7247,7 @@ export default class EC2 { if (params["RemoveFields"]) qsP.appendList(body, prefix+"RemoveField", params["RemoveFields"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyTrafficMirrorSession", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7261,7 +7257,7 @@ export default class EC2 { } async modifyTransitGateway( - {abortSignal, ...params}: RequestConfig & s.ModifyTransitGatewayRequest, + params: s.ModifyTransitGatewayRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7270,7 +7266,7 @@ export default class EC2 { if (params["Options"] != null) ModifyTransitGatewayOptions_Serialize(body, prefix+"Options", params["Options"]); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyTransitGateway", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7280,7 +7276,7 @@ export default class EC2 { } async modifyTransitGatewayPrefixListReference( - {abortSignal, ...params}: RequestConfig & s.ModifyTransitGatewayPrefixListReferenceRequest, + params: s.ModifyTransitGatewayPrefixListReferenceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7290,7 +7286,7 @@ export default class EC2 { if ("Blackhole" in params) body.append(prefix+"Blackhole", (params["Blackhole"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyTransitGatewayPrefixListReference", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7300,7 +7296,7 @@ export default class EC2 { } async modifyTransitGatewayVpcAttachment( - {abortSignal, ...params}: RequestConfig & s.ModifyTransitGatewayVpcAttachmentRequest, + params: s.ModifyTransitGatewayVpcAttachmentRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7310,7 +7306,7 @@ export default class EC2 { if (params["Options"] != null) ModifyTransitGatewayVpcAttachmentRequestOptions_Serialize(body, prefix+"Options", params["Options"]); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyTransitGatewayVpcAttachment", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7320,7 +7316,7 @@ export default class EC2 { } async modifyVolume( - {abortSignal, ...params}: RequestConfig & s.ModifyVolumeRequest, + params: s.ModifyVolumeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7332,7 +7328,7 @@ export default class EC2 { if ("Throughput" in params) body.append(prefix+"Throughput", (params["Throughput"] ?? '').toString()); if ("MultiAttachEnabled" in params) body.append(prefix+"MultiAttachEnabled", (params["MultiAttachEnabled"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVolume", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7342,7 +7338,7 @@ export default class EC2 { } async modifyVolumeAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifyVolumeAttributeRequest, + params: s.ModifyVolumeAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7350,14 +7346,14 @@ export default class EC2 { body.append(prefix+"VolumeId", (params["VolumeId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVolumeAttribute", }); await resp.arrayBuffer(); // consume body without use } async modifyVpcAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifyVpcAttributeRequest, + params: s.ModifyVpcAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7365,14 +7361,14 @@ export default class EC2 { if (params["EnableDnsSupport"] != null) AttributeBooleanValue_Serialize(body, prefix+"EnableDnsSupport", params["EnableDnsSupport"]); body.append(prefix+"VpcId", (params["VpcId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpcAttribute", }); await resp.arrayBuffer(); // consume body without use } async modifyVpcEndpoint( - {abortSignal, ...params}: RequestConfig & s.ModifyVpcEndpointRequest, + params: s.ModifyVpcEndpointRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7388,7 +7384,7 @@ export default class EC2 { if (params["RemoveSecurityGroupIds"]) qsP.appendList(body, prefix+"RemoveSecurityGroupId", params["RemoveSecurityGroupIds"], {"entryPrefix":"."}) if ("PrivateDnsEnabled" in params) body.append(prefix+"PrivateDnsEnabled", (params["PrivateDnsEnabled"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpcEndpoint", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7398,7 +7394,7 @@ export default class EC2 { } async modifyVpcEndpointConnectionNotification( - {abortSignal, ...params}: RequestConfig & s.ModifyVpcEndpointConnectionNotificationRequest, + params: s.ModifyVpcEndpointConnectionNotificationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7407,7 +7403,7 @@ export default class EC2 { if ("ConnectionNotificationArn" in params) body.append(prefix+"ConnectionNotificationArn", (params["ConnectionNotificationArn"] ?? '').toString()); if (params["ConnectionEvents"]) qsP.appendList(body, prefix+"item", params["ConnectionEvents"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpcEndpointConnectionNotification", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7417,7 +7413,7 @@ export default class EC2 { } async modifyVpcEndpointServiceConfiguration( - {abortSignal, ...params}: RequestConfig & s.ModifyVpcEndpointServiceConfigurationRequest, + params: s.ModifyVpcEndpointServiceConfigurationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7431,7 +7427,7 @@ export default class EC2 { if (params["AddGatewayLoadBalancerArns"]) qsP.appendList(body, prefix+"AddGatewayLoadBalancerArn", params["AddGatewayLoadBalancerArns"], {"entryPrefix":"."}) if (params["RemoveGatewayLoadBalancerArns"]) qsP.appendList(body, prefix+"RemoveGatewayLoadBalancerArn", params["RemoveGatewayLoadBalancerArns"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpcEndpointServiceConfiguration", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7441,7 +7437,7 @@ export default class EC2 { } async modifyVpcEndpointServicePermissions( - {abortSignal, ...params}: RequestConfig & s.ModifyVpcEndpointServicePermissionsRequest, + params: s.ModifyVpcEndpointServicePermissionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7450,7 +7446,7 @@ export default class EC2 { if (params["AddAllowedPrincipals"]) qsP.appendList(body, prefix+"item", params["AddAllowedPrincipals"], {"entryPrefix":"."}) if (params["RemoveAllowedPrincipals"]) qsP.appendList(body, prefix+"item", params["RemoveAllowedPrincipals"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpcEndpointServicePermissions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7460,7 +7456,7 @@ export default class EC2 { } async modifyVpcPeeringConnectionOptions( - {abortSignal, ...params}: RequestConfig & s.ModifyVpcPeeringConnectionOptionsRequest, + params: s.ModifyVpcPeeringConnectionOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7469,7 +7465,7 @@ export default class EC2 { if (params["RequesterPeeringConnectionOptions"] != null) PeeringConnectionOptionsRequest_Serialize(body, prefix+"RequesterPeeringConnectionOptions", params["RequesterPeeringConnectionOptions"]); body.append(prefix+"VpcPeeringConnectionId", (params["VpcPeeringConnectionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpcPeeringConnectionOptions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7480,7 +7476,7 @@ export default class EC2 { } async modifyVpcTenancy( - {abortSignal, ...params}: RequestConfig & s.ModifyVpcTenancyRequest, + params: s.ModifyVpcTenancyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7488,7 +7484,7 @@ export default class EC2 { body.append(prefix+"InstanceTenancy", (params["InstanceTenancy"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpcTenancy", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7498,7 +7494,7 @@ export default class EC2 { } async modifyVpnConnection( - {abortSignal, ...params}: RequestConfig & s.ModifyVpnConnectionRequest, + params: s.ModifyVpnConnectionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7508,7 +7504,7 @@ export default class EC2 { if ("VpnGatewayId" in params) body.append(prefix+"VpnGatewayId", (params["VpnGatewayId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpnConnection", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7518,7 +7514,7 @@ export default class EC2 { } async modifyVpnConnectionOptions( - {abortSignal, ...params}: RequestConfig & s.ModifyVpnConnectionOptionsRequest, + params: s.ModifyVpnConnectionOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7529,7 +7525,7 @@ export default class EC2 { if ("RemoteIpv6NetworkCidr" in params) body.append(prefix+"RemoteIpv6NetworkCidr", (params["RemoteIpv6NetworkCidr"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpnConnectionOptions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7539,7 +7535,7 @@ export default class EC2 { } async modifyVpnTunnelCertificate( - {abortSignal, ...params}: RequestConfig & s.ModifyVpnTunnelCertificateRequest, + params: s.ModifyVpnTunnelCertificateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7547,7 +7543,7 @@ export default class EC2 { body.append(prefix+"VpnTunnelOutsideIpAddress", (params["VpnTunnelOutsideIpAddress"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpnTunnelCertificate", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7557,7 +7553,7 @@ export default class EC2 { } async modifyVpnTunnelOptions( - {abortSignal, ...params}: RequestConfig & s.ModifyVpnTunnelOptionsRequest, + params: s.ModifyVpnTunnelOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7566,7 +7562,7 @@ export default class EC2 { ModifyVpnTunnelOptionsSpecification_Serialize(body, prefix+"TunnelOptions", params["TunnelOptions"]); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyVpnTunnelOptions", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7576,14 +7572,14 @@ export default class EC2 { } async monitorInstances( - {abortSignal, ...params}: RequestConfig & s.MonitorInstancesRequest, + params: s.MonitorInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["InstanceIds"]) qsP.appendList(body, prefix+"InstanceId", params["InstanceIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "MonitorInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7593,14 +7589,14 @@ export default class EC2 { } async moveAddressToVpc( - {abortSignal, ...params}: RequestConfig & s.MoveAddressToVpcRequest, + params: s.MoveAddressToVpcRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"PublicIp", (params["PublicIp"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "MoveAddressToVpc", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7611,7 +7607,7 @@ export default class EC2 { } async provisionByoipCidr( - {abortSignal, ...params}: RequestConfig & s.ProvisionByoipCidrRequest, + params: s.ProvisionByoipCidrRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7622,7 +7618,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["PoolTagSpecifications"]) qsP.appendList(body, prefix+"PoolTagSpecification", params["PoolTagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ProvisionByoipCidr", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7632,7 +7628,7 @@ export default class EC2 { } async purchaseHostReservation( - {abortSignal, ...params}: RequestConfig & s.PurchaseHostReservationRequest, + params: s.PurchaseHostReservationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7643,7 +7639,7 @@ export default class EC2 { body.append(prefix+"OfferingId", (params["OfferingId"] ?? '').toString()); if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PurchaseHostReservation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7657,7 +7653,7 @@ export default class EC2 { } async purchaseReservedInstancesOffering( - {abortSignal, ...params}: RequestConfig & s.PurchaseReservedInstancesOfferingRequest, + params: s.PurchaseReservedInstancesOfferingRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7667,7 +7663,7 @@ export default class EC2 { if (params["LimitPrice"] != null) ReservedInstanceLimitPrice_Serialize(body, prefix+"LimitPrice", params["LimitPrice"]); if ("PurchaseTime" in params) body.append(prefix+"PurchaseTime", qsP.encodeDate_iso8601(params["PurchaseTime"])); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PurchaseReservedInstancesOffering", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7677,7 +7673,7 @@ export default class EC2 { } async purchaseScheduledInstances( - {abortSignal, ...params}: RequestConfig & s.PurchaseScheduledInstancesRequest, + params: s.PurchaseScheduledInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7685,7 +7681,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["PurchaseRequests"]) qsP.appendList(body, prefix+"PurchaseRequest", params["PurchaseRequests"], {"appender":PurchaseRequest_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PurchaseScheduledInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7695,21 +7691,21 @@ export default class EC2 { } async rebootInstances( - {abortSignal, ...params}: RequestConfig & s.RebootInstancesRequest, + params: s.RebootInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["InstanceIds"]) qsP.appendList(body, prefix+"InstanceId", params["InstanceIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RebootInstances", }); await resp.arrayBuffer(); // consume body without use } async registerImage( - {abortSignal, ...params}: RequestConfig & s.RegisterImageRequest, + params: s.RegisterImageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7728,7 +7724,7 @@ export default class EC2 { if ("VirtualizationType" in params) body.append(prefix+"VirtualizationType", (params["VirtualizationType"] ?? '').toString()); if ("BootMode" in params) body.append(prefix+"BootMode", (params["BootMode"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterImage", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7738,14 +7734,14 @@ export default class EC2 { } async registerInstanceEventNotificationAttributes( - {abortSignal, ...params}: RequestConfig & s.RegisterInstanceEventNotificationAttributesRequest = {}, + params: s.RegisterInstanceEventNotificationAttributesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if (params["InstanceTagAttribute"] != null) RegisterInstanceTagAttributeRequest_Serialize(body, prefix+"InstanceTagAttribute", params["InstanceTagAttribute"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterInstanceEventNotificationAttributes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7755,7 +7751,7 @@ export default class EC2 { } async registerTransitGatewayMulticastGroupMembers( - {abortSignal, ...params}: RequestConfig & s.RegisterTransitGatewayMulticastGroupMembersRequest = {}, + params: s.RegisterTransitGatewayMulticastGroupMembersRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7764,7 +7760,7 @@ export default class EC2 { if (params["NetworkInterfaceIds"]) qsP.appendList(body, prefix+"item", params["NetworkInterfaceIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterTransitGatewayMulticastGroupMembers", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7774,7 +7770,7 @@ export default class EC2 { } async registerTransitGatewayMulticastGroupSources( - {abortSignal, ...params}: RequestConfig & s.RegisterTransitGatewayMulticastGroupSourcesRequest = {}, + params: s.RegisterTransitGatewayMulticastGroupSourcesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7783,7 +7779,7 @@ export default class EC2 { if (params["NetworkInterfaceIds"]) qsP.appendList(body, prefix+"item", params["NetworkInterfaceIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterTransitGatewayMulticastGroupSources", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7793,7 +7789,7 @@ export default class EC2 { } async rejectTransitGatewayMulticastDomainAssociations( - {abortSignal, ...params}: RequestConfig & s.RejectTransitGatewayMulticastDomainAssociationsRequest = {}, + params: s.RejectTransitGatewayMulticastDomainAssociationsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7802,7 +7798,7 @@ export default class EC2 { if (params["SubnetIds"]) qsP.appendList(body, prefix+"item", params["SubnetIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RejectTransitGatewayMulticastDomainAssociations", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7812,14 +7808,14 @@ export default class EC2 { } async rejectTransitGatewayPeeringAttachment( - {abortSignal, ...params}: RequestConfig & s.RejectTransitGatewayPeeringAttachmentRequest, + params: s.RejectTransitGatewayPeeringAttachmentRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RejectTransitGatewayPeeringAttachment", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7829,14 +7825,14 @@ export default class EC2 { } async rejectTransitGatewayVpcAttachment( - {abortSignal, ...params}: RequestConfig & s.RejectTransitGatewayVpcAttachmentRequest, + params: s.RejectTransitGatewayVpcAttachmentRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TransitGatewayAttachmentId", (params["TransitGatewayAttachmentId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RejectTransitGatewayVpcAttachment", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7846,7 +7842,7 @@ export default class EC2 { } async rejectVpcEndpointConnections( - {abortSignal, ...params}: RequestConfig & s.RejectVpcEndpointConnectionsRequest, + params: s.RejectVpcEndpointConnectionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7854,7 +7850,7 @@ export default class EC2 { body.append(prefix+"ServiceId", (params["ServiceId"] ?? '').toString()); if (params["VpcEndpointIds"]) qsP.appendList(body, prefix+"VpcEndpointId", params["VpcEndpointIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RejectVpcEndpointConnections", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7864,14 +7860,14 @@ export default class EC2 { } async rejectVpcPeeringConnection( - {abortSignal, ...params}: RequestConfig & s.RejectVpcPeeringConnectionRequest, + params: s.RejectVpcPeeringConnectionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"VpcPeeringConnectionId", (params["VpcPeeringConnectionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RejectVpcPeeringConnection", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7881,7 +7877,7 @@ export default class EC2 { } async releaseAddress( - {abortSignal, ...params}: RequestConfig & s.ReleaseAddressRequest = {}, + params: s.ReleaseAddressRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7890,20 +7886,20 @@ export default class EC2 { if ("NetworkBorderGroup" in params) body.append(prefix+"NetworkBorderGroup", (params["NetworkBorderGroup"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReleaseAddress", }); await resp.arrayBuffer(); // consume body without use } async releaseHosts( - {abortSignal, ...params}: RequestConfig & s.ReleaseHostsRequest, + params: s.ReleaseHostsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["HostIds"]) qsP.appendList(body, prefix+"hostId", params["HostIds"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReleaseHosts", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7914,14 +7910,14 @@ export default class EC2 { } async replaceIamInstanceProfileAssociation( - {abortSignal, ...params}: RequestConfig & s.ReplaceIamInstanceProfileAssociationRequest, + params: s.ReplaceIamInstanceProfileAssociationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; IamInstanceProfileSpecification_Serialize(body, prefix+"IamInstanceProfile", params["IamInstanceProfile"]); body.append(prefix+"AssociationId", (params["AssociationId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReplaceIamInstanceProfileAssociation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7931,7 +7927,7 @@ export default class EC2 { } async replaceNetworkAclAssociation( - {abortSignal, ...params}: RequestConfig & s.ReplaceNetworkAclAssociationRequest, + params: s.ReplaceNetworkAclAssociationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7939,7 +7935,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"NetworkAclId", (params["NetworkAclId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReplaceNetworkAclAssociation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -7949,7 +7945,7 @@ export default class EC2 { } async replaceNetworkAclEntry( - {abortSignal, ...params}: RequestConfig & s.ReplaceNetworkAclEntryRequest, + params: s.ReplaceNetworkAclEntryRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7964,14 +7960,14 @@ export default class EC2 { body.append(prefix+"RuleAction", (params["RuleAction"] ?? '').toString()); body.append(prefix+"RuleNumber", (params["RuleNumber"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReplaceNetworkAclEntry", }); await resp.arrayBuffer(); // consume body without use } async replaceRoute( - {abortSignal, ...params}: RequestConfig & s.ReplaceRouteRequest, + params: s.ReplaceRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -7992,14 +7988,14 @@ export default class EC2 { body.append(prefix+"RouteTableId", (params["RouteTableId"] ?? '').toString()); if ("VpcPeeringConnectionId" in params) body.append(prefix+"VpcPeeringConnectionId", (params["VpcPeeringConnectionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReplaceRoute", }); await resp.arrayBuffer(); // consume body without use } async replaceRouteTableAssociation( - {abortSignal, ...params}: RequestConfig & s.ReplaceRouteTableAssociationRequest, + params: s.ReplaceRouteTableAssociationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8007,7 +8003,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"RouteTableId", (params["RouteTableId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReplaceRouteTableAssociation", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8018,7 +8014,7 @@ export default class EC2 { } async replaceTransitGatewayRoute( - {abortSignal, ...params}: RequestConfig & s.ReplaceTransitGatewayRouteRequest, + params: s.ReplaceTransitGatewayRouteRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8028,7 +8024,7 @@ export default class EC2 { if ("Blackhole" in params) body.append(prefix+"Blackhole", (params["Blackhole"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReplaceTransitGatewayRoute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8038,7 +8034,7 @@ export default class EC2 { } async reportInstanceStatus( - {abortSignal, ...params}: RequestConfig & s.ReportInstanceStatusRequest, + params: s.ReportInstanceStatusRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8050,21 +8046,21 @@ export default class EC2 { if ("StartTime" in params) body.append(prefix+"StartTime", qsP.encodeDate_iso8601(params["StartTime"])); body.append(prefix+"Status", (params["Status"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReportInstanceStatus", }); await resp.arrayBuffer(); // consume body without use } async requestSpotFleet( - {abortSignal, ...params}: RequestConfig & s.RequestSpotFleetRequest, + params: s.RequestSpotFleetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); SpotFleetRequestConfigData_Serialize(body, prefix+"SpotFleetRequestConfig", params["SpotFleetRequestConfig"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RequestSpotFleet", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8074,7 +8070,7 @@ export default class EC2 { } async requestSpotInstances( - {abortSignal, ...params}: RequestConfig & s.RequestSpotInstancesRequest = {}, + params: s.RequestSpotInstancesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8092,7 +8088,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) if ("InstanceInterruptionBehavior" in params) body.append(prefix+"InstanceInterruptionBehavior", (params["InstanceInterruptionBehavior"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RequestSpotInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8102,7 +8098,7 @@ export default class EC2 { } async resetAddressAttribute( - {abortSignal, ...params}: RequestConfig & s.ResetAddressAttributeRequest, + params: s.ResetAddressAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8110,7 +8106,7 @@ export default class EC2 { body.append(prefix+"Attribute", (params["Attribute"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResetAddressAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8120,13 +8116,13 @@ export default class EC2 { } async resetEbsDefaultKmsKeyId( - {abortSignal, ...params}: RequestConfig & s.ResetEbsDefaultKmsKeyIdRequest = {}, + params: s.ResetEbsDefaultKmsKeyIdRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResetEbsDefaultKmsKeyId", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8136,7 +8132,7 @@ export default class EC2 { } async resetFpgaImageAttribute( - {abortSignal, ...params}: RequestConfig & s.ResetFpgaImageAttributeRequest, + params: s.ResetFpgaImageAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8144,7 +8140,7 @@ export default class EC2 { body.append(prefix+"FpgaImageId", (params["FpgaImageId"] ?? '').toString()); if ("Attribute" in params) body.append(prefix+"Attribute", (params["Attribute"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResetFpgaImageAttribute", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8154,7 +8150,7 @@ export default class EC2 { } async resetImageAttribute( - {abortSignal, ...params}: RequestConfig & s.ResetImageAttributeRequest, + params: s.ResetImageAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8162,14 +8158,14 @@ export default class EC2 { body.append(prefix+"ImageId", (params["ImageId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResetImageAttribute", }); await resp.arrayBuffer(); // consume body without use } async resetInstanceAttribute( - {abortSignal, ...params}: RequestConfig & s.ResetInstanceAttributeRequest, + params: s.ResetInstanceAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8177,14 +8173,14 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"InstanceId", (params["InstanceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResetInstanceAttribute", }); await resp.arrayBuffer(); // consume body without use } async resetNetworkInterfaceAttribute( - {abortSignal, ...params}: RequestConfig & s.ResetNetworkInterfaceAttributeRequest, + params: s.ResetNetworkInterfaceAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8192,14 +8188,14 @@ export default class EC2 { body.append(prefix+"NetworkInterfaceId", (params["NetworkInterfaceId"] ?? '').toString()); if ("SourceDestCheck" in params) body.append(prefix+"SourceDestCheck", (params["SourceDestCheck"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResetNetworkInterfaceAttribute", }); await resp.arrayBuffer(); // consume body without use } async resetSnapshotAttribute( - {abortSignal, ...params}: RequestConfig & s.ResetSnapshotAttributeRequest, + params: s.ResetSnapshotAttributeRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8207,21 +8203,21 @@ export default class EC2 { body.append(prefix+"SnapshotId", (params["SnapshotId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResetSnapshotAttribute", }); await resp.arrayBuffer(); // consume body without use } async restoreAddressToClassic( - {abortSignal, ...params}: RequestConfig & s.RestoreAddressToClassicRequest, + params: s.RestoreAddressToClassicRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"PublicIp", (params["PublicIp"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RestoreAddressToClassic", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8232,7 +8228,7 @@ export default class EC2 { } async restoreManagedPrefixListVersion( - {abortSignal, ...params}: RequestConfig & s.RestoreManagedPrefixListVersionRequest, + params: s.RestoreManagedPrefixListVersionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8241,7 +8237,7 @@ export default class EC2 { body.append(prefix+"PreviousVersion", (params["PreviousVersion"] ?? '').toString()); body.append(prefix+"CurrentVersion", (params["CurrentVersion"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RestoreManagedPrefixListVersion", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8251,7 +8247,7 @@ export default class EC2 { } async revokeClientVpnIngress( - {abortSignal, ...params}: RequestConfig & s.RevokeClientVpnIngressRequest, + params: s.RevokeClientVpnIngressRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8261,7 +8257,7 @@ export default class EC2 { if ("RevokeAllGroups" in params) body.append(prefix+"RevokeAllGroups", (params["RevokeAllGroups"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RevokeClientVpnIngress", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8271,7 +8267,7 @@ export default class EC2 { } async revokeSecurityGroupEgress( - {abortSignal, ...params}: RequestConfig & s.RevokeSecurityGroupEgressRequest, + params: s.RevokeSecurityGroupEgressRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8285,7 +8281,7 @@ export default class EC2 { if ("SourceSecurityGroupName" in params) body.append(prefix+"SourceSecurityGroupName", (params["SourceSecurityGroupName"] ?? '').toString()); if ("SourceSecurityGroupOwnerId" in params) body.append(prefix+"SourceSecurityGroupOwnerId", (params["SourceSecurityGroupOwnerId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RevokeSecurityGroupEgress", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8296,7 +8292,7 @@ export default class EC2 { } async revokeSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.RevokeSecurityGroupIngressRequest = {}, + params: s.RevokeSecurityGroupIngressRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8311,7 +8307,7 @@ export default class EC2 { if ("ToPort" in params) body.append(prefix+"ToPort", (params["ToPort"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RevokeSecurityGroupIngress", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8322,7 +8318,7 @@ export default class EC2 { } async runInstances( - {abortSignal, ...params}: RequestConfig & s.RunInstancesRequest, + params: s.RunInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8364,7 +8360,7 @@ export default class EC2 { if (params["MetadataOptions"] != null) InstanceMetadataOptionsRequest_Serialize(body, prefix+"MetadataOptions", params["MetadataOptions"]); if (params["EnclaveOptions"] != null) EnclaveOptionsRequest_Serialize(body, prefix+"EnclaveOptions", params["EnclaveOptions"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RunInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8372,7 +8368,7 @@ export default class EC2 { } async runScheduledInstances( - {abortSignal, ...params}: RequestConfig & s.RunScheduledInstancesRequest, + params: s.RunScheduledInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8382,7 +8378,7 @@ export default class EC2 { ScheduledInstancesLaunchSpecification_Serialize(body, prefix+"LaunchSpecification", params["LaunchSpecification"]); body.append(prefix+"ScheduledInstanceId", (params["ScheduledInstanceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RunScheduledInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8392,7 +8388,7 @@ export default class EC2 { } async searchLocalGatewayRoutes( - {abortSignal, ...params}: RequestConfig & s.SearchLocalGatewayRoutesRequest, + params: s.SearchLocalGatewayRoutesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8402,7 +8398,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SearchLocalGatewayRoutes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8413,7 +8409,7 @@ export default class EC2 { } async searchTransitGatewayMulticastGroups( - {abortSignal, ...params}: RequestConfig & s.SearchTransitGatewayMulticastGroupsRequest = {}, + params: s.SearchTransitGatewayMulticastGroupsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8423,7 +8419,7 @@ export default class EC2 { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SearchTransitGatewayMulticastGroups", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8434,7 +8430,7 @@ export default class EC2 { } async searchTransitGatewayRoutes( - {abortSignal, ...params}: RequestConfig & s.SearchTransitGatewayRoutesRequest, + params: s.SearchTransitGatewayRoutesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8443,7 +8439,7 @@ export default class EC2 { if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SearchTransitGatewayRoutes", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8454,21 +8450,21 @@ export default class EC2 { } async sendDiagnosticInterrupt( - {abortSignal, ...params}: RequestConfig & s.SendDiagnosticInterruptRequest, + params: s.SendDiagnosticInterruptRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"InstanceId", (params["InstanceId"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendDiagnosticInterrupt", }); await resp.arrayBuffer(); // consume body without use } async startInstances( - {abortSignal, ...params}: RequestConfig & s.StartInstancesRequest, + params: s.StartInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8476,7 +8472,7 @@ export default class EC2 { if ("AdditionalInfo" in params) body.append(prefix+"AdditionalInfo", (params["AdditionalInfo"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8486,7 +8482,7 @@ export default class EC2 { } async startNetworkInsightsAnalysis( - {abortSignal, ...params}: RequestConfig & s.StartNetworkInsightsAnalysisRequest, + params: s.StartNetworkInsightsAnalysisRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8496,7 +8492,7 @@ export default class EC2 { if (params["TagSpecifications"]) qsP.appendList(body, prefix+"TagSpecification", params["TagSpecifications"], {"appender":TagSpecification_Serialize,"entryPrefix":"."}) body.append(prefix+"ClientToken", (params["ClientToken"] ?? generateIdemptToken()).toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartNetworkInsightsAnalysis", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8506,14 +8502,14 @@ export default class EC2 { } async startVpcEndpointServicePrivateDnsVerification( - {abortSignal, ...params}: RequestConfig & s.StartVpcEndpointServicePrivateDnsVerificationRequest, + params: s.StartVpcEndpointServicePrivateDnsVerificationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); body.append(prefix+"ServiceId", (params["ServiceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartVpcEndpointServicePrivateDnsVerification", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8523,7 +8519,7 @@ export default class EC2 { } async stopInstances( - {abortSignal, ...params}: RequestConfig & s.StopInstancesRequest, + params: s.StopInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8532,7 +8528,7 @@ export default class EC2 { if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); if ("Force" in params) body.append(prefix+"Force", (params["Force"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StopInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8542,7 +8538,7 @@ export default class EC2 { } async terminateClientVpnConnections( - {abortSignal, ...params}: RequestConfig & s.TerminateClientVpnConnectionsRequest, + params: s.TerminateClientVpnConnectionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8551,7 +8547,7 @@ export default class EC2 { if ("Username" in params) body.append(prefix+"Username", (params["Username"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TerminateClientVpnConnections", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8563,14 +8559,14 @@ export default class EC2 { } async terminateInstances( - {abortSignal, ...params}: RequestConfig & s.TerminateInstancesRequest, + params: s.TerminateInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["InstanceIds"]) qsP.appendList(body, prefix+"InstanceId", params["InstanceIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TerminateInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8580,14 +8576,14 @@ export default class EC2 { } async unassignIpv6Addresses( - {abortSignal, ...params}: RequestConfig & s.UnassignIpv6AddressesRequest, + params: s.UnassignIpv6AddressesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["Ipv6Addresses"]) qsP.appendList(body, prefix+"ipv6Addresses", params["Ipv6Addresses"], {"entryPrefix":"."}) body.append(prefix+"NetworkInterfaceId", (params["NetworkInterfaceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UnassignIpv6Addresses", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8598,28 +8594,28 @@ export default class EC2 { } async unassignPrivateIpAddresses( - {abortSignal, ...params}: RequestConfig & s.UnassignPrivateIpAddressesRequest, + params: s.UnassignPrivateIpAddressesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"NetworkInterfaceId", (params["NetworkInterfaceId"] ?? '').toString()); if (params["PrivateIpAddresses"]) qsP.appendList(body, prefix+"privateIpAddress", params["PrivateIpAddresses"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UnassignPrivateIpAddresses", }); await resp.arrayBuffer(); // consume body without use } async unmonitorInstances( - {abortSignal, ...params}: RequestConfig & s.UnmonitorInstancesRequest, + params: s.UnmonitorInstancesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["InstanceIds"]) qsP.appendList(body, prefix+"InstanceId", params["InstanceIds"], {"entryPrefix":"."}) if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UnmonitorInstances", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8629,7 +8625,7 @@ export default class EC2 { } async updateSecurityGroupRuleDescriptionsEgress( - {abortSignal, ...params}: RequestConfig & s.UpdateSecurityGroupRuleDescriptionsEgressRequest, + params: s.UpdateSecurityGroupRuleDescriptionsEgressRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8638,7 +8634,7 @@ export default class EC2 { if ("GroupName" in params) body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); if (params["IpPermissions"]) qsP.appendList(body, prefix+"item", params["IpPermissions"], {"appender":IpPermission_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateSecurityGroupRuleDescriptionsEgress", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8648,7 +8644,7 @@ export default class EC2 { } async updateSecurityGroupRuleDescriptionsIngress( - {abortSignal, ...params}: RequestConfig & s.UpdateSecurityGroupRuleDescriptionsIngressRequest, + params: s.UpdateSecurityGroupRuleDescriptionsIngressRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -8657,7 +8653,7 @@ export default class EC2 { if ("GroupName" in params) body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); if (params["IpPermissions"]) qsP.appendList(body, prefix+"item", params["IpPermissions"], {"appender":IpPermission_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateSecurityGroupRuleDescriptionsIngress", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8667,14 +8663,14 @@ export default class EC2 { } async withdrawByoipCidr( - {abortSignal, ...params}: RequestConfig & s.WithdrawByoipCidrRequest, + params: s.WithdrawByoipCidrRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Cidr", (params["Cidr"] ?? '').toString()); if ("DryRun" in params) body.append(prefix+"DryRun", (params["DryRun"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "WithdrawByoipCidr", }); const xml = xmlP.readXmlResult(await resp.text()); @@ -8687,7 +8683,7 @@ export default class EC2 { /** Checks state up to 40 times, 5 seconds apart (about 4 minutes max wait time). */ async waitForInstanceExists( - params: RequestConfig & s.DescribeInstancesRequest, + params: s.DescribeInstancesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state InstanceExists'; for (let i = 0; i < 40; i++) { @@ -8704,7 +8700,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForBundleTaskComplete( - params: RequestConfig & s.DescribeBundleTasksRequest, + params: s.DescribeBundleTasksRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state BundleTaskComplete'; for (let i = 0; i < 40; i++) { @@ -8719,7 +8715,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForConversionTaskCancelled( - params: RequestConfig & s.DescribeConversionTasksRequest, + params: s.DescribeConversionTasksRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ConversionTaskCancelled'; for (let i = 0; i < 40; i++) { @@ -8732,7 +8728,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForConversionTaskCompleted( - params: RequestConfig & s.DescribeConversionTasksRequest, + params: s.DescribeConversionTasksRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ConversionTaskCompleted'; for (let i = 0; i < 40; i++) { @@ -8748,7 +8744,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForCustomerGatewayAvailable( - params: RequestConfig & s.DescribeCustomerGatewaysRequest, + params: s.DescribeCustomerGatewaysRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state CustomerGatewayAvailable'; for (let i = 0; i < 40; i++) { @@ -8764,7 +8760,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForExportTaskCancelled( - params: RequestConfig & s.DescribeExportTasksRequest, + params: s.DescribeExportTasksRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ExportTaskCancelled'; for (let i = 0; i < 40; i++) { @@ -8777,7 +8773,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForExportTaskCompleted( - params: RequestConfig & s.DescribeExportTasksRequest, + params: s.DescribeExportTasksRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ExportTaskCompleted'; for (let i = 0; i < 40; i++) { @@ -8790,7 +8786,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForImageExists( - params: RequestConfig & s.DescribeImagesRequest, + params: s.DescribeImagesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ImageExists'; for (let i = 0; i < 40; i++) { @@ -8807,7 +8803,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForImageAvailable( - params: RequestConfig & s.DescribeImagesRequest, + params: s.DescribeImagesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ImageAvailable'; for (let i = 0; i < 40; i++) { @@ -8822,7 +8818,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForInstanceRunning( - params: RequestConfig & s.DescribeInstancesRequest, + params: s.DescribeInstancesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state InstanceRunning'; for (let i = 0; i < 40; i++) { @@ -8843,7 +8839,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForInstanceStatusOk( - params: RequestConfig & s.DescribeInstanceStatusRequest, + params: s.DescribeInstanceStatusRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state InstanceStatusOk'; for (let i = 0; i < 40; i++) { @@ -8860,7 +8856,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForInstanceStopped( - params: RequestConfig & s.DescribeInstancesRequest, + params: s.DescribeInstancesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state InstanceStopped'; for (let i = 0; i < 40; i++) { @@ -8876,7 +8872,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForInstanceTerminated( - params: RequestConfig & s.DescribeInstancesRequest, + params: s.DescribeInstancesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state InstanceTerminated'; for (let i = 0; i < 40; i++) { @@ -8892,7 +8888,7 @@ export default class EC2 { /** Checks state up to 6 times, 5 seconds apart (about 1 minutes max wait time). */ async waitForKeyPairExists( - params: RequestConfig & s.DescribeKeyPairsRequest, + params: s.DescribeKeyPairsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state KeyPairExists'; for (let i = 0; i < 6; i++) { @@ -8909,7 +8905,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForNatGatewayAvailable( - params: RequestConfig & s.DescribeNatGatewaysRequest, + params: s.DescribeNatGatewaysRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state NatGatewayAvailable'; for (let i = 0; i < 40; i++) { @@ -8930,7 +8926,7 @@ export default class EC2 { /** Checks state up to 10 times, 20 seconds apart (about 4 minutes max wait time). */ async waitForNetworkInterfaceAvailable( - params: RequestConfig & s.DescribeNetworkInterfacesRequest, + params: s.DescribeNetworkInterfacesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state NetworkInterfaceAvailable'; for (let i = 0; i < 10; i++) { @@ -8943,7 +8939,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForPasswordDataAvailable( - params: RequestConfig & s.GetPasswordDataRequest, + params: s.GetPasswordDataRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state PasswordDataAvailable'; for (let i = 0; i < 40; i++) { @@ -8956,7 +8952,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForSnapshotCompleted( - params: RequestConfig & s.DescribeSnapshotsRequest, + params: s.DescribeSnapshotsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state SnapshotCompleted'; for (let i = 0; i < 40; i++) { @@ -8969,7 +8965,7 @@ export default class EC2 { /** Checks state up to 6 times, 5 seconds apart (about 1 minutes max wait time). */ async waitForSecurityGroupExists( - params: RequestConfig & s.DescribeSecurityGroupsRequest, + params: s.DescribeSecurityGroupsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state SecurityGroupExists'; for (let i = 0; i < 6; i++) { @@ -8986,7 +8982,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForSpotInstanceRequestFulfilled( - params: RequestConfig & s.DescribeSpotInstanceRequestsRequest, + params: s.DescribeSpotInstanceRequestsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state SpotInstanceRequestFulfilled'; for (let i = 0; i < 40; i++) { @@ -9009,7 +9005,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForSubnetAvailable( - params: RequestConfig & s.DescribeSubnetsRequest, + params: s.DescribeSubnetsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state SubnetAvailable'; for (let i = 0; i < 40; i++) { @@ -9022,7 +9018,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForSystemStatusOk( - params: RequestConfig & s.DescribeInstanceStatusRequest, + params: s.DescribeInstanceStatusRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state SystemStatusOk'; for (let i = 0; i < 40; i++) { @@ -9035,7 +9031,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForVolumeAvailable( - params: RequestConfig & s.DescribeVolumesRequest, + params: s.DescribeVolumesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state VolumeAvailable'; for (let i = 0; i < 40; i++) { @@ -9050,7 +9046,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForVolumeDeleted( - params: RequestConfig & s.DescribeVolumesRequest, + params: s.DescribeVolumesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state VolumeDeleted'; for (let i = 0; i < 40; i++) { @@ -9068,7 +9064,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForVolumeInUse( - params: RequestConfig & s.DescribeVolumesRequest, + params: s.DescribeVolumesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state VolumeInUse'; for (let i = 0; i < 40; i++) { @@ -9083,7 +9079,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForVpcAvailable( - params: RequestConfig & s.DescribeVpcsRequest, + params: s.DescribeVpcsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state VpcAvailable'; for (let i = 0; i < 40; i++) { @@ -9096,7 +9092,7 @@ export default class EC2 { /** Checks state up to 5 times, 1 seconds apart (about 1 minutes max wait time). */ async waitForVpcExists( - params: RequestConfig & s.DescribeVpcsRequest, + params: s.DescribeVpcsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state VpcExists'; for (let i = 0; i < 5; i++) { @@ -9113,7 +9109,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForVpnConnectionAvailable( - params: RequestConfig & s.DescribeVpnConnectionsRequest, + params: s.DescribeVpnConnectionsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state VpnConnectionAvailable'; for (let i = 0; i < 40; i++) { @@ -9129,7 +9125,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForVpnConnectionDeleted( - params: RequestConfig & s.DescribeVpnConnectionsRequest, + params: s.DescribeVpnConnectionsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state VpnConnectionDeleted'; for (let i = 0; i < 40; i++) { @@ -9144,7 +9140,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForVpcPeeringConnectionExists( - params: RequestConfig & s.DescribeVpcPeeringConnectionsRequest, + params: s.DescribeVpcPeeringConnectionsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state VpcPeeringConnectionExists'; for (let i = 0; i < 40; i++) { @@ -9161,7 +9157,7 @@ export default class EC2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForVpcPeeringConnectionDeleted( - params: RequestConfig & s.DescribeVpcPeeringConnectionsRequest, + params: s.DescribeVpcPeeringConnectionsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state VpcPeeringConnectionDeleted'; for (let i = 0; i < 40; i++) { @@ -9179,7 +9175,7 @@ export default class EC2 { /** Checks state up to 15 times, 60 seconds apart (about 15 minutes max wait time). */ async waitForConsoleOutputAvailable( - params: RequestConfig & s.GetConsoleOutputRequest, + params: s.GetConsoleOutputRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ConsoleOutputAvailable'; for (let i = 0; i < 15; i++) { diff --git a/lib/services/ecr/mod.ts b/lib/services/ecr/mod.ts index 0a268812..2956fbba 100644 --- a/lib/services/ecr/mod.ts +++ b/lib/services/ecr/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon EC2 Container Registry -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"; @@ -15,7 +11,7 @@ function serializeBlob(input: string | Uint8Array | null | undefined) { return Base64.encode(input); } -export default class ECR { +export class ECR { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(ECR.ApiMetadata); @@ -36,7 +32,7 @@ export default class ECR { }; async batchCheckLayerAvailability( - {abortSignal, ...params}: RequestConfig & s.BatchCheckLayerAvailabilityRequest, + params: s.BatchCheckLayerAvailabilityRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -44,7 +40,7 @@ export default class ECR { layerDigests: params["layerDigests"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "BatchCheckLayerAvailability", }); return jsonP.readObj({ @@ -57,7 +53,7 @@ export default class ECR { } async batchDeleteImage( - {abortSignal, ...params}: RequestConfig & s.BatchDeleteImageRequest, + params: s.BatchDeleteImageRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -65,7 +61,7 @@ export default class ECR { imageIds: params["imageIds"]?.map(x => fromImageIdentifier(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "BatchDeleteImage", }); return jsonP.readObj({ @@ -78,7 +74,7 @@ export default class ECR { } async batchGetImage( - {abortSignal, ...params}: RequestConfig & s.BatchGetImageRequest, + params: s.BatchGetImageRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -87,7 +83,7 @@ export default class ECR { acceptedMediaTypes: params["acceptedMediaTypes"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "BatchGetImage", }); return jsonP.readObj({ @@ -100,7 +96,7 @@ export default class ECR { } async completeLayerUpload( - {abortSignal, ...params}: RequestConfig & s.CompleteLayerUploadRequest, + params: s.CompleteLayerUploadRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -109,7 +105,7 @@ export default class ECR { layerDigests: params["layerDigests"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CompleteLayerUpload", }); return jsonP.readObj({ @@ -124,7 +120,7 @@ export default class ECR { } async createRepository( - {abortSignal, ...params}: RequestConfig & s.CreateRepositoryRequest, + params: s.CreateRepositoryRequest, ): Promise { const body: jsonP.JSONObject = { repositoryName: params["repositoryName"], @@ -134,7 +130,7 @@ export default class ECR { encryptionConfiguration: fromEncryptionConfiguration(params["encryptionConfiguration"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateRepository", }); return jsonP.readObj({ @@ -146,14 +142,14 @@ export default class ECR { } async deleteLifecyclePolicy( - {abortSignal, ...params}: RequestConfig & s.DeleteLifecyclePolicyRequest, + params: s.DeleteLifecyclePolicyRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], repositoryName: params["repositoryName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteLifecyclePolicy", }); return jsonP.readObj({ @@ -167,12 +163,10 @@ export default class ECR { }, await resp.json()); } - async deleteRegistryPolicy( - {abortSignal}: RequestConfig = {}, - ): Promise { + async deleteRegistryPolicy(): Promise { const body: jsonP.JSONObject = {}; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteRegistryPolicy", }); return jsonP.readObj({ @@ -185,7 +179,7 @@ export default class ECR { } async deleteRepository( - {abortSignal, ...params}: RequestConfig & s.DeleteRepositoryRequest, + params: s.DeleteRepositoryRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -193,7 +187,7 @@ export default class ECR { force: params["force"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteRepository", }); return jsonP.readObj({ @@ -205,14 +199,14 @@ export default class ECR { } async deleteRepositoryPolicy( - {abortSignal, ...params}: RequestConfig & s.DeleteRepositoryPolicyRequest, + params: s.DeleteRepositoryPolicyRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], repositoryName: params["repositoryName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteRepositoryPolicy", }); return jsonP.readObj({ @@ -226,7 +220,7 @@ export default class ECR { } async describeImageScanFindings( - {abortSignal, ...params}: RequestConfig & s.DescribeImageScanFindingsRequest, + params: s.DescribeImageScanFindingsRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -236,7 +230,7 @@ export default class ECR { maxResults: params["maxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeImageScanFindings", }); return jsonP.readObj({ @@ -253,7 +247,7 @@ export default class ECR { } async describeImages( - {abortSignal, ...params}: RequestConfig & s.DescribeImagesRequest, + params: s.DescribeImagesRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -264,7 +258,7 @@ export default class ECR { filter: fromDescribeImagesFilter(params["filter"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeImages", }); return jsonP.readObj({ @@ -276,12 +270,10 @@ export default class ECR { }, await resp.json()); } - async describeRegistry( - {abortSignal}: RequestConfig = {}, - ): Promise { + async describeRegistry(): Promise { const body: jsonP.JSONObject = {}; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeRegistry", }); return jsonP.readObj({ @@ -294,7 +286,7 @@ export default class ECR { } async describeRepositories( - {abortSignal, ...params}: RequestConfig & s.DescribeRepositoriesRequest = {}, + params: s.DescribeRepositoriesRequest = {}, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -303,7 +295,7 @@ export default class ECR { maxResults: params["maxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeRepositories", }); return jsonP.readObj({ @@ -316,13 +308,13 @@ export default class ECR { } async getAuthorizationToken( - {abortSignal, ...params}: RequestConfig & s.GetAuthorizationTokenRequest = {}, + params: s.GetAuthorizationTokenRequest = {}, ): Promise { const body: jsonP.JSONObject = { registryIds: params["registryIds"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetAuthorizationToken", }); return jsonP.readObj({ @@ -334,7 +326,7 @@ export default class ECR { } async getDownloadUrlForLayer( - {abortSignal, ...params}: RequestConfig & s.GetDownloadUrlForLayerRequest, + params: s.GetDownloadUrlForLayerRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -342,7 +334,7 @@ export default class ECR { layerDigest: params["layerDigest"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetDownloadUrlForLayer", }); return jsonP.readObj({ @@ -355,14 +347,14 @@ export default class ECR { } async getLifecyclePolicy( - {abortSignal, ...params}: RequestConfig & s.GetLifecyclePolicyRequest, + params: s.GetLifecyclePolicyRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], repositoryName: params["repositoryName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetLifecyclePolicy", }); return jsonP.readObj({ @@ -377,7 +369,7 @@ export default class ECR { } async getLifecyclePolicyPreview( - {abortSignal, ...params}: RequestConfig & s.GetLifecyclePolicyPreviewRequest, + params: s.GetLifecyclePolicyPreviewRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -388,7 +380,7 @@ export default class ECR { filter: fromLifecyclePolicyPreviewFilter(params["filter"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetLifecyclePolicyPreview", }); return jsonP.readObj({ @@ -405,12 +397,10 @@ export default class ECR { }, await resp.json()); } - async getRegistryPolicy( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getRegistryPolicy(): Promise { const body: jsonP.JSONObject = {}; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetRegistryPolicy", }); return jsonP.readObj({ @@ -423,14 +413,14 @@ export default class ECR { } async getRepositoryPolicy( - {abortSignal, ...params}: RequestConfig & s.GetRepositoryPolicyRequest, + params: s.GetRepositoryPolicyRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], repositoryName: params["repositoryName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetRepositoryPolicy", }); return jsonP.readObj({ @@ -444,14 +434,14 @@ export default class ECR { } async initiateLayerUpload( - {abortSignal, ...params}: RequestConfig & s.InitiateLayerUploadRequest, + params: s.InitiateLayerUploadRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], repositoryName: params["repositoryName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "InitiateLayerUpload", }); return jsonP.readObj({ @@ -464,7 +454,7 @@ export default class ECR { } async listImages( - {abortSignal, ...params}: RequestConfig & s.ListImagesRequest, + params: s.ListImagesRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -474,7 +464,7 @@ export default class ECR { filter: fromListImagesFilter(params["filter"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListImages", }); return jsonP.readObj({ @@ -487,13 +477,13 @@ export default class ECR { } async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceRequest, + params: s.ListTagsForResourceRequest, ): Promise { const body: jsonP.JSONObject = { resourceArn: params["resourceArn"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListTagsForResource", }); return jsonP.readObj({ @@ -505,7 +495,7 @@ export default class ECR { } async putImage( - {abortSignal, ...params}: RequestConfig & s.PutImageRequest, + params: s.PutImageRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -516,7 +506,7 @@ export default class ECR { imageDigest: params["imageDigest"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutImage", }); return jsonP.readObj({ @@ -528,7 +518,7 @@ export default class ECR { } async putImageScanningConfiguration( - {abortSignal, ...params}: RequestConfig & s.PutImageScanningConfigurationRequest, + params: s.PutImageScanningConfigurationRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -536,7 +526,7 @@ export default class ECR { imageScanningConfiguration: fromImageScanningConfiguration(params["imageScanningConfiguration"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutImageScanningConfiguration", }); return jsonP.readObj({ @@ -550,7 +540,7 @@ export default class ECR { } async putImageTagMutability( - {abortSignal, ...params}: RequestConfig & s.PutImageTagMutabilityRequest, + params: s.PutImageTagMutabilityRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -558,7 +548,7 @@ export default class ECR { imageTagMutability: params["imageTagMutability"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutImageTagMutability", }); return jsonP.readObj({ @@ -572,7 +562,7 @@ export default class ECR { } async putLifecyclePolicy( - {abortSignal, ...params}: RequestConfig & s.PutLifecyclePolicyRequest, + params: s.PutLifecyclePolicyRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -580,7 +570,7 @@ export default class ECR { lifecyclePolicyText: params["lifecyclePolicyText"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutLifecyclePolicy", }); return jsonP.readObj({ @@ -594,13 +584,13 @@ export default class ECR { } async putRegistryPolicy( - {abortSignal, ...params}: RequestConfig & s.PutRegistryPolicyRequest, + params: s.PutRegistryPolicyRequest, ): Promise { const body: jsonP.JSONObject = { policyText: params["policyText"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutRegistryPolicy", }); return jsonP.readObj({ @@ -613,13 +603,13 @@ export default class ECR { } async putReplicationConfiguration( - {abortSignal, ...params}: RequestConfig & s.PutReplicationConfigurationRequest, + params: s.PutReplicationConfigurationRequest, ): Promise { const body: jsonP.JSONObject = { replicationConfiguration: fromReplicationConfiguration(params["replicationConfiguration"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutReplicationConfiguration", }); return jsonP.readObj({ @@ -631,7 +621,7 @@ export default class ECR { } async setRepositoryPolicy( - {abortSignal, ...params}: RequestConfig & s.SetRepositoryPolicyRequest, + params: s.SetRepositoryPolicyRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -640,7 +630,7 @@ export default class ECR { force: params["force"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetRepositoryPolicy", }); return jsonP.readObj({ @@ -654,7 +644,7 @@ export default class ECR { } async startImageScan( - {abortSignal, ...params}: RequestConfig & s.StartImageScanRequest, + params: s.StartImageScanRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -662,7 +652,7 @@ export default class ECR { imageId: fromImageIdentifier(params["imageId"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartImageScan", }); return jsonP.readObj({ @@ -677,7 +667,7 @@ export default class ECR { } async startLifecyclePolicyPreview( - {abortSignal, ...params}: RequestConfig & s.StartLifecyclePolicyPreviewRequest, + params: s.StartLifecyclePolicyPreviewRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -685,7 +675,7 @@ export default class ECR { lifecyclePolicyText: params["lifecyclePolicyText"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartLifecyclePolicyPreview", }); return jsonP.readObj({ @@ -700,35 +690,35 @@ export default class ECR { } async tagResource( - {abortSignal, ...params}: RequestConfig & s.TagResourceRequest, + params: s.TagResourceRequest, ): Promise { const body: jsonP.JSONObject = { resourceArn: params["resourceArn"], tags: params["tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagResource", }); await resp.arrayBuffer(); // consume body without use } async untagResource( - {abortSignal, ...params}: RequestConfig & s.UntagResourceRequest, + params: s.UntagResourceRequest, ): Promise { const body: jsonP.JSONObject = { resourceArn: params["resourceArn"], tagKeys: params["tagKeys"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagResource", }); await resp.arrayBuffer(); // consume body without use } async uploadLayerPart( - {abortSignal, ...params}: RequestConfig & s.UploadLayerPartRequest, + params: s.UploadLayerPartRequest, ): Promise { const body: jsonP.JSONObject = { registryId: params["registryId"], @@ -739,7 +729,7 @@ export default class ECR { layerPartBlob: serializeBlob(params["layerPartBlob"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UploadLayerPart", }); return jsonP.readObj({ @@ -760,7 +750,7 @@ export default class ECR { * Checks state up to 60 times, 5 seconds apart (about 5 minutes max wait time). */ async waitForImageScanComplete( - params: RequestConfig & s.DescribeImageScanFindingsRequest, + params: s.DescribeImageScanFindingsRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ImageScanComplete'; for (let i = 0; i < 60; i++) { @@ -778,7 +768,7 @@ export default class ECR { * Checks state up to 20 times, 5 seconds apart (about 2 minutes max wait time). */ async waitForLifecyclePolicyPreviewComplete( - params: RequestConfig & s.GetLifecyclePolicyPreviewRequest, + params: s.GetLifecyclePolicyPreviewRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state LifecyclePolicyPreviewComplete'; for (let i = 0; i < 20; i++) { diff --git a/lib/services/eks/mod.ts b/lib/services/eks/mod.ts index b238302f..0a2a0f62 100644 --- a/lib/services/eks/mod.ts +++ b/lib/services/eks/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon Elastic Kubernetes Service -interface RequestConfig { - abortSignal?: AbortSignal; -} - export * from "./structs.ts"; import * as client from "../../client/common.ts"; import * as cmnP from "../../encoding/common.ts"; @@ -14,7 +10,7 @@ function generateIdemptToken() { return uuidv4.generate(); } -export default class EKS { +export class EKS { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(EKS.ApiMetadata); @@ -34,14 +30,14 @@ export default class EKS { }; async associateEncryptionConfig( - {abortSignal, ...params}: RequestConfig & s.AssociateEncryptionConfigRequest, + params: s.AssociateEncryptionConfigRequest, ): Promise { const body: jsonP.JSONObject = { encryptionConfig: params["encryptionConfig"]?.map(x => fromEncryptionConfig(x)), clientRequestToken: params["clientRequestToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateEncryptionConfig", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/encryption-config/associate`, }); @@ -54,7 +50,7 @@ export default class EKS { } async associateIdentityProviderConfig( - {abortSignal, ...params}: RequestConfig & s.AssociateIdentityProviderConfigRequest, + params: s.AssociateIdentityProviderConfigRequest, ): Promise { const body: jsonP.JSONObject = { oidc: fromOidcIdentityProviderConfigRequest(params["oidc"]), @@ -62,7 +58,7 @@ export default class EKS { clientRequestToken: params["clientRequestToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateIdentityProviderConfig", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/identity-provider-configs/associate`, }); @@ -76,7 +72,7 @@ export default class EKS { } async createAddon( - {abortSignal, ...params}: RequestConfig & s.CreateAddonRequest, + params: s.CreateAddonRequest, ): Promise { const body: jsonP.JSONObject = { addonName: params["addonName"], @@ -87,7 +83,7 @@ export default class EKS { tags: params["tags"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateAddon", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/addons`, }); @@ -100,7 +96,7 @@ export default class EKS { } async createCluster( - {abortSignal, ...params}: RequestConfig & s.CreateClusterRequest, + params: s.CreateClusterRequest, ): Promise { const body: jsonP.JSONObject = { name: params["name"], @@ -114,7 +110,7 @@ export default class EKS { encryptionConfig: params["encryptionConfig"]?.map(x => fromEncryptionConfig(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateCluster", requestUri: "/clusters", }); @@ -127,7 +123,7 @@ export default class EKS { } async createFargateProfile( - {abortSignal, ...params}: RequestConfig & s.CreateFargateProfileRequest, + params: s.CreateFargateProfileRequest, ): Promise { const body: jsonP.JSONObject = { fargateProfileName: params["fargateProfileName"], @@ -138,7 +134,7 @@ export default class EKS { tags: params["tags"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateFargateProfile", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/fargate-profiles`, }); @@ -151,7 +147,7 @@ export default class EKS { } async createNodegroup( - {abortSignal, ...params}: RequestConfig & s.CreateNodegroupRequest, + params: s.CreateNodegroupRequest, ): Promise { const body: jsonP.JSONObject = { nodegroupName: params["nodegroupName"], @@ -171,7 +167,7 @@ export default class EKS { releaseVersion: params["releaseVersion"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateNodegroup", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/node-groups`, }); @@ -184,11 +180,10 @@ export default class EKS { } async deleteAddon( - {abortSignal, ...params}: RequestConfig & s.DeleteAddonRequest, + params: s.DeleteAddonRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteAddon", method: "DELETE", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/addons/${params["addonName"]}`, @@ -202,11 +197,10 @@ export default class EKS { } async deleteCluster( - {abortSignal, ...params}: RequestConfig & s.DeleteClusterRequest, + params: s.DeleteClusterRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteCluster", method: "DELETE", requestUri: cmnP.encodePath`/clusters/${params["name"]}`, @@ -220,11 +214,10 @@ export default class EKS { } async deleteFargateProfile( - {abortSignal, ...params}: RequestConfig & s.DeleteFargateProfileRequest, + params: s.DeleteFargateProfileRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteFargateProfile", method: "DELETE", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/fargate-profiles/${params["fargateProfileName"]}`, @@ -238,11 +231,10 @@ export default class EKS { } async deleteNodegroup( - {abortSignal, ...params}: RequestConfig & s.DeleteNodegroupRequest, + params: s.DeleteNodegroupRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteNodegroup", method: "DELETE", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/node-groups/${params["nodegroupName"]}`, @@ -256,11 +248,10 @@ export default class EKS { } async describeAddon( - {abortSignal, ...params}: RequestConfig & s.DescribeAddonRequest, + params: s.DescribeAddonRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DescribeAddon", method: "GET", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/addons/${params["addonName"]}`, @@ -274,7 +265,7 @@ export default class EKS { } async describeAddonVersions( - {abortSignal, ...params}: RequestConfig & s.DescribeAddonVersionsRequest = {}, + params: s.DescribeAddonVersionsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["kubernetesVersion"] != null) query.set("kubernetesVersion", params["kubernetesVersion"]?.toString() ?? ""); @@ -282,7 +273,7 @@ export default class EKS { if (params["nextToken"] != null) query.set("nextToken", params["nextToken"]?.toString() ?? ""); if (params["addonName"] != null) query.set("addonName", params["addonName"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "DescribeAddonVersions", method: "GET", requestUri: "/addons/supported-versions", @@ -297,11 +288,10 @@ export default class EKS { } async describeCluster( - {abortSignal, ...params}: RequestConfig & s.DescribeClusterRequest, + params: s.DescribeClusterRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DescribeCluster", method: "GET", requestUri: cmnP.encodePath`/clusters/${params["name"]}`, @@ -315,11 +305,10 @@ export default class EKS { } async describeFargateProfile( - {abortSignal, ...params}: RequestConfig & s.DescribeFargateProfileRequest, + params: s.DescribeFargateProfileRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DescribeFargateProfile", method: "GET", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/fargate-profiles/${params["fargateProfileName"]}`, @@ -333,13 +322,13 @@ export default class EKS { } async describeIdentityProviderConfig( - {abortSignal, ...params}: RequestConfig & s.DescribeIdentityProviderConfigRequest, + params: s.DescribeIdentityProviderConfigRequest, ): Promise { const body: jsonP.JSONObject = { identityProviderConfig: fromIdentityProviderConfig(params["identityProviderConfig"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeIdentityProviderConfig", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/identity-provider-configs/describe`, }); @@ -352,11 +341,10 @@ export default class EKS { } async describeNodegroup( - {abortSignal, ...params}: RequestConfig & s.DescribeNodegroupRequest, + params: s.DescribeNodegroupRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DescribeNodegroup", method: "GET", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/node-groups/${params["nodegroupName"]}`, @@ -370,13 +358,13 @@ export default class EKS { } async describeUpdate( - {abortSignal, ...params}: RequestConfig & s.DescribeUpdateRequest, + params: s.DescribeUpdateRequest, ): Promise { const query = new URLSearchParams; if (params["nodegroupName"] != null) query.set("nodegroupName", params["nodegroupName"]?.toString() ?? ""); if (params["addonName"] != null) query.set("addonName", params["addonName"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "DescribeUpdate", method: "GET", requestUri: cmnP.encodePath`/clusters/${params["name"]}/updates/${params["updateId"]}`, @@ -390,14 +378,14 @@ export default class EKS { } async disassociateIdentityProviderConfig( - {abortSignal, ...params}: RequestConfig & s.DisassociateIdentityProviderConfigRequest, + params: s.DisassociateIdentityProviderConfigRequest, ): Promise { const body: jsonP.JSONObject = { identityProviderConfig: fromIdentityProviderConfig(params["identityProviderConfig"]), clientRequestToken: params["clientRequestToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateIdentityProviderConfig", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/identity-provider-configs/disassociate`, }); @@ -410,13 +398,13 @@ export default class EKS { } async listAddons( - {abortSignal, ...params}: RequestConfig & s.ListAddonsRequest, + params: s.ListAddonsRequest, ): Promise { const query = new URLSearchParams; if (params["maxResults"] != null) query.set("maxResults", params["maxResults"]?.toString() ?? ""); if (params["nextToken"] != null) query.set("nextToken", params["nextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListAddons", method: "GET", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/addons`, @@ -431,13 +419,13 @@ export default class EKS { } async listClusters( - {abortSignal, ...params}: RequestConfig & s.ListClustersRequest = {}, + params: s.ListClustersRequest = {}, ): Promise { const query = new URLSearchParams; if (params["maxResults"] != null) query.set("maxResults", params["maxResults"]?.toString() ?? ""); if (params["nextToken"] != null) query.set("nextToken", params["nextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListClusters", method: "GET", requestUri: "/clusters", @@ -452,13 +440,13 @@ export default class EKS { } async listFargateProfiles( - {abortSignal, ...params}: RequestConfig & s.ListFargateProfilesRequest, + params: s.ListFargateProfilesRequest, ): Promise { const query = new URLSearchParams; if (params["maxResults"] != null) query.set("maxResults", params["maxResults"]?.toString() ?? ""); if (params["nextToken"] != null) query.set("nextToken", params["nextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListFargateProfiles", method: "GET", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/fargate-profiles`, @@ -473,13 +461,13 @@ export default class EKS { } async listIdentityProviderConfigs( - {abortSignal, ...params}: RequestConfig & s.ListIdentityProviderConfigsRequest, + params: s.ListIdentityProviderConfigsRequest, ): Promise { const query = new URLSearchParams; if (params["maxResults"] != null) query.set("maxResults", params["maxResults"]?.toString() ?? ""); if (params["nextToken"] != null) query.set("nextToken", params["nextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListIdentityProviderConfigs", method: "GET", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/identity-provider-configs`, @@ -494,13 +482,13 @@ export default class EKS { } async listNodegroups( - {abortSignal, ...params}: RequestConfig & s.ListNodegroupsRequest, + params: s.ListNodegroupsRequest, ): Promise { const query = new URLSearchParams; if (params["maxResults"] != null) query.set("maxResults", params["maxResults"]?.toString() ?? ""); if (params["nextToken"] != null) query.set("nextToken", params["nextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListNodegroups", method: "GET", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/node-groups`, @@ -515,11 +503,10 @@ export default class EKS { } async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceRequest, + params: s.ListTagsForResourceRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "ListTagsForResource", method: "GET", requestUri: cmnP.encodePath`/tags/${params["resourceArn"]}`, @@ -533,7 +520,7 @@ export default class EKS { } async listUpdates( - {abortSignal, ...params}: RequestConfig & s.ListUpdatesRequest, + params: s.ListUpdatesRequest, ): Promise { const query = new URLSearchParams; if (params["nodegroupName"] != null) query.set("nodegroupName", params["nodegroupName"]?.toString() ?? ""); @@ -541,7 +528,7 @@ export default class EKS { if (params["nextToken"] != null) query.set("nextToken", params["nextToken"]?.toString() ?? ""); if (params["maxResults"] != null) query.set("maxResults", params["maxResults"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListUpdates", method: "GET", requestUri: cmnP.encodePath`/clusters/${params["name"]}/updates`, @@ -556,13 +543,13 @@ export default class EKS { } async tagResource( - {abortSignal, ...params}: RequestConfig & s.TagResourceRequest, + params: s.TagResourceRequest, ): Promise { const body: jsonP.JSONObject = { tags: params["tags"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagResource", requestUri: cmnP.encodePath`/tags/${params["resourceArn"]}`, }); @@ -570,14 +557,14 @@ export default class EKS { } async untagResource( - {abortSignal, ...params}: RequestConfig & s.UntagResourceRequest, + params: s.UntagResourceRequest, ): Promise { const query = new URLSearchParams; for (const item of params["tagKeys"]) { query.append("tagKeys", item?.toString() ?? ""); } const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "UntagResource", method: "DELETE", requestUri: cmnP.encodePath`/tags/${params["resourceArn"]}`, @@ -586,7 +573,7 @@ export default class EKS { } async updateAddon( - {abortSignal, ...params}: RequestConfig & s.UpdateAddonRequest, + params: s.UpdateAddonRequest, ): Promise { const body: jsonP.JSONObject = { addonVersion: params["addonVersion"], @@ -595,7 +582,7 @@ export default class EKS { clientRequestToken: params["clientRequestToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateAddon", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/addons/${params["addonName"]}/update`, }); @@ -608,7 +595,7 @@ export default class EKS { } async updateClusterConfig( - {abortSignal, ...params}: RequestConfig & s.UpdateClusterConfigRequest, + params: s.UpdateClusterConfigRequest, ): Promise { const body: jsonP.JSONObject = { resourcesVpcConfig: fromVpcConfigRequest(params["resourcesVpcConfig"]), @@ -616,7 +603,7 @@ export default class EKS { clientRequestToken: params["clientRequestToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateClusterConfig", requestUri: cmnP.encodePath`/clusters/${params["name"]}/update-config`, }); @@ -629,14 +616,14 @@ export default class EKS { } async updateClusterVersion( - {abortSignal, ...params}: RequestConfig & s.UpdateClusterVersionRequest, + params: s.UpdateClusterVersionRequest, ): Promise { const body: jsonP.JSONObject = { version: params["version"], clientRequestToken: params["clientRequestToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateClusterVersion", requestUri: cmnP.encodePath`/clusters/${params["name"]}/updates`, }); @@ -649,7 +636,7 @@ export default class EKS { } async updateNodegroupConfig( - {abortSignal, ...params}: RequestConfig & s.UpdateNodegroupConfigRequest, + params: s.UpdateNodegroupConfigRequest, ): Promise { const body: jsonP.JSONObject = { labels: fromUpdateLabelsPayload(params["labels"]), @@ -657,7 +644,7 @@ export default class EKS { clientRequestToken: params["clientRequestToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateNodegroupConfig", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/node-groups/${params["nodegroupName"]}/update-config`, }); @@ -670,7 +657,7 @@ export default class EKS { } async updateNodegroupVersion( - {abortSignal, ...params}: RequestConfig & s.UpdateNodegroupVersionRequest, + params: s.UpdateNodegroupVersionRequest, ): Promise { const body: jsonP.JSONObject = { version: params["version"], @@ -680,7 +667,7 @@ export default class EKS { clientRequestToken: params["clientRequestToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateNodegroupVersion", requestUri: cmnP.encodePath`/clusters/${params["clusterName"]}/node-groups/${params["nodegroupName"]}/update-version`, }); @@ -696,7 +683,7 @@ export default class EKS { /** Checks state up to 40 times, 30 seconds apart (about 20 minutes max wait time). */ async waitForClusterActive( - params: RequestConfig & s.DescribeClusterRequest, + params: s.DescribeClusterRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ClusterActive'; for (let i = 0; i < 40; i++) { @@ -712,7 +699,7 @@ export default class EKS { /** Checks state up to 40 times, 30 seconds apart (about 20 minutes max wait time). */ async waitForClusterDeleted( - params: RequestConfig & s.DescribeClusterRequest, + params: s.DescribeClusterRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ClusterDeleted'; for (let i = 0; i < 40; i++) { @@ -732,7 +719,7 @@ export default class EKS { /** Checks state up to 80 times, 30 seconds apart (about 40 minutes max wait time). */ async waitForNodegroupActive( - params: RequestConfig & s.DescribeNodegroupRequest, + params: s.DescribeNodegroupRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state NodegroupActive'; for (let i = 0; i < 80; i++) { @@ -747,7 +734,7 @@ export default class EKS { /** Checks state up to 40 times, 30 seconds apart (about 20 minutes max wait time). */ async waitForNodegroupDeleted( - params: RequestConfig & s.DescribeNodegroupRequest, + params: s.DescribeNodegroupRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state NodegroupDeleted'; for (let i = 0; i < 40; i++) { @@ -765,7 +752,7 @@ export default class EKS { /** Checks state up to 60 times, 10 seconds apart (about 10 minutes max wait time). */ async waitForAddonActive( - params: RequestConfig & s.DescribeAddonRequest, + params: s.DescribeAddonRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state AddonActive'; for (let i = 0; i < 60; i++) { @@ -780,7 +767,7 @@ export default class EKS { /** Checks state up to 60 times, 10 seconds apart (about 10 minutes max wait time). */ async waitForAddonDeleted( - params: RequestConfig & s.DescribeAddonRequest, + params: s.DescribeAddonRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state AddonDeleted'; for (let i = 0; i < 60; i++) { diff --git a/lib/services/elb/mod.ts b/lib/services/elb/mod.ts index e081ea51..e8f3ee2b 100644 --- a/lib/services/elb/mod.ts +++ b/lib/services/elb/mod.ts @@ -1,16 +1,12 @@ // Autogenerated API client for: Elastic Load Balancing -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 ELB { +export class ELB { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(ELB.ApiMetadata); @@ -28,28 +24,28 @@ export default class ELB { }; async addTags( - {abortSignal, ...params}: RequestConfig & s.AddTagsInput, + params: s.AddTagsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["LoadBalancerNames"]) qsP.appendList(body, prefix+"LoadBalancerNames", params["LoadBalancerNames"], {"entryPrefix":".member."}) if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddTags", }); await resp.arrayBuffer(); // consume body without use } async applySecurityGroupsToLoadBalancer( - {abortSignal, ...params}: RequestConfig & s.ApplySecurityGroupsToLoadBalancerInput, + params: s.ApplySecurityGroupsToLoadBalancerInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["SecurityGroups"]) qsP.appendList(body, prefix+"SecurityGroups", params["SecurityGroups"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ApplySecurityGroupsToLoadBalancer", }); const xml = xmlP.readXmlResult(await resp.text(), "ApplySecurityGroupsToLoadBalancerResult"); @@ -59,14 +55,14 @@ export default class ELB { } async attachLoadBalancerToSubnets( - {abortSignal, ...params}: RequestConfig & s.AttachLoadBalancerToSubnetsInput, + params: s.AttachLoadBalancerToSubnetsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["Subnets"]) qsP.appendList(body, prefix+"Subnets", params["Subnets"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AttachLoadBalancerToSubnets", }); const xml = xmlP.readXmlResult(await resp.text(), "AttachLoadBalancerToSubnetsResult"); @@ -76,14 +72,14 @@ export default class ELB { } async configureHealthCheck( - {abortSignal, ...params}: RequestConfig & s.ConfigureHealthCheckInput, + params: s.ConfigureHealthCheckInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); HealthCheck_Serialize(body, prefix+"HealthCheck", params["HealthCheck"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ConfigureHealthCheck", }); const xml = xmlP.readXmlResult(await resp.text(), "ConfigureHealthCheckResult"); @@ -93,7 +89,7 @@ export default class ELB { } async createAppCookieStickinessPolicy( - {abortSignal, ...params}: RequestConfig & s.CreateAppCookieStickinessPolicyInput, + params: s.CreateAppCookieStickinessPolicyInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -101,14 +97,14 @@ export default class ELB { body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); body.append(prefix+"CookieName", (params["CookieName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateAppCookieStickinessPolicy", }); await resp.arrayBuffer(); // consume body without use } async createLBCookieStickinessPolicy( - {abortSignal, ...params}: RequestConfig & s.CreateLBCookieStickinessPolicyInput, + params: s.CreateLBCookieStickinessPolicyInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -116,14 +112,14 @@ export default class ELB { body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); if ("CookieExpirationPeriod" in params) body.append(prefix+"CookieExpirationPeriod", (params["CookieExpirationPeriod"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateLBCookieStickinessPolicy", }); await resp.arrayBuffer(); // consume body without use } async createLoadBalancer( - {abortSignal, ...params}: RequestConfig & s.CreateAccessPointInput, + params: s.CreateAccessPointInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -135,7 +131,7 @@ export default class ELB { if ("Scheme" in params) body.append(prefix+"Scheme", (params["Scheme"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateLoadBalancer", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateLoadBalancerResult"); @@ -145,21 +141,21 @@ export default class ELB { } async createLoadBalancerListeners( - {abortSignal, ...params}: RequestConfig & s.CreateLoadBalancerListenerInput, + params: s.CreateLoadBalancerListenerInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["Listeners"]) qsP.appendList(body, prefix+"Listeners", params["Listeners"], {"appender":Listener_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateLoadBalancerListeners", }); await resp.arrayBuffer(); // consume body without use } async createLoadBalancerPolicy( - {abortSignal, ...params}: RequestConfig & s.CreateLoadBalancerPolicyInput, + params: s.CreateLoadBalancerPolicyInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -168,62 +164,62 @@ export default class ELB { body.append(prefix+"PolicyTypeName", (params["PolicyTypeName"] ?? '').toString()); if (params["PolicyAttributes"]) qsP.appendList(body, prefix+"PolicyAttributes", params["PolicyAttributes"], {"appender":PolicyAttribute_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateLoadBalancerPolicy", }); await resp.arrayBuffer(); // consume body without use } async deleteLoadBalancer( - {abortSignal, ...params}: RequestConfig & s.DeleteAccessPointInput, + params: s.DeleteAccessPointInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteLoadBalancer", }); await resp.arrayBuffer(); // consume body without use } async deleteLoadBalancerListeners( - {abortSignal, ...params}: RequestConfig & s.DeleteLoadBalancerListenerInput, + params: s.DeleteLoadBalancerListenerInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["LoadBalancerPorts"]) qsP.appendList(body, prefix+"LoadBalancerPorts", params["LoadBalancerPorts"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteLoadBalancerListeners", }); await resp.arrayBuffer(); // consume body without use } async deleteLoadBalancerPolicy( - {abortSignal, ...params}: RequestConfig & s.DeleteLoadBalancerPolicyInput, + params: s.DeleteLoadBalancerPolicyInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteLoadBalancerPolicy", }); await resp.arrayBuffer(); // consume body without use } async deregisterInstancesFromLoadBalancer( - {abortSignal, ...params}: RequestConfig & s.DeregisterEndPointsInput, + params: s.DeregisterEndPointsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["Instances"]) qsP.appendList(body, prefix+"Instances", params["Instances"], {"appender":Instance_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterInstancesFromLoadBalancer", }); const xml = xmlP.readXmlResult(await resp.text(), "DeregisterInstancesFromLoadBalancerResult"); @@ -233,14 +229,14 @@ export default class ELB { } async describeAccountLimits( - {abortSignal, ...params}: RequestConfig & s.DescribeAccountLimitsInput = {}, + params: s.DescribeAccountLimitsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("PageSize" in params) body.append(prefix+"PageSize", (params["PageSize"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAccountLimits", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeAccountLimitsResult"); @@ -253,14 +249,14 @@ export default class ELB { } async describeInstanceHealth( - {abortSignal, ...params}: RequestConfig & s.DescribeEndPointStateInput, + params: s.DescribeEndPointStateInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["Instances"]) qsP.appendList(body, prefix+"Instances", params["Instances"], {"appender":Instance_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstanceHealth", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeInstanceHealthResult"); @@ -270,13 +266,13 @@ export default class ELB { } async describeLoadBalancerAttributes( - {abortSignal, ...params}: RequestConfig & s.DescribeLoadBalancerAttributesInput, + params: s.DescribeLoadBalancerAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLoadBalancerAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeLoadBalancerAttributesResult"); @@ -286,14 +282,14 @@ export default class ELB { } async describeLoadBalancerPolicies( - {abortSignal, ...params}: RequestConfig & s.DescribeLoadBalancerPoliciesInput = {}, + params: s.DescribeLoadBalancerPoliciesInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("LoadBalancerName" in params) body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["PolicyNames"]) qsP.appendList(body, prefix+"PolicyNames", params["PolicyNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLoadBalancerPolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeLoadBalancerPoliciesResult"); @@ -303,13 +299,13 @@ export default class ELB { } async describeLoadBalancerPolicyTypes( - {abortSignal, ...params}: RequestConfig & s.DescribeLoadBalancerPolicyTypesInput = {}, + params: s.DescribeLoadBalancerPolicyTypesInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["PolicyTypeNames"]) qsP.appendList(body, prefix+"PolicyTypeNames", params["PolicyTypeNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLoadBalancerPolicyTypes", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeLoadBalancerPolicyTypesResult"); @@ -319,7 +315,7 @@ export default class ELB { } async describeLoadBalancers( - {abortSignal, ...params}: RequestConfig & s.DescribeAccessPointsInput = {}, + params: s.DescribeAccessPointsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -327,7 +323,7 @@ export default class ELB { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("PageSize" in params) body.append(prefix+"PageSize", (params["PageSize"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLoadBalancers", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeLoadBalancersResult"); @@ -340,13 +336,13 @@ export default class ELB { } async describeTags( - {abortSignal, ...params}: RequestConfig & s.DescribeTagsInput, + params: s.DescribeTagsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["LoadBalancerNames"]) qsP.appendList(body, prefix+"LoadBalancerNames", params["LoadBalancerNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTags", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeTagsResult"); @@ -356,14 +352,14 @@ export default class ELB { } async detachLoadBalancerFromSubnets( - {abortSignal, ...params}: RequestConfig & s.DetachLoadBalancerFromSubnetsInput, + params: s.DetachLoadBalancerFromSubnetsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["Subnets"]) qsP.appendList(body, prefix+"Subnets", params["Subnets"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DetachLoadBalancerFromSubnets", }); const xml = xmlP.readXmlResult(await resp.text(), "DetachLoadBalancerFromSubnetsResult"); @@ -373,14 +369,14 @@ export default class ELB { } async disableAvailabilityZonesForLoadBalancer( - {abortSignal, ...params}: RequestConfig & s.RemoveAvailabilityZonesInput, + params: s.RemoveAvailabilityZonesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["AvailabilityZones"]) qsP.appendList(body, prefix+"AvailabilityZones", params["AvailabilityZones"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableAvailabilityZonesForLoadBalancer", }); const xml = xmlP.readXmlResult(await resp.text(), "DisableAvailabilityZonesForLoadBalancerResult"); @@ -390,14 +386,14 @@ export default class ELB { } async enableAvailabilityZonesForLoadBalancer( - {abortSignal, ...params}: RequestConfig & s.AddAvailabilityZonesInput, + params: s.AddAvailabilityZonesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["AvailabilityZones"]) qsP.appendList(body, prefix+"AvailabilityZones", params["AvailabilityZones"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableAvailabilityZonesForLoadBalancer", }); const xml = xmlP.readXmlResult(await resp.text(), "EnableAvailabilityZonesForLoadBalancerResult"); @@ -407,14 +403,14 @@ export default class ELB { } async modifyLoadBalancerAttributes( - {abortSignal, ...params}: RequestConfig & s.ModifyLoadBalancerAttributesInput, + params: s.ModifyLoadBalancerAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); LoadBalancerAttributes_Serialize(body, prefix+"LoadBalancerAttributes", params["LoadBalancerAttributes"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyLoadBalancerAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyLoadBalancerAttributesResult"); @@ -427,14 +423,14 @@ export default class ELB { } async registerInstancesWithLoadBalancer( - {abortSignal, ...params}: RequestConfig & s.RegisterEndPointsInput, + params: s.RegisterEndPointsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerName", (params["LoadBalancerName"] ?? '').toString()); if (params["Instances"]) qsP.appendList(body, prefix+"Instances", params["Instances"], {"appender":Instance_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterInstancesWithLoadBalancer", }); const xml = xmlP.readXmlResult(await resp.text(), "RegisterInstancesWithLoadBalancerResult"); @@ -444,21 +440,21 @@ export default class ELB { } async removeTags( - {abortSignal, ...params}: RequestConfig & s.RemoveTagsInput, + params: s.RemoveTagsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["LoadBalancerNames"]) qsP.appendList(body, prefix+"LoadBalancerNames", params["LoadBalancerNames"], {"entryPrefix":".member."}) if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":TagKeyOnly_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveTags", }); await resp.arrayBuffer(); // consume body without use } async setLoadBalancerListenerSSLCertificate( - {abortSignal, ...params}: RequestConfig & s.SetLoadBalancerListenerSSLCertificateInput, + params: s.SetLoadBalancerListenerSSLCertificateInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -466,14 +462,14 @@ export default class ELB { body.append(prefix+"LoadBalancerPort", (params["LoadBalancerPort"] ?? '').toString()); body.append(prefix+"SSLCertificateId", (params["SSLCertificateId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetLoadBalancerListenerSSLCertificate", }); await resp.arrayBuffer(); // consume body without use } async setLoadBalancerPoliciesForBackendServer( - {abortSignal, ...params}: RequestConfig & s.SetLoadBalancerPoliciesForBackendServerInput, + params: s.SetLoadBalancerPoliciesForBackendServerInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -481,14 +477,14 @@ export default class ELB { body.append(prefix+"InstancePort", (params["InstancePort"] ?? '').toString()); if (params["PolicyNames"]) qsP.appendList(body, prefix+"PolicyNames", params["PolicyNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetLoadBalancerPoliciesForBackendServer", }); await resp.arrayBuffer(); // consume body without use } async setLoadBalancerPoliciesOfListener( - {abortSignal, ...params}: RequestConfig & s.SetLoadBalancerPoliciesOfListenerInput, + params: s.SetLoadBalancerPoliciesOfListenerInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -496,7 +492,7 @@ export default class ELB { body.append(prefix+"LoadBalancerPort", (params["LoadBalancerPort"] ?? '').toString()); if (params["PolicyNames"]) qsP.appendList(body, prefix+"PolicyNames", params["PolicyNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetLoadBalancerPoliciesOfListener", }); await resp.arrayBuffer(); // consume body without use @@ -506,7 +502,7 @@ export default class ELB { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForInstanceDeregistered( - params: RequestConfig & s.DescribeEndPointStateInput, + params: s.DescribeEndPointStateInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state InstanceDeregistered'; for (let i = 0; i < 40; i++) { @@ -524,7 +520,7 @@ export default class ELB { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForAnyInstanceInService( - params: RequestConfig & s.DescribeEndPointStateInput, + params: s.DescribeEndPointStateInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state AnyInstanceInService'; for (let i = 0; i < 40; i++) { @@ -537,7 +533,7 @@ export default class ELB { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForInstanceInService( - params: RequestConfig & s.DescribeEndPointStateInput, + params: s.DescribeEndPointStateInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state InstanceInService'; for (let i = 0; i < 40; i++) { diff --git a/lib/services/elbv2/mod.ts b/lib/services/elbv2/mod.ts index 202065d6..df8246ad 100644 --- a/lib/services/elbv2/mod.ts +++ b/lib/services/elbv2/mod.ts @@ -1,16 +1,12 @@ // Autogenerated API client for: Elastic Load Balancing -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 ELBv2 { +export class ELBv2 { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(ELBv2.ApiMetadata); @@ -29,14 +25,14 @@ export default class ELBv2 { }; async addListenerCertificates( - {abortSignal, ...params}: RequestConfig & s.AddListenerCertificatesInput, + params: s.AddListenerCertificatesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ListenerArn", (params["ListenerArn"] ?? '').toString()); if (params["Certificates"]) qsP.appendList(body, prefix+"Certificates", params["Certificates"], {"appender":Certificate_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddListenerCertificates", }); const xml = xmlP.readXmlResult(await resp.text(), "AddListenerCertificatesResult"); @@ -46,21 +42,21 @@ export default class ELBv2 { } async addTags( - {abortSignal, ...params}: RequestConfig & s.AddTagsInput, + params: s.AddTagsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["ResourceArns"]) qsP.appendList(body, prefix+"ResourceArns", params["ResourceArns"], {"entryPrefix":".member."}) if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddTags", }); await resp.arrayBuffer(); // consume body without use } async createListener( - {abortSignal, ...params}: RequestConfig & s.CreateListenerInput, + params: s.CreateListenerInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -73,7 +69,7 @@ export default class ELBv2 { if (params["AlpnPolicy"]) qsP.appendList(body, prefix+"AlpnPolicy", params["AlpnPolicy"], {"entryPrefix":".member."}) if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateListener", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateListenerResult"); @@ -83,7 +79,7 @@ export default class ELBv2 { } async createLoadBalancer( - {abortSignal, ...params}: RequestConfig & s.CreateLoadBalancerInput, + params: s.CreateLoadBalancerInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -97,7 +93,7 @@ export default class ELBv2 { if ("IpAddressType" in params) body.append(prefix+"IpAddressType", (params["IpAddressType"] ?? '').toString()); if ("CustomerOwnedIpv4Pool" in params) body.append(prefix+"CustomerOwnedIpv4Pool", (params["CustomerOwnedIpv4Pool"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateLoadBalancer", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateLoadBalancerResult"); @@ -107,7 +103,7 @@ export default class ELBv2 { } async createRule( - {abortSignal, ...params}: RequestConfig & s.CreateRuleInput, + params: s.CreateRuleInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -117,7 +113,7 @@ export default class ELBv2 { if (params["Actions"]) qsP.appendList(body, prefix+"Actions", params["Actions"], {"appender":Action_Serialize,"entryPrefix":".member."}) if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateRule", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateRuleResult"); @@ -127,7 +123,7 @@ export default class ELBv2 { } async createTargetGroup( - {abortSignal, ...params}: RequestConfig & s.CreateTargetGroupInput, + params: s.CreateTargetGroupInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -148,7 +144,7 @@ export default class ELBv2 { if ("TargetType" in params) body.append(prefix+"TargetType", (params["TargetType"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTargetGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateTargetGroupResult"); @@ -158,80 +154,80 @@ export default class ELBv2 { } async deleteListener( - {abortSignal, ...params}: RequestConfig & s.DeleteListenerInput, + params: s.DeleteListenerInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ListenerArn", (params["ListenerArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteListener", }); await resp.arrayBuffer(); // consume body without use } async deleteLoadBalancer( - {abortSignal, ...params}: RequestConfig & s.DeleteLoadBalancerInput, + params: s.DeleteLoadBalancerInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerArn", (params["LoadBalancerArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteLoadBalancer", }); await resp.arrayBuffer(); // consume body without use } async deleteRule( - {abortSignal, ...params}: RequestConfig & s.DeleteRuleInput, + params: s.DeleteRuleInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RuleArn", (params["RuleArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteRule", }); await resp.arrayBuffer(); // consume body without use } async deleteTargetGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteTargetGroupInput, + params: s.DeleteTargetGroupInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TargetGroupArn", (params["TargetGroupArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTargetGroup", }); await resp.arrayBuffer(); // consume body without use } async deregisterTargets( - {abortSignal, ...params}: RequestConfig & s.DeregisterTargetsInput, + params: s.DeregisterTargetsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TargetGroupArn", (params["TargetGroupArn"] ?? '').toString()); if (params["Targets"]) qsP.appendList(body, prefix+"Targets", params["Targets"], {"appender":TargetDescription_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterTargets", }); await resp.arrayBuffer(); // consume body without use } async describeAccountLimits( - {abortSignal, ...params}: RequestConfig & s.DescribeAccountLimitsInput = {}, + params: s.DescribeAccountLimitsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("PageSize" in params) body.append(prefix+"PageSize", (params["PageSize"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAccountLimits", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeAccountLimitsResult"); @@ -244,7 +240,7 @@ export default class ELBv2 { } async describeListenerCertificates( - {abortSignal, ...params}: RequestConfig & s.DescribeListenerCertificatesInput, + params: s.DescribeListenerCertificatesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -252,7 +248,7 @@ export default class ELBv2 { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("PageSize" in params) body.append(prefix+"PageSize", (params["PageSize"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeListenerCertificates", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeListenerCertificatesResult"); @@ -265,7 +261,7 @@ export default class ELBv2 { } async describeListeners( - {abortSignal, ...params}: RequestConfig & s.DescribeListenersInput = {}, + params: s.DescribeListenersInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -274,7 +270,7 @@ export default class ELBv2 { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("PageSize" in params) body.append(prefix+"PageSize", (params["PageSize"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeListeners", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeListenersResult"); @@ -287,13 +283,13 @@ export default class ELBv2 { } async describeLoadBalancerAttributes( - {abortSignal, ...params}: RequestConfig & s.DescribeLoadBalancerAttributesInput, + params: s.DescribeLoadBalancerAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerArn", (params["LoadBalancerArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLoadBalancerAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeLoadBalancerAttributesResult"); @@ -303,7 +299,7 @@ export default class ELBv2 { } async describeLoadBalancers( - {abortSignal, ...params}: RequestConfig & s.DescribeLoadBalancersInput = {}, + params: s.DescribeLoadBalancersInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -312,7 +308,7 @@ export default class ELBv2 { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("PageSize" in params) body.append(prefix+"PageSize", (params["PageSize"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLoadBalancers", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeLoadBalancersResult"); @@ -325,7 +321,7 @@ export default class ELBv2 { } async describeRules( - {abortSignal, ...params}: RequestConfig & s.DescribeRulesInput = {}, + params: s.DescribeRulesInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -334,7 +330,7 @@ export default class ELBv2 { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("PageSize" in params) body.append(prefix+"PageSize", (params["PageSize"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeRules", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeRulesResult"); @@ -347,7 +343,7 @@ export default class ELBv2 { } async describeSSLPolicies( - {abortSignal, ...params}: RequestConfig & s.DescribeSSLPoliciesInput = {}, + params: s.DescribeSSLPoliciesInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -355,7 +351,7 @@ export default class ELBv2 { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("PageSize" in params) body.append(prefix+"PageSize", (params["PageSize"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSSLPolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeSSLPoliciesResult"); @@ -368,13 +364,13 @@ export default class ELBv2 { } async describeTags( - {abortSignal, ...params}: RequestConfig & s.DescribeTagsInput, + params: s.DescribeTagsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["ResourceArns"]) qsP.appendList(body, prefix+"ResourceArns", params["ResourceArns"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTags", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeTagsResult"); @@ -384,13 +380,13 @@ export default class ELBv2 { } async describeTargetGroupAttributes( - {abortSignal, ...params}: RequestConfig & s.DescribeTargetGroupAttributesInput, + params: s.DescribeTargetGroupAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TargetGroupArn", (params["TargetGroupArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTargetGroupAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeTargetGroupAttributesResult"); @@ -400,7 +396,7 @@ export default class ELBv2 { } async describeTargetGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeTargetGroupsInput = {}, + params: s.DescribeTargetGroupsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -410,7 +406,7 @@ export default class ELBv2 { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("PageSize" in params) body.append(prefix+"PageSize", (params["PageSize"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTargetGroups", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeTargetGroupsResult"); @@ -423,14 +419,14 @@ export default class ELBv2 { } async describeTargetHealth( - {abortSignal, ...params}: RequestConfig & s.DescribeTargetHealthInput, + params: s.DescribeTargetHealthInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TargetGroupArn", (params["TargetGroupArn"] ?? '').toString()); if (params["Targets"]) qsP.appendList(body, prefix+"Targets", params["Targets"], {"appender":TargetDescription_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeTargetHealth", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeTargetHealthResult"); @@ -440,7 +436,7 @@ export default class ELBv2 { } async modifyListener( - {abortSignal, ...params}: RequestConfig & s.ModifyListenerInput, + params: s.ModifyListenerInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -452,7 +448,7 @@ export default class ELBv2 { if (params["DefaultActions"]) qsP.appendList(body, prefix+"DefaultActions", params["DefaultActions"], {"appender":Action_Serialize,"entryPrefix":".member."}) if (params["AlpnPolicy"]) qsP.appendList(body, prefix+"AlpnPolicy", params["AlpnPolicy"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyListener", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyListenerResult"); @@ -462,14 +458,14 @@ export default class ELBv2 { } async modifyLoadBalancerAttributes( - {abortSignal, ...params}: RequestConfig & s.ModifyLoadBalancerAttributesInput, + params: s.ModifyLoadBalancerAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerArn", (params["LoadBalancerArn"] ?? '').toString()); if (params["Attributes"]) qsP.appendList(body, prefix+"Attributes", params["Attributes"], {"appender":LoadBalancerAttribute_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyLoadBalancerAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyLoadBalancerAttributesResult"); @@ -479,7 +475,7 @@ export default class ELBv2 { } async modifyRule( - {abortSignal, ...params}: RequestConfig & s.ModifyRuleInput, + params: s.ModifyRuleInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -487,7 +483,7 @@ export default class ELBv2 { if (params["Conditions"]) qsP.appendList(body, prefix+"Conditions", params["Conditions"], {"appender":RuleCondition_Serialize,"entryPrefix":".member."}) if (params["Actions"]) qsP.appendList(body, prefix+"Actions", params["Actions"], {"appender":Action_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyRule", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyRuleResult"); @@ -497,7 +493,7 @@ export default class ELBv2 { } async modifyTargetGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyTargetGroupInput, + params: s.ModifyTargetGroupInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -512,7 +508,7 @@ export default class ELBv2 { if ("UnhealthyThresholdCount" in params) body.append(prefix+"UnhealthyThresholdCount", (params["UnhealthyThresholdCount"] ?? '').toString()); if (params["Matcher"] != null) Matcher_Serialize(body, prefix+"Matcher", params["Matcher"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyTargetGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyTargetGroupResult"); @@ -522,14 +518,14 @@ export default class ELBv2 { } async modifyTargetGroupAttributes( - {abortSignal, ...params}: RequestConfig & s.ModifyTargetGroupAttributesInput, + params: s.ModifyTargetGroupAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TargetGroupArn", (params["TargetGroupArn"] ?? '').toString()); if (params["Attributes"]) qsP.appendList(body, prefix+"Attributes", params["Attributes"], {"appender":TargetGroupAttribute_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyTargetGroupAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyTargetGroupAttributesResult"); @@ -539,56 +535,56 @@ export default class ELBv2 { } async registerTargets( - {abortSignal, ...params}: RequestConfig & s.RegisterTargetsInput, + params: s.RegisterTargetsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TargetGroupArn", (params["TargetGroupArn"] ?? '').toString()); if (params["Targets"]) qsP.appendList(body, prefix+"Targets", params["Targets"], {"appender":TargetDescription_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterTargets", }); await resp.arrayBuffer(); // consume body without use } async removeListenerCertificates( - {abortSignal, ...params}: RequestConfig & s.RemoveListenerCertificatesInput, + params: s.RemoveListenerCertificatesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ListenerArn", (params["ListenerArn"] ?? '').toString()); if (params["Certificates"]) qsP.appendList(body, prefix+"Certificates", params["Certificates"], {"appender":Certificate_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveListenerCertificates", }); await resp.arrayBuffer(); // consume body without use } async removeTags( - {abortSignal, ...params}: RequestConfig & s.RemoveTagsInput, + params: s.RemoveTagsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["ResourceArns"]) qsP.appendList(body, prefix+"ResourceArns", params["ResourceArns"], {"entryPrefix":".member."}) if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveTags", }); await resp.arrayBuffer(); // consume body without use } async setIpAddressType( - {abortSignal, ...params}: RequestConfig & s.SetIpAddressTypeInput, + params: s.SetIpAddressTypeInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerArn", (params["LoadBalancerArn"] ?? '').toString()); body.append(prefix+"IpAddressType", (params["IpAddressType"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetIpAddressType", }); const xml = xmlP.readXmlResult(await resp.text(), "SetIpAddressTypeResult"); @@ -598,13 +594,13 @@ export default class ELBv2 { } async setRulePriorities( - {abortSignal, ...params}: RequestConfig & s.SetRulePrioritiesInput, + params: s.SetRulePrioritiesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["RulePriorities"]) qsP.appendList(body, prefix+"RulePriorities", params["RulePriorities"], {"appender":RulePriorityPair_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetRulePriorities", }); const xml = xmlP.readXmlResult(await resp.text(), "SetRulePrioritiesResult"); @@ -614,14 +610,14 @@ export default class ELBv2 { } async setSecurityGroups( - {abortSignal, ...params}: RequestConfig & s.SetSecurityGroupsInput, + params: s.SetSecurityGroupsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"LoadBalancerArn", (params["LoadBalancerArn"] ?? '').toString()); if (params["SecurityGroups"]) qsP.appendList(body, prefix+"SecurityGroups", params["SecurityGroups"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetSecurityGroups", }); const xml = xmlP.readXmlResult(await resp.text(), "SetSecurityGroupsResult"); @@ -631,7 +627,7 @@ export default class ELBv2 { } async setSubnets( - {abortSignal, ...params}: RequestConfig & s.SetSubnetsInput, + params: s.SetSubnetsInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -640,7 +636,7 @@ export default class ELBv2 { if (params["SubnetMappings"]) qsP.appendList(body, prefix+"SubnetMappings", params["SubnetMappings"], {"appender":SubnetMapping_Serialize,"entryPrefix":".member."}) if ("IpAddressType" in params) body.append(prefix+"IpAddressType", (params["IpAddressType"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetSubnets", }); const xml = xmlP.readXmlResult(await resp.text(), "SetSubnetsResult"); @@ -654,7 +650,7 @@ export default class ELBv2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForLoadBalancerExists( - params: RequestConfig & s.DescribeLoadBalancersInput, + params: s.DescribeLoadBalancersInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state LoadBalancerExists'; for (let i = 0; i < 40; i++) { @@ -671,7 +667,7 @@ export default class ELBv2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForLoadBalancerAvailable( - params: RequestConfig & s.DescribeLoadBalancersInput, + params: s.DescribeLoadBalancersInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state LoadBalancerAvailable'; for (let i = 0; i < 40; i++) { @@ -690,7 +686,7 @@ export default class ELBv2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForLoadBalancersDeleted( - params: RequestConfig & s.DescribeLoadBalancersInput, + params: s.DescribeLoadBalancersInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state LoadBalancersDeleted'; for (let i = 0; i < 40; i++) { @@ -708,7 +704,7 @@ export default class ELBv2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForTargetInService( - params: RequestConfig & s.DescribeTargetHealthInput, + params: s.DescribeTargetHealthInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state TargetInService'; for (let i = 0; i < 40; i++) { @@ -725,7 +721,7 @@ export default class ELBv2 { /** Checks state up to 40 times, 15 seconds apart (about 10 minutes max wait time). */ async waitForTargetDeregistered( - params: RequestConfig & s.DescribeTargetHealthInput, + params: s.DescribeTargetHealthInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state TargetDeregistered'; for (let i = 0; i < 40; i++) { diff --git a/lib/services/es/mod.ts b/lib/services/es/mod.ts index ac13c150..d9caa8a9 100644 --- a/lib/services/es/mod.ts +++ b/lib/services/es/mod.ts @@ -1,16 +1,12 @@ // Autogenerated API client for: Amazon Elasticsearch Service -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 ES { +export class ES { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(ES.ApiMetadata); @@ -27,11 +23,10 @@ export default class ES { }; async acceptInboundCrossClusterSearchConnection( - {abortSignal, ...params}: RequestConfig & s.AcceptInboundCrossClusterSearchConnectionRequest, + params: s.AcceptInboundCrossClusterSearchConnectionRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "AcceptInboundCrossClusterSearchConnection", method: "PUT", requestUri: cmnP.encodePath`/2015-01-01/es/ccs/inboundConnection/${params["CrossClusterSearchConnectionId"]}/accept`, @@ -45,14 +40,14 @@ export default class ES { } async addTags( - {abortSignal, ...params}: RequestConfig & s.AddTagsRequest, + params: s.AddTagsRequest, ): Promise { const body: jsonP.JSONObject = { ARN: params["ARN"], TagList: params["TagList"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddTags", requestUri: "/2015-01-01/tags", }); @@ -60,11 +55,10 @@ export default class ES { } async associatePackage( - {abortSignal, ...params}: RequestConfig & s.AssociatePackageRequest, + params: s.AssociatePackageRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "AssociatePackage", requestUri: cmnP.encodePath`/2015-01-01/packages/associate/${params["PackageID"]}/${params["DomainName"]}`, }); @@ -77,13 +71,13 @@ export default class ES { } async cancelElasticsearchServiceSoftwareUpdate( - {abortSignal, ...params}: RequestConfig & s.CancelElasticsearchServiceSoftwareUpdateRequest, + params: s.CancelElasticsearchServiceSoftwareUpdateRequest, ): Promise { const body: jsonP.JSONObject = { DomainName: params["DomainName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelElasticsearchServiceSoftwareUpdate", requestUri: "/2015-01-01/es/serviceSoftwareUpdate/cancel", }); @@ -96,7 +90,7 @@ export default class ES { } async createElasticsearchDomain( - {abortSignal, ...params}: RequestConfig & s.CreateElasticsearchDomainRequest, + params: s.CreateElasticsearchDomainRequest, ): Promise { const body: jsonP.JSONObject = { DomainName: params["DomainName"], @@ -117,7 +111,7 @@ export default class ES { TagList: params["TagList"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateElasticsearchDomain", requestUri: "/2015-01-01/es/domain", }); @@ -130,7 +124,7 @@ export default class ES { } async createOutboundCrossClusterSearchConnection( - {abortSignal, ...params}: RequestConfig & s.CreateOutboundCrossClusterSearchConnectionRequest, + params: s.CreateOutboundCrossClusterSearchConnectionRequest, ): Promise { const body: jsonP.JSONObject = { SourceDomainInfo: fromDomainInformation(params["SourceDomainInfo"]), @@ -138,7 +132,7 @@ export default class ES { ConnectionAlias: params["ConnectionAlias"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateOutboundCrossClusterSearchConnection", requestUri: "/2015-01-01/es/ccs/outboundConnection", }); @@ -155,7 +149,7 @@ export default class ES { } async createPackage( - {abortSignal, ...params}: RequestConfig & s.CreatePackageRequest, + params: s.CreatePackageRequest, ): Promise { const body: jsonP.JSONObject = { PackageName: params["PackageName"], @@ -164,7 +158,7 @@ export default class ES { PackageSource: fromPackageSource(params["PackageSource"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreatePackage", requestUri: "/2015-01-01/packages", }); @@ -177,11 +171,10 @@ export default class ES { } async deleteElasticsearchDomain( - {abortSignal, ...params}: RequestConfig & s.DeleteElasticsearchDomainRequest, + params: s.DeleteElasticsearchDomainRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteElasticsearchDomain", method: "DELETE", requestUri: cmnP.encodePath`/2015-01-01/es/domain/${params["DomainName"]}`, @@ -194,11 +187,8 @@ export default class ES { }, await resp.json()); } - async deleteElasticsearchServiceRole( - {abortSignal}: RequestConfig = {}, - ): Promise { + async deleteElasticsearchServiceRole(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteElasticsearchServiceRole", method: "DELETE", requestUri: "/2015-01-01/es/role", @@ -207,11 +197,10 @@ export default class ES { } async deleteInboundCrossClusterSearchConnection( - {abortSignal, ...params}: RequestConfig & s.DeleteInboundCrossClusterSearchConnectionRequest, + params: s.DeleteInboundCrossClusterSearchConnectionRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteInboundCrossClusterSearchConnection", method: "DELETE", requestUri: cmnP.encodePath`/2015-01-01/es/ccs/inboundConnection/${params["CrossClusterSearchConnectionId"]}`, @@ -225,11 +214,10 @@ export default class ES { } async deleteOutboundCrossClusterSearchConnection( - {abortSignal, ...params}: RequestConfig & s.DeleteOutboundCrossClusterSearchConnectionRequest, + params: s.DeleteOutboundCrossClusterSearchConnectionRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteOutboundCrossClusterSearchConnection", method: "DELETE", requestUri: cmnP.encodePath`/2015-01-01/es/ccs/outboundConnection/${params["CrossClusterSearchConnectionId"]}`, @@ -243,11 +231,10 @@ export default class ES { } async deletePackage( - {abortSignal, ...params}: RequestConfig & s.DeletePackageRequest, + params: s.DeletePackageRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeletePackage", method: "DELETE", requestUri: cmnP.encodePath`/2015-01-01/packages/${params["PackageID"]}`, @@ -261,14 +248,14 @@ export default class ES { } async describeDomainAutoTunes( - {abortSignal, ...params}: RequestConfig & s.DescribeDomainAutoTunesRequest, + params: s.DescribeDomainAutoTunesRequest, ): Promise { const body: jsonP.JSONObject = { MaxResults: params["MaxResults"], NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDomainAutoTunes", method: "GET", requestUri: cmnP.encodePath`/2015-01-01/es/domain/${params["DomainName"]}/autoTunes`, @@ -283,11 +270,10 @@ export default class ES { } async describeElasticsearchDomain( - {abortSignal, ...params}: RequestConfig & s.DescribeElasticsearchDomainRequest, + params: s.DescribeElasticsearchDomainRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DescribeElasticsearchDomain", method: "GET", requestUri: cmnP.encodePath`/2015-01-01/es/domain/${params["DomainName"]}`, @@ -301,11 +287,10 @@ export default class ES { } async describeElasticsearchDomainConfig( - {abortSignal, ...params}: RequestConfig & s.DescribeElasticsearchDomainConfigRequest, + params: s.DescribeElasticsearchDomainConfigRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DescribeElasticsearchDomainConfig", method: "GET", requestUri: cmnP.encodePath`/2015-01-01/es/domain/${params["DomainName"]}/config`, @@ -319,13 +304,13 @@ export default class ES { } async describeElasticsearchDomains( - {abortSignal, ...params}: RequestConfig & s.DescribeElasticsearchDomainsRequest, + params: s.DescribeElasticsearchDomainsRequest, ): Promise { const body: jsonP.JSONObject = { DomainNames: params["DomainNames"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeElasticsearchDomains", requestUri: "/2015-01-01/es/domain-info", }); @@ -338,12 +323,12 @@ export default class ES { } async describeElasticsearchInstanceTypeLimits( - {abortSignal, ...params}: RequestConfig & s.DescribeElasticsearchInstanceTypeLimitsRequest, + params: s.DescribeElasticsearchInstanceTypeLimitsRequest, ): Promise { const query = new URLSearchParams; if (params["DomainName"] != null) query.set("domainName", params["DomainName"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "DescribeElasticsearchInstanceTypeLimits", method: "GET", requestUri: cmnP.encodePath`/2015-01-01/es/instanceTypeLimits/${params["ElasticsearchVersion"]}/${params["InstanceType"]}`, @@ -357,7 +342,7 @@ export default class ES { } async describeInboundCrossClusterSearchConnections( - {abortSignal, ...params}: RequestConfig & s.DescribeInboundCrossClusterSearchConnectionsRequest = {}, + params: s.DescribeInboundCrossClusterSearchConnectionsRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromFilter(x)), @@ -365,7 +350,7 @@ export default class ES { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInboundCrossClusterSearchConnections", requestUri: "/2015-01-01/es/ccs/inboundConnection/search", }); @@ -379,7 +364,7 @@ export default class ES { } async describeOutboundCrossClusterSearchConnections( - {abortSignal, ...params}: RequestConfig & s.DescribeOutboundCrossClusterSearchConnectionsRequest = {}, + params: s.DescribeOutboundCrossClusterSearchConnectionsRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromFilter(x)), @@ -387,7 +372,7 @@ export default class ES { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeOutboundCrossClusterSearchConnections", requestUri: "/2015-01-01/es/ccs/outboundConnection/search", }); @@ -401,7 +386,7 @@ export default class ES { } async describePackages( - {abortSignal, ...params}: RequestConfig & s.DescribePackagesRequest = {}, + params: s.DescribePackagesRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromDescribePackagesFilter(x)), @@ -409,7 +394,7 @@ export default class ES { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribePackages", requestUri: "/2015-01-01/packages/describe", }); @@ -423,14 +408,14 @@ export default class ES { } async describeReservedElasticsearchInstanceOfferings( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedElasticsearchInstanceOfferingsRequest = {}, + params: s.DescribeReservedElasticsearchInstanceOfferingsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["ReservedElasticsearchInstanceOfferingId"] != null) query.set("offeringId", params["ReservedElasticsearchInstanceOfferingId"]?.toString() ?? ""); if (params["MaxResults"] != null) query.set("maxResults", params["MaxResults"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("nextToken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "DescribeReservedElasticsearchInstanceOfferings", method: "GET", requestUri: "/2015-01-01/es/reservedInstanceOfferings", @@ -445,14 +430,14 @@ export default class ES { } async describeReservedElasticsearchInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedElasticsearchInstancesRequest = {}, + params: s.DescribeReservedElasticsearchInstancesRequest = {}, ): Promise { const query = new URLSearchParams; if (params["ReservedElasticsearchInstanceId"] != null) query.set("reservationId", params["ReservedElasticsearchInstanceId"]?.toString() ?? ""); if (params["MaxResults"] != null) query.set("maxResults", params["MaxResults"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("nextToken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "DescribeReservedElasticsearchInstances", method: "GET", requestUri: "/2015-01-01/es/reservedInstances", @@ -467,11 +452,10 @@ export default class ES { } async dissociatePackage( - {abortSignal, ...params}: RequestConfig & s.DissociatePackageRequest, + params: s.DissociatePackageRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DissociatePackage", requestUri: cmnP.encodePath`/2015-01-01/packages/dissociate/${params["PackageID"]}/${params["DomainName"]}`, }); @@ -484,12 +468,12 @@ export default class ES { } async getCompatibleElasticsearchVersions( - {abortSignal, ...params}: RequestConfig & s.GetCompatibleElasticsearchVersionsRequest = {}, + params: s.GetCompatibleElasticsearchVersionsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["DomainName"] != null) query.set("domainName", params["DomainName"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetCompatibleElasticsearchVersions", method: "GET", requestUri: "/2015-01-01/es/compatibleVersions", @@ -503,13 +487,13 @@ export default class ES { } async getPackageVersionHistory( - {abortSignal, ...params}: RequestConfig & s.GetPackageVersionHistoryRequest, + params: s.GetPackageVersionHistoryRequest, ): Promise { const query = new URLSearchParams; if (params["MaxResults"] != null) query.set("maxResults", params["MaxResults"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("nextToken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetPackageVersionHistory", method: "GET", requestUri: cmnP.encodePath`/2015-01-01/packages/${params["PackageID"]}/history`, @@ -525,13 +509,13 @@ export default class ES { } async getUpgradeHistory( - {abortSignal, ...params}: RequestConfig & s.GetUpgradeHistoryRequest, + params: s.GetUpgradeHistoryRequest, ): Promise { const query = new URLSearchParams; if (params["MaxResults"] != null) query.set("maxResults", params["MaxResults"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("nextToken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetUpgradeHistory", method: "GET", requestUri: cmnP.encodePath`/2015-01-01/es/upgradeDomain/${params["DomainName"]}/history`, @@ -546,11 +530,10 @@ export default class ES { } async getUpgradeStatus( - {abortSignal, ...params}: RequestConfig & s.GetUpgradeStatusRequest, + params: s.GetUpgradeStatusRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetUpgradeStatus", method: "GET", requestUri: cmnP.encodePath`/2015-01-01/es/upgradeDomain/${params["DomainName"]}/status`, @@ -565,11 +548,8 @@ export default class ES { }, await resp.json()); } - async listDomainNames( - {abortSignal}: RequestConfig = {}, - ): Promise { + async listDomainNames(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "ListDomainNames", method: "GET", requestUri: "/2015-01-01/domain", @@ -583,13 +563,13 @@ export default class ES { } async listDomainsForPackage( - {abortSignal, ...params}: RequestConfig & s.ListDomainsForPackageRequest, + params: s.ListDomainsForPackageRequest, ): Promise { const query = new URLSearchParams; if (params["MaxResults"] != null) query.set("maxResults", params["MaxResults"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("nextToken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListDomainsForPackage", method: "GET", requestUri: cmnP.encodePath`/2015-01-01/packages/${params["PackageID"]}/domains`, @@ -604,14 +584,14 @@ export default class ES { } async listElasticsearchInstanceTypes( - {abortSignal, ...params}: RequestConfig & s.ListElasticsearchInstanceTypesRequest, + params: s.ListElasticsearchInstanceTypesRequest, ): Promise { const query = new URLSearchParams; if (params["DomainName"] != null) query.set("domainName", params["DomainName"]?.toString() ?? ""); if (params["MaxResults"] != null) query.set("maxResults", params["MaxResults"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("nextToken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListElasticsearchInstanceTypes", method: "GET", requestUri: cmnP.encodePath`/2015-01-01/es/instanceTypes/${params["ElasticsearchVersion"]}`, @@ -626,13 +606,13 @@ export default class ES { } async listElasticsearchVersions( - {abortSignal, ...params}: RequestConfig & s.ListElasticsearchVersionsRequest = {}, + params: s.ListElasticsearchVersionsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["MaxResults"] != null) query.set("maxResults", params["MaxResults"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("nextToken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListElasticsearchVersions", method: "GET", requestUri: "/2015-01-01/es/versions", @@ -647,13 +627,13 @@ export default class ES { } async listPackagesForDomain( - {abortSignal, ...params}: RequestConfig & s.ListPackagesForDomainRequest, + params: s.ListPackagesForDomainRequest, ): Promise { const query = new URLSearchParams; if (params["MaxResults"] != null) query.set("maxResults", params["MaxResults"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("nextToken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListPackagesForDomain", method: "GET", requestUri: cmnP.encodePath`/2015-01-01/domain/${params["DomainName"]}/packages`, @@ -668,12 +648,12 @@ export default class ES { } async listTags( - {abortSignal, ...params}: RequestConfig & s.ListTagsRequest, + params: s.ListTagsRequest, ): Promise { const query = new URLSearchParams; query.set("arn", params["ARN"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListTags", method: "GET", requestUri: "/2015-01-01/tags/", @@ -687,7 +667,7 @@ export default class ES { } async purchaseReservedElasticsearchInstanceOffering( - {abortSignal, ...params}: RequestConfig & s.PurchaseReservedElasticsearchInstanceOfferingRequest, + params: s.PurchaseReservedElasticsearchInstanceOfferingRequest, ): Promise { const body: jsonP.JSONObject = { ReservedElasticsearchInstanceOfferingId: params["ReservedElasticsearchInstanceOfferingId"], @@ -695,7 +675,7 @@ export default class ES { InstanceCount: params["InstanceCount"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PurchaseReservedElasticsearchInstanceOffering", requestUri: "/2015-01-01/es/purchaseReservedInstanceOffering", }); @@ -709,11 +689,10 @@ export default class ES { } async rejectInboundCrossClusterSearchConnection( - {abortSignal, ...params}: RequestConfig & s.RejectInboundCrossClusterSearchConnectionRequest, + params: s.RejectInboundCrossClusterSearchConnectionRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "RejectInboundCrossClusterSearchConnection", method: "PUT", requestUri: cmnP.encodePath`/2015-01-01/es/ccs/inboundConnection/${params["CrossClusterSearchConnectionId"]}/reject`, @@ -727,14 +706,14 @@ export default class ES { } async removeTags( - {abortSignal, ...params}: RequestConfig & s.RemoveTagsRequest, + params: s.RemoveTagsRequest, ): Promise { const body: jsonP.JSONObject = { ARN: params["ARN"], TagKeys: params["TagKeys"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveTags", requestUri: "/2015-01-01/tags-removal", }); @@ -742,13 +721,13 @@ export default class ES { } async startElasticsearchServiceSoftwareUpdate( - {abortSignal, ...params}: RequestConfig & s.StartElasticsearchServiceSoftwareUpdateRequest, + params: s.StartElasticsearchServiceSoftwareUpdateRequest, ): Promise { const body: jsonP.JSONObject = { DomainName: params["DomainName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartElasticsearchServiceSoftwareUpdate", requestUri: "/2015-01-01/es/serviceSoftwareUpdate/start", }); @@ -761,7 +740,7 @@ export default class ES { } async updateElasticsearchDomainConfig( - {abortSignal, ...params}: RequestConfig & s.UpdateElasticsearchDomainConfigRequest, + params: s.UpdateElasticsearchDomainConfigRequest, ): Promise { const body: jsonP.JSONObject = { ElasticsearchClusterConfig: fromElasticsearchClusterConfig(params["ElasticsearchClusterConfig"]), @@ -779,7 +758,7 @@ export default class ES { AutoTuneOptions: fromAutoTuneOptions(params["AutoTuneOptions"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateElasticsearchDomainConfig", requestUri: cmnP.encodePath`/2015-01-01/es/domain/${params["DomainName"]}/config`, }); @@ -792,7 +771,7 @@ export default class ES { } async updatePackage( - {abortSignal, ...params}: RequestConfig & s.UpdatePackageRequest, + params: s.UpdatePackageRequest, ): Promise { const body: jsonP.JSONObject = { PackageID: params["PackageID"], @@ -801,7 +780,7 @@ export default class ES { CommitMessage: params["CommitMessage"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdatePackage", requestUri: "/2015-01-01/packages/update", }); @@ -814,7 +793,7 @@ export default class ES { } async upgradeElasticsearchDomain( - {abortSignal, ...params}: RequestConfig & s.UpgradeElasticsearchDomainRequest, + params: s.UpgradeElasticsearchDomainRequest, ): Promise { const body: jsonP.JSONObject = { DomainName: params["DomainName"], @@ -822,7 +801,7 @@ export default class ES { PerformCheckOnly: params["PerformCheckOnly"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpgradeElasticsearchDomain", requestUri: "/2015-01-01/es/upgradeDomain", }); diff --git a/lib/services/iam/mod.ts b/lib/services/iam/mod.ts index edf1180f..fd2b6b15 100644 --- a/lib/services/iam/mod.ts +++ b/lib/services/iam/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: AWS Identity and Access Management -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"; @@ -15,7 +11,7 @@ function parseBlob(input: string | null | undefined) { return Base64.decode(input); } -export default class IAM { +export class IAM { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(IAM.ApiMetadata); @@ -35,111 +31,111 @@ export default class IAM { }; async addClientIDToOpenIDConnectProvider( - {abortSignal, ...params}: RequestConfig & s.AddClientIDToOpenIDConnectProviderRequest, + params: s.AddClientIDToOpenIDConnectProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"OpenIDConnectProviderArn", (params["OpenIDConnectProviderArn"] ?? '').toString()); body.append(prefix+"ClientID", (params["ClientID"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddClientIDToOpenIDConnectProvider", }); await resp.arrayBuffer(); // consume body without use } async addRoleToInstanceProfile( - {abortSignal, ...params}: RequestConfig & s.AddRoleToInstanceProfileRequest, + params: s.AddRoleToInstanceProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"InstanceProfileName", (params["InstanceProfileName"] ?? '').toString()); body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddRoleToInstanceProfile", }); await resp.arrayBuffer(); // consume body without use } async addUserToGroup( - {abortSignal, ...params}: RequestConfig & s.AddUserToGroupRequest, + params: s.AddUserToGroupRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddUserToGroup", }); await resp.arrayBuffer(); // consume body without use } async attachGroupPolicy( - {abortSignal, ...params}: RequestConfig & s.AttachGroupPolicyRequest, + params: s.AttachGroupPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AttachGroupPolicy", }); await resp.arrayBuffer(); // consume body without use } async attachRolePolicy( - {abortSignal, ...params}: RequestConfig & s.AttachRolePolicyRequest, + params: s.AttachRolePolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AttachRolePolicy", }); await resp.arrayBuffer(); // consume body without use } async attachUserPolicy( - {abortSignal, ...params}: RequestConfig & s.AttachUserPolicyRequest, + params: s.AttachUserPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AttachUserPolicy", }); await resp.arrayBuffer(); // consume body without use } async changePassword( - {abortSignal, ...params}: RequestConfig & s.ChangePasswordRequest, + params: s.ChangePasswordRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"OldPassword", (params["OldPassword"] ?? '').toString()); body.append(prefix+"NewPassword", (params["NewPassword"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ChangePassword", }); await resp.arrayBuffer(); // consume body without use } async createAccessKey( - {abortSignal, ...params}: RequestConfig & s.CreateAccessKeyRequest = {}, + params: s.CreateAccessKeyRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("UserName" in params) body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateAccessKey", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateAccessKeyResult"); @@ -149,27 +145,27 @@ export default class IAM { } async createAccountAlias( - {abortSignal, ...params}: RequestConfig & s.CreateAccountAliasRequest, + params: s.CreateAccountAliasRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"AccountAlias", (params["AccountAlias"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateAccountAlias", }); await resp.arrayBuffer(); // consume body without use } async createGroup( - {abortSignal, ...params}: RequestConfig & s.CreateGroupRequest, + params: s.CreateGroupRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("Path" in params) body.append(prefix+"Path", (params["Path"] ?? '').toString()); body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateGroupResult"); @@ -179,7 +175,7 @@ export default class IAM { } async createInstanceProfile( - {abortSignal, ...params}: RequestConfig & s.CreateInstanceProfileRequest, + params: s.CreateInstanceProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -187,7 +183,7 @@ export default class IAM { if ("Path" in params) body.append(prefix+"Path", (params["Path"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateInstanceProfile", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateInstanceProfileResult"); @@ -197,7 +193,7 @@ export default class IAM { } async createLoginProfile( - {abortSignal, ...params}: RequestConfig & s.CreateLoginProfileRequest, + params: s.CreateLoginProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -205,7 +201,7 @@ export default class IAM { body.append(prefix+"Password", (params["Password"] ?? '').toString()); if ("PasswordResetRequired" in params) body.append(prefix+"PasswordResetRequired", (params["PasswordResetRequired"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateLoginProfile", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateLoginProfileResult"); @@ -215,7 +211,7 @@ export default class IAM { } async createOpenIDConnectProvider( - {abortSignal, ...params}: RequestConfig & s.CreateOpenIDConnectProviderRequest, + params: s.CreateOpenIDConnectProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -224,7 +220,7 @@ export default class IAM { if (params["ThumbprintList"]) qsP.appendList(body, prefix+"ThumbprintList", params["ThumbprintList"], {"entryPrefix":".member."}) if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateOpenIDConnectProvider", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateOpenIDConnectProviderResult"); @@ -237,7 +233,7 @@ export default class IAM { } async createPolicy( - {abortSignal, ...params}: RequestConfig & s.CreatePolicyRequest, + params: s.CreatePolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -247,7 +243,7 @@ export default class IAM { if ("Description" in params) body.append(prefix+"Description", (params["Description"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreatePolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "CreatePolicyResult"); @@ -257,7 +253,7 @@ export default class IAM { } async createPolicyVersion( - {abortSignal, ...params}: RequestConfig & s.CreatePolicyVersionRequest, + params: s.CreatePolicyVersionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -265,7 +261,7 @@ export default class IAM { body.append(prefix+"PolicyDocument", (params["PolicyDocument"] ?? '').toString()); if ("SetAsDefault" in params) body.append(prefix+"SetAsDefault", (params["SetAsDefault"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreatePolicyVersion", }); const xml = xmlP.readXmlResult(await resp.text(), "CreatePolicyVersionResult"); @@ -275,7 +271,7 @@ export default class IAM { } async createRole( - {abortSignal, ...params}: RequestConfig & s.CreateRoleRequest, + params: s.CreateRoleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -287,7 +283,7 @@ export default class IAM { if ("PermissionsBoundary" in params) body.append(prefix+"PermissionsBoundary", (params["PermissionsBoundary"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateRole", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateRoleResult"); @@ -297,7 +293,7 @@ export default class IAM { } async createSAMLProvider( - {abortSignal, ...params}: RequestConfig & s.CreateSAMLProviderRequest, + params: s.CreateSAMLProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -305,7 +301,7 @@ export default class IAM { body.append(prefix+"Name", (params["Name"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateSAMLProvider", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateSAMLProviderResult"); @@ -318,7 +314,7 @@ export default class IAM { } async createServiceLinkedRole( - {abortSignal, ...params}: RequestConfig & s.CreateServiceLinkedRoleRequest, + params: s.CreateServiceLinkedRoleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -326,7 +322,7 @@ export default class IAM { if ("Description" in params) body.append(prefix+"Description", (params["Description"] ?? '').toString()); if ("CustomSuffix" in params) body.append(prefix+"CustomSuffix", (params["CustomSuffix"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateServiceLinkedRole", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateServiceLinkedRoleResult"); @@ -336,14 +332,14 @@ export default class IAM { } async createServiceSpecificCredential( - {abortSignal, ...params}: RequestConfig & s.CreateServiceSpecificCredentialRequest, + params: s.CreateServiceSpecificCredentialRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"ServiceName", (params["ServiceName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateServiceSpecificCredential", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateServiceSpecificCredentialResult"); @@ -353,7 +349,7 @@ export default class IAM { } async createUser( - {abortSignal, ...params}: RequestConfig & s.CreateUserRequest, + params: s.CreateUserRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -362,7 +358,7 @@ export default class IAM { if ("PermissionsBoundary" in params) body.append(prefix+"PermissionsBoundary", (params["PermissionsBoundary"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateUser", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateUserResult"); @@ -372,7 +368,7 @@ export default class IAM { } async createVirtualMFADevice( - {abortSignal, ...params}: RequestConfig & s.CreateVirtualMFADeviceRequest, + params: s.CreateVirtualMFADeviceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -380,7 +376,7 @@ export default class IAM { body.append(prefix+"VirtualMFADeviceName", (params["VirtualMFADeviceName"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVirtualMFADevice", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateVirtualMFADeviceResult"); @@ -390,237 +386,234 @@ export default class IAM { } async deactivateMFADevice( - {abortSignal, ...params}: RequestConfig & s.DeactivateMFADeviceRequest, + params: s.DeactivateMFADeviceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"SerialNumber", (params["SerialNumber"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeactivateMFADevice", }); await resp.arrayBuffer(); // consume body without use } async deleteAccessKey( - {abortSignal, ...params}: RequestConfig & s.DeleteAccessKeyRequest, + params: s.DeleteAccessKeyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("UserName" in params) body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"AccessKeyId", (params["AccessKeyId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteAccessKey", }); await resp.arrayBuffer(); // consume body without use } async deleteAccountAlias( - {abortSignal, ...params}: RequestConfig & s.DeleteAccountAliasRequest, + params: s.DeleteAccountAliasRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"AccountAlias", (params["AccountAlias"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteAccountAlias", }); await resp.arrayBuffer(); // consume body without use } - async deleteAccountPasswordPolicy( - {abortSignal}: RequestConfig = {}, - ): Promise { + async deleteAccountPasswordPolicy(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteAccountPasswordPolicy", }); await resp.arrayBuffer(); // consume body without use } async deleteGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteGroupRequest, + params: s.DeleteGroupRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteGroup", }); await resp.arrayBuffer(); // consume body without use } async deleteGroupPolicy( - {abortSignal, ...params}: RequestConfig & s.DeleteGroupPolicyRequest, + params: s.DeleteGroupPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteGroupPolicy", }); await resp.arrayBuffer(); // consume body without use } async deleteInstanceProfile( - {abortSignal, ...params}: RequestConfig & s.DeleteInstanceProfileRequest, + params: s.DeleteInstanceProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"InstanceProfileName", (params["InstanceProfileName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteInstanceProfile", }); await resp.arrayBuffer(); // consume body without use } async deleteLoginProfile( - {abortSignal, ...params}: RequestConfig & s.DeleteLoginProfileRequest, + params: s.DeleteLoginProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteLoginProfile", }); await resp.arrayBuffer(); // consume body without use } async deleteOpenIDConnectProvider( - {abortSignal, ...params}: RequestConfig & s.DeleteOpenIDConnectProviderRequest, + params: s.DeleteOpenIDConnectProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"OpenIDConnectProviderArn", (params["OpenIDConnectProviderArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteOpenIDConnectProvider", }); await resp.arrayBuffer(); // consume body without use } async deletePolicy( - {abortSignal, ...params}: RequestConfig & s.DeletePolicyRequest, + params: s.DeletePolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeletePolicy", }); await resp.arrayBuffer(); // consume body without use } async deletePolicyVersion( - {abortSignal, ...params}: RequestConfig & s.DeletePolicyVersionRequest, + params: s.DeletePolicyVersionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); body.append(prefix+"VersionId", (params["VersionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeletePolicyVersion", }); await resp.arrayBuffer(); // consume body without use } async deleteRole( - {abortSignal, ...params}: RequestConfig & s.DeleteRoleRequest, + params: s.DeleteRoleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteRole", }); await resp.arrayBuffer(); // consume body without use } async deleteRolePermissionsBoundary( - {abortSignal, ...params}: RequestConfig & s.DeleteRolePermissionsBoundaryRequest, + params: s.DeleteRolePermissionsBoundaryRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteRolePermissionsBoundary", }); await resp.arrayBuffer(); // consume body without use } async deleteRolePolicy( - {abortSignal, ...params}: RequestConfig & s.DeleteRolePolicyRequest, + params: s.DeleteRolePolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteRolePolicy", }); await resp.arrayBuffer(); // consume body without use } async deleteSAMLProvider( - {abortSignal, ...params}: RequestConfig & s.DeleteSAMLProviderRequest, + params: s.DeleteSAMLProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SAMLProviderArn", (params["SAMLProviderArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteSAMLProvider", }); await resp.arrayBuffer(); // consume body without use } async deleteSSHPublicKey( - {abortSignal, ...params}: RequestConfig & s.DeleteSSHPublicKeyRequest, + params: s.DeleteSSHPublicKeyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"SSHPublicKeyId", (params["SSHPublicKeyId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteSSHPublicKey", }); await resp.arrayBuffer(); // consume body without use } async deleteServerCertificate( - {abortSignal, ...params}: RequestConfig & s.DeleteServerCertificateRequest, + params: s.DeleteServerCertificateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ServerCertificateName", (params["ServerCertificateName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteServerCertificate", }); await resp.arrayBuffer(); // consume body without use } async deleteServiceLinkedRole( - {abortSignal, ...params}: RequestConfig & s.DeleteServiceLinkedRoleRequest, + params: s.DeleteServiceLinkedRoleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteServiceLinkedRole", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteServiceLinkedRoleResult"); @@ -630,130 +623,130 @@ export default class IAM { } async deleteServiceSpecificCredential( - {abortSignal, ...params}: RequestConfig & s.DeleteServiceSpecificCredentialRequest, + params: s.DeleteServiceSpecificCredentialRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("UserName" in params) body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"ServiceSpecificCredentialId", (params["ServiceSpecificCredentialId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteServiceSpecificCredential", }); await resp.arrayBuffer(); // consume body without use } async deleteSigningCertificate( - {abortSignal, ...params}: RequestConfig & s.DeleteSigningCertificateRequest, + params: s.DeleteSigningCertificateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("UserName" in params) body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"CertificateId", (params["CertificateId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteSigningCertificate", }); await resp.arrayBuffer(); // consume body without use } async deleteUser( - {abortSignal, ...params}: RequestConfig & s.DeleteUserRequest, + params: s.DeleteUserRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteUser", }); await resp.arrayBuffer(); // consume body without use } async deleteUserPermissionsBoundary( - {abortSignal, ...params}: RequestConfig & s.DeleteUserPermissionsBoundaryRequest, + params: s.DeleteUserPermissionsBoundaryRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteUserPermissionsBoundary", }); await resp.arrayBuffer(); // consume body without use } async deleteUserPolicy( - {abortSignal, ...params}: RequestConfig & s.DeleteUserPolicyRequest, + params: s.DeleteUserPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteUserPolicy", }); await resp.arrayBuffer(); // consume body without use } async deleteVirtualMFADevice( - {abortSignal, ...params}: RequestConfig & s.DeleteVirtualMFADeviceRequest, + params: s.DeleteVirtualMFADeviceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SerialNumber", (params["SerialNumber"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVirtualMFADevice", }); await resp.arrayBuffer(); // consume body without use } async detachGroupPolicy( - {abortSignal, ...params}: RequestConfig & s.DetachGroupPolicyRequest, + params: s.DetachGroupPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DetachGroupPolicy", }); await resp.arrayBuffer(); // consume body without use } async detachRolePolicy( - {abortSignal, ...params}: RequestConfig & s.DetachRolePolicyRequest, + params: s.DetachRolePolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DetachRolePolicy", }); await resp.arrayBuffer(); // consume body without use } async detachUserPolicy( - {abortSignal, ...params}: RequestConfig & s.DetachUserPolicyRequest, + params: s.DetachUserPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DetachUserPolicy", }); await resp.arrayBuffer(); // consume body without use } async enableMFADevice( - {abortSignal, ...params}: RequestConfig & s.EnableMFADeviceRequest, + params: s.EnableMFADeviceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -762,17 +755,14 @@ export default class IAM { body.append(prefix+"AuthenticationCode1", (params["AuthenticationCode1"] ?? '').toString()); body.append(prefix+"AuthenticationCode2", (params["AuthenticationCode2"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableMFADevice", }); await resp.arrayBuffer(); // consume body without use } - async generateCredentialReport( - {abortSignal}: RequestConfig = {}, - ): Promise { + async generateCredentialReport(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GenerateCredentialReport", }); const xml = xmlP.readXmlResult(await resp.text(), "GenerateCredentialReportResult"); @@ -785,14 +775,14 @@ export default class IAM { } async generateOrganizationsAccessReport( - {abortSignal, ...params}: RequestConfig & s.GenerateOrganizationsAccessReportRequest, + params: s.GenerateOrganizationsAccessReportRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"EntityPath", (params["EntityPath"] ?? '').toString()); if ("OrganizationsPolicyId" in params) body.append(prefix+"OrganizationsPolicyId", (params["OrganizationsPolicyId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GenerateOrganizationsAccessReport", }); const xml = xmlP.readXmlResult(await resp.text(), "GenerateOrganizationsAccessReportResult"); @@ -802,14 +792,14 @@ export default class IAM { } async generateServiceLastAccessedDetails( - {abortSignal, ...params}: RequestConfig & s.GenerateServiceLastAccessedDetailsRequest, + params: s.GenerateServiceLastAccessedDetailsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Arn", (params["Arn"] ?? '').toString()); if ("Granularity" in params) body.append(prefix+"Granularity", (params["Granularity"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GenerateServiceLastAccessedDetails", }); const xml = xmlP.readXmlResult(await resp.text(), "GenerateServiceLastAccessedDetailsResult"); @@ -819,13 +809,13 @@ export default class IAM { } async getAccessKeyLastUsed( - {abortSignal, ...params}: RequestConfig & s.GetAccessKeyLastUsedRequest, + params: s.GetAccessKeyLastUsedRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"AccessKeyId", (params["AccessKeyId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetAccessKeyLastUsed", }); const xml = xmlP.readXmlResult(await resp.text(), "GetAccessKeyLastUsedResult"); @@ -838,7 +828,7 @@ export default class IAM { } async getAccountAuthorizationDetails( - {abortSignal, ...params}: RequestConfig & s.GetAccountAuthorizationDetailsRequest = {}, + params: s.GetAccountAuthorizationDetailsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -846,7 +836,7 @@ export default class IAM { if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetAccountAuthorizationDetails", }); const xml = xmlP.readXmlResult(await resp.text(), "GetAccountAuthorizationDetailsResult"); @@ -862,11 +852,8 @@ export default class IAM { }; } - async getAccountPasswordPolicy( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getAccountPasswordPolicy(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetAccountPasswordPolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "GetAccountPasswordPolicyResult"); @@ -875,11 +862,8 @@ export default class IAM { }; } - async getAccountSummary( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getAccountSummary(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetAccountSummary", }); const xml = xmlP.readXmlResult(await resp.text(), "GetAccountSummaryResult"); @@ -889,13 +873,13 @@ export default class IAM { } async getContextKeysForCustomPolicy( - {abortSignal, ...params}: RequestConfig & s.GetContextKeysForCustomPolicyRequest, + params: s.GetContextKeysForCustomPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["PolicyInputList"]) qsP.appendList(body, prefix+"PolicyInputList", params["PolicyInputList"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetContextKeysForCustomPolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "GetContextKeysForCustomPolicyResult"); @@ -905,14 +889,14 @@ export default class IAM { } async getContextKeysForPrincipalPolicy( - {abortSignal, ...params}: RequestConfig & s.GetContextKeysForPrincipalPolicyRequest, + params: s.GetContextKeysForPrincipalPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PolicySourceArn", (params["PolicySourceArn"] ?? '').toString()); if (params["PolicyInputList"]) qsP.appendList(body, prefix+"PolicyInputList", params["PolicyInputList"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetContextKeysForPrincipalPolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "GetContextKeysForPrincipalPolicyResult"); @@ -921,11 +905,8 @@ export default class IAM { }; } - async getCredentialReport( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getCredentialReport(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetCredentialReport", }); const xml = xmlP.readXmlResult(await resp.text(), "GetCredentialReportResult"); @@ -937,7 +918,7 @@ export default class IAM { } async getGroup( - {abortSignal, ...params}: RequestConfig & s.GetGroupRequest, + params: s.GetGroupRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -945,7 +926,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "GetGroupResult"); @@ -960,14 +941,14 @@ export default class IAM { } async getGroupPolicy( - {abortSignal, ...params}: RequestConfig & s.GetGroupPolicyRequest, + params: s.GetGroupPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetGroupPolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "GetGroupPolicyResult"); @@ -977,13 +958,13 @@ export default class IAM { } async getInstanceProfile( - {abortSignal, ...params}: RequestConfig & s.GetInstanceProfileRequest, + params: s.GetInstanceProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"InstanceProfileName", (params["InstanceProfileName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetInstanceProfile", }); const xml = xmlP.readXmlResult(await resp.text(), "GetInstanceProfileResult"); @@ -993,13 +974,13 @@ export default class IAM { } async getLoginProfile( - {abortSignal, ...params}: RequestConfig & s.GetLoginProfileRequest, + params: s.GetLoginProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetLoginProfile", }); const xml = xmlP.readXmlResult(await resp.text(), "GetLoginProfileResult"); @@ -1009,13 +990,13 @@ export default class IAM { } async getOpenIDConnectProvider( - {abortSignal, ...params}: RequestConfig & s.GetOpenIDConnectProviderRequest, + params: s.GetOpenIDConnectProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"OpenIDConnectProviderArn", (params["OpenIDConnectProviderArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetOpenIDConnectProvider", }); const xml = xmlP.readXmlResult(await resp.text(), "GetOpenIDConnectProviderResult"); @@ -1031,7 +1012,7 @@ export default class IAM { } async getOrganizationsAccessReport( - {abortSignal, ...params}: RequestConfig & s.GetOrganizationsAccessReportRequest, + params: s.GetOrganizationsAccessReportRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1040,7 +1021,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("SortKey" in params) body.append(prefix+"SortKey", (params["SortKey"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetOrganizationsAccessReport", }); const xml = xmlP.readXmlResult(await resp.text(), "GetOrganizationsAccessReportResult"); @@ -1060,13 +1041,13 @@ export default class IAM { } async getPolicy( - {abortSignal, ...params}: RequestConfig & s.GetPolicyRequest, + params: s.GetPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetPolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "GetPolicyResult"); @@ -1076,14 +1057,14 @@ export default class IAM { } async getPolicyVersion( - {abortSignal, ...params}: RequestConfig & s.GetPolicyVersionRequest, + params: s.GetPolicyVersionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); body.append(prefix+"VersionId", (params["VersionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetPolicyVersion", }); const xml = xmlP.readXmlResult(await resp.text(), "GetPolicyVersionResult"); @@ -1093,13 +1074,13 @@ export default class IAM { } async getRole( - {abortSignal, ...params}: RequestConfig & s.GetRoleRequest, + params: s.GetRoleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetRole", }); const xml = xmlP.readXmlResult(await resp.text(), "GetRoleResult"); @@ -1109,14 +1090,14 @@ export default class IAM { } async getRolePolicy( - {abortSignal, ...params}: RequestConfig & s.GetRolePolicyRequest, + params: s.GetRolePolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetRolePolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "GetRolePolicyResult"); @@ -1126,13 +1107,13 @@ export default class IAM { } async getSAMLProvider( - {abortSignal, ...params}: RequestConfig & s.GetSAMLProviderRequest, + params: s.GetSAMLProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SAMLProviderArn", (params["SAMLProviderArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetSAMLProvider", }); const xml = xmlP.readXmlResult(await resp.text(), "GetSAMLProviderResult"); @@ -1147,7 +1128,7 @@ export default class IAM { } async getSSHPublicKey( - {abortSignal, ...params}: RequestConfig & s.GetSSHPublicKeyRequest, + params: s.GetSSHPublicKeyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1155,7 +1136,7 @@ export default class IAM { body.append(prefix+"SSHPublicKeyId", (params["SSHPublicKeyId"] ?? '').toString()); body.append(prefix+"Encoding", (params["Encoding"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetSSHPublicKey", }); const xml = xmlP.readXmlResult(await resp.text(), "GetSSHPublicKeyResult"); @@ -1165,13 +1146,13 @@ export default class IAM { } async getServerCertificate( - {abortSignal, ...params}: RequestConfig & s.GetServerCertificateRequest, + params: s.GetServerCertificateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ServerCertificateName", (params["ServerCertificateName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetServerCertificate", }); const xml = xmlP.readXmlResult(await resp.text(), "GetServerCertificateResult"); @@ -1181,7 +1162,7 @@ export default class IAM { } async getServiceLastAccessedDetails( - {abortSignal, ...params}: RequestConfig & s.GetServiceLastAccessedDetailsRequest, + params: s.GetServiceLastAccessedDetailsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1189,7 +1170,7 @@ export default class IAM { if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetServiceLastAccessedDetails", }); const xml = xmlP.readXmlResult(await resp.text(), "GetServiceLastAccessedDetailsResult"); @@ -1208,7 +1189,7 @@ export default class IAM { } async getServiceLastAccessedDetailsWithEntities( - {abortSignal, ...params}: RequestConfig & s.GetServiceLastAccessedDetailsWithEntitiesRequest, + params: s.GetServiceLastAccessedDetailsWithEntitiesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1217,7 +1198,7 @@ export default class IAM { if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetServiceLastAccessedDetailsWithEntities", }); const xml = xmlP.readXmlResult(await resp.text(), "GetServiceLastAccessedDetailsWithEntitiesResult"); @@ -1235,13 +1216,13 @@ export default class IAM { } async getServiceLinkedRoleDeletionStatus( - {abortSignal, ...params}: RequestConfig & s.GetServiceLinkedRoleDeletionStatusRequest, + params: s.GetServiceLinkedRoleDeletionStatusRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DeletionTaskId", (params["DeletionTaskId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetServiceLinkedRoleDeletionStatus", }); const xml = xmlP.readXmlResult(await resp.text(), "GetServiceLinkedRoleDeletionStatusResult"); @@ -1252,13 +1233,13 @@ export default class IAM { } async getUser( - {abortSignal, ...params}: RequestConfig & s.GetUserRequest = {}, + params: s.GetUserRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("UserName" in params) body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetUser", }); const xml = xmlP.readXmlResult(await resp.text(), "GetUserResult"); @@ -1268,14 +1249,14 @@ export default class IAM { } async getUserPolicy( - {abortSignal, ...params}: RequestConfig & s.GetUserPolicyRequest, + params: s.GetUserPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetUserPolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "GetUserPolicyResult"); @@ -1285,7 +1266,7 @@ export default class IAM { } async listAccessKeys( - {abortSignal, ...params}: RequestConfig & s.ListAccessKeysRequest = {}, + params: s.ListAccessKeysRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1293,7 +1274,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListAccessKeys", }); const xml = xmlP.readXmlResult(await resp.text(), "ListAccessKeysResult"); @@ -1307,14 +1288,14 @@ export default class IAM { } async listAccountAliases( - {abortSignal, ...params}: RequestConfig & s.ListAccountAliasesRequest = {}, + params: s.ListAccountAliasesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListAccountAliases", }); const xml = xmlP.readXmlResult(await resp.text(), "ListAccountAliasesResult"); @@ -1328,7 +1309,7 @@ export default class IAM { } async listAttachedGroupPolicies( - {abortSignal, ...params}: RequestConfig & s.ListAttachedGroupPoliciesRequest, + params: s.ListAttachedGroupPoliciesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1337,7 +1318,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListAttachedGroupPolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "ListAttachedGroupPoliciesResult"); @@ -1351,7 +1332,7 @@ export default class IAM { } async listAttachedRolePolicies( - {abortSignal, ...params}: RequestConfig & s.ListAttachedRolePoliciesRequest, + params: s.ListAttachedRolePoliciesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1360,7 +1341,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListAttachedRolePolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "ListAttachedRolePoliciesResult"); @@ -1374,7 +1355,7 @@ export default class IAM { } async listAttachedUserPolicies( - {abortSignal, ...params}: RequestConfig & s.ListAttachedUserPoliciesRequest, + params: s.ListAttachedUserPoliciesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1383,7 +1364,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListAttachedUserPolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "ListAttachedUserPoliciesResult"); @@ -1397,7 +1378,7 @@ export default class IAM { } async listEntitiesForPolicy( - {abortSignal, ...params}: RequestConfig & s.ListEntitiesForPolicyRequest, + params: s.ListEntitiesForPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1408,7 +1389,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListEntitiesForPolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "ListEntitiesForPolicyResult"); @@ -1424,7 +1405,7 @@ export default class IAM { } async listGroupPolicies( - {abortSignal, ...params}: RequestConfig & s.ListGroupPoliciesRequest, + params: s.ListGroupPoliciesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1432,7 +1413,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListGroupPolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "ListGroupPoliciesResult"); @@ -1446,7 +1427,7 @@ export default class IAM { } async listGroups( - {abortSignal, ...params}: RequestConfig & s.ListGroupsRequest = {}, + params: s.ListGroupsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1454,7 +1435,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListGroups", }); const xml = xmlP.readXmlResult(await resp.text(), "ListGroupsResult"); @@ -1468,7 +1449,7 @@ export default class IAM { } async listGroupsForUser( - {abortSignal, ...params}: RequestConfig & s.ListGroupsForUserRequest, + params: s.ListGroupsForUserRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1476,7 +1457,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListGroupsForUser", }); const xml = xmlP.readXmlResult(await resp.text(), "ListGroupsForUserResult"); @@ -1490,7 +1471,7 @@ export default class IAM { } async listInstanceProfileTags( - {abortSignal, ...params}: RequestConfig & s.ListInstanceProfileTagsRequest, + params: s.ListInstanceProfileTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1498,7 +1479,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListInstanceProfileTags", }); const xml = xmlP.readXmlResult(await resp.text(), "ListInstanceProfileTagsResult"); @@ -1512,7 +1493,7 @@ export default class IAM { } async listInstanceProfiles( - {abortSignal, ...params}: RequestConfig & s.ListInstanceProfilesRequest = {}, + params: s.ListInstanceProfilesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1520,7 +1501,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListInstanceProfiles", }); const xml = xmlP.readXmlResult(await resp.text(), "ListInstanceProfilesResult"); @@ -1534,7 +1515,7 @@ export default class IAM { } async listInstanceProfilesForRole( - {abortSignal, ...params}: RequestConfig & s.ListInstanceProfilesForRoleRequest, + params: s.ListInstanceProfilesForRoleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1542,7 +1523,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListInstanceProfilesForRole", }); const xml = xmlP.readXmlResult(await resp.text(), "ListInstanceProfilesForRoleResult"); @@ -1556,7 +1537,7 @@ export default class IAM { } async listMFADeviceTags( - {abortSignal, ...params}: RequestConfig & s.ListMFADeviceTagsRequest, + params: s.ListMFADeviceTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1564,7 +1545,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListMFADeviceTags", }); const xml = xmlP.readXmlResult(await resp.text(), "ListMFADeviceTagsResult"); @@ -1578,7 +1559,7 @@ export default class IAM { } async listMFADevices( - {abortSignal, ...params}: RequestConfig & s.ListMFADevicesRequest = {}, + params: s.ListMFADevicesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1586,7 +1567,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListMFADevices", }); const xml = xmlP.readXmlResult(await resp.text(), "ListMFADevicesResult"); @@ -1600,7 +1581,7 @@ export default class IAM { } async listOpenIDConnectProviderTags( - {abortSignal, ...params}: RequestConfig & s.ListOpenIDConnectProviderTagsRequest, + params: s.ListOpenIDConnectProviderTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1608,7 +1589,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListOpenIDConnectProviderTags", }); const xml = xmlP.readXmlResult(await resp.text(), "ListOpenIDConnectProviderTagsResult"); @@ -1621,12 +1602,10 @@ export default class IAM { }; } - async listOpenIDConnectProviders( - {abortSignal}: RequestConfig = {}, - ): Promise { + async listOpenIDConnectProviders(): Promise { const body = new URLSearchParams; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListOpenIDConnectProviders", }); const xml = xmlP.readXmlResult(await resp.text(), "ListOpenIDConnectProvidersResult"); @@ -1636,7 +1615,7 @@ export default class IAM { } async listPolicies( - {abortSignal, ...params}: RequestConfig & s.ListPoliciesRequest = {}, + params: s.ListPoliciesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1647,7 +1626,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListPolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "ListPoliciesResult"); @@ -1661,7 +1640,7 @@ export default class IAM { } async listPoliciesGrantingServiceAccess( - {abortSignal, ...params}: RequestConfig & s.ListPoliciesGrantingServiceAccessRequest, + params: s.ListPoliciesGrantingServiceAccessRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1669,7 +1648,7 @@ export default class IAM { body.append(prefix+"Arn", (params["Arn"] ?? '').toString()); if (params["ServiceNamespaces"]) qsP.appendList(body, prefix+"ServiceNamespaces", params["ServiceNamespaces"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListPoliciesGrantingServiceAccess", }); const xml = xmlP.readXmlResult(await resp.text(), "ListPoliciesGrantingServiceAccessResult"); @@ -1683,7 +1662,7 @@ export default class IAM { } async listPolicyTags( - {abortSignal, ...params}: RequestConfig & s.ListPolicyTagsRequest, + params: s.ListPolicyTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1691,7 +1670,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListPolicyTags", }); const xml = xmlP.readXmlResult(await resp.text(), "ListPolicyTagsResult"); @@ -1705,7 +1684,7 @@ export default class IAM { } async listPolicyVersions( - {abortSignal, ...params}: RequestConfig & s.ListPolicyVersionsRequest, + params: s.ListPolicyVersionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1713,7 +1692,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListPolicyVersions", }); const xml = xmlP.readXmlResult(await resp.text(), "ListPolicyVersionsResult"); @@ -1727,7 +1706,7 @@ export default class IAM { } async listRolePolicies( - {abortSignal, ...params}: RequestConfig & s.ListRolePoliciesRequest, + params: s.ListRolePoliciesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1735,7 +1714,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListRolePolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "ListRolePoliciesResult"); @@ -1749,7 +1728,7 @@ export default class IAM { } async listRoleTags( - {abortSignal, ...params}: RequestConfig & s.ListRoleTagsRequest, + params: s.ListRoleTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1757,7 +1736,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListRoleTags", }); const xml = xmlP.readXmlResult(await resp.text(), "ListRoleTagsResult"); @@ -1771,7 +1750,7 @@ export default class IAM { } async listRoles( - {abortSignal, ...params}: RequestConfig & s.ListRolesRequest = {}, + params: s.ListRolesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1779,7 +1758,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListRoles", }); const xml = xmlP.readXmlResult(await resp.text(), "ListRolesResult"); @@ -1793,7 +1772,7 @@ export default class IAM { } async listSAMLProviderTags( - {abortSignal, ...params}: RequestConfig & s.ListSAMLProviderTagsRequest, + params: s.ListSAMLProviderTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1801,7 +1780,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListSAMLProviderTags", }); const xml = xmlP.readXmlResult(await resp.text(), "ListSAMLProviderTagsResult"); @@ -1814,12 +1793,10 @@ export default class IAM { }; } - async listSAMLProviders( - {abortSignal}: RequestConfig = {}, - ): Promise { + async listSAMLProviders(): Promise { const body = new URLSearchParams; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListSAMLProviders", }); const xml = xmlP.readXmlResult(await resp.text(), "ListSAMLProvidersResult"); @@ -1829,7 +1806,7 @@ export default class IAM { } async listSSHPublicKeys( - {abortSignal, ...params}: RequestConfig & s.ListSSHPublicKeysRequest = {}, + params: s.ListSSHPublicKeysRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1837,7 +1814,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListSSHPublicKeys", }); const xml = xmlP.readXmlResult(await resp.text(), "ListSSHPublicKeysResult"); @@ -1851,7 +1828,7 @@ export default class IAM { } async listServerCertificateTags( - {abortSignal, ...params}: RequestConfig & s.ListServerCertificateTagsRequest, + params: s.ListServerCertificateTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1859,7 +1836,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListServerCertificateTags", }); const xml = xmlP.readXmlResult(await resp.text(), "ListServerCertificateTagsResult"); @@ -1873,7 +1850,7 @@ export default class IAM { } async listServerCertificates( - {abortSignal, ...params}: RequestConfig & s.ListServerCertificatesRequest = {}, + params: s.ListServerCertificatesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1881,7 +1858,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListServerCertificates", }); const xml = xmlP.readXmlResult(await resp.text(), "ListServerCertificatesResult"); @@ -1895,14 +1872,14 @@ export default class IAM { } async listServiceSpecificCredentials( - {abortSignal, ...params}: RequestConfig & s.ListServiceSpecificCredentialsRequest = {}, + params: s.ListServiceSpecificCredentialsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("UserName" in params) body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); if ("ServiceName" in params) body.append(prefix+"ServiceName", (params["ServiceName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListServiceSpecificCredentials", }); const xml = xmlP.readXmlResult(await resp.text(), "ListServiceSpecificCredentialsResult"); @@ -1912,7 +1889,7 @@ export default class IAM { } async listSigningCertificates( - {abortSignal, ...params}: RequestConfig & s.ListSigningCertificatesRequest = {}, + params: s.ListSigningCertificatesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1920,7 +1897,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListSigningCertificates", }); const xml = xmlP.readXmlResult(await resp.text(), "ListSigningCertificatesResult"); @@ -1934,7 +1911,7 @@ export default class IAM { } async listUserPolicies( - {abortSignal, ...params}: RequestConfig & s.ListUserPoliciesRequest, + params: s.ListUserPoliciesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1942,7 +1919,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListUserPolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "ListUserPoliciesResult"); @@ -1956,7 +1933,7 @@ export default class IAM { } async listUserTags( - {abortSignal, ...params}: RequestConfig & s.ListUserTagsRequest, + params: s.ListUserTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1964,7 +1941,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListUserTags", }); const xml = xmlP.readXmlResult(await resp.text(), "ListUserTagsResult"); @@ -1978,7 +1955,7 @@ export default class IAM { } async listUsers( - {abortSignal, ...params}: RequestConfig & s.ListUsersRequest = {}, + params: s.ListUsersRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1986,7 +1963,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListUsers", }); const xml = xmlP.readXmlResult(await resp.text(), "ListUsersResult"); @@ -2000,7 +1977,7 @@ export default class IAM { } async listVirtualMFADevices( - {abortSignal, ...params}: RequestConfig & s.ListVirtualMFADevicesRequest = {}, + params: s.ListVirtualMFADevicesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2008,7 +1985,7 @@ export default class IAM { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListVirtualMFADevices", }); const xml = xmlP.readXmlResult(await resp.text(), "ListVirtualMFADevicesResult"); @@ -2022,7 +1999,7 @@ export default class IAM { } async putGroupPolicy( - {abortSignal, ...params}: RequestConfig & s.PutGroupPolicyRequest, + params: s.PutGroupPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2030,28 +2007,28 @@ export default class IAM { body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); body.append(prefix+"PolicyDocument", (params["PolicyDocument"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutGroupPolicy", }); await resp.arrayBuffer(); // consume body without use } async putRolePermissionsBoundary( - {abortSignal, ...params}: RequestConfig & s.PutRolePermissionsBoundaryRequest, + params: s.PutRolePermissionsBoundaryRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); body.append(prefix+"PermissionsBoundary", (params["PermissionsBoundary"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutRolePermissionsBoundary", }); await resp.arrayBuffer(); // consume body without use } async putRolePolicy( - {abortSignal, ...params}: RequestConfig & s.PutRolePolicyRequest, + params: s.PutRolePolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2059,28 +2036,28 @@ export default class IAM { body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); body.append(prefix+"PolicyDocument", (params["PolicyDocument"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutRolePolicy", }); await resp.arrayBuffer(); // consume body without use } async putUserPermissionsBoundary( - {abortSignal, ...params}: RequestConfig & s.PutUserPermissionsBoundaryRequest, + params: s.PutUserPermissionsBoundaryRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"PermissionsBoundary", (params["PermissionsBoundary"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutUserPermissionsBoundary", }); await resp.arrayBuffer(); // consume body without use } async putUserPolicy( - {abortSignal, ...params}: RequestConfig & s.PutUserPolicyRequest, + params: s.PutUserPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2088,63 +2065,63 @@ export default class IAM { body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); body.append(prefix+"PolicyDocument", (params["PolicyDocument"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutUserPolicy", }); await resp.arrayBuffer(); // consume body without use } async removeClientIDFromOpenIDConnectProvider( - {abortSignal, ...params}: RequestConfig & s.RemoveClientIDFromOpenIDConnectProviderRequest, + params: s.RemoveClientIDFromOpenIDConnectProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"OpenIDConnectProviderArn", (params["OpenIDConnectProviderArn"] ?? '').toString()); body.append(prefix+"ClientID", (params["ClientID"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveClientIDFromOpenIDConnectProvider", }); await resp.arrayBuffer(); // consume body without use } async removeRoleFromInstanceProfile( - {abortSignal, ...params}: RequestConfig & s.RemoveRoleFromInstanceProfileRequest, + params: s.RemoveRoleFromInstanceProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"InstanceProfileName", (params["InstanceProfileName"] ?? '').toString()); body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveRoleFromInstanceProfile", }); await resp.arrayBuffer(); // consume body without use } async removeUserFromGroup( - {abortSignal, ...params}: RequestConfig & s.RemoveUserFromGroupRequest, + params: s.RemoveUserFromGroupRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"GroupName", (params["GroupName"] ?? '').toString()); body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveUserFromGroup", }); await resp.arrayBuffer(); // consume body without use } async resetServiceSpecificCredential( - {abortSignal, ...params}: RequestConfig & s.ResetServiceSpecificCredentialRequest, + params: s.ResetServiceSpecificCredentialRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("UserName" in params) body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"ServiceSpecificCredentialId", (params["ServiceSpecificCredentialId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResetServiceSpecificCredential", }); const xml = xmlP.readXmlResult(await resp.text(), "ResetServiceSpecificCredentialResult"); @@ -2154,7 +2131,7 @@ export default class IAM { } async resyncMFADevice( - {abortSignal, ...params}: RequestConfig & s.ResyncMFADeviceRequest, + params: s.ResyncMFADeviceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2163,41 +2140,41 @@ export default class IAM { body.append(prefix+"AuthenticationCode1", (params["AuthenticationCode1"] ?? '').toString()); body.append(prefix+"AuthenticationCode2", (params["AuthenticationCode2"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResyncMFADevice", }); await resp.arrayBuffer(); // consume body without use } async setDefaultPolicyVersion( - {abortSignal, ...params}: RequestConfig & s.SetDefaultPolicyVersionRequest, + params: s.SetDefaultPolicyVersionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); body.append(prefix+"VersionId", (params["VersionId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetDefaultPolicyVersion", }); await resp.arrayBuffer(); // consume body without use } async setSecurityTokenServicePreferences( - {abortSignal, ...params}: RequestConfig & s.SetSecurityTokenServicePreferencesRequest, + params: s.SetSecurityTokenServicePreferencesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"GlobalEndpointTokenVersion", (params["GlobalEndpointTokenVersion"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetSecurityTokenServicePreferences", }); await resp.arrayBuffer(); // consume body without use } async simulateCustomPolicy( - {abortSignal, ...params}: RequestConfig & s.SimulateCustomPolicyRequest, + params: s.SimulateCustomPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2213,7 +2190,7 @@ export default class IAM { if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SimulateCustomPolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "SimulateCustomPolicyResult"); @@ -2227,7 +2204,7 @@ export default class IAM { } async simulatePrincipalPolicy( - {abortSignal, ...params}: RequestConfig & s.SimulatePrincipalPolicyRequest, + params: s.SimulatePrincipalPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2244,7 +2221,7 @@ export default class IAM { if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SimulatePrincipalPolicy", }); const xml = xmlP.readXmlResult(await resp.text(), "SimulatePrincipalPolicyResult"); @@ -2258,231 +2235,231 @@ export default class IAM { } async tagInstanceProfile( - {abortSignal, ...params}: RequestConfig & s.TagInstanceProfileRequest, + params: s.TagInstanceProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"InstanceProfileName", (params["InstanceProfileName"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagInstanceProfile", }); await resp.arrayBuffer(); // consume body without use } async tagMFADevice( - {abortSignal, ...params}: RequestConfig & s.TagMFADeviceRequest, + params: s.TagMFADeviceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SerialNumber", (params["SerialNumber"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagMFADevice", }); await resp.arrayBuffer(); // consume body without use } async tagOpenIDConnectProvider( - {abortSignal, ...params}: RequestConfig & s.TagOpenIDConnectProviderRequest, + params: s.TagOpenIDConnectProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"OpenIDConnectProviderArn", (params["OpenIDConnectProviderArn"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagOpenIDConnectProvider", }); await resp.arrayBuffer(); // consume body without use } async tagPolicy( - {abortSignal, ...params}: RequestConfig & s.TagPolicyRequest, + params: s.TagPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagPolicy", }); await resp.arrayBuffer(); // consume body without use } async tagRole( - {abortSignal, ...params}: RequestConfig & s.TagRoleRequest, + params: s.TagRoleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagRole", }); await resp.arrayBuffer(); // consume body without use } async tagSAMLProvider( - {abortSignal, ...params}: RequestConfig & s.TagSAMLProviderRequest, + params: s.TagSAMLProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SAMLProviderArn", (params["SAMLProviderArn"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagSAMLProvider", }); await resp.arrayBuffer(); // consume body without use } async tagServerCertificate( - {abortSignal, ...params}: RequestConfig & s.TagServerCertificateRequest, + params: s.TagServerCertificateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ServerCertificateName", (params["ServerCertificateName"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagServerCertificate", }); await resp.arrayBuffer(); // consume body without use } async tagUser( - {abortSignal, ...params}: RequestConfig & s.TagUserRequest, + params: s.TagUserRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagUser", }); await resp.arrayBuffer(); // consume body without use } async untagInstanceProfile( - {abortSignal, ...params}: RequestConfig & s.UntagInstanceProfileRequest, + params: s.UntagInstanceProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"InstanceProfileName", (params["InstanceProfileName"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagInstanceProfile", }); await resp.arrayBuffer(); // consume body without use } async untagMFADevice( - {abortSignal, ...params}: RequestConfig & s.UntagMFADeviceRequest, + params: s.UntagMFADeviceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SerialNumber", (params["SerialNumber"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagMFADevice", }); await resp.arrayBuffer(); // consume body without use } async untagOpenIDConnectProvider( - {abortSignal, ...params}: RequestConfig & s.UntagOpenIDConnectProviderRequest, + params: s.UntagOpenIDConnectProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"OpenIDConnectProviderArn", (params["OpenIDConnectProviderArn"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagOpenIDConnectProvider", }); await resp.arrayBuffer(); // consume body without use } async untagPolicy( - {abortSignal, ...params}: RequestConfig & s.UntagPolicyRequest, + params: s.UntagPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PolicyArn", (params["PolicyArn"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagPolicy", }); await resp.arrayBuffer(); // consume body without use } async untagRole( - {abortSignal, ...params}: RequestConfig & s.UntagRoleRequest, + params: s.UntagRoleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagRole", }); await resp.arrayBuffer(); // consume body without use } async untagSAMLProvider( - {abortSignal, ...params}: RequestConfig & s.UntagSAMLProviderRequest, + params: s.UntagSAMLProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SAMLProviderArn", (params["SAMLProviderArn"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagSAMLProvider", }); await resp.arrayBuffer(); // consume body without use } async untagServerCertificate( - {abortSignal, ...params}: RequestConfig & s.UntagServerCertificateRequest, + params: s.UntagServerCertificateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ServerCertificateName", (params["ServerCertificateName"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagServerCertificate", }); await resp.arrayBuffer(); // consume body without use } async untagUser( - {abortSignal, ...params}: RequestConfig & s.UntagUserRequest, + params: s.UntagUserRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagUser", }); await resp.arrayBuffer(); // consume body without use } async updateAccessKey( - {abortSignal, ...params}: RequestConfig & s.UpdateAccessKeyRequest, + params: s.UpdateAccessKeyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2490,14 +2467,14 @@ export default class IAM { body.append(prefix+"AccessKeyId", (params["AccessKeyId"] ?? '').toString()); body.append(prefix+"Status", (params["Status"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateAccessKey", }); await resp.arrayBuffer(); // consume body without use } async updateAccountPasswordPolicy( - {abortSignal, ...params}: RequestConfig & s.UpdateAccountPasswordPolicyRequest = {}, + params: s.UpdateAccountPasswordPolicyRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2511,28 +2488,28 @@ export default class IAM { if ("PasswordReusePrevention" in params) body.append(prefix+"PasswordReusePrevention", (params["PasswordReusePrevention"] ?? '').toString()); if ("HardExpiry" in params) body.append(prefix+"HardExpiry", (params["HardExpiry"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateAccountPasswordPolicy", }); await resp.arrayBuffer(); // consume body without use } async updateAssumeRolePolicy( - {abortSignal, ...params}: RequestConfig & s.UpdateAssumeRolePolicyRequest, + params: s.UpdateAssumeRolePolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); body.append(prefix+"PolicyDocument", (params["PolicyDocument"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateAssumeRolePolicy", }); await resp.arrayBuffer(); // consume body without use } async updateGroup( - {abortSignal, ...params}: RequestConfig & s.UpdateGroupRequest, + params: s.UpdateGroupRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2540,14 +2517,14 @@ export default class IAM { if ("NewPath" in params) body.append(prefix+"NewPath", (params["NewPath"] ?? '').toString()); if ("NewGroupName" in params) body.append(prefix+"NewGroupName", (params["NewGroupName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateGroup", }); await resp.arrayBuffer(); // consume body without use } async updateLoginProfile( - {abortSignal, ...params}: RequestConfig & s.UpdateLoginProfileRequest, + params: s.UpdateLoginProfileRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2555,28 +2532,28 @@ export default class IAM { if ("Password" in params) body.append(prefix+"Password", (params["Password"] ?? '').toString()); if ("PasswordResetRequired" in params) body.append(prefix+"PasswordResetRequired", (params["PasswordResetRequired"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateLoginProfile", }); await resp.arrayBuffer(); // consume body without use } async updateOpenIDConnectProviderThumbprint( - {abortSignal, ...params}: RequestConfig & s.UpdateOpenIDConnectProviderThumbprintRequest, + params: s.UpdateOpenIDConnectProviderThumbprintRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"OpenIDConnectProviderArn", (params["OpenIDConnectProviderArn"] ?? '').toString()); if (params["ThumbprintList"]) qsP.appendList(body, prefix+"ThumbprintList", params["ThumbprintList"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateOpenIDConnectProviderThumbprint", }); await resp.arrayBuffer(); // consume body without use } async updateRole( - {abortSignal, ...params}: RequestConfig & s.UpdateRoleRequest, + params: s.UpdateRoleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2584,21 +2561,21 @@ export default class IAM { if ("Description" in params) body.append(prefix+"Description", (params["Description"] ?? '').toString()); if ("MaxSessionDuration" in params) body.append(prefix+"MaxSessionDuration", (params["MaxSessionDuration"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateRole", }); await resp.arrayBuffer(); // consume body without use } async updateRoleDescription( - {abortSignal, ...params}: RequestConfig & s.UpdateRoleDescriptionRequest, + params: s.UpdateRoleDescriptionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RoleName", (params["RoleName"] ?? '').toString()); body.append(prefix+"Description", (params["Description"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateRoleDescription", }); const xml = xmlP.readXmlResult(await resp.text(), "UpdateRoleDescriptionResult"); @@ -2608,14 +2585,14 @@ export default class IAM { } async updateSAMLProvider( - {abortSignal, ...params}: RequestConfig & s.UpdateSAMLProviderRequest, + params: s.UpdateSAMLProviderRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SAMLMetadataDocument", (params["SAMLMetadataDocument"] ?? '').toString()); body.append(prefix+"SAMLProviderArn", (params["SAMLProviderArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateSAMLProvider", }); const xml = xmlP.readXmlResult(await resp.text(), "UpdateSAMLProviderResult"); @@ -2625,7 +2602,7 @@ export default class IAM { } async updateSSHPublicKey( - {abortSignal, ...params}: RequestConfig & s.UpdateSSHPublicKeyRequest, + params: s.UpdateSSHPublicKeyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2633,14 +2610,14 @@ export default class IAM { body.append(prefix+"SSHPublicKeyId", (params["SSHPublicKeyId"] ?? '').toString()); body.append(prefix+"Status", (params["Status"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateSSHPublicKey", }); await resp.arrayBuffer(); // consume body without use } async updateServerCertificate( - {abortSignal, ...params}: RequestConfig & s.UpdateServerCertificateRequest, + params: s.UpdateServerCertificateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2648,14 +2625,14 @@ export default class IAM { if ("NewPath" in params) body.append(prefix+"NewPath", (params["NewPath"] ?? '').toString()); if ("NewServerCertificateName" in params) body.append(prefix+"NewServerCertificateName", (params["NewServerCertificateName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateServerCertificate", }); await resp.arrayBuffer(); // consume body without use } async updateServiceSpecificCredential( - {abortSignal, ...params}: RequestConfig & s.UpdateServiceSpecificCredentialRequest, + params: s.UpdateServiceSpecificCredentialRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2663,14 +2640,14 @@ export default class IAM { body.append(prefix+"ServiceSpecificCredentialId", (params["ServiceSpecificCredentialId"] ?? '').toString()); body.append(prefix+"Status", (params["Status"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateServiceSpecificCredential", }); await resp.arrayBuffer(); // consume body without use } async updateSigningCertificate( - {abortSignal, ...params}: RequestConfig & s.UpdateSigningCertificateRequest, + params: s.UpdateSigningCertificateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2678,14 +2655,14 @@ export default class IAM { body.append(prefix+"CertificateId", (params["CertificateId"] ?? '').toString()); body.append(prefix+"Status", (params["Status"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateSigningCertificate", }); await resp.arrayBuffer(); // consume body without use } async updateUser( - {abortSignal, ...params}: RequestConfig & s.UpdateUserRequest, + params: s.UpdateUserRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2693,21 +2670,21 @@ export default class IAM { if ("NewPath" in params) body.append(prefix+"NewPath", (params["NewPath"] ?? '').toString()); if ("NewUserName" in params) body.append(prefix+"NewUserName", (params["NewUserName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateUser", }); await resp.arrayBuffer(); // consume body without use } async uploadSSHPublicKey( - {abortSignal, ...params}: RequestConfig & s.UploadSSHPublicKeyRequest, + params: s.UploadSSHPublicKeyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"SSHPublicKeyBody", (params["SSHPublicKeyBody"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UploadSSHPublicKey", }); const xml = xmlP.readXmlResult(await resp.text(), "UploadSSHPublicKeyResult"); @@ -2717,7 +2694,7 @@ export default class IAM { } async uploadServerCertificate( - {abortSignal, ...params}: RequestConfig & s.UploadServerCertificateRequest, + params: s.UploadServerCertificateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2728,7 +2705,7 @@ export default class IAM { if ("CertificateChain" in params) body.append(prefix+"CertificateChain", (params["CertificateChain"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UploadServerCertificate", }); const xml = xmlP.readXmlResult(await resp.text(), "UploadServerCertificateResult"); @@ -2739,14 +2716,14 @@ export default class IAM { } async uploadSigningCertificate( - {abortSignal, ...params}: RequestConfig & s.UploadSigningCertificateRequest, + params: s.UploadSigningCertificateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("UserName" in params) body.append(prefix+"UserName", (params["UserName"] ?? '').toString()); body.append(prefix+"CertificateBody", (params["CertificateBody"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UploadSigningCertificate", }); const xml = xmlP.readXmlResult(await resp.text(), "UploadSigningCertificateResult"); @@ -2759,7 +2736,7 @@ export default class IAM { /** Checks state up to 40 times, 1 seconds apart (about 1 minutes max wait time). */ async waitForInstanceProfileExists( - params: RequestConfig & s.GetInstanceProfileRequest, + params: s.GetInstanceProfileRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state InstanceProfileExists'; for (let i = 0; i < 40; i++) { @@ -2776,7 +2753,7 @@ export default class IAM { /** Checks state up to 20 times, 1 seconds apart (about 1 minutes max wait time). */ async waitForUserExists( - params: RequestConfig & s.GetUserRequest, + params: s.GetUserRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state UserExists'; for (let i = 0; i < 20; i++) { @@ -2793,7 +2770,7 @@ export default class IAM { /** Checks state up to 20 times, 1 seconds apart (about 1 minutes max wait time). */ async waitForRoleExists( - params: RequestConfig & s.GetRoleRequest, + params: s.GetRoleRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state RoleExists'; for (let i = 0; i < 20; i++) { @@ -2810,7 +2787,7 @@ export default class IAM { /** Checks state up to 20 times, 1 seconds apart (about 1 minutes max wait time). */ async waitForPolicyExists( - params: RequestConfig & s.GetPolicyRequest, + params: s.GetPolicyRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state PolicyExists'; for (let i = 0; i < 20; i++) { diff --git a/lib/services/kinesis/mod.ts b/lib/services/kinesis/mod.ts index 031827f8..be26a987 100644 --- a/lib/services/kinesis/mod.ts +++ b/lib/services/kinesis/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon Kinesis -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"; @@ -15,7 +11,7 @@ function serializeBlob(input: string | Uint8Array | null | undefined) { return Base64.encode(input); } -export default class Kinesis { +export class Kinesis { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(Kinesis.ApiMetadata); @@ -38,63 +34,63 @@ export default class Kinesis { }; async addTagsToStream( - {abortSignal, ...params}: RequestConfig & s.AddTagsToStreamInput, + params: s.AddTagsToStreamInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], Tags: params["Tags"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddTagsToStream", }); await resp.arrayBuffer(); // consume body without use } async createStream( - {abortSignal, ...params}: RequestConfig & s.CreateStreamInput, + params: s.CreateStreamInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], ShardCount: params["ShardCount"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateStream", }); await resp.arrayBuffer(); // consume body without use } async decreaseStreamRetentionPeriod( - {abortSignal, ...params}: RequestConfig & s.DecreaseStreamRetentionPeriodInput, + params: s.DecreaseStreamRetentionPeriodInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], RetentionPeriodHours: params["RetentionPeriodHours"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DecreaseStreamRetentionPeriod", }); await resp.arrayBuffer(); // consume body without use } async deleteStream( - {abortSignal, ...params}: RequestConfig & s.DeleteStreamInput, + params: s.DeleteStreamInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], EnforceConsumerDeletion: params["EnforceConsumerDeletion"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteStream", }); await resp.arrayBuffer(); // consume body without use } async deregisterStreamConsumer( - {abortSignal, ...params}: RequestConfig & s.DeregisterStreamConsumerInput = {}, + params: s.DeregisterStreamConsumerInput = {}, ): Promise { const body: jsonP.JSONObject = { StreamARN: params["StreamARN"], @@ -102,18 +98,16 @@ export default class Kinesis { ConsumerARN: params["ConsumerARN"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterStreamConsumer", }); await resp.arrayBuffer(); // consume body without use } - async describeLimits( - {abortSignal}: RequestConfig = {}, - ): Promise { + async describeLimits(): Promise { const body: jsonP.JSONObject = {}; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeLimits", }); return jsonP.readObj({ @@ -126,7 +120,7 @@ export default class Kinesis { } async describeStream( - {abortSignal, ...params}: RequestConfig & s.DescribeStreamInput, + params: s.DescribeStreamInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], @@ -134,7 +128,7 @@ export default class Kinesis { ExclusiveStartShardId: params["ExclusiveStartShardId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeStream", }); return jsonP.readObj({ @@ -146,7 +140,7 @@ export default class Kinesis { } async describeStreamConsumer( - {abortSignal, ...params}: RequestConfig & s.DescribeStreamConsumerInput = {}, + params: s.DescribeStreamConsumerInput = {}, ): Promise { const body: jsonP.JSONObject = { StreamARN: params["StreamARN"], @@ -154,7 +148,7 @@ export default class Kinesis { ConsumerARN: params["ConsumerARN"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeStreamConsumer", }); return jsonP.readObj({ @@ -166,13 +160,13 @@ export default class Kinesis { } async describeStreamSummary( - {abortSignal, ...params}: RequestConfig & s.DescribeStreamSummaryInput, + params: s.DescribeStreamSummaryInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeStreamSummary", }); return jsonP.readObj({ @@ -184,14 +178,14 @@ export default class Kinesis { } async disableEnhancedMonitoring( - {abortSignal, ...params}: RequestConfig & s.DisableEnhancedMonitoringInput, + params: s.DisableEnhancedMonitoringInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], ShardLevelMetrics: params["ShardLevelMetrics"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableEnhancedMonitoring", }); return jsonP.readObj({ @@ -205,14 +199,14 @@ export default class Kinesis { } async enableEnhancedMonitoring( - {abortSignal, ...params}: RequestConfig & s.EnableEnhancedMonitoringInput, + params: s.EnableEnhancedMonitoringInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], ShardLevelMetrics: params["ShardLevelMetrics"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableEnhancedMonitoring", }); return jsonP.readObj({ @@ -226,14 +220,14 @@ export default class Kinesis { } async getRecords( - {abortSignal, ...params}: RequestConfig & s.GetRecordsInput, + params: s.GetRecordsInput, ): Promise { const body: jsonP.JSONObject = { ShardIterator: params["ShardIterator"], Limit: params["Limit"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetRecords", }); return jsonP.readObj({ @@ -249,7 +243,7 @@ export default class Kinesis { } async getShardIterator( - {abortSignal, ...params}: RequestConfig & s.GetShardIteratorInput, + params: s.GetShardIteratorInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], @@ -259,7 +253,7 @@ export default class Kinesis { Timestamp: jsonP.serializeDate_unixTimestamp(params["Timestamp"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetShardIterator", }); return jsonP.readObj({ @@ -271,21 +265,21 @@ export default class Kinesis { } async increaseStreamRetentionPeriod( - {abortSignal, ...params}: RequestConfig & s.IncreaseStreamRetentionPeriodInput, + params: s.IncreaseStreamRetentionPeriodInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], RetentionPeriodHours: params["RetentionPeriodHours"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "IncreaseStreamRetentionPeriod", }); await resp.arrayBuffer(); // consume body without use } async listShards( - {abortSignal, ...params}: RequestConfig & s.ListShardsInput = {}, + params: s.ListShardsInput = {}, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], @@ -296,7 +290,7 @@ export default class Kinesis { ShardFilter: fromShardFilter(params["ShardFilter"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListShards", }); return jsonP.readObj({ @@ -309,7 +303,7 @@ export default class Kinesis { } async listStreamConsumers( - {abortSignal, ...params}: RequestConfig & s.ListStreamConsumersInput, + params: s.ListStreamConsumersInput, ): Promise { const body: jsonP.JSONObject = { StreamARN: params["StreamARN"], @@ -318,7 +312,7 @@ export default class Kinesis { StreamCreationTimestamp: jsonP.serializeDate_unixTimestamp(params["StreamCreationTimestamp"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListStreamConsumers", }); return jsonP.readObj({ @@ -331,14 +325,14 @@ export default class Kinesis { } async listStreams( - {abortSignal, ...params}: RequestConfig & s.ListStreamsInput = {}, + params: s.ListStreamsInput = {}, ): Promise { const body: jsonP.JSONObject = { Limit: params["Limit"], ExclusiveStartStreamName: params["ExclusiveStartStreamName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListStreams", }); return jsonP.readObj({ @@ -351,7 +345,7 @@ export default class Kinesis { } async listTagsForStream( - {abortSignal, ...params}: RequestConfig & s.ListTagsForStreamInput, + params: s.ListTagsForStreamInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], @@ -359,7 +353,7 @@ export default class Kinesis { Limit: params["Limit"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListTagsForStream", }); return jsonP.readObj({ @@ -372,7 +366,7 @@ export default class Kinesis { } async mergeShards( - {abortSignal, ...params}: RequestConfig & s.MergeShardsInput, + params: s.MergeShardsInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], @@ -380,14 +374,14 @@ export default class Kinesis { AdjacentShardToMerge: params["AdjacentShardToMerge"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "MergeShards", }); await resp.arrayBuffer(); // consume body without use } async putRecord( - {abortSignal, ...params}: RequestConfig & s.PutRecordInput, + params: s.PutRecordInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], @@ -397,7 +391,7 @@ export default class Kinesis { SequenceNumberForOrdering: params["SequenceNumberForOrdering"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutRecord", }); return jsonP.readObj({ @@ -412,14 +406,14 @@ export default class Kinesis { } async putRecords( - {abortSignal, ...params}: RequestConfig & s.PutRecordsInput, + params: s.PutRecordsInput, ): Promise { const body: jsonP.JSONObject = { Records: params["Records"]?.map(x => fromPutRecordsRequestEntry(x)), StreamName: params["StreamName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutRecords", }); return jsonP.readObj({ @@ -434,14 +428,14 @@ export default class Kinesis { } async registerStreamConsumer( - {abortSignal, ...params}: RequestConfig & s.RegisterStreamConsumerInput, + params: s.RegisterStreamConsumerInput, ): Promise { const body: jsonP.JSONObject = { StreamARN: params["StreamARN"], ConsumerName: params["ConsumerName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterStreamConsumer", }); return jsonP.readObj({ @@ -453,21 +447,21 @@ export default class Kinesis { } async removeTagsFromStream( - {abortSignal, ...params}: RequestConfig & s.RemoveTagsFromStreamInput, + params: s.RemoveTagsFromStreamInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], TagKeys: params["TagKeys"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveTagsFromStream", }); await resp.arrayBuffer(); // consume body without use } async splitShard( - {abortSignal, ...params}: RequestConfig & s.SplitShardInput, + params: s.SplitShardInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], @@ -475,14 +469,14 @@ export default class Kinesis { NewStartingHashKey: params["NewStartingHashKey"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SplitShard", }); await resp.arrayBuffer(); // consume body without use } async startStreamEncryption( - {abortSignal, ...params}: RequestConfig & s.StartStreamEncryptionInput, + params: s.StartStreamEncryptionInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], @@ -490,14 +484,14 @@ export default class Kinesis { KeyId: params["KeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartStreamEncryption", }); await resp.arrayBuffer(); // consume body without use } async stopStreamEncryption( - {abortSignal, ...params}: RequestConfig & s.StopStreamEncryptionInput, + params: s.StopStreamEncryptionInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], @@ -505,14 +499,14 @@ export default class Kinesis { KeyId: params["KeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StopStreamEncryption", }); await resp.arrayBuffer(); // consume body without use } async updateShardCount( - {abortSignal, ...params}: RequestConfig & s.UpdateShardCountInput, + params: s.UpdateShardCountInput, ): Promise { const body: jsonP.JSONObject = { StreamName: params["StreamName"], @@ -520,7 +514,7 @@ export default class Kinesis { ScalingType: params["ScalingType"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateShardCount", }); return jsonP.readObj({ @@ -537,7 +531,7 @@ export default class Kinesis { /** Checks state up to 18 times, 10 seconds apart (about 3 minutes max wait time). */ async waitForStreamExists( - params: RequestConfig & s.DescribeStreamInput, + params: s.DescribeStreamInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state StreamExists'; for (let i = 0; i < 18; i++) { @@ -550,7 +544,7 @@ export default class Kinesis { /** Checks state up to 18 times, 10 seconds apart (about 3 minutes max wait time). */ async waitForStreamNotExists( - params: RequestConfig & s.DescribeStreamInput, + params: s.DescribeStreamInput, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state StreamNotExists'; for (let i = 0; i < 18; i++) { diff --git a/lib/services/kms/mod.ts b/lib/services/kms/mod.ts index 9eea9cb1..4d5c96ed 100644 --- a/lib/services/kms/mod.ts +++ b/lib/services/kms/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: AWS Key Management Service -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"; @@ -15,7 +11,7 @@ function serializeBlob(input: string | Uint8Array | null | undefined) { return Base64.encode(input); } -export default class KMS { +export class KMS { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(KMS.ApiMetadata); @@ -35,13 +31,13 @@ export default class KMS { }; async cancelKeyDeletion( - {abortSignal, ...params}: RequestConfig & s.CancelKeyDeletionRequest, + params: s.CancelKeyDeletionRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelKeyDeletion", }); return jsonP.readObj({ @@ -53,34 +49,34 @@ export default class KMS { } async connectCustomKeyStore( - {abortSignal, ...params}: RequestConfig & s.ConnectCustomKeyStoreRequest, + params: s.ConnectCustomKeyStoreRequest, ): Promise { const body: jsonP.JSONObject = { CustomKeyStoreId: params["CustomKeyStoreId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ConnectCustomKeyStore", }); await resp.arrayBuffer(); // consume body without use } async createAlias( - {abortSignal, ...params}: RequestConfig & s.CreateAliasRequest, + params: s.CreateAliasRequest, ): Promise { const body: jsonP.JSONObject = { AliasName: params["AliasName"], TargetKeyId: params["TargetKeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateAlias", }); await resp.arrayBuffer(); // consume body without use } async createCustomKeyStore( - {abortSignal, ...params}: RequestConfig & s.CreateCustomKeyStoreRequest, + params: s.CreateCustomKeyStoreRequest, ): Promise { const body: jsonP.JSONObject = { CustomKeyStoreName: params["CustomKeyStoreName"], @@ -89,7 +85,7 @@ export default class KMS { KeyStorePassword: params["KeyStorePassword"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateCustomKeyStore", }); return jsonP.readObj({ @@ -101,7 +97,7 @@ export default class KMS { } async createGrant( - {abortSignal, ...params}: RequestConfig & s.CreateGrantRequest, + params: s.CreateGrantRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -113,7 +109,7 @@ export default class KMS { Name: params["Name"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateGrant", }); return jsonP.readObj({ @@ -126,7 +122,7 @@ export default class KMS { } async createKey( - {abortSignal, ...params}: RequestConfig & s.CreateKeyRequest = {}, + params: s.CreateKeyRequest = {}, ): Promise { const body: jsonP.JSONObject = { Policy: params["Policy"], @@ -139,7 +135,7 @@ export default class KMS { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateKey", }); return jsonP.readObj({ @@ -151,7 +147,7 @@ export default class KMS { } async decrypt( - {abortSignal, ...params}: RequestConfig & s.DecryptRequest, + params: s.DecryptRequest, ): Promise { const body: jsonP.JSONObject = { CiphertextBlob: serializeBlob(params["CiphertextBlob"]), @@ -161,7 +157,7 @@ export default class KMS { EncryptionAlgorithm: params["EncryptionAlgorithm"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "Decrypt", }); return jsonP.readObj({ @@ -175,46 +171,46 @@ export default class KMS { } async deleteAlias( - {abortSignal, ...params}: RequestConfig & s.DeleteAliasRequest, + params: s.DeleteAliasRequest, ): Promise { const body: jsonP.JSONObject = { AliasName: params["AliasName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteAlias", }); await resp.arrayBuffer(); // consume body without use } async deleteCustomKeyStore( - {abortSignal, ...params}: RequestConfig & s.DeleteCustomKeyStoreRequest, + params: s.DeleteCustomKeyStoreRequest, ): Promise { const body: jsonP.JSONObject = { CustomKeyStoreId: params["CustomKeyStoreId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteCustomKeyStore", }); await resp.arrayBuffer(); // consume body without use } async deleteImportedKeyMaterial( - {abortSignal, ...params}: RequestConfig & s.DeleteImportedKeyMaterialRequest, + params: s.DeleteImportedKeyMaterialRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteImportedKeyMaterial", }); await resp.arrayBuffer(); // consume body without use } async describeCustomKeyStores( - {abortSignal, ...params}: RequestConfig & s.DescribeCustomKeyStoresRequest = {}, + params: s.DescribeCustomKeyStoresRequest = {}, ): Promise { const body: jsonP.JSONObject = { CustomKeyStoreId: params["CustomKeyStoreId"], @@ -223,7 +219,7 @@ export default class KMS { Marker: params["Marker"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeCustomKeyStores", }); return jsonP.readObj({ @@ -237,14 +233,14 @@ export default class KMS { } async describeKey( - {abortSignal, ...params}: RequestConfig & s.DescribeKeyRequest, + params: s.DescribeKeyRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], GrantTokens: params["GrantTokens"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeKey", }); return jsonP.readObj({ @@ -256,72 +252,72 @@ export default class KMS { } async disableKey( - {abortSignal, ...params}: RequestConfig & s.DisableKeyRequest, + params: s.DisableKeyRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableKey", }); await resp.arrayBuffer(); // consume body without use } async disableKeyRotation( - {abortSignal, ...params}: RequestConfig & s.DisableKeyRotationRequest, + params: s.DisableKeyRotationRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisableKeyRotation", }); await resp.arrayBuffer(); // consume body without use } async disconnectCustomKeyStore( - {abortSignal, ...params}: RequestConfig & s.DisconnectCustomKeyStoreRequest, + params: s.DisconnectCustomKeyStoreRequest, ): Promise { const body: jsonP.JSONObject = { CustomKeyStoreId: params["CustomKeyStoreId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisconnectCustomKeyStore", }); await resp.arrayBuffer(); // consume body without use } async enableKey( - {abortSignal, ...params}: RequestConfig & s.EnableKeyRequest, + params: s.EnableKeyRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableKey", }); await resp.arrayBuffer(); // consume body without use } async enableKeyRotation( - {abortSignal, ...params}: RequestConfig & s.EnableKeyRotationRequest, + params: s.EnableKeyRotationRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "EnableKeyRotation", }); await resp.arrayBuffer(); // consume body without use } async encrypt( - {abortSignal, ...params}: RequestConfig & s.EncryptRequest, + params: s.EncryptRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -331,7 +327,7 @@ export default class KMS { EncryptionAlgorithm: params["EncryptionAlgorithm"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "Encrypt", }); return jsonP.readObj({ @@ -345,7 +341,7 @@ export default class KMS { } async generateDataKey( - {abortSignal, ...params}: RequestConfig & s.GenerateDataKeyRequest, + params: s.GenerateDataKeyRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -355,7 +351,7 @@ export default class KMS { GrantTokens: params["GrantTokens"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GenerateDataKey", }); return jsonP.readObj({ @@ -369,7 +365,7 @@ export default class KMS { } async generateDataKeyPair( - {abortSignal, ...params}: RequestConfig & s.GenerateDataKeyPairRequest, + params: s.GenerateDataKeyPairRequest, ): Promise { const body: jsonP.JSONObject = { EncryptionContext: params["EncryptionContext"], @@ -378,7 +374,7 @@ export default class KMS { GrantTokens: params["GrantTokens"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GenerateDataKeyPair", }); return jsonP.readObj({ @@ -394,7 +390,7 @@ export default class KMS { } async generateDataKeyPairWithoutPlaintext( - {abortSignal, ...params}: RequestConfig & s.GenerateDataKeyPairWithoutPlaintextRequest, + params: s.GenerateDataKeyPairWithoutPlaintextRequest, ): Promise { const body: jsonP.JSONObject = { EncryptionContext: params["EncryptionContext"], @@ -403,7 +399,7 @@ export default class KMS { GrantTokens: params["GrantTokens"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GenerateDataKeyPairWithoutPlaintext", }); return jsonP.readObj({ @@ -418,7 +414,7 @@ export default class KMS { } async generateDataKeyWithoutPlaintext( - {abortSignal, ...params}: RequestConfig & s.GenerateDataKeyWithoutPlaintextRequest, + params: s.GenerateDataKeyWithoutPlaintextRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -428,7 +424,7 @@ export default class KMS { GrantTokens: params["GrantTokens"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GenerateDataKeyWithoutPlaintext", }); return jsonP.readObj({ @@ -441,14 +437,14 @@ export default class KMS { } async generateRandom( - {abortSignal, ...params}: RequestConfig & s.GenerateRandomRequest = {}, + params: s.GenerateRandomRequest = {}, ): Promise { const body: jsonP.JSONObject = { NumberOfBytes: params["NumberOfBytes"], CustomKeyStoreId: params["CustomKeyStoreId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GenerateRandom", }); return jsonP.readObj({ @@ -460,14 +456,14 @@ export default class KMS { } async getKeyPolicy( - {abortSignal, ...params}: RequestConfig & s.GetKeyPolicyRequest, + params: s.GetKeyPolicyRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], PolicyName: params["PolicyName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetKeyPolicy", }); return jsonP.readObj({ @@ -479,13 +475,13 @@ export default class KMS { } async getKeyRotationStatus( - {abortSignal, ...params}: RequestConfig & s.GetKeyRotationStatusRequest, + params: s.GetKeyRotationStatusRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetKeyRotationStatus", }); return jsonP.readObj({ @@ -497,7 +493,7 @@ export default class KMS { } async getParametersForImport( - {abortSignal, ...params}: RequestConfig & s.GetParametersForImportRequest, + params: s.GetParametersForImportRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -505,7 +501,7 @@ export default class KMS { WrappingKeySpec: params["WrappingKeySpec"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetParametersForImport", }); return jsonP.readObj({ @@ -520,14 +516,14 @@ export default class KMS { } async getPublicKey( - {abortSignal, ...params}: RequestConfig & s.GetPublicKeyRequest, + params: s.GetPublicKeyRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], GrantTokens: params["GrantTokens"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetPublicKey", }); return jsonP.readObj({ @@ -544,7 +540,7 @@ export default class KMS { } async importKeyMaterial( - {abortSignal, ...params}: RequestConfig & s.ImportKeyMaterialRequest, + params: s.ImportKeyMaterialRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -554,14 +550,14 @@ export default class KMS { ExpirationModel: params["ExpirationModel"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ImportKeyMaterial", }); await resp.arrayBuffer(); // consume body without use } async listAliases( - {abortSignal, ...params}: RequestConfig & s.ListAliasesRequest = {}, + params: s.ListAliasesRequest = {}, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -569,7 +565,7 @@ export default class KMS { Marker: params["Marker"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListAliases", }); return jsonP.readObj({ @@ -583,7 +579,7 @@ export default class KMS { } async listGrants( - {abortSignal, ...params}: RequestConfig & s.ListGrantsRequest, + params: s.ListGrantsRequest, ): Promise { const body: jsonP.JSONObject = { Limit: params["Limit"], @@ -593,7 +589,7 @@ export default class KMS { GranteePrincipal: params["GranteePrincipal"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListGrants", }); return jsonP.readObj({ @@ -607,7 +603,7 @@ export default class KMS { } async listKeyPolicies( - {abortSignal, ...params}: RequestConfig & s.ListKeyPoliciesRequest, + params: s.ListKeyPoliciesRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -615,7 +611,7 @@ export default class KMS { Marker: params["Marker"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListKeyPolicies", }); return jsonP.readObj({ @@ -629,14 +625,14 @@ export default class KMS { } async listKeys( - {abortSignal, ...params}: RequestConfig & s.ListKeysRequest = {}, + params: s.ListKeysRequest = {}, ): Promise { const body: jsonP.JSONObject = { Limit: params["Limit"], Marker: params["Marker"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListKeys", }); return jsonP.readObj({ @@ -650,7 +646,7 @@ export default class KMS { } async listResourceTags( - {abortSignal, ...params}: RequestConfig & s.ListResourceTagsRequest, + params: s.ListResourceTagsRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -658,7 +654,7 @@ export default class KMS { Marker: params["Marker"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListResourceTags", }); return jsonP.readObj({ @@ -672,7 +668,7 @@ export default class KMS { } async listRetirableGrants( - {abortSignal, ...params}: RequestConfig & s.ListRetirableGrantsRequest, + params: s.ListRetirableGrantsRequest, ): Promise { const body: jsonP.JSONObject = { Limit: params["Limit"], @@ -680,7 +676,7 @@ export default class KMS { RetiringPrincipal: params["RetiringPrincipal"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListRetirableGrants", }); return jsonP.readObj({ @@ -694,7 +690,7 @@ export default class KMS { } async putKeyPolicy( - {abortSignal, ...params}: RequestConfig & s.PutKeyPolicyRequest, + params: s.PutKeyPolicyRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -703,14 +699,14 @@ export default class KMS { BypassPolicyLockoutSafetyCheck: params["BypassPolicyLockoutSafetyCheck"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutKeyPolicy", }); await resp.arrayBuffer(); // consume body without use } async reEncrypt( - {abortSignal, ...params}: RequestConfig & s.ReEncryptRequest, + params: s.ReEncryptRequest, ): Promise { const body: jsonP.JSONObject = { CiphertextBlob: serializeBlob(params["CiphertextBlob"]), @@ -723,7 +719,7 @@ export default class KMS { GrantTokens: params["GrantTokens"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReEncrypt", }); return jsonP.readObj({ @@ -739,7 +735,7 @@ export default class KMS { } async retireGrant( - {abortSignal, ...params}: RequestConfig & s.RetireGrantRequest = {}, + params: s.RetireGrantRequest = {}, ): Promise { const body: jsonP.JSONObject = { GrantToken: params["GrantToken"], @@ -747,35 +743,35 @@ export default class KMS { GrantId: params["GrantId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RetireGrant", }); await resp.arrayBuffer(); // consume body without use } async revokeGrant( - {abortSignal, ...params}: RequestConfig & s.RevokeGrantRequest, + params: s.RevokeGrantRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], GrantId: params["GrantId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RevokeGrant", }); await resp.arrayBuffer(); // consume body without use } async scheduleKeyDeletion( - {abortSignal, ...params}: RequestConfig & s.ScheduleKeyDeletionRequest, + params: s.ScheduleKeyDeletionRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], PendingWindowInDays: params["PendingWindowInDays"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ScheduleKeyDeletion", }); return jsonP.readObj({ @@ -788,7 +784,7 @@ export default class KMS { } async sign( - {abortSignal, ...params}: RequestConfig & s.SignRequest, + params: s.SignRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -798,7 +794,7 @@ export default class KMS { SigningAlgorithm: params["SigningAlgorithm"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "Sign", }); return jsonP.readObj({ @@ -812,49 +808,49 @@ export default class KMS { } async tagResource( - {abortSignal, ...params}: RequestConfig & s.TagResourceRequest, + params: s.TagResourceRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagResource", }); await resp.arrayBuffer(); // consume body without use } async untagResource( - {abortSignal, ...params}: RequestConfig & s.UntagResourceRequest, + params: s.UntagResourceRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], TagKeys: params["TagKeys"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagResource", }); await resp.arrayBuffer(); // consume body without use } async updateAlias( - {abortSignal, ...params}: RequestConfig & s.UpdateAliasRequest, + params: s.UpdateAliasRequest, ): Promise { const body: jsonP.JSONObject = { AliasName: params["AliasName"], TargetKeyId: params["TargetKeyId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateAlias", }); await resp.arrayBuffer(); // consume body without use } async updateCustomKeyStore( - {abortSignal, ...params}: RequestConfig & s.UpdateCustomKeyStoreRequest, + params: s.UpdateCustomKeyStoreRequest, ): Promise { const body: jsonP.JSONObject = { CustomKeyStoreId: params["CustomKeyStoreId"], @@ -863,28 +859,28 @@ export default class KMS { CloudHsmClusterId: params["CloudHsmClusterId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateCustomKeyStore", }); await resp.arrayBuffer(); // consume body without use } async updateKeyDescription( - {abortSignal, ...params}: RequestConfig & s.UpdateKeyDescriptionRequest, + params: s.UpdateKeyDescriptionRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], Description: params["Description"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateKeyDescription", }); await resp.arrayBuffer(); // consume body without use } async verify( - {abortSignal, ...params}: RequestConfig & s.VerifyRequest, + params: s.VerifyRequest, ): Promise { const body: jsonP.JSONObject = { KeyId: params["KeyId"], @@ -895,7 +891,7 @@ export default class KMS { GrantTokens: params["GrantTokens"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "Verify", }); return jsonP.readObj({ diff --git a/lib/services/lambda/mod.ts b/lib/services/lambda/mod.ts index 9e7f93f8..83d6699e 100644 --- a/lib/services/lambda/mod.ts +++ b/lib/services/lambda/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: AWS Lambda -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"; @@ -15,7 +11,7 @@ function serializeBlob(input: string | Uint8Array | null | undefined) { return Base64.encode(input); } -export default class Lambda { +export class Lambda { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(Lambda.ApiMetadata); @@ -32,7 +28,7 @@ export default class Lambda { }; async addLayerVersionPermission( - {abortSignal, ...params}: RequestConfig & s.AddLayerVersionPermissionRequest, + params: s.AddLayerVersionPermissionRequest, ): Promise { const query = new URLSearchParams; const body: jsonP.JSONObject = { @@ -43,7 +39,7 @@ export default class Lambda { }; if (params["RevisionId"] != null) query.set("RevisionId", params["RevisionId"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, body, + query, body, action: "AddLayerVersionPermission", requestUri: cmnP.encodePath`/2018-10-31/layers/${params["LayerName"]}/versions/${params["VersionNumber"].toString()}/policy`, responseCode: 201, @@ -58,7 +54,7 @@ export default class Lambda { } async addPermission( - {abortSignal, ...params}: RequestConfig & s.AddPermissionRequest, + params: s.AddPermissionRequest, ): Promise { const query = new URLSearchParams; const body: jsonP.JSONObject = { @@ -72,7 +68,7 @@ export default class Lambda { }; if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, body, + query, body, action: "AddPermission", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/policy`, responseCode: 201, @@ -86,7 +82,7 @@ export default class Lambda { } async createAlias( - {abortSignal, ...params}: RequestConfig & s.CreateAliasRequest, + params: s.CreateAliasRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -95,7 +91,7 @@ export default class Lambda { RoutingConfig: fromAliasRoutingConfiguration(params["RoutingConfig"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateAlias", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/aliases`, responseCode: 201, @@ -114,7 +110,7 @@ export default class Lambda { } async createCodeSigningConfig( - {abortSignal, ...params}: RequestConfig & s.CreateCodeSigningConfigRequest, + params: s.CreateCodeSigningConfigRequest, ): Promise { const body: jsonP.JSONObject = { Description: params["Description"], @@ -122,7 +118,7 @@ export default class Lambda { CodeSigningPolicies: fromCodeSigningPolicies(params["CodeSigningPolicies"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateCodeSigningConfig", requestUri: "/2020-04-22/code-signing-configs/", responseCode: 201, @@ -136,7 +132,7 @@ export default class Lambda { } async createEventSourceMapping( - {abortSignal, ...params}: RequestConfig & s.CreateEventSourceMappingRequest, + params: s.CreateEventSourceMappingRequest, ): Promise { const body: jsonP.JSONObject = { EventSourceArn: params["EventSourceArn"], @@ -159,7 +155,7 @@ export default class Lambda { FunctionResponseTypes: params["FunctionResponseTypes"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateEventSourceMapping", requestUri: "/2015-03-31/event-source-mappings/", responseCode: 202, @@ -194,7 +190,7 @@ export default class Lambda { } async createFunction( - {abortSignal, ...params}: RequestConfig & s.CreateFunctionRequest, + params: s.CreateFunctionRequest, ): Promise { const body: jsonP.JSONObject = { FunctionName: params["FunctionName"], @@ -219,7 +215,7 @@ export default class Lambda { CodeSigningConfigArn: params["CodeSigningConfigArn"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateFunction", requestUri: "/2015-03-31/functions", responseCode: 201, @@ -263,11 +259,10 @@ export default class Lambda { } async deleteAlias( - {abortSignal, ...params}: RequestConfig & s.DeleteAliasRequest, + params: s.DeleteAliasRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteAlias", method: "DELETE", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/aliases/${params["Name"]}`, @@ -276,11 +271,10 @@ export default class Lambda { } async deleteCodeSigningConfig( - {abortSignal, ...params}: RequestConfig & s.DeleteCodeSigningConfigRequest, + params: s.DeleteCodeSigningConfigRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteCodeSigningConfig", method: "DELETE", requestUri: cmnP.encodePath`/2020-04-22/code-signing-configs/${params["CodeSigningConfigArn"]}`, @@ -289,11 +283,10 @@ export default class Lambda { } async deleteEventSourceMapping( - {abortSignal, ...params}: RequestConfig & s.DeleteEventSourceMappingRequest, + params: s.DeleteEventSourceMappingRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteEventSourceMapping", method: "DELETE", requestUri: cmnP.encodePath`/2015-03-31/event-source-mappings/${params["UUID"]}`, @@ -329,12 +322,12 @@ export default class Lambda { } async deleteFunction( - {abortSignal, ...params}: RequestConfig & s.DeleteFunctionRequest, + params: s.DeleteFunctionRequest, ): Promise { const query = new URLSearchParams; if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "DeleteFunction", method: "DELETE", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}`, @@ -343,11 +336,10 @@ export default class Lambda { } async deleteFunctionCodeSigningConfig( - {abortSignal, ...params}: RequestConfig & s.DeleteFunctionCodeSigningConfigRequest, + params: s.DeleteFunctionCodeSigningConfigRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteFunctionCodeSigningConfig", method: "DELETE", requestUri: cmnP.encodePath`/2020-06-30/functions/${params["FunctionName"]}/code-signing-config`, @@ -356,11 +348,10 @@ export default class Lambda { } async deleteFunctionConcurrency( - {abortSignal, ...params}: RequestConfig & s.DeleteFunctionConcurrencyRequest, + params: s.DeleteFunctionConcurrencyRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteFunctionConcurrency", method: "DELETE", requestUri: cmnP.encodePath`/2017-10-31/functions/${params["FunctionName"]}/concurrency`, @@ -369,12 +360,12 @@ export default class Lambda { } async deleteFunctionEventInvokeConfig( - {abortSignal, ...params}: RequestConfig & s.DeleteFunctionEventInvokeConfigRequest, + params: s.DeleteFunctionEventInvokeConfigRequest, ): Promise { const query = new URLSearchParams; if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "DeleteFunctionEventInvokeConfig", method: "DELETE", requestUri: cmnP.encodePath`/2019-09-25/functions/${params["FunctionName"]}/event-invoke-config`, @@ -383,11 +374,10 @@ export default class Lambda { } async deleteLayerVersion( - {abortSignal, ...params}: RequestConfig & s.DeleteLayerVersionRequest, + params: s.DeleteLayerVersionRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteLayerVersion", method: "DELETE", requestUri: cmnP.encodePath`/2018-10-31/layers/${params["LayerName"]}/versions/${params["VersionNumber"].toString()}`, @@ -396,12 +386,12 @@ export default class Lambda { } async deleteProvisionedConcurrencyConfig( - {abortSignal, ...params}: RequestConfig & s.DeleteProvisionedConcurrencyConfigRequest, + params: s.DeleteProvisionedConcurrencyConfigRequest, ): Promise { const query = new URLSearchParams; query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "DeleteProvisionedConcurrencyConfig", method: "DELETE", requestUri: cmnP.encodePath`/2019-09-30/functions/${params["FunctionName"]}/provisioned-concurrency`, @@ -409,12 +399,10 @@ export default class Lambda { }); } - async getAccountSettings( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getAccountSettings(): Promise { const body: jsonP.JSONObject = {}; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetAccountSettings", method: "GET", requestUri: "/2016-08-19/account-settings/", @@ -430,11 +418,10 @@ export default class Lambda { } async getAlias( - {abortSignal, ...params}: RequestConfig & s.GetAliasRequest, + params: s.GetAliasRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetAlias", method: "GET", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/aliases/${params["Name"]}`, @@ -454,11 +441,10 @@ export default class Lambda { } async getCodeSigningConfig( - {abortSignal, ...params}: RequestConfig & s.GetCodeSigningConfigRequest, + params: s.GetCodeSigningConfigRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetCodeSigningConfig", method: "GET", requestUri: cmnP.encodePath`/2020-04-22/code-signing-configs/${params["CodeSigningConfigArn"]}`, @@ -473,11 +459,10 @@ export default class Lambda { } async getEventSourceMapping( - {abortSignal, ...params}: RequestConfig & s.GetEventSourceMappingRequest, + params: s.GetEventSourceMappingRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetEventSourceMapping", method: "GET", requestUri: cmnP.encodePath`/2015-03-31/event-source-mappings/${params["UUID"]}`, @@ -513,12 +498,12 @@ export default class Lambda { } async getFunction( - {abortSignal, ...params}: RequestConfig & s.GetFunctionRequest, + params: s.GetFunctionRequest, ): Promise { const query = new URLSearchParams; if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetFunction", method: "GET", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}`, @@ -536,11 +521,10 @@ export default class Lambda { } async getFunctionCodeSigningConfig( - {abortSignal, ...params}: RequestConfig & s.GetFunctionCodeSigningConfigRequest, + params: s.GetFunctionCodeSigningConfigRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetFunctionCodeSigningConfig", method: "GET", requestUri: cmnP.encodePath`/2020-06-30/functions/${params["FunctionName"]}/code-signing-config`, @@ -556,11 +540,10 @@ export default class Lambda { } async getFunctionConcurrency( - {abortSignal, ...params}: RequestConfig & s.GetFunctionConcurrencyRequest, + params: s.GetFunctionConcurrencyRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetFunctionConcurrency", method: "GET", requestUri: cmnP.encodePath`/2019-09-30/functions/${params["FunctionName"]}/concurrency`, @@ -575,12 +558,12 @@ export default class Lambda { } async getFunctionConfiguration( - {abortSignal, ...params}: RequestConfig & s.GetFunctionConfigurationRequest, + params: s.GetFunctionConfigurationRequest, ): Promise { const query = new URLSearchParams; if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetFunctionConfiguration", method: "GET", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/configuration`, @@ -625,12 +608,12 @@ export default class Lambda { } async getFunctionEventInvokeConfig( - {abortSignal, ...params}: RequestConfig & s.GetFunctionEventInvokeConfigRequest, + params: s.GetFunctionEventInvokeConfigRequest, ): Promise { const query = new URLSearchParams; if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetFunctionEventInvokeConfig", method: "GET", requestUri: cmnP.encodePath`/2019-09-25/functions/${params["FunctionName"]}/event-invoke-config`, @@ -649,11 +632,10 @@ export default class Lambda { } async getLayerVersion( - {abortSignal, ...params}: RequestConfig & s.GetLayerVersionRequest, + params: s.GetLayerVersionRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetLayerVersion", method: "GET", requestUri: cmnP.encodePath`/2018-10-31/layers/${params["LayerName"]}/versions/${params["VersionNumber"].toString()}`, @@ -675,12 +657,12 @@ export default class Lambda { } async getLayerVersionByArn( - {abortSignal, ...params}: RequestConfig & s.GetLayerVersionByArnRequest, + params: s.GetLayerVersionByArnRequest, ): Promise { const query = new URLSearchParams; query.set("Arn", params["Arn"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetLayerVersionByArn", method: "GET", requestUri: "/2018-10-31/layers?find=LayerVersion", @@ -702,11 +684,10 @@ export default class Lambda { } async getLayerVersionPolicy( - {abortSignal, ...params}: RequestConfig & s.GetLayerVersionPolicyRequest, + params: s.GetLayerVersionPolicyRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetLayerVersionPolicy", method: "GET", requestUri: cmnP.encodePath`/2018-10-31/layers/${params["LayerName"]}/versions/${params["VersionNumber"].toString()}/policy`, @@ -722,12 +703,12 @@ export default class Lambda { } async getPolicy( - {abortSignal, ...params}: RequestConfig & s.GetPolicyRequest, + params: s.GetPolicyRequest, ): Promise { const query = new URLSearchParams; if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetPolicy", method: "GET", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/policy`, @@ -743,12 +724,12 @@ export default class Lambda { } async getProvisionedConcurrencyConfig( - {abortSignal, ...params}: RequestConfig & s.GetProvisionedConcurrencyConfigRequest, + params: s.GetProvisionedConcurrencyConfigRequest, ): Promise { const query = new URLSearchParams; query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetProvisionedConcurrencyConfig", method: "GET", requestUri: cmnP.encodePath`/2019-09-30/functions/${params["FunctionName"]}/provisioned-concurrency`, @@ -768,7 +749,7 @@ export default class Lambda { } async invoke( - {abortSignal, ...params}: RequestConfig & s.InvocationRequest, + params: s.InvocationRequest, ): Promise { const body = typeof params["Payload"] === 'string' ? new TextEncoder().encode(params["Payload"]) : params["Payload"]; const headers = new Headers; @@ -778,7 +759,7 @@ export default class Lambda { if (params["ClientContext"] != null) headers.append("X-Amz-Client-Context", params["ClientContext"]); if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "Invoke", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/invocations`, }); @@ -792,11 +773,11 @@ export default class Lambda { } async invokeAsync( - {abortSignal, ...params}: RequestConfig & s.InvokeAsyncRequest, + params: s.InvokeAsyncRequest, ): Promise { const body = typeof params["InvokeArgs"] === 'string' ? new TextEncoder().encode(params["InvokeArgs"]) : params["InvokeArgs"]; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "InvokeAsync", requestUri: cmnP.encodePath`/2014-11-13/functions/${params["FunctionName"]}/invoke-async/`, responseCode: 202, @@ -811,14 +792,14 @@ export default class Lambda { } async listAliases( - {abortSignal, ...params}: RequestConfig & s.ListAliasesRequest, + params: s.ListAliasesRequest, ): Promise { const query = new URLSearchParams; if (params["FunctionVersion"] != null) query.set("FunctionVersion", params["FunctionVersion"]?.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, + query, action: "ListAliases", method: "GET", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/aliases`, @@ -834,13 +815,13 @@ export default class Lambda { } async listCodeSigningConfigs( - {abortSignal, ...params}: RequestConfig & s.ListCodeSigningConfigsRequest = {}, + params: s.ListCodeSigningConfigsRequest = {}, ): 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, + query, action: "ListCodeSigningConfigs", method: "GET", requestUri: "/2020-04-22/code-signing-configs/", @@ -856,7 +837,7 @@ export default class Lambda { } async listEventSourceMappings( - {abortSignal, ...params}: RequestConfig & s.ListEventSourceMappingsRequest = {}, + params: s.ListEventSourceMappingsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["EventSourceArn"] != null) query.set("EventSourceArn", params["EventSourceArn"]?.toString() ?? ""); @@ -864,7 +845,7 @@ export default class Lambda { 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, + query, action: "ListEventSourceMappings", method: "GET", requestUri: "/2015-03-31/event-source-mappings/", @@ -880,13 +861,13 @@ export default class Lambda { } async listFunctionEventInvokeConfigs( - {abortSignal, ...params}: RequestConfig & s.ListFunctionEventInvokeConfigsRequest, + params: s.ListFunctionEventInvokeConfigsRequest, ): 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, + query, action: "ListFunctionEventInvokeConfigs", method: "GET", requestUri: cmnP.encodePath`/2019-09-25/functions/${params["FunctionName"]}/event-invoke-config/list`, @@ -902,7 +883,7 @@ export default class Lambda { } async listFunctions( - {abortSignal, ...params}: RequestConfig & s.ListFunctionsRequest = {}, + params: s.ListFunctionsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["MasterRegion"] != null) query.set("MasterRegion", params["MasterRegion"]?.toString() ?? ""); @@ -910,7 +891,7 @@ export default class Lambda { 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, + query, action: "ListFunctions", method: "GET", requestUri: "/2015-03-31/functions/", @@ -926,13 +907,13 @@ export default class Lambda { } async listFunctionsByCodeSigningConfig( - {abortSignal, ...params}: RequestConfig & s.ListFunctionsByCodeSigningConfigRequest, + params: s.ListFunctionsByCodeSigningConfigRequest, ): 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, + query, action: "ListFunctionsByCodeSigningConfig", method: "GET", requestUri: cmnP.encodePath`/2020-04-22/code-signing-configs/${params["CodeSigningConfigArn"]}/functions`, @@ -948,14 +929,14 @@ export default class Lambda { } async listLayerVersions( - {abortSignal, ...params}: RequestConfig & s.ListLayerVersionsRequest, + params: s.ListLayerVersionsRequest, ): Promise { const query = new URLSearchParams; if (params["CompatibleRuntime"] != null) query.set("CompatibleRuntime", params["CompatibleRuntime"]?.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, + query, action: "ListLayerVersions", method: "GET", requestUri: cmnP.encodePath`/2018-10-31/layers/${params["LayerName"]}/versions`, @@ -971,14 +952,14 @@ export default class Lambda { } async listLayers( - {abortSignal, ...params}: RequestConfig & s.ListLayersRequest = {}, + params: s.ListLayersRequest = {}, ): Promise { const query = new URLSearchParams; if (params["CompatibleRuntime"] != null) query.set("CompatibleRuntime", params["CompatibleRuntime"]?.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, + query, action: "ListLayers", method: "GET", requestUri: "/2018-10-31/layers", @@ -994,13 +975,13 @@ export default class Lambda { } async listProvisionedConcurrencyConfigs( - {abortSignal, ...params}: RequestConfig & s.ListProvisionedConcurrencyConfigsRequest, + params: s.ListProvisionedConcurrencyConfigsRequest, ): 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, + query, action: "ListProvisionedConcurrencyConfigs", method: "GET", requestUri: cmnP.encodePath`/2019-09-30/functions/${params["FunctionName"]}/provisioned-concurrency?List=ALL`, @@ -1016,11 +997,10 @@ export default class Lambda { } async listTags( - {abortSignal, ...params}: RequestConfig & s.ListTagsRequest, + params: s.ListTagsRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "ListTags", method: "GET", requestUri: cmnP.encodePath`/2017-03-31/tags/${params["Resource"]}`, @@ -1034,13 +1014,13 @@ export default class Lambda { } async listVersionsByFunction( - {abortSignal, ...params}: RequestConfig & s.ListVersionsByFunctionRequest, + params: s.ListVersionsByFunctionRequest, ): 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, + query, action: "ListVersionsByFunction", method: "GET", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/versions`, @@ -1056,7 +1036,7 @@ export default class Lambda { } async publishLayerVersion( - {abortSignal, ...params}: RequestConfig & s.PublishLayerVersionRequest, + params: s.PublishLayerVersionRequest, ): Promise { const body: jsonP.JSONObject = { Description: params["Description"], @@ -1065,7 +1045,7 @@ export default class Lambda { LicenseInfo: params["LicenseInfo"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PublishLayerVersion", requestUri: cmnP.encodePath`/2018-10-31/layers/${params["LayerName"]}/versions`, responseCode: 201, @@ -1086,7 +1066,7 @@ export default class Lambda { } async publishVersion( - {abortSignal, ...params}: RequestConfig & s.PublishVersionRequest, + params: s.PublishVersionRequest, ): Promise { const body: jsonP.JSONObject = { CodeSha256: params["CodeSha256"], @@ -1094,7 +1074,7 @@ export default class Lambda { RevisionId: params["RevisionId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PublishVersion", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/versions`, responseCode: 201, @@ -1138,13 +1118,13 @@ export default class Lambda { } async putFunctionCodeSigningConfig( - {abortSignal, ...params}: RequestConfig & s.PutFunctionCodeSigningConfigRequest, + params: s.PutFunctionCodeSigningConfigRequest, ): Promise { const body: jsonP.JSONObject = { CodeSigningConfigArn: params["CodeSigningConfigArn"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutFunctionCodeSigningConfig", method: "PUT", requestUri: cmnP.encodePath`/2020-06-30/functions/${params["FunctionName"]}/code-signing-config`, @@ -1160,13 +1140,13 @@ export default class Lambda { } async putFunctionConcurrency( - {abortSignal, ...params}: RequestConfig & s.PutFunctionConcurrencyRequest, + params: s.PutFunctionConcurrencyRequest, ): Promise { const body: jsonP.JSONObject = { ReservedConcurrentExecutions: params["ReservedConcurrentExecutions"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutFunctionConcurrency", method: "PUT", requestUri: cmnP.encodePath`/2017-10-31/functions/${params["FunctionName"]}/concurrency`, @@ -1181,7 +1161,7 @@ export default class Lambda { } async putFunctionEventInvokeConfig( - {abortSignal, ...params}: RequestConfig & s.PutFunctionEventInvokeConfigRequest, + params: s.PutFunctionEventInvokeConfigRequest, ): Promise { const query = new URLSearchParams; const body: jsonP.JSONObject = { @@ -1191,7 +1171,7 @@ export default class Lambda { }; if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, body, + query, body, action: "PutFunctionEventInvokeConfig", method: "PUT", requestUri: cmnP.encodePath`/2019-09-25/functions/${params["FunctionName"]}/event-invoke-config`, @@ -1210,7 +1190,7 @@ export default class Lambda { } async putProvisionedConcurrencyConfig( - {abortSignal, ...params}: RequestConfig & s.PutProvisionedConcurrencyConfigRequest, + params: s.PutProvisionedConcurrencyConfigRequest, ): Promise { const query = new URLSearchParams; const body: jsonP.JSONObject = { @@ -1218,7 +1198,7 @@ export default class Lambda { }; query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, body, + query, body, action: "PutProvisionedConcurrencyConfig", method: "PUT", requestUri: cmnP.encodePath`/2019-09-30/functions/${params["FunctionName"]}/provisioned-concurrency`, @@ -1238,12 +1218,12 @@ export default class Lambda { } async removeLayerVersionPermission( - {abortSignal, ...params}: RequestConfig & s.RemoveLayerVersionPermissionRequest, + params: s.RemoveLayerVersionPermissionRequest, ): Promise { const query = new URLSearchParams; if (params["RevisionId"] != null) query.set("RevisionId", params["RevisionId"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "RemoveLayerVersionPermission", method: "DELETE", requestUri: cmnP.encodePath`/2018-10-31/layers/${params["LayerName"]}/versions/${params["VersionNumber"].toString()}/policy/${params["StatementId"]}`, @@ -1252,13 +1232,13 @@ export default class Lambda { } async removePermission( - {abortSignal, ...params}: RequestConfig & s.RemovePermissionRequest, + params: s.RemovePermissionRequest, ): Promise { const query = new URLSearchParams; if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); if (params["RevisionId"] != null) query.set("RevisionId", params["RevisionId"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "RemovePermission", method: "DELETE", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/policy/${params["StatementId"]}`, @@ -1267,13 +1247,13 @@ export default class Lambda { } async tagResource( - {abortSignal, ...params}: RequestConfig & s.TagResourceRequest, + params: s.TagResourceRequest, ): Promise { const body: jsonP.JSONObject = { Tags: params["Tags"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagResource", requestUri: cmnP.encodePath`/2017-03-31/tags/${params["Resource"]}`, responseCode: 204, @@ -1281,14 +1261,14 @@ export default class Lambda { } async untagResource( - {abortSignal, ...params}: RequestConfig & s.UntagResourceRequest, + params: s.UntagResourceRequest, ): Promise { const query = new URLSearchParams; for (const item of params["TagKeys"]) { query.append("tagKeys", item?.toString() ?? ""); } const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "UntagResource", method: "DELETE", requestUri: cmnP.encodePath`/2017-03-31/tags/${params["Resource"]}`, @@ -1297,7 +1277,7 @@ export default class Lambda { } async updateAlias( - {abortSignal, ...params}: RequestConfig & s.UpdateAliasRequest, + params: s.UpdateAliasRequest, ): Promise { const body: jsonP.JSONObject = { FunctionVersion: params["FunctionVersion"], @@ -1306,7 +1286,7 @@ export default class Lambda { RevisionId: params["RevisionId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateAlias", method: "PUT", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/aliases/${params["Name"]}`, @@ -1326,7 +1306,7 @@ export default class Lambda { } async updateCodeSigningConfig( - {abortSignal, ...params}: RequestConfig & s.UpdateCodeSigningConfigRequest, + params: s.UpdateCodeSigningConfigRequest, ): Promise { const body: jsonP.JSONObject = { Description: params["Description"], @@ -1334,7 +1314,7 @@ export default class Lambda { CodeSigningPolicies: fromCodeSigningPolicies(params["CodeSigningPolicies"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateCodeSigningConfig", method: "PUT", requestUri: cmnP.encodePath`/2020-04-22/code-signing-configs/${params["CodeSigningConfigArn"]}`, @@ -1349,7 +1329,7 @@ export default class Lambda { } async updateEventSourceMapping( - {abortSignal, ...params}: RequestConfig & s.UpdateEventSourceMappingRequest, + params: s.UpdateEventSourceMappingRequest, ): Promise { const body: jsonP.JSONObject = { FunctionName: params["FunctionName"], @@ -1366,7 +1346,7 @@ export default class Lambda { FunctionResponseTypes: params["FunctionResponseTypes"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateEventSourceMapping", method: "PUT", requestUri: cmnP.encodePath`/2015-03-31/event-source-mappings/${params["UUID"]}`, @@ -1402,7 +1382,7 @@ export default class Lambda { } async updateFunctionCode( - {abortSignal, ...params}: RequestConfig & s.UpdateFunctionCodeRequest, + params: s.UpdateFunctionCodeRequest, ): Promise { const body: jsonP.JSONObject = { ZipFile: serializeBlob(params["ZipFile"]), @@ -1415,7 +1395,7 @@ export default class Lambda { RevisionId: params["RevisionId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateFunctionCode", method: "PUT", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/code`, @@ -1460,7 +1440,7 @@ export default class Lambda { } async updateFunctionConfiguration( - {abortSignal, ...params}: RequestConfig & s.UpdateFunctionConfigurationRequest, + params: s.UpdateFunctionConfigurationRequest, ): Promise { const body: jsonP.JSONObject = { Role: params["Role"], @@ -1480,7 +1460,7 @@ export default class Lambda { ImageConfig: fromImageConfig(params["ImageConfig"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateFunctionConfiguration", method: "PUT", requestUri: cmnP.encodePath`/2015-03-31/functions/${params["FunctionName"]}/configuration`, @@ -1525,7 +1505,7 @@ export default class Lambda { } async updateFunctionEventInvokeConfig( - {abortSignal, ...params}: RequestConfig & s.UpdateFunctionEventInvokeConfigRequest, + params: s.UpdateFunctionEventInvokeConfigRequest, ): Promise { const query = new URLSearchParams; const body: jsonP.JSONObject = { @@ -1535,7 +1515,7 @@ export default class Lambda { }; if (params["Qualifier"] != null) query.set("Qualifier", params["Qualifier"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, body, + query, body, action: "UpdateFunctionEventInvokeConfig", requestUri: cmnP.encodePath`/2019-09-25/functions/${params["FunctionName"]}/event-invoke-config`, responseCode: 200, @@ -1556,7 +1536,7 @@ export default class Lambda { /** Checks state up to 20 times, 1 seconds apart (about 1 minutes max wait time). */ async waitForFunctionExists( - params: RequestConfig & s.GetFunctionRequest, + params: s.GetFunctionRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state FunctionExists'; for (let i = 0; i < 20; i++) { @@ -1576,7 +1556,7 @@ export default class Lambda { * Checks state up to 60 times, 5 seconds apart (about 5 minutes max wait time). */ async waitForFunctionActive( - params: RequestConfig & s.GetFunctionConfigurationRequest, + params: s.GetFunctionConfigurationRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state FunctionActive'; for (let i = 0; i < 60; i++) { @@ -1595,7 +1575,7 @@ export default class Lambda { * Checks state up to 60 times, 5 seconds apart (about 5 minutes max wait time). */ async waitForFunctionUpdated( - params: RequestConfig & s.GetFunctionConfigurationRequest, + params: s.GetFunctionConfigurationRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state FunctionUpdated'; for (let i = 0; i < 60; i++) { diff --git a/lib/services/pricing/mod.ts b/lib/services/pricing/mod.ts index 3f6caeb1..54247eda 100644 --- a/lib/services/pricing/mod.ts +++ b/lib/services/pricing/mod.ts @@ -1,15 +1,11 @@ // Autogenerated API client for: AWS Price List Service -interface RequestConfig { - abortSignal?: AbortSignal; -} - export * from "./structs.ts"; import * as client from "../../client/common.ts"; import * as jsonP from "../../encoding/json.ts"; import type * as s from "./structs.ts"; -export default class Pricing { +export class Pricing { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(Pricing.ApiMetadata); @@ -30,7 +26,7 @@ export default class Pricing { }; async describeServices( - {abortSignal, ...params}: RequestConfig & s.DescribeServicesRequest = {}, + params: s.DescribeServicesRequest = {}, ): Promise { const body: jsonP.JSONObject = { ServiceCode: params["ServiceCode"], @@ -39,7 +35,7 @@ export default class Pricing { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeServices", }); return jsonP.readObj({ @@ -53,7 +49,7 @@ export default class Pricing { } async getAttributeValues( - {abortSignal, ...params}: RequestConfig & s.GetAttributeValuesRequest, + params: s.GetAttributeValuesRequest, ): Promise { const body: jsonP.JSONObject = { ServiceCode: params["ServiceCode"], @@ -62,7 +58,7 @@ export default class Pricing { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetAttributeValues", }); return jsonP.readObj({ @@ -75,7 +71,7 @@ export default class Pricing { } async getProducts( - {abortSignal, ...params}: RequestConfig & s.GetProductsRequest = {}, + params: s.GetProductsRequest = {}, ): Promise { const body: jsonP.JSONObject = { ServiceCode: params["ServiceCode"], @@ -85,7 +81,7 @@ export default class Pricing { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetProducts", }); return jsonP.readObj({ diff --git a/lib/services/rds/mod.ts b/lib/services/rds/mod.ts index 15923277..4b1a2790 100644 --- a/lib/services/rds/mod.ts +++ b/lib/services/rds/mod.ts @@ -1,16 +1,12 @@ // 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 { +export class RDS { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(RDS.ApiMetadata); @@ -29,7 +25,7 @@ export default class RDS { }; async addRoleToDBCluster( - {abortSignal, ...params}: RequestConfig & s.AddRoleToDBClusterMessage, + params: s.AddRoleToDBClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -37,14 +33,14 @@ export default class RDS { body.append(prefix+"RoleArn", (params["RoleArn"] ?? '').toString()); if ("FeatureName" in params) body.append(prefix+"FeatureName", (params["FeatureName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddRoleToDBCluster", }); await resp.arrayBuffer(); // consume body without use } async addRoleToDBInstance( - {abortSignal, ...params}: RequestConfig & s.AddRoleToDBInstanceMessage, + params: s.AddRoleToDBInstanceMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -52,21 +48,21 @@ export default class RDS { body.append(prefix+"RoleArn", (params["RoleArn"] ?? '').toString()); body.append(prefix+"FeatureName", (params["FeatureName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddRoleToDBInstance", }); await resp.arrayBuffer(); // consume body without use } async addSourceIdentifierToSubscription( - {abortSignal, ...params}: RequestConfig & s.AddSourceIdentifierToSubscriptionMessage, + params: 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, + body, action: "AddSourceIdentifierToSubscription", }); const xml = xmlP.readXmlResult(await resp.text(), "AddSourceIdentifierToSubscriptionResult"); @@ -76,21 +72,21 @@ export default class RDS { } async addTagsToResource( - {abortSignal, ...params}: RequestConfig & s.AddTagsToResourceMessage, + params: 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, + body, action: "AddTagsToResource", }); await resp.arrayBuffer(); // consume body without use } async applyPendingMaintenanceAction( - {abortSignal, ...params}: RequestConfig & s.ApplyPendingMaintenanceActionMessage, + params: s.ApplyPendingMaintenanceActionMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -98,7 +94,7 @@ export default class RDS { body.append(prefix+"ApplyAction", (params["ApplyAction"] ?? '').toString()); body.append(prefix+"OptInType", (params["OptInType"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ApplyPendingMaintenanceAction", }); const xml = xmlP.readXmlResult(await resp.text(), "ApplyPendingMaintenanceActionResult"); @@ -108,7 +104,7 @@ export default class RDS { } async authorizeDBSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.AuthorizeDBSecurityGroupIngressMessage, + params: s.AuthorizeDBSecurityGroupIngressMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -118,7 +114,7 @@ export default class RDS { 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, + body, action: "AuthorizeDBSecurityGroupIngress", }); const xml = xmlP.readXmlResult(await resp.text(), "AuthorizeDBSecurityGroupIngressResult"); @@ -128,7 +124,7 @@ export default class RDS { } async backtrackDBCluster( - {abortSignal, ...params}: RequestConfig & s.BacktrackDBClusterMessage, + params: s.BacktrackDBClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -137,7 +133,7 @@ export default class RDS { if ("Force" in params) body.append(prefix+"Force", (params["Force"] ?? '').toString()); if ("UseEarliestTimeOnPointInTimeUnavailable" in params) body.append(prefix+"UseEarliestTimeOnPointInTimeUnavailable", (params["UseEarliestTimeOnPointInTimeUnavailable"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "BacktrackDBCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "BacktrackDBClusterResult"); @@ -145,13 +141,13 @@ export default class RDS { } async cancelExportTask( - {abortSignal, ...params}: RequestConfig & s.CancelExportTaskMessage, + params: s.CancelExportTaskMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ExportTaskIdentifier", (params["ExportTaskIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelExportTask", }); const xml = xmlP.readXmlResult(await resp.text(), "CancelExportTaskResult"); @@ -159,7 +155,7 @@ export default class RDS { } async copyDBClusterParameterGroup( - {abortSignal, ...params}: RequestConfig & s.CopyDBClusterParameterGroupMessage, + params: s.CopyDBClusterParameterGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -168,7 +164,7 @@ export default class RDS { body.append(prefix+"TargetDBClusterParameterGroupDescription", (params["TargetDBClusterParameterGroupDescription"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CopyDBClusterParameterGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "CopyDBClusterParameterGroupResult"); @@ -178,7 +174,7 @@ export default class RDS { } async copyDBClusterSnapshot( - {abortSignal, ...params}: RequestConfig & s.CopyDBClusterSnapshotMessage, + params: s.CopyDBClusterSnapshotMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -190,7 +186,7 @@ export default class RDS { if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) if ("SourceRegion" in params) body.append(prefix+"SourceRegion", (params["SourceRegion"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CopyDBClusterSnapshot", }); const xml = xmlP.readXmlResult(await resp.text(), "CopyDBClusterSnapshotResult"); @@ -200,7 +196,7 @@ export default class RDS { } async copyDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.CopyDBParameterGroupMessage, + params: s.CopyDBParameterGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -209,7 +205,7 @@ export default class RDS { 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, + body, action: "CopyDBParameterGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "CopyDBParameterGroupResult"); @@ -219,7 +215,7 @@ export default class RDS { } async copyDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.CopyDBSnapshotMessage, + params: s.CopyDBSnapshotMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -233,7 +229,7 @@ export default class RDS { if ("TargetCustomAvailabilityZone" in params) body.append(prefix+"TargetCustomAvailabilityZone", (params["TargetCustomAvailabilityZone"] ?? '').toString()); if ("SourceRegion" in params) body.append(prefix+"SourceRegion", (params["SourceRegion"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CopyDBSnapshot", }); const xml = xmlP.readXmlResult(await resp.text(), "CopyDBSnapshotResult"); @@ -243,7 +239,7 @@ export default class RDS { } async copyOptionGroup( - {abortSignal, ...params}: RequestConfig & s.CopyOptionGroupMessage, + params: s.CopyOptionGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -252,7 +248,7 @@ export default class RDS { 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, + body, action: "CopyOptionGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "CopyOptionGroupResult"); @@ -262,7 +258,7 @@ export default class RDS { } async createCustomAvailabilityZone( - {abortSignal, ...params}: RequestConfig & s.CreateCustomAvailabilityZoneMessage, + params: s.CreateCustomAvailabilityZoneMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -271,7 +267,7 @@ export default class RDS { if ("NewVpnTunnelName" in params) body.append(prefix+"NewVpnTunnelName", (params["NewVpnTunnelName"] ?? '').toString()); if ("VpnTunnelOriginatorIP" in params) body.append(prefix+"VpnTunnelOriginatorIP", (params["VpnTunnelOriginatorIP"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateCustomAvailabilityZone", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateCustomAvailabilityZoneResult"); @@ -281,7 +277,7 @@ export default class RDS { } async createDBCluster( - {abortSignal, ...params}: RequestConfig & s.CreateDBClusterMessage, + params: s.CreateDBClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -320,7 +316,7 @@ export default class RDS { if ("EnableGlobalWriteForwarding" in params) body.append(prefix+"EnableGlobalWriteForwarding", (params["EnableGlobalWriteForwarding"] ?? '').toString()); if ("SourceRegion" in params) body.append(prefix+"SourceRegion", (params["SourceRegion"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDBCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBClusterResult"); @@ -330,7 +326,7 @@ export default class RDS { } async createDBClusterEndpoint( - {abortSignal, ...params}: RequestConfig & s.CreateDBClusterEndpointMessage, + params: s.CreateDBClusterEndpointMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -341,7 +337,7 @@ export default class RDS { if (params["ExcludedMembers"]) qsP.appendList(body, prefix+"ExcludedMembers", params["ExcludedMembers"], {"entryPrefix":".member."}) if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDBClusterEndpoint", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBClusterEndpointResult"); @@ -349,7 +345,7 @@ export default class RDS { } async createDBClusterParameterGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBClusterParameterGroupMessage, + params: s.CreateDBClusterParameterGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -358,7 +354,7 @@ export default class RDS { 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, + body, action: "CreateDBClusterParameterGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBClusterParameterGroupResult"); @@ -368,7 +364,7 @@ export default class RDS { } async createDBClusterSnapshot( - {abortSignal, ...params}: RequestConfig & s.CreateDBClusterSnapshotMessage, + params: s.CreateDBClusterSnapshotMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -376,7 +372,7 @@ export default class RDS { body.append(prefix+"DBClusterIdentifier", (params["DBClusterIdentifier"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDBClusterSnapshot", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBClusterSnapshotResult"); @@ -386,7 +382,7 @@ export default class RDS { } async createDBInstance( - {abortSignal, ...params}: RequestConfig & s.CreateDBInstanceMessage, + params: s.CreateDBInstanceMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -439,7 +435,7 @@ export default class RDS { if ("MaxAllocatedStorage" in params) body.append(prefix+"MaxAllocatedStorage", (params["MaxAllocatedStorage"] ?? '').toString()); if ("EnableCustomerOwnedIp" in params) body.append(prefix+"EnableCustomerOwnedIp", (params["EnableCustomerOwnedIp"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDBInstance", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBInstanceResult"); @@ -449,7 +445,7 @@ export default class RDS { } async createDBInstanceReadReplica( - {abortSignal, ...params}: RequestConfig & s.CreateDBInstanceReadReplicaMessage, + params: s.CreateDBInstanceReadReplicaMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -487,7 +483,7 @@ export default class RDS { if ("MaxAllocatedStorage" in params) body.append(prefix+"MaxAllocatedStorage", (params["MaxAllocatedStorage"] ?? '').toString()); if ("SourceRegion" in params) body.append(prefix+"SourceRegion", (params["SourceRegion"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDBInstanceReadReplica", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBInstanceReadReplicaResult"); @@ -497,7 +493,7 @@ export default class RDS { } async createDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBParameterGroupMessage, + params: s.CreateDBParameterGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -506,7 +502,7 @@ export default class RDS { 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, + body, action: "CreateDBParameterGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBParameterGroupResult"); @@ -516,7 +512,7 @@ export default class RDS { } async createDBProxy( - {abortSignal, ...params}: RequestConfig & s.CreateDBProxyRequest, + params: s.CreateDBProxyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -531,7 +527,7 @@ export default class RDS { if ("DebugLogging" in params) body.append(prefix+"DebugLogging", (params["DebugLogging"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDBProxy", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBProxyResult"); @@ -541,7 +537,7 @@ export default class RDS { } async createDBProxyEndpoint( - {abortSignal, ...params}: RequestConfig & s.CreateDBProxyEndpointRequest, + params: s.CreateDBProxyEndpointRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -552,7 +548,7 @@ export default class RDS { if ("TargetRole" in params) body.append(prefix+"TargetRole", (params["TargetRole"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDBProxyEndpoint", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBProxyEndpointResult"); @@ -562,7 +558,7 @@ export default class RDS { } async createDBSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBSecurityGroupMessage, + params: s.CreateDBSecurityGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -570,7 +566,7 @@ export default class RDS { 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, + body, action: "CreateDBSecurityGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSecurityGroupResult"); @@ -580,7 +576,7 @@ export default class RDS { } async createDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.CreateDBSnapshotMessage, + params: s.CreateDBSnapshotMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -588,7 +584,7 @@ export default class RDS { 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, + body, action: "CreateDBSnapshot", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSnapshotResult"); @@ -598,7 +594,7 @@ export default class RDS { } async createDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBSubnetGroupMessage, + params: s.CreateDBSubnetGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -607,7 +603,7 @@ export default class RDS { 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, + body, action: "CreateDBSubnetGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSubnetGroupResult"); @@ -617,7 +613,7 @@ export default class RDS { } async createEventSubscription( - {abortSignal, ...params}: RequestConfig & s.CreateEventSubscriptionMessage, + params: s.CreateEventSubscriptionMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -629,7 +625,7 @@ export default class RDS { 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, + body, action: "CreateEventSubscription", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateEventSubscriptionResult"); @@ -639,7 +635,7 @@ export default class RDS { } async createGlobalCluster( - {abortSignal, ...params}: RequestConfig & s.CreateGlobalClusterMessage = {}, + params: s.CreateGlobalClusterMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -651,7 +647,7 @@ export default class RDS { if ("DatabaseName" in params) body.append(prefix+"DatabaseName", (params["DatabaseName"] ?? '').toString()); if ("StorageEncrypted" in params) body.append(prefix+"StorageEncrypted", (params["StorageEncrypted"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateGlobalCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateGlobalClusterResult"); @@ -661,7 +657,7 @@ export default class RDS { } async createOptionGroup( - {abortSignal, ...params}: RequestConfig & s.CreateOptionGroupMessage, + params: s.CreateOptionGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -671,7 +667,7 @@ export default class RDS { 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, + body, action: "CreateOptionGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateOptionGroupResult"); @@ -681,13 +677,13 @@ export default class RDS { } async deleteCustomAvailabilityZone( - {abortSignal, ...params}: RequestConfig & s.DeleteCustomAvailabilityZoneMessage, + params: s.DeleteCustomAvailabilityZoneMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"CustomAvailabilityZoneId", (params["CustomAvailabilityZoneId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteCustomAvailabilityZone", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteCustomAvailabilityZoneResult"); @@ -697,7 +693,7 @@ export default class RDS { } async deleteDBCluster( - {abortSignal, ...params}: RequestConfig & s.DeleteDBClusterMessage, + params: s.DeleteDBClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -705,7 +701,7 @@ export default class RDS { 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, + body, action: "DeleteDBCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBClusterResult"); @@ -715,13 +711,13 @@ export default class RDS { } async deleteDBClusterEndpoint( - {abortSignal, ...params}: RequestConfig & s.DeleteDBClusterEndpointMessage, + params: s.DeleteDBClusterEndpointMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBClusterEndpointIdentifier", (params["DBClusterEndpointIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBClusterEndpoint", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBClusterEndpointResult"); @@ -729,26 +725,26 @@ export default class RDS { } async deleteDBClusterParameterGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBClusterParameterGroupMessage, + params: s.DeleteDBClusterParameterGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBClusterParameterGroupName", (params["DBClusterParameterGroupName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBClusterParameterGroup", }); await resp.arrayBuffer(); // consume body without use } async deleteDBClusterSnapshot( - {abortSignal, ...params}: RequestConfig & s.DeleteDBClusterSnapshotMessage, + params: s.DeleteDBClusterSnapshotMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBClusterSnapshotIdentifier", (params["DBClusterSnapshotIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBClusterSnapshot", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBClusterSnapshotResult"); @@ -758,7 +754,7 @@ export default class RDS { } async deleteDBInstance( - {abortSignal, ...params}: RequestConfig & s.DeleteDBInstanceMessage, + params: s.DeleteDBInstanceMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -767,7 +763,7 @@ export default class RDS { if ("FinalDBSnapshotIdentifier" in params) body.append(prefix+"FinalDBSnapshotIdentifier", (params["FinalDBSnapshotIdentifier"] ?? '').toString()); if ("DeleteAutomatedBackups" in params) body.append(prefix+"DeleteAutomatedBackups", (params["DeleteAutomatedBackups"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBInstance", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBInstanceResult"); @@ -777,14 +773,14 @@ export default class RDS { } async deleteDBInstanceAutomatedBackup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBInstanceAutomatedBackupMessage = {}, + params: s.DeleteDBInstanceAutomatedBackupMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("DbiResourceId" in params) body.append(prefix+"DbiResourceId", (params["DbiResourceId"] ?? '').toString()); if ("DBInstanceAutomatedBackupsArn" in params) body.append(prefix+"DBInstanceAutomatedBackupsArn", (params["DBInstanceAutomatedBackupsArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBInstanceAutomatedBackup", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBInstanceAutomatedBackupResult"); @@ -794,26 +790,26 @@ export default class RDS { } async deleteDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBParameterGroupMessage, + params: s.DeleteDBParameterGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBParameterGroup", }); await resp.arrayBuffer(); // consume body without use } async deleteDBProxy( - {abortSignal, ...params}: RequestConfig & s.DeleteDBProxyRequest, + params: s.DeleteDBProxyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBProxyName", (params["DBProxyName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBProxy", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBProxyResult"); @@ -823,13 +819,13 @@ export default class RDS { } async deleteDBProxyEndpoint( - {abortSignal, ...params}: RequestConfig & s.DeleteDBProxyEndpointRequest, + params: s.DeleteDBProxyEndpointRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBProxyEndpointName", (params["DBProxyEndpointName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBProxyEndpoint", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBProxyEndpointResult"); @@ -839,26 +835,26 @@ export default class RDS { } async deleteDBSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSecurityGroupMessage, + params: s.DeleteDBSecurityGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBSecurityGroup", }); await resp.arrayBuffer(); // consume body without use } async deleteDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSnapshotMessage, + params: s.DeleteDBSnapshotMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBSnapshot", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBSnapshotResult"); @@ -868,26 +864,26 @@ export default class RDS { } async deleteDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSubnetGroupMessage, + params: s.DeleteDBSubnetGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDBSubnetGroup", }); await resp.arrayBuffer(); // consume body without use } async deleteEventSubscription( - {abortSignal, ...params}: RequestConfig & s.DeleteEventSubscriptionMessage, + params: s.DeleteEventSubscriptionMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteEventSubscription", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteEventSubscriptionResult"); @@ -897,13 +893,13 @@ export default class RDS { } async deleteGlobalCluster( - {abortSignal, ...params}: RequestConfig & s.DeleteGlobalClusterMessage, + params: s.DeleteGlobalClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"GlobalClusterIdentifier", (params["GlobalClusterIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteGlobalCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteGlobalClusterResult"); @@ -913,13 +909,13 @@ export default class RDS { } async deleteInstallationMedia( - {abortSignal, ...params}: RequestConfig & s.DeleteInstallationMediaMessage, + params: s.DeleteInstallationMediaMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"InstallationMediaId", (params["InstallationMediaId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteInstallationMedia", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteInstallationMediaResult"); @@ -927,20 +923,20 @@ export default class RDS { } async deleteOptionGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteOptionGroupMessage, + params: s.DeleteOptionGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteOptionGroup", }); await resp.arrayBuffer(); // consume body without use } async deregisterDBProxyTargets( - {abortSignal, ...params}: RequestConfig & s.DeregisterDBProxyTargetsRequest, + params: s.DeregisterDBProxyTargetsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -949,18 +945,16 @@ export default class RDS { if (params["DBInstanceIdentifiers"]) qsP.appendList(body, prefix+"DBInstanceIdentifiers", params["DBInstanceIdentifiers"], {"entryPrefix":".member."}) if (params["DBClusterIdentifiers"]) qsP.appendList(body, prefix+"DBClusterIdentifiers", params["DBClusterIdentifiers"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterDBProxyTargets", }); await resp.arrayBuffer(); // consume body without use } - async describeAccountAttributes( - {abortSignal}: RequestConfig = {}, - ): Promise { + async describeAccountAttributes(): Promise { const body = new URLSearchParams; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAccountAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeAccountAttributesResult"); @@ -970,7 +964,7 @@ export default class RDS { } async describeCertificates( - {abortSignal, ...params}: RequestConfig & s.DescribeCertificatesMessage = {}, + params: s.DescribeCertificatesMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -979,7 +973,7 @@ export default class RDS { 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, + body, action: "DescribeCertificates", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeCertificatesResult"); @@ -992,7 +986,7 @@ export default class RDS { } async describeCustomAvailabilityZones( - {abortSignal, ...params}: RequestConfig & s.DescribeCustomAvailabilityZonesMessage = {}, + params: s.DescribeCustomAvailabilityZonesMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1001,7 +995,7 @@ export default class RDS { 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, + body, action: "DescribeCustomAvailabilityZones", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeCustomAvailabilityZonesResult"); @@ -1014,7 +1008,7 @@ export default class RDS { } async describeDBClusterBacktracks( - {abortSignal, ...params}: RequestConfig & s.DescribeDBClusterBacktracksMessage, + params: s.DescribeDBClusterBacktracksMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1024,7 +1018,7 @@ export default class RDS { 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, + body, action: "DescribeDBClusterBacktracks", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBClusterBacktracksResult"); @@ -1037,7 +1031,7 @@ export default class RDS { } async describeDBClusterEndpoints( - {abortSignal, ...params}: RequestConfig & s.DescribeDBClusterEndpointsMessage = {}, + params: s.DescribeDBClusterEndpointsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1047,7 +1041,7 @@ export default class RDS { 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, + body, action: "DescribeDBClusterEndpoints", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBClusterEndpointsResult"); @@ -1060,7 +1054,7 @@ export default class RDS { } async describeDBClusterParameterGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBClusterParameterGroupsMessage = {}, + params: s.DescribeDBClusterParameterGroupsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1069,7 +1063,7 @@ export default class RDS { 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, + body, action: "DescribeDBClusterParameterGroups", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBClusterParameterGroupsResult"); @@ -1082,7 +1076,7 @@ export default class RDS { } async describeDBClusterParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeDBClusterParametersMessage, + params: s.DescribeDBClusterParametersMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1092,7 +1086,7 @@ export default class RDS { 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, + body, action: "DescribeDBClusterParameters", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBClusterParametersResult"); @@ -1105,13 +1099,13 @@ export default class RDS { } async describeDBClusterSnapshotAttributes( - {abortSignal, ...params}: RequestConfig & s.DescribeDBClusterSnapshotAttributesMessage, + params: s.DescribeDBClusterSnapshotAttributesMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBClusterSnapshotIdentifier", (params["DBClusterSnapshotIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBClusterSnapshotAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBClusterSnapshotAttributesResult"); @@ -1121,7 +1115,7 @@ export default class RDS { } async describeDBClusterSnapshots( - {abortSignal, ...params}: RequestConfig & s.DescribeDBClusterSnapshotsMessage = {}, + params: s.DescribeDBClusterSnapshotsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1134,7 +1128,7 @@ export default class RDS { if ("IncludeShared" in params) body.append(prefix+"IncludeShared", (params["IncludeShared"] ?? '').toString()); if ("IncludePublic" in params) body.append(prefix+"IncludePublic", (params["IncludePublic"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBClusterSnapshots", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBClusterSnapshotsResult"); @@ -1147,7 +1141,7 @@ export default class RDS { } async describeDBClusters( - {abortSignal, ...params}: RequestConfig & s.DescribeDBClustersMessage = {}, + params: s.DescribeDBClustersMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1157,7 +1151,7 @@ export default class RDS { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("IncludeShared" in params) body.append(prefix+"IncludeShared", (params["IncludeShared"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBClusters", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBClustersResult"); @@ -1170,7 +1164,7 @@ export default class RDS { } async describeDBEngineVersions( - {abortSignal, ...params}: RequestConfig & s.DescribeDBEngineVersionsMessage = {}, + params: s.DescribeDBEngineVersionsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1185,7 +1179,7 @@ export default class RDS { if ("ListSupportedTimezones" in params) body.append(prefix+"ListSupportedTimezones", (params["ListSupportedTimezones"] ?? '').toString()); if ("IncludeAll" in params) body.append(prefix+"IncludeAll", (params["IncludeAll"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBEngineVersions", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBEngineVersionsResult"); @@ -1198,7 +1192,7 @@ export default class RDS { } async describeDBInstanceAutomatedBackups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBInstanceAutomatedBackupsMessage = {}, + params: s.DescribeDBInstanceAutomatedBackupsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1209,7 +1203,7 @@ export default class RDS { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("DBInstanceAutomatedBackupsArn" in params) body.append(prefix+"DBInstanceAutomatedBackupsArn", (params["DBInstanceAutomatedBackupsArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBInstanceAutomatedBackups", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBInstanceAutomatedBackupsResult"); @@ -1222,7 +1216,7 @@ export default class RDS { } async describeDBInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeDBInstancesMessage = {}, + params: s.DescribeDBInstancesMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1231,7 +1225,7 @@ export default class RDS { 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, + body, action: "DescribeDBInstances", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBInstancesResult"); @@ -1244,7 +1238,7 @@ export default class RDS { } async describeDBLogFiles( - {abortSignal, ...params}: RequestConfig & s.DescribeDBLogFilesMessage, + params: s.DescribeDBLogFilesMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1256,7 +1250,7 @@ export default class RDS { 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, + body, action: "DescribeDBLogFiles", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBLogFilesResult"); @@ -1269,7 +1263,7 @@ export default class RDS { } async describeDBParameterGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBParameterGroupsMessage = {}, + params: s.DescribeDBParameterGroupsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1278,7 +1272,7 @@ export default class RDS { 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, + body, action: "DescribeDBParameterGroups", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBParameterGroupsResult"); @@ -1291,7 +1285,7 @@ export default class RDS { } async describeDBParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeDBParametersMessage, + params: s.DescribeDBParametersMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1301,7 +1295,7 @@ export default class RDS { 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, + body, action: "DescribeDBParameters", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBParametersResult"); @@ -1314,7 +1308,7 @@ export default class RDS { } async describeDBProxies( - {abortSignal, ...params}: RequestConfig & s.DescribeDBProxiesRequest = {}, + params: s.DescribeDBProxiesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1323,7 +1317,7 @@ export default class RDS { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBProxies", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBProxiesResult"); @@ -1336,7 +1330,7 @@ export default class RDS { } async describeDBProxyEndpoints( - {abortSignal, ...params}: RequestConfig & s.DescribeDBProxyEndpointsRequest = {}, + params: s.DescribeDBProxyEndpointsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1346,7 +1340,7 @@ export default class RDS { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBProxyEndpoints", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBProxyEndpointsResult"); @@ -1359,7 +1353,7 @@ export default class RDS { } async describeDBProxyTargetGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBProxyTargetGroupsRequest, + params: s.DescribeDBProxyTargetGroupsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1369,7 +1363,7 @@ export default class RDS { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBProxyTargetGroups", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBProxyTargetGroupsResult"); @@ -1382,7 +1376,7 @@ export default class RDS { } async describeDBProxyTargets( - {abortSignal, ...params}: RequestConfig & s.DescribeDBProxyTargetsRequest, + params: s.DescribeDBProxyTargetsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1392,7 +1386,7 @@ export default class RDS { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBProxyTargets", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBProxyTargetsResult"); @@ -1405,7 +1399,7 @@ export default class RDS { } async describeDBSecurityGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSecurityGroupsMessage = {}, + params: s.DescribeDBSecurityGroupsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1414,7 +1408,7 @@ export default class RDS { 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, + body, action: "DescribeDBSecurityGroups", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSecurityGroupsResult"); @@ -1427,13 +1421,13 @@ export default class RDS { } async describeDBSnapshotAttributes( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSnapshotAttributesMessage, + params: s.DescribeDBSnapshotAttributesMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBSnapshotAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSnapshotAttributesResult"); @@ -1443,7 +1437,7 @@ export default class RDS { } async describeDBSnapshots( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSnapshotsMessage = {}, + params: s.DescribeDBSnapshotsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1457,7 +1451,7 @@ export default class RDS { if ("IncludePublic" in params) body.append(prefix+"IncludePublic", (params["IncludePublic"] ?? '').toString()); if ("DbiResourceId" in params) body.append(prefix+"DbiResourceId", (params["DbiResourceId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDBSnapshots", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSnapshotsResult"); @@ -1470,7 +1464,7 @@ export default class RDS { } async describeDBSubnetGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSubnetGroupsMessage = {}, + params: s.DescribeDBSubnetGroupsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1479,7 +1473,7 @@ export default class RDS { 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, + body, action: "DescribeDBSubnetGroups", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSubnetGroupsResult"); @@ -1492,7 +1486,7 @@ export default class RDS { } async describeEngineDefaultClusterParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeEngineDefaultClusterParametersMessage, + params: s.DescribeEngineDefaultClusterParametersMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1501,7 +1495,7 @@ export default class RDS { 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, + body, action: "DescribeEngineDefaultClusterParameters", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeEngineDefaultClusterParametersResult"); @@ -1511,7 +1505,7 @@ export default class RDS { } async describeEngineDefaultParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeEngineDefaultParametersMessage, + params: s.DescribeEngineDefaultParametersMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1520,7 +1514,7 @@ export default class RDS { 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, + body, action: "DescribeEngineDefaultParameters", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeEngineDefaultParametersResult"); @@ -1530,14 +1524,14 @@ export default class RDS { } async describeEventCategories( - {abortSignal, ...params}: RequestConfig & s.DescribeEventCategoriesMessage = {}, + params: 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, + body, action: "DescribeEventCategories", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventCategoriesResult"); @@ -1547,7 +1541,7 @@ export default class RDS { } async describeEventSubscriptions( - {abortSignal, ...params}: RequestConfig & s.DescribeEventSubscriptionsMessage = {}, + params: s.DescribeEventSubscriptionsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1556,7 +1550,7 @@ export default class RDS { 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, + body, action: "DescribeEventSubscriptions", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventSubscriptionsResult"); @@ -1569,7 +1563,7 @@ export default class RDS { } async describeEvents( - {abortSignal, ...params}: RequestConfig & s.DescribeEventsMessage = {}, + params: s.DescribeEventsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1583,7 +1577,7 @@ export default class RDS { 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, + body, action: "DescribeEvents", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventsResult"); @@ -1596,7 +1590,7 @@ export default class RDS { } async describeExportTasks( - {abortSignal, ...params}: RequestConfig & s.DescribeExportTasksMessage = {}, + params: s.DescribeExportTasksMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1606,7 +1600,7 @@ export default class RDS { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeExportTasks", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeExportTasksResult"); @@ -1619,7 +1613,7 @@ export default class RDS { } async describeGlobalClusters( - {abortSignal, ...params}: RequestConfig & s.DescribeGlobalClustersMessage = {}, + params: s.DescribeGlobalClustersMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1628,7 +1622,7 @@ export default class RDS { 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, + body, action: "DescribeGlobalClusters", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeGlobalClustersResult"); @@ -1641,7 +1635,7 @@ export default class RDS { } async describeInstallationMedia( - {abortSignal, ...params}: RequestConfig & s.DescribeInstallationMediaMessage = {}, + params: s.DescribeInstallationMediaMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1650,7 +1644,7 @@ export default class RDS { 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, + body, action: "DescribeInstallationMedia", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeInstallationMediaResult"); @@ -1663,7 +1657,7 @@ export default class RDS { } async describeOptionGroupOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeOptionGroupOptionsMessage, + params: s.DescribeOptionGroupOptionsMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1673,7 +1667,7 @@ export default class RDS { 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, + body, action: "DescribeOptionGroupOptions", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeOptionGroupOptionsResult"); @@ -1686,7 +1680,7 @@ export default class RDS { } async describeOptionGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeOptionGroupsMessage = {}, + params: s.DescribeOptionGroupsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1697,7 +1691,7 @@ export default class RDS { 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, + body, action: "DescribeOptionGroups", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeOptionGroupsResult"); @@ -1710,7 +1704,7 @@ export default class RDS { } async describeOrderableDBInstanceOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeOrderableDBInstanceOptionsMessage, + params: s.DescribeOrderableDBInstanceOptionsMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1724,7 +1718,7 @@ export default class RDS { 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, + body, action: "DescribeOrderableDBInstanceOptions", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeOrderableDBInstanceOptionsResult"); @@ -1737,7 +1731,7 @@ export default class RDS { } async describePendingMaintenanceActions( - {abortSignal, ...params}: RequestConfig & s.DescribePendingMaintenanceActionsMessage = {}, + params: s.DescribePendingMaintenanceActionsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1746,7 +1740,7 @@ export default class RDS { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribePendingMaintenanceActions", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribePendingMaintenanceActionsResult"); @@ -1759,7 +1753,7 @@ export default class RDS { } async describeReservedDBInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedDBInstancesMessage = {}, + params: s.DescribeReservedDBInstancesMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1775,7 +1769,7 @@ export default class RDS { 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, + body, action: "DescribeReservedDBInstances", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeReservedDBInstancesResult"); @@ -1788,7 +1782,7 @@ export default class RDS { } async describeReservedDBInstancesOfferings( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedDBInstancesOfferingsMessage = {}, + params: s.DescribeReservedDBInstancesOfferingsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1802,7 +1796,7 @@ export default class RDS { 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, + body, action: "DescribeReservedDBInstancesOfferings", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeReservedDBInstancesOfferingsResult"); @@ -1815,7 +1809,7 @@ export default class RDS { } async describeSourceRegions( - {abortSignal, ...params}: RequestConfig & s.DescribeSourceRegionsMessage = {}, + params: s.DescribeSourceRegionsMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1824,7 +1818,7 @@ export default class RDS { if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSourceRegions", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeSourceRegionsResult"); @@ -1837,13 +1831,13 @@ export default class RDS { } async describeValidDBInstanceModifications( - {abortSignal, ...params}: RequestConfig & s.DescribeValidDBInstanceModificationsMessage, + params: s.DescribeValidDBInstanceModificationsMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeValidDBInstanceModifications", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeValidDBInstanceModificationsResult"); @@ -1853,7 +1847,7 @@ export default class RDS { } async downloadDBLogFilePortion( - {abortSignal, ...params}: RequestConfig & s.DownloadDBLogFilePortionMessage, + params: s.DownloadDBLogFilePortionMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1862,7 +1856,7 @@ export default class RDS { 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, + body, action: "DownloadDBLogFilePortion", }); const xml = xmlP.readXmlResult(await resp.text(), "DownloadDBLogFilePortionResult"); @@ -1875,14 +1869,14 @@ export default class RDS { } async failoverDBCluster( - {abortSignal, ...params}: RequestConfig & s.FailoverDBClusterMessage, + params: s.FailoverDBClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBClusterIdentifier", (params["DBClusterIdentifier"] ?? '').toString()); if ("TargetDBInstanceIdentifier" in params) body.append(prefix+"TargetDBInstanceIdentifier", (params["TargetDBInstanceIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "FailoverDBCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "FailoverDBClusterResult"); @@ -1892,14 +1886,14 @@ export default class RDS { } async failoverGlobalCluster( - {abortSignal, ...params}: RequestConfig & s.FailoverGlobalClusterMessage, + params: s.FailoverGlobalClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"GlobalClusterIdentifier", (params["GlobalClusterIdentifier"] ?? '').toString()); body.append(prefix+"TargetDbClusterIdentifier", (params["TargetDbClusterIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "FailoverGlobalCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "FailoverGlobalClusterResult"); @@ -1909,7 +1903,7 @@ export default class RDS { } async importInstallationMedia( - {abortSignal, ...params}: RequestConfig & s.ImportInstallationMediaMessage, + params: s.ImportInstallationMediaMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1919,7 +1913,7 @@ export default class RDS { body.append(prefix+"EngineInstallationMediaPath", (params["EngineInstallationMediaPath"] ?? '').toString()); body.append(prefix+"OSInstallationMediaPath", (params["OSInstallationMediaPath"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ImportInstallationMedia", }); const xml = xmlP.readXmlResult(await resp.text(), "ImportInstallationMediaResult"); @@ -1927,14 +1921,14 @@ export default class RDS { } async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceMessage, + params: 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, + body, action: "ListTagsForResource", }); const xml = xmlP.readXmlResult(await resp.text(), "ListTagsForResourceResult"); @@ -1944,14 +1938,14 @@ export default class RDS { } async modifyCertificates( - {abortSignal, ...params}: RequestConfig & s.ModifyCertificatesMessage = {}, + params: s.ModifyCertificatesMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("CertificateIdentifier" in params) body.append(prefix+"CertificateIdentifier", (params["CertificateIdentifier"] ?? '').toString()); if ("RemoveCustomerOverride" in params) body.append(prefix+"RemoveCustomerOverride", (params["RemoveCustomerOverride"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyCertificates", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyCertificatesResult"); @@ -1961,7 +1955,7 @@ export default class RDS { } async modifyCurrentDBClusterCapacity( - {abortSignal, ...params}: RequestConfig & s.ModifyCurrentDBClusterCapacityMessage, + params: s.ModifyCurrentDBClusterCapacityMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1970,7 +1964,7 @@ export default class RDS { if ("SecondsBeforeTimeout" in params) body.append(prefix+"SecondsBeforeTimeout", (params["SecondsBeforeTimeout"] ?? '').toString()); if ("TimeoutAction" in params) body.append(prefix+"TimeoutAction", (params["TimeoutAction"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyCurrentDBClusterCapacity", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyCurrentDBClusterCapacityResult"); @@ -1985,7 +1979,7 @@ export default class RDS { } async modifyDBCluster( - {abortSignal, ...params}: RequestConfig & s.ModifyDBClusterMessage, + params: s.ModifyDBClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2014,7 +2008,7 @@ export default class RDS { if ("CopyTagsToSnapshot" in params) body.append(prefix+"CopyTagsToSnapshot", (params["CopyTagsToSnapshot"] ?? '').toString()); if ("EnableGlobalWriteForwarding" in params) body.append(prefix+"EnableGlobalWriteForwarding", (params["EnableGlobalWriteForwarding"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDBCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBClusterResult"); @@ -2024,7 +2018,7 @@ export default class RDS { } async modifyDBClusterEndpoint( - {abortSignal, ...params}: RequestConfig & s.ModifyDBClusterEndpointMessage, + params: s.ModifyDBClusterEndpointMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2033,7 +2027,7 @@ export default class RDS { if (params["StaticMembers"]) qsP.appendList(body, prefix+"StaticMembers", params["StaticMembers"], {"entryPrefix":".member."}) if (params["ExcludedMembers"]) qsP.appendList(body, prefix+"ExcludedMembers", params["ExcludedMembers"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDBClusterEndpoint", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBClusterEndpointResult"); @@ -2041,14 +2035,14 @@ export default class RDS { } async modifyDBClusterParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBClusterParameterGroupMessage, + params: s.ModifyDBClusterParameterGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBClusterParameterGroupName", (params["DBClusterParameterGroupName"] ?? '').toString()); if (params["Parameters"]) qsP.appendList(body, prefix+"Parameters", params["Parameters"], {"appender":Parameter_Serialize,"entryPrefix":".Parameter."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDBClusterParameterGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBClusterParameterGroupResult"); @@ -2058,7 +2052,7 @@ export default class RDS { } async modifyDBClusterSnapshotAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifyDBClusterSnapshotAttributeMessage, + params: s.ModifyDBClusterSnapshotAttributeMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2067,7 +2061,7 @@ export default class RDS { if (params["ValuesToAdd"]) qsP.appendList(body, prefix+"ValuesToAdd", params["ValuesToAdd"], {"entryPrefix":".AttributeValue."}) if (params["ValuesToRemove"]) qsP.appendList(body, prefix+"ValuesToRemove", params["ValuesToRemove"], {"entryPrefix":".AttributeValue."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDBClusterSnapshotAttribute", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBClusterSnapshotAttributeResult"); @@ -2077,7 +2071,7 @@ export default class RDS { } async modifyDBInstance( - {abortSignal, ...params}: RequestConfig & s.ModifyDBInstanceMessage, + params: s.ModifyDBInstanceMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2127,7 +2121,7 @@ export default class RDS { if ("EnableCustomerOwnedIp" in params) body.append(prefix+"EnableCustomerOwnedIp", (params["EnableCustomerOwnedIp"] ?? '').toString()); if ("AwsBackupRecoveryPointArn" in params) body.append(prefix+"AwsBackupRecoveryPointArn", (params["AwsBackupRecoveryPointArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDBInstance", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBInstanceResult"); @@ -2137,14 +2131,14 @@ export default class RDS { } async modifyDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBParameterGroupMessage, + params: 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, + body, action: "ModifyDBParameterGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBParameterGroupResult"); @@ -2154,7 +2148,7 @@ export default class RDS { } async modifyDBProxy( - {abortSignal, ...params}: RequestConfig & s.ModifyDBProxyRequest, + params: s.ModifyDBProxyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2167,7 +2161,7 @@ export default class RDS { if ("RoleArn" in params) body.append(prefix+"RoleArn", (params["RoleArn"] ?? '').toString()); if (params["SecurityGroups"]) qsP.appendList(body, prefix+"SecurityGroups", params["SecurityGroups"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDBProxy", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBProxyResult"); @@ -2177,7 +2171,7 @@ export default class RDS { } async modifyDBProxyEndpoint( - {abortSignal, ...params}: RequestConfig & s.ModifyDBProxyEndpointRequest, + params: s.ModifyDBProxyEndpointRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2185,7 +2179,7 @@ export default class RDS { if ("NewDBProxyEndpointName" in params) body.append(prefix+"NewDBProxyEndpointName", (params["NewDBProxyEndpointName"] ?? '').toString()); if (params["VpcSecurityGroupIds"]) qsP.appendList(body, prefix+"VpcSecurityGroupIds", params["VpcSecurityGroupIds"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDBProxyEndpoint", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBProxyEndpointResult"); @@ -2195,7 +2189,7 @@ export default class RDS { } async modifyDBProxyTargetGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBProxyTargetGroupRequest, + params: s.ModifyDBProxyTargetGroupRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2204,7 +2198,7 @@ export default class RDS { if (params["ConnectionPoolConfig"] != null) ConnectionPoolConfiguration_Serialize(body, prefix+"ConnectionPoolConfig", params["ConnectionPoolConfig"]); if ("NewName" in params) body.append(prefix+"NewName", (params["NewName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDBProxyTargetGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBProxyTargetGroupResult"); @@ -2214,7 +2208,7 @@ export default class RDS { } async modifyDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.ModifyDBSnapshotMessage, + params: s.ModifyDBSnapshotMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2222,7 +2216,7 @@ export default class RDS { if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDBSnapshot", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBSnapshotResult"); @@ -2232,7 +2226,7 @@ export default class RDS { } async modifyDBSnapshotAttribute( - {abortSignal, ...params}: RequestConfig & s.ModifyDBSnapshotAttributeMessage, + params: s.ModifyDBSnapshotAttributeMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2241,7 +2235,7 @@ export default class RDS { if (params["ValuesToAdd"]) qsP.appendList(body, prefix+"ValuesToAdd", params["ValuesToAdd"], {"entryPrefix":".AttributeValue."}) if (params["ValuesToRemove"]) qsP.appendList(body, prefix+"ValuesToRemove", params["ValuesToRemove"], {"entryPrefix":".AttributeValue."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDBSnapshotAttribute", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBSnapshotAttributeResult"); @@ -2251,7 +2245,7 @@ export default class RDS { } async modifyDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBSubnetGroupMessage, + params: s.ModifyDBSubnetGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2259,7 +2253,7 @@ export default class RDS { 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, + body, action: "ModifyDBSubnetGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBSubnetGroupResult"); @@ -2269,7 +2263,7 @@ export default class RDS { } async modifyEventSubscription( - {abortSignal, ...params}: RequestConfig & s.ModifyEventSubscriptionMessage, + params: s.ModifyEventSubscriptionMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2279,7 +2273,7 @@ export default class RDS { 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, + body, action: "ModifyEventSubscription", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyEventSubscriptionResult"); @@ -2289,7 +2283,7 @@ export default class RDS { } async modifyGlobalCluster( - {abortSignal, ...params}: RequestConfig & s.ModifyGlobalClusterMessage = {}, + params: s.ModifyGlobalClusterMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2299,7 +2293,7 @@ export default class RDS { if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); if ("AllowMajorVersionUpgrade" in params) body.append(prefix+"AllowMajorVersionUpgrade", (params["AllowMajorVersionUpgrade"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyGlobalCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyGlobalClusterResult"); @@ -2309,7 +2303,7 @@ export default class RDS { } async modifyOptionGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyOptionGroupMessage, + params: s.ModifyOptionGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2318,7 +2312,7 @@ export default class RDS { 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, + body, action: "ModifyOptionGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "ModifyOptionGroupResult"); @@ -2328,7 +2322,7 @@ export default class RDS { } async promoteReadReplica( - {abortSignal, ...params}: RequestConfig & s.PromoteReadReplicaMessage, + params: s.PromoteReadReplicaMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2336,7 +2330,7 @@ export default class RDS { 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, + body, action: "PromoteReadReplica", }); const xml = xmlP.readXmlResult(await resp.text(), "PromoteReadReplicaResult"); @@ -2346,13 +2340,13 @@ export default class RDS { } async promoteReadReplicaDBCluster( - {abortSignal, ...params}: RequestConfig & s.PromoteReadReplicaDBClusterMessage, + params: s.PromoteReadReplicaDBClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBClusterIdentifier", (params["DBClusterIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PromoteReadReplicaDBCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "PromoteReadReplicaDBClusterResult"); @@ -2362,7 +2356,7 @@ export default class RDS { } async purchaseReservedDBInstancesOffering( - {abortSignal, ...params}: RequestConfig & s.PurchaseReservedDBInstancesOfferingMessage, + params: s.PurchaseReservedDBInstancesOfferingMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2371,7 +2365,7 @@ export default class RDS { 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, + body, action: "PurchaseReservedDBInstancesOffering", }); const xml = xmlP.readXmlResult(await resp.text(), "PurchaseReservedDBInstancesOfferingResult"); @@ -2381,14 +2375,14 @@ export default class RDS { } async rebootDBInstance( - {abortSignal, ...params}: RequestConfig & s.RebootDBInstanceMessage, + params: 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, + body, action: "RebootDBInstance", }); const xml = xmlP.readXmlResult(await resp.text(), "RebootDBInstanceResult"); @@ -2398,7 +2392,7 @@ export default class RDS { } async registerDBProxyTargets( - {abortSignal, ...params}: RequestConfig & s.RegisterDBProxyTargetsRequest, + params: s.RegisterDBProxyTargetsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2407,7 +2401,7 @@ export default class RDS { if (params["DBInstanceIdentifiers"]) qsP.appendList(body, prefix+"DBInstanceIdentifiers", params["DBInstanceIdentifiers"], {"entryPrefix":".member."}) if (params["DBClusterIdentifiers"]) qsP.appendList(body, prefix+"DBClusterIdentifiers", params["DBClusterIdentifiers"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterDBProxyTargets", }); const xml = xmlP.readXmlResult(await resp.text(), "RegisterDBProxyTargetsResult"); @@ -2417,14 +2411,14 @@ export default class RDS { } async removeFromGlobalCluster( - {abortSignal, ...params}: RequestConfig & s.RemoveFromGlobalClusterMessage = {}, + params: s.RemoveFromGlobalClusterMessage = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("GlobalClusterIdentifier" in params) body.append(prefix+"GlobalClusterIdentifier", (params["GlobalClusterIdentifier"] ?? '').toString()); if ("DbClusterIdentifier" in params) body.append(prefix+"DbClusterIdentifier", (params["DbClusterIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveFromGlobalCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "RemoveFromGlobalClusterResult"); @@ -2434,7 +2428,7 @@ export default class RDS { } async removeRoleFromDBCluster( - {abortSignal, ...params}: RequestConfig & s.RemoveRoleFromDBClusterMessage, + params: s.RemoveRoleFromDBClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2442,14 +2436,14 @@ export default class RDS { body.append(prefix+"RoleArn", (params["RoleArn"] ?? '').toString()); if ("FeatureName" in params) body.append(prefix+"FeatureName", (params["FeatureName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveRoleFromDBCluster", }); await resp.arrayBuffer(); // consume body without use } async removeRoleFromDBInstance( - {abortSignal, ...params}: RequestConfig & s.RemoveRoleFromDBInstanceMessage, + params: s.RemoveRoleFromDBInstanceMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2457,21 +2451,21 @@ export default class RDS { body.append(prefix+"RoleArn", (params["RoleArn"] ?? '').toString()); body.append(prefix+"FeatureName", (params["FeatureName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveRoleFromDBInstance", }); await resp.arrayBuffer(); // consume body without use } async removeSourceIdentifierFromSubscription( - {abortSignal, ...params}: RequestConfig & s.RemoveSourceIdentifierFromSubscriptionMessage, + params: 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, + body, action: "RemoveSourceIdentifierFromSubscription", }); const xml = xmlP.readXmlResult(await resp.text(), "RemoveSourceIdentifierFromSubscriptionResult"); @@ -2481,21 +2475,21 @@ export default class RDS { } async removeTagsFromResource( - {abortSignal, ...params}: RequestConfig & s.RemoveTagsFromResourceMessage, + params: 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, + body, action: "RemoveTagsFromResource", }); await resp.arrayBuffer(); // consume body without use } async resetDBClusterParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ResetDBClusterParameterGroupMessage, + params: s.ResetDBClusterParameterGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2503,7 +2497,7 @@ export default class RDS { 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, + body, action: "ResetDBClusterParameterGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "ResetDBClusterParameterGroupResult"); @@ -2513,7 +2507,7 @@ export default class RDS { } async resetDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ResetDBParameterGroupMessage, + params: s.ResetDBParameterGroupMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2521,7 +2515,7 @@ export default class RDS { 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, + body, action: "ResetDBParameterGroup", }); const xml = xmlP.readXmlResult(await resp.text(), "ResetDBParameterGroupResult"); @@ -2531,7 +2525,7 @@ export default class RDS { } async restoreDBClusterFromS3( - {abortSignal, ...params}: RequestConfig & s.RestoreDBClusterFromS3Message, + params: s.RestoreDBClusterFromS3Message, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2567,7 +2561,7 @@ export default class RDS { if ("Domain" in params) body.append(prefix+"Domain", (params["Domain"] ?? '').toString()); if ("DomainIAMRoleName" in params) body.append(prefix+"DomainIAMRoleName", (params["DomainIAMRoleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RestoreDBClusterFromS3", }); const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBClusterFromS3Result"); @@ -2577,7 +2571,7 @@ export default class RDS { } async restoreDBClusterFromSnapshot( - {abortSignal, ...params}: RequestConfig & s.RestoreDBClusterFromSnapshotMessage, + params: s.RestoreDBClusterFromSnapshotMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2604,7 +2598,7 @@ export default class RDS { if ("Domain" in params) body.append(prefix+"Domain", (params["Domain"] ?? '').toString()); if ("DomainIAMRoleName" in params) body.append(prefix+"DomainIAMRoleName", (params["DomainIAMRoleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RestoreDBClusterFromSnapshot", }); const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBClusterFromSnapshotResult"); @@ -2614,7 +2608,7 @@ export default class RDS { } async restoreDBClusterToPointInTime( - {abortSignal, ...params}: RequestConfig & s.RestoreDBClusterToPointInTimeMessage, + params: s.RestoreDBClusterToPointInTimeMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2638,7 +2632,7 @@ export default class RDS { if ("Domain" in params) body.append(prefix+"Domain", (params["Domain"] ?? '').toString()); if ("DomainIAMRoleName" in params) body.append(prefix+"DomainIAMRoleName", (params["DomainIAMRoleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RestoreDBClusterToPointInTime", }); const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBClusterToPointInTimeResult"); @@ -2648,7 +2642,7 @@ export default class RDS { } async restoreDBInstanceFromDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceFromDBSnapshotMessage, + params: s.RestoreDBInstanceFromDBSnapshotMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2682,7 +2676,7 @@ export default class RDS { if ("DeletionProtection" in params) body.append(prefix+"DeletionProtection", (params["DeletionProtection"] ?? '').toString()); if ("EnableCustomerOwnedIp" in params) body.append(prefix+"EnableCustomerOwnedIp", (params["EnableCustomerOwnedIp"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RestoreDBInstanceFromDBSnapshot", }); const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceFromDBSnapshotResult"); @@ -2692,7 +2686,7 @@ export default class RDS { } async restoreDBInstanceFromS3( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceFromS3Message, + params: s.RestoreDBInstanceFromS3Message, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2741,7 +2735,7 @@ export default class RDS { if ("DeletionProtection" in params) body.append(prefix+"DeletionProtection", (params["DeletionProtection"] ?? '').toString()); if ("MaxAllocatedStorage" in params) body.append(prefix+"MaxAllocatedStorage", (params["MaxAllocatedStorage"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RestoreDBInstanceFromS3", }); const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceFromS3Result"); @@ -2751,7 +2745,7 @@ export default class RDS { } async restoreDBInstanceToPointInTime( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceToPointInTimeMessage, + params: s.RestoreDBInstanceToPointInTimeMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2790,7 +2784,7 @@ export default class RDS { if ("SourceDBInstanceAutomatedBackupsArn" in params) body.append(prefix+"SourceDBInstanceAutomatedBackupsArn", (params["SourceDBInstanceAutomatedBackupsArn"] ?? '').toString()); if ("EnableCustomerOwnedIp" in params) body.append(prefix+"EnableCustomerOwnedIp", (params["EnableCustomerOwnedIp"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RestoreDBInstanceToPointInTime", }); const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceToPointInTimeResult"); @@ -2800,7 +2794,7 @@ export default class RDS { } async revokeDBSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.RevokeDBSecurityGroupIngressMessage, + params: s.RevokeDBSecurityGroupIngressMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2810,7 +2804,7 @@ export default class RDS { 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, + body, action: "RevokeDBSecurityGroupIngress", }); const xml = xmlP.readXmlResult(await resp.text(), "RevokeDBSecurityGroupIngressResult"); @@ -2820,7 +2814,7 @@ export default class RDS { } async startActivityStream( - {abortSignal, ...params}: RequestConfig & s.StartActivityStreamRequest, + params: s.StartActivityStreamRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2829,7 +2823,7 @@ export default class RDS { body.append(prefix+"KmsKeyId", (params["KmsKeyId"] ?? '').toString()); if ("ApplyImmediately" in params) body.append(prefix+"ApplyImmediately", (params["ApplyImmediately"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartActivityStream", }); const xml = xmlP.readXmlResult(await resp.text(), "StartActivityStreamResult"); @@ -2844,13 +2838,13 @@ export default class RDS { } async startDBCluster( - {abortSignal, ...params}: RequestConfig & s.StartDBClusterMessage, + params: s.StartDBClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBClusterIdentifier", (params["DBClusterIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartDBCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "StartDBClusterResult"); @@ -2860,13 +2854,13 @@ export default class RDS { } async startDBInstance( - {abortSignal, ...params}: RequestConfig & s.StartDBInstanceMessage, + params: s.StartDBInstanceMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartDBInstance", }); const xml = xmlP.readXmlResult(await resp.text(), "StartDBInstanceResult"); @@ -2876,7 +2870,7 @@ export default class RDS { } async startDBInstanceAutomatedBackupsReplication( - {abortSignal, ...params}: RequestConfig & s.StartDBInstanceAutomatedBackupsReplicationMessage, + params: s.StartDBInstanceAutomatedBackupsReplicationMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2885,7 +2879,7 @@ export default class RDS { if ("KmsKeyId" in params) body.append(prefix+"KmsKeyId", (params["KmsKeyId"] ?? '').toString()); if ("PreSignedUrl" in params) body.append(prefix+"PreSignedUrl", (params["PreSignedUrl"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartDBInstanceAutomatedBackupsReplication", }); const xml = xmlP.readXmlResult(await resp.text(), "StartDBInstanceAutomatedBackupsReplicationResult"); @@ -2895,7 +2889,7 @@ export default class RDS { } async startExportTask( - {abortSignal, ...params}: RequestConfig & s.StartExportTaskMessage, + params: s.StartExportTaskMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -2907,7 +2901,7 @@ export default class RDS { if ("S3Prefix" in params) body.append(prefix+"S3Prefix", (params["S3Prefix"] ?? '').toString()); if (params["ExportOnly"]) qsP.appendList(body, prefix+"ExportOnly", params["ExportOnly"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartExportTask", }); const xml = xmlP.readXmlResult(await resp.text(), "StartExportTaskResult"); @@ -2915,14 +2909,14 @@ export default class RDS { } async stopActivityStream( - {abortSignal, ...params}: RequestConfig & s.StopActivityStreamRequest, + params: s.StopActivityStreamRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ResourceArn", (params["ResourceArn"] ?? '').toString()); if ("ApplyImmediately" in params) body.append(prefix+"ApplyImmediately", (params["ApplyImmediately"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StopActivityStream", }); const xml = xmlP.readXmlResult(await resp.text(), "StopActivityStreamResult"); @@ -2935,13 +2929,13 @@ export default class RDS { } async stopDBCluster( - {abortSignal, ...params}: RequestConfig & s.StopDBClusterMessage, + params: s.StopDBClusterMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBClusterIdentifier", (params["DBClusterIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StopDBCluster", }); const xml = xmlP.readXmlResult(await resp.text(), "StopDBClusterResult"); @@ -2951,14 +2945,14 @@ export default class RDS { } async stopDBInstance( - {abortSignal, ...params}: RequestConfig & s.StopDBInstanceMessage, + params: s.StopDBInstanceMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); if ("DBSnapshotIdentifier" in params) body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StopDBInstance", }); const xml = xmlP.readXmlResult(await resp.text(), "StopDBInstanceResult"); @@ -2968,13 +2962,13 @@ export default class RDS { } async stopDBInstanceAutomatedBackupsReplication( - {abortSignal, ...params}: RequestConfig & s.StopDBInstanceAutomatedBackupsReplicationMessage, + params: s.StopDBInstanceAutomatedBackupsReplicationMessage, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SourceDBInstanceArn", (params["SourceDBInstanceArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StopDBInstanceAutomatedBackupsReplication", }); const xml = xmlP.readXmlResult(await resp.text(), "StopDBInstanceAutomatedBackupsReplicationResult"); @@ -2987,7 +2981,7 @@ export default class RDS { /** Checks state up to 60 times, 30 seconds apart (about 30 minutes max wait time). */ async waitForDBInstanceAvailable( - params: RequestConfig & s.DescribeDBInstancesMessage, + params: s.DescribeDBInstancesMessage, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state DBInstanceAvailable'; for (let i = 0; i < 60; i++) { @@ -3006,7 +3000,7 @@ export default class RDS { /** Checks state up to 60 times, 30 seconds apart (about 30 minutes max wait time). */ async waitForDBInstanceDeleted( - params: RequestConfig & s.DescribeDBInstancesMessage, + params: s.DescribeDBInstancesMessage, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state DBInstanceDeleted'; for (let i = 0; i < 60; i++) { @@ -3028,7 +3022,7 @@ export default class RDS { /** Checks state up to 60 times, 30 seconds apart (about 30 minutes max wait time). */ async waitForDBSnapshotAvailable( - params: RequestConfig & s.DescribeDBSnapshotsMessage, + params: s.DescribeDBSnapshotsMessage, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state DBSnapshotAvailable'; for (let i = 0; i < 60; i++) { @@ -3047,7 +3041,7 @@ export default class RDS { /** Checks state up to 60 times, 30 seconds apart (about 30 minutes max wait time). */ async waitForDBSnapshotDeleted( - params: RequestConfig & s.DescribeDBSnapshotsMessage, + params: s.DescribeDBSnapshotsMessage, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state DBSnapshotDeleted'; for (let i = 0; i < 60; i++) { @@ -3069,7 +3063,7 @@ export default class RDS { /** Checks state up to 60 times, 30 seconds apart (about 30 minutes max wait time). */ async waitForDBClusterSnapshotAvailable( - params: RequestConfig & s.DescribeDBClusterSnapshotsMessage, + params: s.DescribeDBClusterSnapshotsMessage, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state DBClusterSnapshotAvailable'; for (let i = 0; i < 60; i++) { @@ -3088,7 +3082,7 @@ export default class RDS { /** Checks state up to 60 times, 30 seconds apart (about 30 minutes max wait time). */ async waitForDBClusterSnapshotDeleted( - params: RequestConfig & s.DescribeDBClusterSnapshotsMessage, + params: s.DescribeDBClusterSnapshotsMessage, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state DBClusterSnapshotDeleted'; for (let i = 0; i < 60; i++) { diff --git a/lib/services/route53/mod.ts b/lib/services/route53/mod.ts index f0b7e2ff..9315431f 100644 --- a/lib/services/route53/mod.ts +++ b/lib/services/route53/mod.ts @@ -1,16 +1,12 @@ // Autogenerated API client for: Amazon Route 53 -interface RequestConfig { - abortSignal?: AbortSignal; -} - export * from "./structs.ts"; import * as client from "../../client/common.ts"; import * as cmnP from "../../encoding/common.ts"; import * as xmlP from "../../encoding/xml.ts"; import type * as s from "./structs.ts"; -export default class Route53 { +export class Route53 { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(Route53.ApiMetadata); @@ -29,11 +25,10 @@ export default class Route53 { }; async activateKeySigningKey( - {abortSignal, ...params}: RequestConfig & s.ActivateKeySigningKeyRequest, + params: s.ActivateKeySigningKeyRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "ActivateKeySigningKey", requestUri: cmnP.encodePath`/2013-04-01/keysigningkey/${params["HostedZoneId"]}/${params["Name"]}/activate`, }); @@ -44,7 +39,7 @@ export default class Route53 { } async associateVPCWithHostedZone( - {abortSignal, ...params}: RequestConfig & s.AssociateVPCWithHostedZoneRequest, + params: s.AssociateVPCWithHostedZoneRequest, ): Promise { const body = xmlP.stringify({ name: "AssociateVPCWithHostedZoneRequest", @@ -54,7 +49,7 @@ export default class Route53 { {name: "Comment", content: params["Comment"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssociateVPCWithHostedZone", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["HostedZoneId"]}/associatevpc`, }); @@ -65,7 +60,7 @@ export default class Route53 { } async changeResourceRecordSets( - {abortSignal, ...params}: RequestConfig & s.ChangeResourceRecordSetsRequest, + params: s.ChangeResourceRecordSetsRequest, ): Promise { const body = xmlP.stringify({ name: "ChangeResourceRecordSetsRequest", @@ -74,7 +69,7 @@ export default class Route53 { {name: "ChangeBatch", ...ChangeBatch_Serialize(params["ChangeBatch"])}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ChangeResourceRecordSets", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["HostedZoneId"]}/rrset/`, }); @@ -85,7 +80,7 @@ export default class Route53 { } async changeTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ChangeTagsForResourceRequest, + params: s.ChangeTagsForResourceRequest, ): Promise { const body = xmlP.stringify({ name: "ChangeTagsForResourceRequest", @@ -95,7 +90,7 @@ export default class Route53 { {name: "RemoveTagKeys", children: params["RemoveTagKeys"]?.map(x => ({name: "Key", content: x}))}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ChangeTagsForResource", requestUri: cmnP.encodePath`/2013-04-01/tags/${params["ResourceType"]}/${params["ResourceId"]}`, }); @@ -103,7 +98,7 @@ export default class Route53 { } async createHealthCheck( - {abortSignal, ...params}: RequestConfig & s.CreateHealthCheckRequest, + params: s.CreateHealthCheckRequest, ): Promise { const body = xmlP.stringify({ name: "CreateHealthCheckRequest", @@ -113,7 +108,7 @@ export default class Route53 { {name: "HealthCheckConfig", ...HealthCheckConfig_Serialize(params["HealthCheckConfig"])}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateHealthCheck", requestUri: "/2013-04-01/healthcheck", responseCode: 201, @@ -128,7 +123,7 @@ export default class Route53 { } async createHostedZone( - {abortSignal, ...params}: RequestConfig & s.CreateHostedZoneRequest, + params: s.CreateHostedZoneRequest, ): Promise { const body = xmlP.stringify({ name: "CreateHostedZoneRequest", @@ -141,7 +136,7 @@ export default class Route53 { {name: "DelegationSetId", content: params["DelegationSetId"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateHostedZone", requestUri: "/2013-04-01/hostedzone", responseCode: 201, @@ -159,7 +154,7 @@ export default class Route53 { } async createKeySigningKey( - {abortSignal, ...params}: RequestConfig & s.CreateKeySigningKeyRequest, + params: s.CreateKeySigningKeyRequest, ): Promise { const body = xmlP.stringify({ name: "CreateKeySigningKeyRequest", @@ -172,7 +167,7 @@ export default class Route53 { {name: "Status", content: params["Status"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateKeySigningKey", requestUri: "/2013-04-01/keysigningkey", responseCode: 201, @@ -188,7 +183,7 @@ export default class Route53 { } async createQueryLoggingConfig( - {abortSignal, ...params}: RequestConfig & s.CreateQueryLoggingConfigRequest, + params: s.CreateQueryLoggingConfigRequest, ): Promise { const body = xmlP.stringify({ name: "CreateQueryLoggingConfigRequest", @@ -198,7 +193,7 @@ export default class Route53 { {name: "CloudWatchLogsLogGroupArn", content: params["CloudWatchLogsLogGroupArn"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateQueryLoggingConfig", requestUri: "/2013-04-01/queryloggingconfig", responseCode: 201, @@ -213,7 +208,7 @@ export default class Route53 { } async createReusableDelegationSet( - {abortSignal, ...params}: RequestConfig & s.CreateReusableDelegationSetRequest, + params: s.CreateReusableDelegationSetRequest, ): Promise { const body = xmlP.stringify({ name: "CreateReusableDelegationSetRequest", @@ -223,7 +218,7 @@ export default class Route53 { {name: "HostedZoneId", content: params["HostedZoneId"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateReusableDelegationSet", requestUri: "/2013-04-01/delegationset", responseCode: 201, @@ -238,7 +233,7 @@ export default class Route53 { } async createTrafficPolicy( - {abortSignal, ...params}: RequestConfig & s.CreateTrafficPolicyRequest, + params: s.CreateTrafficPolicyRequest, ): Promise { const body = xmlP.stringify({ name: "CreateTrafficPolicyRequest", @@ -249,7 +244,7 @@ export default class Route53 { {name: "Comment", content: params["Comment"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTrafficPolicy", requestUri: "/2013-04-01/trafficpolicy", responseCode: 201, @@ -264,7 +259,7 @@ export default class Route53 { } async createTrafficPolicyInstance( - {abortSignal, ...params}: RequestConfig & s.CreateTrafficPolicyInstanceRequest, + params: s.CreateTrafficPolicyInstanceRequest, ): Promise { const body = xmlP.stringify({ name: "CreateTrafficPolicyInstanceRequest", @@ -277,7 +272,7 @@ export default class Route53 { {name: "TrafficPolicyVersion", content: params["TrafficPolicyVersion"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTrafficPolicyInstance", requestUri: "/2013-04-01/trafficpolicyinstance", responseCode: 201, @@ -292,7 +287,7 @@ export default class Route53 { } async createTrafficPolicyVersion( - {abortSignal, ...params}: RequestConfig & s.CreateTrafficPolicyVersionRequest, + params: s.CreateTrafficPolicyVersionRequest, ): Promise { const body = xmlP.stringify({ name: "CreateTrafficPolicyVersionRequest", @@ -302,7 +297,7 @@ export default class Route53 { {name: "Comment", content: params["Comment"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTrafficPolicyVersion", requestUri: cmnP.encodePath`/2013-04-01/trafficpolicy/${params["Id"]}`, responseCode: 201, @@ -317,7 +312,7 @@ export default class Route53 { } async createVPCAssociationAuthorization( - {abortSignal, ...params}: RequestConfig & s.CreateVPCAssociationAuthorizationRequest, + params: s.CreateVPCAssociationAuthorizationRequest, ): Promise { const body = xmlP.stringify({ name: "CreateVPCAssociationAuthorizationRequest", @@ -326,7 +321,7 @@ export default class Route53 { {name: "VPC", ...VPC_Serialize(params["VPC"])}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateVPCAssociationAuthorization", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["HostedZoneId"]}/authorizevpcassociation`, }); @@ -340,11 +335,10 @@ export default class Route53 { } async deactivateKeySigningKey( - {abortSignal, ...params}: RequestConfig & s.DeactivateKeySigningKeyRequest, + params: s.DeactivateKeySigningKeyRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeactivateKeySigningKey", requestUri: cmnP.encodePath`/2013-04-01/keysigningkey/${params["HostedZoneId"]}/${params["Name"]}/deactivate`, }); @@ -355,11 +349,10 @@ export default class Route53 { } async deleteHealthCheck( - {abortSignal, ...params}: RequestConfig & s.DeleteHealthCheckRequest, + params: s.DeleteHealthCheckRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteHealthCheck", method: "DELETE", requestUri: cmnP.encodePath`/2013-04-01/healthcheck/${params["HealthCheckId"]}`, @@ -368,11 +361,10 @@ export default class Route53 { } async deleteHostedZone( - {abortSignal, ...params}: RequestConfig & s.DeleteHostedZoneRequest, + params: s.DeleteHostedZoneRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteHostedZone", method: "DELETE", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["Id"]}`, @@ -384,11 +376,10 @@ export default class Route53 { } async deleteKeySigningKey( - {abortSignal, ...params}: RequestConfig & s.DeleteKeySigningKeyRequest, + params: s.DeleteKeySigningKeyRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteKeySigningKey", method: "DELETE", requestUri: cmnP.encodePath`/2013-04-01/keysigningkey/${params["HostedZoneId"]}/${params["Name"]}`, @@ -400,11 +391,10 @@ export default class Route53 { } async deleteQueryLoggingConfig( - {abortSignal, ...params}: RequestConfig & s.DeleteQueryLoggingConfigRequest, + params: s.DeleteQueryLoggingConfigRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteQueryLoggingConfig", method: "DELETE", requestUri: cmnP.encodePath`/2013-04-01/queryloggingconfig/${params["Id"]}`, @@ -413,11 +403,10 @@ export default class Route53 { } async deleteReusableDelegationSet( - {abortSignal, ...params}: RequestConfig & s.DeleteReusableDelegationSetRequest, + params: s.DeleteReusableDelegationSetRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteReusableDelegationSet", method: "DELETE", requestUri: cmnP.encodePath`/2013-04-01/delegationset/${params["Id"]}`, @@ -426,11 +415,10 @@ export default class Route53 { } async deleteTrafficPolicy( - {abortSignal, ...params}: RequestConfig & s.DeleteTrafficPolicyRequest, + params: s.DeleteTrafficPolicyRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteTrafficPolicy", method: "DELETE", requestUri: cmnP.encodePath`/2013-04-01/trafficpolicy/${params["Id"]}/${params["Version"].toString()}`, @@ -439,11 +427,10 @@ export default class Route53 { } async deleteTrafficPolicyInstance( - {abortSignal, ...params}: RequestConfig & s.DeleteTrafficPolicyInstanceRequest, + params: s.DeleteTrafficPolicyInstanceRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteTrafficPolicyInstance", method: "DELETE", requestUri: cmnP.encodePath`/2013-04-01/trafficpolicyinstance/${params["Id"]}`, @@ -452,7 +439,7 @@ export default class Route53 { } async deleteVPCAssociationAuthorization( - {abortSignal, ...params}: RequestConfig & s.DeleteVPCAssociationAuthorizationRequest, + params: s.DeleteVPCAssociationAuthorizationRequest, ): Promise { const body = xmlP.stringify({ name: "DeleteVPCAssociationAuthorizationRequest", @@ -461,7 +448,7 @@ export default class Route53 { {name: "VPC", ...VPC_Serialize(params["VPC"])}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVPCAssociationAuthorization", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["HostedZoneId"]}/deauthorizevpcassociation`, }); @@ -469,11 +456,10 @@ export default class Route53 { } async disableHostedZoneDNSSEC( - {abortSignal, ...params}: RequestConfig & s.DisableHostedZoneDNSSECRequest, + params: s.DisableHostedZoneDNSSECRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DisableHostedZoneDNSSEC", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["HostedZoneId"]}/disable-dnssec`, }); @@ -484,7 +470,7 @@ export default class Route53 { } async disassociateVPCFromHostedZone( - {abortSignal, ...params}: RequestConfig & s.DisassociateVPCFromHostedZoneRequest, + params: s.DisassociateVPCFromHostedZoneRequest, ): Promise { const body = xmlP.stringify({ name: "DisassociateVPCFromHostedZoneRequest", @@ -494,7 +480,7 @@ export default class Route53 { {name: "Comment", content: params["Comment"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DisassociateVPCFromHostedZone", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["HostedZoneId"]}/disassociatevpc`, }); @@ -505,11 +491,10 @@ export default class Route53 { } async enableHostedZoneDNSSEC( - {abortSignal, ...params}: RequestConfig & s.EnableHostedZoneDNSSECRequest, + params: s.EnableHostedZoneDNSSECRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "EnableHostedZoneDNSSEC", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["HostedZoneId"]}/enable-dnssec`, }); @@ -520,11 +505,10 @@ export default class Route53 { } async getAccountLimit( - {abortSignal, ...params}: RequestConfig & s.GetAccountLimitRequest, + params: s.GetAccountLimitRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetAccountLimit", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/accountlimit/${params["Type"]}`, @@ -537,11 +521,10 @@ export default class Route53 { } async getChange( - {abortSignal, ...params}: RequestConfig & s.GetChangeRequest, + params: s.GetChangeRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetChange", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/change/${params["Id"]}`, @@ -552,12 +535,10 @@ export default class Route53 { }; } - async getCheckerIpRanges( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getCheckerIpRanges(): Promise { const body = ''; // TODO: anything more appropriate when no input? const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetCheckerIpRanges", method: "GET", requestUri: "/2013-04-01/checkeripranges", @@ -569,11 +550,10 @@ export default class Route53 { } async getDNSSEC( - {abortSignal, ...params}: RequestConfig & s.GetDNSSECRequest, + params: s.GetDNSSECRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetDNSSEC", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["HostedZoneId"]}/dnssec`, @@ -586,14 +566,14 @@ export default class Route53 { } async getGeoLocation( - {abortSignal, ...params}: RequestConfig & s.GetGeoLocationRequest = {}, + params: s.GetGeoLocationRequest = {}, ): Promise { const query = new URLSearchParams; if (params["ContinentCode"] != null) query.set("continentcode", params["ContinentCode"]?.toString() ?? ""); if (params["CountryCode"] != null) query.set("countrycode", params["CountryCode"]?.toString() ?? ""); if (params["SubdivisionCode"] != null) query.set("subdivisioncode", params["SubdivisionCode"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetGeoLocation", method: "GET", requestUri: "/2013-04-01/geolocation", @@ -605,11 +585,10 @@ export default class Route53 { } async getHealthCheck( - {abortSignal, ...params}: RequestConfig & s.GetHealthCheckRequest, + params: s.GetHealthCheckRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetHealthCheck", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/healthcheck/${params["HealthCheckId"]}`, @@ -620,12 +599,10 @@ export default class Route53 { }; } - async getHealthCheckCount( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getHealthCheckCount(): Promise { const body = ''; // TODO: anything more appropriate when no input? const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetHealthCheckCount", method: "GET", requestUri: "/2013-04-01/healthcheckcount", @@ -637,11 +614,10 @@ export default class Route53 { } async getHealthCheckLastFailureReason( - {abortSignal, ...params}: RequestConfig & s.GetHealthCheckLastFailureReasonRequest, + params: s.GetHealthCheckLastFailureReasonRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetHealthCheckLastFailureReason", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/healthcheck/${params["HealthCheckId"]}/lastfailurereason`, @@ -653,11 +629,10 @@ export default class Route53 { } async getHealthCheckStatus( - {abortSignal, ...params}: RequestConfig & s.GetHealthCheckStatusRequest, + params: s.GetHealthCheckStatusRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetHealthCheckStatus", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/healthcheck/${params["HealthCheckId"]}/status`, @@ -669,11 +644,10 @@ export default class Route53 { } async getHostedZone( - {abortSignal, ...params}: RequestConfig & s.GetHostedZoneRequest, + params: s.GetHostedZoneRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetHostedZone", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["Id"]}`, @@ -686,12 +660,10 @@ export default class Route53 { }; } - async getHostedZoneCount( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getHostedZoneCount(): Promise { const body = ''; // TODO: anything more appropriate when no input? const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetHostedZoneCount", method: "GET", requestUri: "/2013-04-01/hostedzonecount", @@ -703,11 +675,10 @@ export default class Route53 { } async getHostedZoneLimit( - {abortSignal, ...params}: RequestConfig & s.GetHostedZoneLimitRequest, + params: s.GetHostedZoneLimitRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetHostedZoneLimit", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/hostedzonelimit/${params["HostedZoneId"]}/${params["Type"]}`, @@ -720,11 +691,10 @@ export default class Route53 { } async getQueryLoggingConfig( - {abortSignal, ...params}: RequestConfig & s.GetQueryLoggingConfigRequest, + params: s.GetQueryLoggingConfigRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetQueryLoggingConfig", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/queryloggingconfig/${params["Id"]}`, @@ -736,11 +706,10 @@ export default class Route53 { } async getReusableDelegationSet( - {abortSignal, ...params}: RequestConfig & s.GetReusableDelegationSetRequest, + params: s.GetReusableDelegationSetRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetReusableDelegationSet", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/delegationset/${params["Id"]}`, @@ -752,11 +721,10 @@ export default class Route53 { } async getReusableDelegationSetLimit( - {abortSignal, ...params}: RequestConfig & s.GetReusableDelegationSetLimitRequest, + params: s.GetReusableDelegationSetLimitRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetReusableDelegationSetLimit", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/reusabledelegationsetlimit/${params["DelegationSetId"]}/${params["Type"]}`, @@ -769,11 +737,10 @@ export default class Route53 { } async getTrafficPolicy( - {abortSignal, ...params}: RequestConfig & s.GetTrafficPolicyRequest, + params: s.GetTrafficPolicyRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetTrafficPolicy", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/trafficpolicy/${params["Id"]}/${params["Version"].toString()}`, @@ -785,11 +752,10 @@ export default class Route53 { } async getTrafficPolicyInstance( - {abortSignal, ...params}: RequestConfig & s.GetTrafficPolicyInstanceRequest, + params: s.GetTrafficPolicyInstanceRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetTrafficPolicyInstance", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/trafficpolicyinstance/${params["Id"]}`, @@ -800,12 +766,10 @@ export default class Route53 { }; } - async getTrafficPolicyInstanceCount( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getTrafficPolicyInstanceCount(): Promise { const body = ''; // TODO: anything more appropriate when no input? const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetTrafficPolicyInstanceCount", method: "GET", requestUri: "/2013-04-01/trafficpolicyinstancecount", @@ -817,7 +781,7 @@ export default class Route53 { } async listGeoLocations( - {abortSignal, ...params}: RequestConfig & s.ListGeoLocationsRequest = {}, + params: s.ListGeoLocationsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["StartContinentCode"] != null) query.set("startcontinentcode", params["StartContinentCode"]?.toString() ?? ""); @@ -825,7 +789,7 @@ export default class Route53 { if (params["StartSubdivisionCode"] != null) query.set("startsubdivisioncode", params["StartSubdivisionCode"]?.toString() ?? ""); if (params["MaxItems"] != null) query.set("maxitems", params["MaxItems"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListGeoLocations", method: "GET", requestUri: "/2013-04-01/geolocations", @@ -842,13 +806,13 @@ export default class Route53 { } async listHealthChecks( - {abortSignal, ...params}: RequestConfig & s.ListHealthChecksRequest = {}, + params: s.ListHealthChecksRequest = {}, ): 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, + query, action: "ListHealthChecks", method: "GET", requestUri: "/2013-04-01/healthcheck", @@ -865,14 +829,14 @@ export default class Route53 { } async listHostedZones( - {abortSignal, ...params}: RequestConfig & s.ListHostedZonesRequest = {}, + params: s.ListHostedZonesRequest = {}, ): 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() ?? ""); if (params["DelegationSetId"] != null) query.set("delegationsetid", params["DelegationSetId"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListHostedZones", method: "GET", requestUri: "/2013-04-01/hostedzone", @@ -889,14 +853,14 @@ export default class Route53 { } async listHostedZonesByName( - {abortSignal, ...params}: RequestConfig & s.ListHostedZonesByNameRequest = {}, + params: s.ListHostedZonesByNameRequest = {}, ): Promise { const query = new URLSearchParams; if (params["DNSName"] != null) query.set("dnsname", params["DNSName"]?.toString() ?? ""); if (params["HostedZoneId"] != null) query.set("hostedzoneid", params["HostedZoneId"]?.toString() ?? ""); if (params["MaxItems"] != null) query.set("maxitems", params["MaxItems"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListHostedZonesByName", method: "GET", requestUri: "/2013-04-01/hostedzonesbyname", @@ -913,7 +877,7 @@ export default class Route53 { } async listHostedZonesByVPC( - {abortSignal, ...params}: RequestConfig & s.ListHostedZonesByVPCRequest, + params: s.ListHostedZonesByVPCRequest, ): Promise { const query = new URLSearchParams; query.set("vpcid", params["VPCId"]?.toString() ?? ""); @@ -921,7 +885,7 @@ export default class Route53 { if (params["MaxItems"] != null) query.set("maxitems", params["MaxItems"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("nexttoken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListHostedZonesByVPC", method: "GET", requestUri: "/2013-04-01/hostedzonesbyvpc", @@ -937,14 +901,14 @@ export default class Route53 { } async listQueryLoggingConfigs( - {abortSignal, ...params}: RequestConfig & s.ListQueryLoggingConfigsRequest = {}, + params: s.ListQueryLoggingConfigsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["HostedZoneId"] != null) query.set("hostedzoneid", params["HostedZoneId"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("nexttoken", params["NextToken"]?.toString() ?? ""); if (params["MaxResults"] != null) query.set("maxresults", params["MaxResults"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListQueryLoggingConfigs", method: "GET", requestUri: "/2013-04-01/queryloggingconfig", @@ -959,7 +923,7 @@ export default class Route53 { } async listResourceRecordSets( - {abortSignal, ...params}: RequestConfig & s.ListResourceRecordSetsRequest, + params: s.ListResourceRecordSetsRequest, ): Promise { const query = new URLSearchParams; if (params["StartRecordName"] != null) query.set("name", params["StartRecordName"]?.toString() ?? ""); @@ -967,7 +931,7 @@ export default class Route53 { if (params["StartRecordIdentifier"] != null) query.set("identifier", params["StartRecordIdentifier"]?.toString() ?? ""); if (params["MaxItems"] != null) query.set("maxitems", params["MaxItems"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListResourceRecordSets", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["HostedZoneId"]}/rrset`, @@ -985,13 +949,13 @@ export default class Route53 { } async listReusableDelegationSets( - {abortSignal, ...params}: RequestConfig & s.ListReusableDelegationSetsRequest = {}, + params: s.ListReusableDelegationSetsRequest = {}, ): 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, + query, action: "ListReusableDelegationSets", method: "GET", requestUri: "/2013-04-01/delegationset", @@ -1008,11 +972,10 @@ export default class Route53 { } async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceRequest, + params: s.ListTagsForResourceRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "ListTagsForResource", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/tags/${params["ResourceType"]}/${params["ResourceId"]}`, @@ -1024,7 +987,7 @@ export default class Route53 { } async listTagsForResources( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourcesRequest, + params: s.ListTagsForResourcesRequest, ): Promise { const body = xmlP.stringify({ name: "ListTagsForResourcesRequest", @@ -1033,7 +996,7 @@ export default class Route53 { {name: "ResourceIds", children: params["ResourceIds"]?.map(x => ({name: "ResourceId", content: x}))}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListTagsForResources", requestUri: cmnP.encodePath`/2013-04-01/tags/${params["ResourceType"]}`, }); @@ -1044,13 +1007,13 @@ export default class Route53 { } async listTrafficPolicies( - {abortSignal, ...params}: RequestConfig & s.ListTrafficPoliciesRequest = {}, + params: s.ListTrafficPoliciesRequest = {}, ): Promise { const query = new URLSearchParams; if (params["TrafficPolicyIdMarker"] != null) query.set("trafficpolicyid", params["TrafficPolicyIdMarker"]?.toString() ?? ""); if (params["MaxItems"] != null) query.set("maxitems", params["MaxItems"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListTrafficPolicies", method: "GET", requestUri: "/2013-04-01/trafficpolicies", @@ -1066,7 +1029,7 @@ export default class Route53 { } async listTrafficPolicyInstances( - {abortSignal, ...params}: RequestConfig & s.ListTrafficPolicyInstancesRequest = {}, + params: s.ListTrafficPolicyInstancesRequest = {}, ): Promise { const query = new URLSearchParams; if (params["HostedZoneIdMarker"] != null) query.set("hostedzoneid", params["HostedZoneIdMarker"]?.toString() ?? ""); @@ -1074,7 +1037,7 @@ export default class Route53 { if (params["TrafficPolicyInstanceTypeMarker"] != null) query.set("trafficpolicyinstancetype", params["TrafficPolicyInstanceTypeMarker"]?.toString() ?? ""); if (params["MaxItems"] != null) query.set("maxitems", params["MaxItems"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListTrafficPolicyInstances", method: "GET", requestUri: "/2013-04-01/trafficpolicyinstances", @@ -1092,7 +1055,7 @@ export default class Route53 { } async listTrafficPolicyInstancesByHostedZone( - {abortSignal, ...params}: RequestConfig & s.ListTrafficPolicyInstancesByHostedZoneRequest, + params: s.ListTrafficPolicyInstancesByHostedZoneRequest, ): Promise { const query = new URLSearchParams; query.set("id", params["HostedZoneId"]?.toString() ?? ""); @@ -1100,7 +1063,7 @@ export default class Route53 { if (params["TrafficPolicyInstanceTypeMarker"] != null) query.set("trafficpolicyinstancetype", params["TrafficPolicyInstanceTypeMarker"]?.toString() ?? ""); if (params["MaxItems"] != null) query.set("maxitems", params["MaxItems"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListTrafficPolicyInstancesByHostedZone", method: "GET", requestUri: "/2013-04-01/trafficpolicyinstances/hostedzone", @@ -1118,7 +1081,7 @@ export default class Route53 { } async listTrafficPolicyInstancesByPolicy( - {abortSignal, ...params}: RequestConfig & s.ListTrafficPolicyInstancesByPolicyRequest, + params: s.ListTrafficPolicyInstancesByPolicyRequest, ): Promise { const query = new URLSearchParams; query.set("id", params["TrafficPolicyId"]?.toString() ?? ""); @@ -1128,7 +1091,7 @@ export default class Route53 { if (params["TrafficPolicyInstanceTypeMarker"] != null) query.set("trafficpolicyinstancetype", params["TrafficPolicyInstanceTypeMarker"]?.toString() ?? ""); if (params["MaxItems"] != null) query.set("maxitems", params["MaxItems"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListTrafficPolicyInstancesByPolicy", method: "GET", requestUri: "/2013-04-01/trafficpolicyinstances/trafficpolicy", @@ -1146,13 +1109,13 @@ export default class Route53 { } async listTrafficPolicyVersions( - {abortSignal, ...params}: RequestConfig & s.ListTrafficPolicyVersionsRequest, + params: s.ListTrafficPolicyVersionsRequest, ): Promise { const query = new URLSearchParams; if (params["TrafficPolicyVersionMarker"] != null) query.set("trafficpolicyversion", params["TrafficPolicyVersionMarker"]?.toString() ?? ""); if (params["MaxItems"] != null) query.set("maxitems", params["MaxItems"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListTrafficPolicyVersions", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/trafficpolicies/${params["Id"]}/versions`, @@ -1168,13 +1131,13 @@ export default class Route53 { } async listVPCAssociationAuthorizations( - {abortSignal, ...params}: RequestConfig & s.ListVPCAssociationAuthorizationsRequest, + params: s.ListVPCAssociationAuthorizationsRequest, ): Promise { const query = new URLSearchParams; if (params["NextToken"] != null) query.set("nexttoken", params["NextToken"]?.toString() ?? ""); if (params["MaxResults"] != null) query.set("maxresults", params["MaxResults"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListVPCAssociationAuthorizations", method: "GET", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["HostedZoneId"]}/authorizevpcassociation`, @@ -1190,7 +1153,7 @@ export default class Route53 { } async testDNSAnswer( - {abortSignal, ...params}: RequestConfig & s.TestDNSAnswerRequest, + params: s.TestDNSAnswerRequest, ): Promise { const query = new URLSearchParams; query.set("hostedzoneid", params["HostedZoneId"]?.toString() ?? ""); @@ -1200,7 +1163,7 @@ export default class Route53 { if (params["EDNS0ClientSubnetIP"] != null) query.set("edns0clientsubnetip", params["EDNS0ClientSubnetIP"]?.toString() ?? ""); if (params["EDNS0ClientSubnetMask"] != null) query.set("edns0clientsubnetmask", params["EDNS0ClientSubnetMask"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "TestDNSAnswer", method: "GET", requestUri: "/2013-04-01/testdnsanswer", @@ -1216,7 +1179,7 @@ export default class Route53 { } async updateHealthCheck( - {abortSignal, ...params}: RequestConfig & s.UpdateHealthCheckRequest, + params: s.UpdateHealthCheckRequest, ): Promise { const body = xmlP.stringify({ name: "UpdateHealthCheckRequest", @@ -1240,7 +1203,7 @@ export default class Route53 { {name: "ResetElements", children: params["ResetElements"]?.map(x => ({name: "ResettableElementName", content: x}))}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateHealthCheck", requestUri: cmnP.encodePath`/2013-04-01/healthcheck/${params["HealthCheckId"]}`, }); @@ -1251,7 +1214,7 @@ export default class Route53 { } async updateHostedZoneComment( - {abortSignal, ...params}: RequestConfig & s.UpdateHostedZoneCommentRequest, + params: s.UpdateHostedZoneCommentRequest, ): Promise { const body = xmlP.stringify({ name: "UpdateHostedZoneCommentRequest", @@ -1260,7 +1223,7 @@ export default class Route53 { {name: "Comment", content: params["Comment"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateHostedZoneComment", requestUri: cmnP.encodePath`/2013-04-01/hostedzone/${params["Id"]}`, }); @@ -1271,7 +1234,7 @@ export default class Route53 { } async updateTrafficPolicyComment( - {abortSignal, ...params}: RequestConfig & s.UpdateTrafficPolicyCommentRequest, + params: s.UpdateTrafficPolicyCommentRequest, ): Promise { const body = xmlP.stringify({ name: "UpdateTrafficPolicyCommentRequest", @@ -1280,7 +1243,7 @@ export default class Route53 { {name: "Comment", content: params["Comment"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateTrafficPolicyComment", requestUri: cmnP.encodePath`/2013-04-01/trafficpolicy/${params["Id"]}/${params["Version"].toString()}`, }); @@ -1291,7 +1254,7 @@ export default class Route53 { } async updateTrafficPolicyInstance( - {abortSignal, ...params}: RequestConfig & s.UpdateTrafficPolicyInstanceRequest, + params: s.UpdateTrafficPolicyInstanceRequest, ): Promise { const body = xmlP.stringify({ name: "UpdateTrafficPolicyInstanceRequest", @@ -1302,7 +1265,7 @@ export default class Route53 { {name: "TrafficPolicyVersion", content: params["TrafficPolicyVersion"]?.toString()}, ]}); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateTrafficPolicyInstance", requestUri: cmnP.encodePath`/2013-04-01/trafficpolicyinstance/${params["Id"]}`, }); @@ -1316,7 +1279,7 @@ export default class Route53 { /** Checks state up to 60 times, 30 seconds apart (about 30 minutes max wait time). */ async waitForResourceRecordSetsChanged( - params: RequestConfig & s.GetChangeRequest, + params: s.GetChangeRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ResourceRecordSetsChanged'; for (let i = 0; i < 60; i++) { diff --git a/lib/services/s3/mod.ts b/lib/services/s3/mod.ts index 317cdec3..9f437fd6 100644 --- a/lib/services/s3/mod.ts +++ b/lib/services/s3/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon Simple Storage Service -interface RequestConfig { - abortSignal?: AbortSignal; -} - export * from "./structs.ts"; import * as Base64 from "https://deno.land/std@0.91.0/encoding/base64.ts"; import * as HashMd5 from "https://deno.land/std@0.91.0/hash/md5.ts"; @@ -25,7 +21,7 @@ function parseBlob(input: string | null | undefined) { return Base64.decode(input); } -export default class S3 { +export class S3 { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(S3.ApiMetadata); @@ -44,7 +40,7 @@ export default class S3 { }; async abortMultipartUpload( - {abortSignal, ...params}: RequestConfig & s.AbortMultipartUploadRequest, + params: s.AbortMultipartUploadRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -52,7 +48,7 @@ export default class S3 { if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "AbortMultipartUpload", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}`, @@ -64,7 +60,7 @@ export default class S3 { } async completeMultipartUpload( - {abortSignal, ...params}: RequestConfig & s.CompleteMultipartUploadRequest, + params: s.CompleteMultipartUploadRequest, ): Promise { const inner = params["MultipartUpload"]; const body = inner ? xmlP.stringify({ @@ -79,7 +75,7 @@ export default class S3 { if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "CompleteMultipartUpload", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}`, }); @@ -98,7 +94,7 @@ export default class S3 { } async copyObject( - {abortSignal, ...params}: RequestConfig & s.CopyObjectRequest, + params: s.CopyObjectRequest, ): Promise { const headers = new Headers; if (params["ACL"] != null) headers.append("x-amz-acl", params["ACL"]); @@ -142,7 +138,7 @@ export default class S3 { if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); if (params["ExpectedSourceBucketOwner"] != null) headers.append("x-amz-source-expected-bucket-owner", params["ExpectedSourceBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "CopyObject", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}`, @@ -169,7 +165,7 @@ export default class S3 { } async createBucket( - {abortSignal, ...params}: RequestConfig & s.CreateBucketRequest, + params: s.CreateBucketRequest, ): Promise { const inner = params["CreateBucketConfiguration"]; const body = inner ? xmlP.stringify({ @@ -187,7 +183,7 @@ export default class S3 { if (params["GrantWriteACP"] != null) headers.append("x-amz-grant-write-acp", params["GrantWriteACP"]); if (params["ObjectLockEnabledForBucket"] != null) headers.append("x-amz-bucket-object-lock-enabled", params["ObjectLockEnabledForBucket"]?.toString() ?? ''); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "CreateBucket", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}`, @@ -199,7 +195,7 @@ export default class S3 { } async createMultipartUpload( - {abortSignal, ...params}: RequestConfig & s.CreateMultipartUploadRequest, + params: s.CreateMultipartUploadRequest, ): Promise { const headers = new Headers; if (params["ACL"] != null) headers.append("x-amz-acl", params["ACL"]); @@ -232,7 +228,7 @@ export default class S3 { if (params["ObjectLockLegalHoldStatus"] != null) headers.append("x-amz-object-lock-legal-hold", params["ObjectLockLegalHoldStatus"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "CreateMultipartUpload", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?uploads`, }); @@ -254,12 +250,12 @@ export default class S3 { } async deleteBucket( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketRequest, + params: s.DeleteBucketRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "DeleteBucket", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}`, @@ -268,14 +264,14 @@ export default class S3 { } async deleteBucketAnalyticsConfiguration( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketAnalyticsConfigurationRequest, + params: s.DeleteBucketAnalyticsConfigurationRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; query.set("id", params["Id"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "DeleteBucketAnalyticsConfiguration", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?analytics`, @@ -284,12 +280,12 @@ export default class S3 { } async deleteBucketCors( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketCorsRequest, + params: s.DeleteBucketCorsRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "DeleteBucketCors", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?cors`, @@ -298,12 +294,12 @@ export default class S3 { } async deleteBucketEncryption( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketEncryptionRequest, + params: s.DeleteBucketEncryptionRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "DeleteBucketEncryption", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?encryption`, @@ -312,12 +308,12 @@ export default class S3 { } async deleteBucketIntelligentTieringConfiguration( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketIntelligentTieringConfigurationRequest, + params: s.DeleteBucketIntelligentTieringConfigurationRequest, ): Promise { const query = new URLSearchParams; query.set("id", params["Id"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "DeleteBucketIntelligentTieringConfiguration", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?intelligent-tiering`, @@ -326,14 +322,14 @@ export default class S3 { } async deleteBucketInventoryConfiguration( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketInventoryConfigurationRequest, + params: s.DeleteBucketInventoryConfigurationRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; query.set("id", params["Id"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "DeleteBucketInventoryConfiguration", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?inventory`, @@ -342,12 +338,12 @@ export default class S3 { } async deleteBucketLifecycle( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketLifecycleRequest, + params: s.DeleteBucketLifecycleRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "DeleteBucketLifecycle", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?lifecycle`, @@ -356,14 +352,14 @@ export default class S3 { } async deleteBucketMetricsConfiguration( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketMetricsConfigurationRequest, + params: s.DeleteBucketMetricsConfigurationRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; query.set("id", params["Id"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "DeleteBucketMetricsConfiguration", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?metrics`, @@ -372,12 +368,12 @@ export default class S3 { } async deleteBucketOwnershipControls( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketOwnershipControlsRequest, + params: s.DeleteBucketOwnershipControlsRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "DeleteBucketOwnershipControls", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?ownershipControls`, @@ -386,12 +382,12 @@ export default class S3 { } async deleteBucketPolicy( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketPolicyRequest, + params: s.DeleteBucketPolicyRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "DeleteBucketPolicy", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?policy`, @@ -400,12 +396,12 @@ export default class S3 { } async deleteBucketReplication( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketReplicationRequest, + params: s.DeleteBucketReplicationRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "DeleteBucketReplication", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?replication`, @@ -414,12 +410,12 @@ export default class S3 { } async deleteBucketTagging( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketTaggingRequest, + params: s.DeleteBucketTaggingRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "DeleteBucketTagging", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?tagging`, @@ -428,12 +424,12 @@ export default class S3 { } async deleteBucketWebsite( - {abortSignal, ...params}: RequestConfig & s.DeleteBucketWebsiteRequest, + params: s.DeleteBucketWebsiteRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "DeleteBucketWebsite", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?website`, @@ -442,7 +438,7 @@ export default class S3 { } async deleteObject( - {abortSignal, ...params}: RequestConfig & s.DeleteObjectRequest, + params: s.DeleteObjectRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -452,7 +448,7 @@ export default class S3 { if (params["BypassGovernanceRetention"] != null) headers.append("x-amz-bypass-governance-retention", params["BypassGovernanceRetention"]?.toString() ?? ''); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "DeleteObject", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}`, @@ -466,14 +462,14 @@ export default class S3 { } async deleteObjectTagging( - {abortSignal, ...params}: RequestConfig & s.DeleteObjectTaggingRequest, + params: s.DeleteObjectTaggingRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; if (params["VersionId"] != null) query.set("versionId", params["VersionId"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "DeleteObjectTagging", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?tagging`, @@ -485,7 +481,7 @@ export default class S3 { } async deleteObjects( - {abortSignal, ...params}: RequestConfig & s.DeleteObjectsRequest, + params: s.DeleteObjectsRequest, ): Promise { const inner = params["Delete"]; const body = inner ? xmlP.stringify({ @@ -501,7 +497,7 @@ export default class S3 { if (params["BypassGovernanceRetention"] != null) headers.append("x-amz-bypass-governance-retention", params["BypassGovernanceRetention"]?.toString() ?? ''); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "DeleteObjects", requestUri: cmnP.encodePath`/${params["Bucket"]}?delete`, }); @@ -516,12 +512,12 @@ export default class S3 { } async deletePublicAccessBlock( - {abortSignal, ...params}: RequestConfig & s.DeletePublicAccessBlockRequest, + params: s.DeletePublicAccessBlockRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "DeletePublicAccessBlock", method: "DELETE", requestUri: cmnP.encodePath`/${params["Bucket"]}?publicAccessBlock`, @@ -530,12 +526,12 @@ export default class S3 { } async getBucketAccelerateConfiguration( - {abortSignal, ...params}: RequestConfig & s.GetBucketAccelerateConfigurationRequest, + params: s.GetBucketAccelerateConfigurationRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketAccelerateConfiguration", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?accelerate`, @@ -547,12 +543,12 @@ export default class S3 { } async getBucketAcl( - {abortSignal, ...params}: RequestConfig & s.GetBucketAclRequest, + params: s.GetBucketAclRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketAcl", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?acl`, @@ -565,14 +561,14 @@ export default class S3 { } async getBucketAnalyticsConfiguration( - {abortSignal, ...params}: RequestConfig & s.GetBucketAnalyticsConfigurationRequest, + params: s.GetBucketAnalyticsConfigurationRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; query.set("id", params["Id"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "GetBucketAnalyticsConfiguration", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?analytics`, @@ -584,12 +580,12 @@ export default class S3 { } async getBucketCors( - {abortSignal, ...params}: RequestConfig & s.GetBucketCorsRequest, + params: s.GetBucketCorsRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketCors", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?cors`, @@ -601,12 +597,12 @@ export default class S3 { } async getBucketEncryption( - {abortSignal, ...params}: RequestConfig & s.GetBucketEncryptionRequest, + params: s.GetBucketEncryptionRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketEncryption", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?encryption`, @@ -618,12 +614,12 @@ export default class S3 { } async getBucketIntelligentTieringConfiguration( - {abortSignal, ...params}: RequestConfig & s.GetBucketIntelligentTieringConfigurationRequest, + params: s.GetBucketIntelligentTieringConfigurationRequest, ): Promise { const query = new URLSearchParams; query.set("id", params["Id"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetBucketIntelligentTieringConfiguration", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?intelligent-tiering`, @@ -635,14 +631,14 @@ export default class S3 { } async getBucketInventoryConfiguration( - {abortSignal, ...params}: RequestConfig & s.GetBucketInventoryConfigurationRequest, + params: s.GetBucketInventoryConfigurationRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; query.set("id", params["Id"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "GetBucketInventoryConfiguration", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?inventory`, @@ -654,12 +650,12 @@ export default class S3 { } async getBucketLifecycle( - {abortSignal, ...params}: RequestConfig & s.GetBucketLifecycleRequest, + params: s.GetBucketLifecycleRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketLifecycle", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?lifecycle`, @@ -671,12 +667,12 @@ export default class S3 { } async getBucketLifecycleConfiguration( - {abortSignal, ...params}: RequestConfig & s.GetBucketLifecycleConfigurationRequest, + params: s.GetBucketLifecycleConfigurationRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketLifecycleConfiguration", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?lifecycle`, @@ -688,12 +684,12 @@ export default class S3 { } async getBucketLocation( - {abortSignal, ...params}: RequestConfig & s.GetBucketLocationRequest, + params: s.GetBucketLocationRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketLocation", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?location`, @@ -705,12 +701,12 @@ export default class S3 { } async getBucketLogging( - {abortSignal, ...params}: RequestConfig & s.GetBucketLoggingRequest, + params: s.GetBucketLoggingRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketLogging", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?logging`, @@ -722,14 +718,14 @@ export default class S3 { } async getBucketMetricsConfiguration( - {abortSignal, ...params}: RequestConfig & s.GetBucketMetricsConfigurationRequest, + params: s.GetBucketMetricsConfigurationRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; query.set("id", params["Id"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "GetBucketMetricsConfiguration", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?metrics`, @@ -741,12 +737,12 @@ export default class S3 { } async getBucketNotification( - {abortSignal, ...params}: RequestConfig & s.GetBucketNotificationConfigurationRequest, + params: s.GetBucketNotificationConfigurationRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketNotification", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?notification`, @@ -760,12 +756,12 @@ export default class S3 { } async getBucketNotificationConfiguration( - {abortSignal, ...params}: RequestConfig & s.GetBucketNotificationConfigurationRequest, + params: s.GetBucketNotificationConfigurationRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketNotificationConfiguration", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?notification`, @@ -779,12 +775,12 @@ export default class S3 { } async getBucketOwnershipControls( - {abortSignal, ...params}: RequestConfig & s.GetBucketOwnershipControlsRequest, + params: s.GetBucketOwnershipControlsRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketOwnershipControls", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?ownershipControls`, @@ -796,12 +792,12 @@ export default class S3 { } async getBucketPolicy( - {abortSignal, ...params}: RequestConfig & s.GetBucketPolicyRequest, + params: s.GetBucketPolicyRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketPolicy", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?policy`, @@ -812,12 +808,12 @@ export default class S3 { } async getBucketPolicyStatus( - {abortSignal, ...params}: RequestConfig & s.GetBucketPolicyStatusRequest, + params: s.GetBucketPolicyStatusRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketPolicyStatus", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?policyStatus`, @@ -831,12 +827,12 @@ export default class S3 { } async getBucketReplication( - {abortSignal, ...params}: RequestConfig & s.GetBucketReplicationRequest, + params: s.GetBucketReplicationRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketReplication", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?replication`, @@ -848,12 +844,12 @@ export default class S3 { } async getBucketRequestPayment( - {abortSignal, ...params}: RequestConfig & s.GetBucketRequestPaymentRequest, + params: s.GetBucketRequestPaymentRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketRequestPayment", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?requestPayment`, @@ -865,12 +861,12 @@ export default class S3 { } async getBucketTagging( - {abortSignal, ...params}: RequestConfig & s.GetBucketTaggingRequest, + params: s.GetBucketTaggingRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketTagging", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?tagging`, @@ -882,12 +878,12 @@ export default class S3 { } async getBucketVersioning( - {abortSignal, ...params}: RequestConfig & s.GetBucketVersioningRequest, + params: s.GetBucketVersioningRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketVersioning", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?versioning`, @@ -900,12 +896,12 @@ export default class S3 { } async getBucketWebsite( - {abortSignal, ...params}: RequestConfig & s.GetBucketWebsiteRequest, + params: s.GetBucketWebsiteRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetBucketWebsite", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?website`, @@ -920,7 +916,7 @@ export default class S3 { } async getObject( - {abortSignal, ...params}: RequestConfig & s.GetObjectRequest, + params: s.GetObjectRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -943,7 +939,7 @@ export default class S3 { if (params["PartNumber"] != null) query.set("partNumber", params["PartNumber"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "GetObject", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}`, @@ -985,7 +981,7 @@ export default class S3 { } async getObjectAcl( - {abortSignal, ...params}: RequestConfig & s.GetObjectAclRequest, + params: s.GetObjectAclRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -993,7 +989,7 @@ export default class S3 { if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "GetObjectAcl", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?acl`, @@ -1009,7 +1005,7 @@ export default class S3 { } async getObjectLegalHold( - {abortSignal, ...params}: RequestConfig & s.GetObjectLegalHoldRequest, + params: s.GetObjectLegalHoldRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -1017,7 +1013,7 @@ export default class S3 { if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "GetObjectLegalHold", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?legal-hold`, @@ -1029,12 +1025,12 @@ export default class S3 { } async getObjectLockConfiguration( - {abortSignal, ...params}: RequestConfig & s.GetObjectLockConfigurationRequest, + params: s.GetObjectLockConfigurationRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetObjectLockConfiguration", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?object-lock`, @@ -1046,7 +1042,7 @@ export default class S3 { } async getObjectRetention( - {abortSignal, ...params}: RequestConfig & s.GetObjectRetentionRequest, + params: s.GetObjectRetentionRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -1054,7 +1050,7 @@ export default class S3 { if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "GetObjectRetention", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?retention`, @@ -1066,7 +1062,7 @@ export default class S3 { } async getObjectTagging( - {abortSignal, ...params}: RequestConfig & s.GetObjectTaggingRequest, + params: s.GetObjectTaggingRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -1074,7 +1070,7 @@ export default class S3 { if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "GetObjectTagging", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?tagging`, @@ -1089,13 +1085,13 @@ export default class S3 { } async getObjectTorrent( - {abortSignal, ...params}: RequestConfig & s.GetObjectTorrentRequest, + params: s.GetObjectTorrentRequest, ): Promise { const headers = new Headers; if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetObjectTorrent", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?torrent`, @@ -1107,12 +1103,12 @@ export default class S3 { } async getPublicAccessBlock( - {abortSignal, ...params}: RequestConfig & s.GetPublicAccessBlockRequest, + params: s.GetPublicAccessBlockRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "GetPublicAccessBlock", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?publicAccessBlock`, @@ -1124,12 +1120,12 @@ export default class S3 { } async headBucket( - {abortSignal, ...params}: RequestConfig & s.HeadBucketRequest, + params: s.HeadBucketRequest, ): Promise { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, + headers, action: "HeadBucket", method: "HEAD", requestUri: cmnP.encodePath`/${params["Bucket"]}`, @@ -1138,7 +1134,7 @@ export default class S3 { } async headObject( - {abortSignal, ...params}: RequestConfig & s.HeadObjectRequest, + params: s.HeadObjectRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -1155,7 +1151,7 @@ export default class S3 { if (params["PartNumber"] != null) query.set("partNumber", params["PartNumber"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "HeadObject", method: "HEAD", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}`, @@ -1196,14 +1192,14 @@ export default class S3 { } async listBucketAnalyticsConfigurations( - {abortSignal, ...params}: RequestConfig & s.ListBucketAnalyticsConfigurationsRequest, + params: s.ListBucketAnalyticsConfigurationsRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; if (params["ContinuationToken"] != null) query.set("continuation-token", params["ContinuationToken"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "ListBucketAnalyticsConfigurations", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?analytics`, @@ -1219,12 +1215,12 @@ export default class S3 { } async listBucketIntelligentTieringConfigurations( - {abortSignal, ...params}: RequestConfig & s.ListBucketIntelligentTieringConfigurationsRequest, + params: s.ListBucketIntelligentTieringConfigurationsRequest, ): Promise { const query = new URLSearchParams; if (params["ContinuationToken"] != null) query.set("continuation-token", params["ContinuationToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListBucketIntelligentTieringConfigurations", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?intelligent-tiering`, @@ -1240,14 +1236,14 @@ export default class S3 { } async listBucketInventoryConfigurations( - {abortSignal, ...params}: RequestConfig & s.ListBucketInventoryConfigurationsRequest, + params: s.ListBucketInventoryConfigurationsRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; if (params["ContinuationToken"] != null) query.set("continuation-token", params["ContinuationToken"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "ListBucketInventoryConfigurations", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?inventory`, @@ -1263,14 +1259,14 @@ export default class S3 { } async listBucketMetricsConfigurations( - {abortSignal, ...params}: RequestConfig & s.ListBucketMetricsConfigurationsRequest, + params: s.ListBucketMetricsConfigurationsRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; if (params["ContinuationToken"] != null) query.set("continuation-token", params["ContinuationToken"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "ListBucketMetricsConfigurations", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?metrics`, @@ -1285,11 +1281,8 @@ export default class S3 { }; } - async listBuckets( - {abortSignal}: RequestConfig = {}, - ): Promise { + async listBuckets(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "ListBuckets", method: "GET", }); @@ -1301,7 +1294,7 @@ export default class S3 { } async listMultipartUploads( - {abortSignal, ...params}: RequestConfig & s.ListMultipartUploadsRequest, + params: s.ListMultipartUploadsRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -1313,7 +1306,7 @@ export default class S3 { if (params["UploadIdMarker"] != null) query.set("upload-id-marker", params["UploadIdMarker"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "ListMultipartUploads", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?uploads`, @@ -1332,7 +1325,7 @@ export default class S3 { } async listObjectVersions( - {abortSignal, ...params}: RequestConfig & s.ListObjectVersionsRequest, + params: s.ListObjectVersionsRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -1344,7 +1337,7 @@ export default class S3 { if (params["VersionIdMarker"] != null) query.set("version-id-marker", params["VersionIdMarker"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "ListObjectVersions", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?versions`, @@ -1364,7 +1357,7 @@ export default class S3 { } async listObjects( - {abortSignal, ...params}: RequestConfig & s.ListObjectsRequest, + params: s.ListObjectsRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -1376,7 +1369,7 @@ export default class S3 { if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "ListObjects", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}`, @@ -1395,7 +1388,7 @@ export default class S3 { } async listObjectsV2( - {abortSignal, ...params}: RequestConfig & s.ListObjectsV2Request, + params: s.ListObjectsV2Request, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -1409,7 +1402,7 @@ export default class S3 { if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "ListObjectsV2", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}?list-type=2`, @@ -1429,7 +1422,7 @@ export default class S3 { } async listParts( - {abortSignal, ...params}: RequestConfig & s.ListPartsRequest, + params: s.ListPartsRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -1439,7 +1432,7 @@ export default class S3 { if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "ListParts", method: "GET", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}`, @@ -1466,7 +1459,7 @@ export default class S3 { } async putBucketAccelerateConfiguration( - {abortSignal, ...params}: RequestConfig & s.PutBucketAccelerateConfigurationRequest, + params: s.PutBucketAccelerateConfigurationRequest, ): Promise { const inner = params["AccelerateConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1478,7 +1471,7 @@ export default class S3 { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketAccelerateConfiguration", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?accelerate`, @@ -1487,7 +1480,7 @@ export default class S3 { } async putBucketAcl( - {abortSignal, ...params}: RequestConfig & s.PutBucketAclRequest, + params: s.PutBucketAclRequest, ): Promise { const inner = params["AccessControlPolicy"]; const body = inner ? xmlP.stringify({ @@ -1507,7 +1500,7 @@ export default class S3 { if (params["GrantWriteACP"] != null) headers.append("x-amz-grant-write-acp", params["GrantWriteACP"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketAcl", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?acl`, @@ -1516,7 +1509,7 @@ export default class S3 { } async putBucketAnalyticsConfiguration( - {abortSignal, ...params}: RequestConfig & s.PutBucketAnalyticsConfigurationRequest, + params: s.PutBucketAnalyticsConfigurationRequest, ): Promise { const inner = params["AnalyticsConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1532,7 +1525,7 @@ export default class S3 { query.set("id", params["Id"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "PutBucketAnalyticsConfiguration", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?analytics`, @@ -1541,7 +1534,7 @@ export default class S3 { } async putBucketCors( - {abortSignal, ...params}: RequestConfig & s.PutBucketCorsRequest, + params: s.PutBucketCorsRequest, ): Promise { const inner = params["CORSConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1554,7 +1547,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketCors", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?cors`, @@ -1563,7 +1556,7 @@ export default class S3 { } async putBucketEncryption( - {abortSignal, ...params}: RequestConfig & s.PutBucketEncryptionRequest, + params: s.PutBucketEncryptionRequest, ): Promise { const inner = params["ServerSideEncryptionConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1576,7 +1569,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketEncryption", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?encryption`, @@ -1585,7 +1578,7 @@ export default class S3 { } async putBucketIntelligentTieringConfiguration( - {abortSignal, ...params}: RequestConfig & s.PutBucketIntelligentTieringConfigurationRequest, + params: s.PutBucketIntelligentTieringConfigurationRequest, ): Promise { const inner = params["IntelligentTieringConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1600,7 +1593,7 @@ export default class S3 { const query = new URLSearchParams; query.set("id", params["Id"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, body, + query, body, action: "PutBucketIntelligentTieringConfiguration", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?intelligent-tiering`, @@ -1609,7 +1602,7 @@ export default class S3 { } async putBucketInventoryConfiguration( - {abortSignal, ...params}: RequestConfig & s.PutBucketInventoryConfigurationRequest, + params: s.PutBucketInventoryConfigurationRequest, ): Promise { const inner = params["InventoryConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1629,7 +1622,7 @@ export default class S3 { query.set("id", params["Id"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "PutBucketInventoryConfiguration", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?inventory`, @@ -1638,7 +1631,7 @@ export default class S3 { } async putBucketLifecycle( - {abortSignal, ...params}: RequestConfig & s.PutBucketLifecycleRequest, + params: s.PutBucketLifecycleRequest, ): Promise { const inner = params["LifecycleConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1651,7 +1644,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketLifecycle", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?lifecycle`, @@ -1660,7 +1653,7 @@ export default class S3 { } async putBucketLifecycleConfiguration( - {abortSignal, ...params}: RequestConfig & s.PutBucketLifecycleConfigurationRequest, + params: s.PutBucketLifecycleConfigurationRequest, ): Promise { const inner = params["LifecycleConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1672,7 +1665,7 @@ export default class S3 { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketLifecycleConfiguration", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?lifecycle`, @@ -1681,7 +1674,7 @@ export default class S3 { } async putBucketLogging( - {abortSignal, ...params}: RequestConfig & s.PutBucketLoggingRequest, + params: s.PutBucketLoggingRequest, ): Promise { const inner = params["BucketLoggingStatus"]; const body = inner ? xmlP.stringify({ @@ -1694,7 +1687,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketLogging", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?logging`, @@ -1703,7 +1696,7 @@ export default class S3 { } async putBucketMetricsConfiguration( - {abortSignal, ...params}: RequestConfig & s.PutBucketMetricsConfigurationRequest, + params: s.PutBucketMetricsConfigurationRequest, ): Promise { const inner = params["MetricsConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1718,7 +1711,7 @@ export default class S3 { query.set("id", params["Id"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "PutBucketMetricsConfiguration", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?metrics`, @@ -1727,7 +1720,7 @@ export default class S3 { } async putBucketNotification( - {abortSignal, ...params}: RequestConfig & s.PutBucketNotificationRequest, + params: s.PutBucketNotificationRequest, ): Promise { const inner = params["NotificationConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1742,7 +1735,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketNotification", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?notification`, @@ -1751,7 +1744,7 @@ export default class S3 { } async putBucketNotificationConfiguration( - {abortSignal, ...params}: RequestConfig & s.PutBucketNotificationConfigurationRequest, + params: s.PutBucketNotificationConfigurationRequest, ): Promise { const inner = params["NotificationConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1765,7 +1758,7 @@ export default class S3 { const headers = new Headers; if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketNotificationConfiguration", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?notification`, @@ -1774,7 +1767,7 @@ export default class S3 { } async putBucketOwnershipControls( - {abortSignal, ...params}: RequestConfig & s.PutBucketOwnershipControlsRequest, + params: s.PutBucketOwnershipControlsRequest, ): Promise { const inner = params["OwnershipControls"]; const body = inner ? xmlP.stringify({ @@ -1787,7 +1780,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketOwnershipControls", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?ownershipControls`, @@ -1796,7 +1789,7 @@ export default class S3 { } async putBucketPolicy( - {abortSignal, ...params}: RequestConfig & s.PutBucketPolicyRequest, + params: s.PutBucketPolicyRequest, ): Promise { const body = typeof params["Policy"] === 'string' ? new TextEncoder().encode(params["Policy"]) : params["Policy"]; const headers = new Headers; @@ -1804,7 +1797,7 @@ export default class S3 { if (params["ConfirmRemoveSelfBucketAccess"] != null) headers.append("x-amz-confirm-remove-self-bucket-access", params["ConfirmRemoveSelfBucketAccess"]?.toString() ?? ''); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketPolicy", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?policy`, @@ -1813,7 +1806,7 @@ export default class S3 { } async putBucketReplication( - {abortSignal, ...params}: RequestConfig & s.PutBucketReplicationRequest, + params: s.PutBucketReplicationRequest, ): Promise { const inner = params["ReplicationConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1828,7 +1821,7 @@ export default class S3 { if (params["Token"] != null) headers.append("x-amz-bucket-object-lock-token", params["Token"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketReplication", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?replication`, @@ -1837,7 +1830,7 @@ export default class S3 { } async putBucketRequestPayment( - {abortSignal, ...params}: RequestConfig & s.PutBucketRequestPaymentRequest, + params: s.PutBucketRequestPaymentRequest, ): Promise { const inner = params["RequestPaymentConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1850,7 +1843,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketRequestPayment", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?requestPayment`, @@ -1859,7 +1852,7 @@ export default class S3 { } async putBucketTagging( - {abortSignal, ...params}: RequestConfig & s.PutBucketTaggingRequest, + params: s.PutBucketTaggingRequest, ): Promise { const inner = params["Tagging"]; const body = inner ? xmlP.stringify({ @@ -1872,7 +1865,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketTagging", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?tagging`, @@ -1881,7 +1874,7 @@ export default class S3 { } async putBucketVersioning( - {abortSignal, ...params}: RequestConfig & s.PutBucketVersioningRequest, + params: s.PutBucketVersioningRequest, ): Promise { const inner = params["VersioningConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1896,7 +1889,7 @@ export default class S3 { if (params["MFA"] != null) headers.append("x-amz-mfa", params["MFA"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketVersioning", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?versioning`, @@ -1905,7 +1898,7 @@ export default class S3 { } async putBucketWebsite( - {abortSignal, ...params}: RequestConfig & s.PutBucketWebsiteRequest, + params: s.PutBucketWebsiteRequest, ): Promise { const inner = params["WebsiteConfiguration"]; const body = inner ? xmlP.stringify({ @@ -1921,7 +1914,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutBucketWebsite", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?website`, @@ -1930,7 +1923,7 @@ export default class S3 { } async putObject( - {abortSignal, ...params}: RequestConfig & s.PutObjectRequest, + params: s.PutObjectRequest, ): Promise { const body = typeof params["Body"] === 'string' ? new TextEncoder().encode(params["Body"]) : params["Body"]; const headers = new Headers; @@ -1966,7 +1959,7 @@ export default class S3 { if (params["ObjectLockLegalHoldStatus"] != null) headers.append("x-amz-object-lock-legal-hold", params["ObjectLockLegalHoldStatus"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutObject", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}`, @@ -1987,7 +1980,7 @@ export default class S3 { } async putObjectAcl( - {abortSignal, ...params}: RequestConfig & s.PutObjectAclRequest, + params: s.PutObjectAclRequest, ): Promise { const inner = params["AccessControlPolicy"]; const body = inner ? xmlP.stringify({ @@ -2010,7 +2003,7 @@ export default class S3 { if (params["VersionId"] != null) query.set("versionId", params["VersionId"]?.toString() ?? ""); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "PutObjectAcl", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?acl`, @@ -2022,7 +2015,7 @@ export default class S3 { } async putObjectLegalHold( - {abortSignal, ...params}: RequestConfig & s.PutObjectLegalHoldRequest, + params: s.PutObjectLegalHoldRequest, ): Promise { const inner = params["LegalHold"]; const body = inner ? xmlP.stringify({ @@ -2038,7 +2031,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "PutObjectLegalHold", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?legal-hold`, @@ -2050,7 +2043,7 @@ export default class S3 { } async putObjectLockConfiguration( - {abortSignal, ...params}: RequestConfig & s.PutObjectLockConfigurationRequest, + params: s.PutObjectLockConfigurationRequest, ): Promise { const inner = params["ObjectLockConfiguration"]; const body = inner ? xmlP.stringify({ @@ -2066,7 +2059,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutObjectLockConfiguration", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?object-lock`, @@ -2078,7 +2071,7 @@ export default class S3 { } async putObjectRetention( - {abortSignal, ...params}: RequestConfig & s.PutObjectRetentionRequest, + params: s.PutObjectRetentionRequest, ): Promise { const inner = params["Retention"]; const body = inner ? xmlP.stringify({ @@ -2096,7 +2089,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "PutObjectRetention", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?retention`, @@ -2108,7 +2101,7 @@ export default class S3 { } async putObjectTagging( - {abortSignal, ...params}: RequestConfig & s.PutObjectTaggingRequest, + params: s.PutObjectTaggingRequest, ): Promise { const inner = params["Tagging"]; const body = inner ? xmlP.stringify({ @@ -2124,7 +2117,7 @@ export default class S3 { if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "PutObjectTagging", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?tagging`, @@ -2136,7 +2129,7 @@ export default class S3 { } async putPublicAccessBlock( - {abortSignal, ...params}: RequestConfig & s.PutPublicAccessBlockRequest, + params: s.PutPublicAccessBlockRequest, ): Promise { const inner = params["PublicAccessBlockConfiguration"]; const body = inner ? xmlP.stringify({ @@ -2152,7 +2145,7 @@ export default class S3 { headers.append("Content-MD5", params["ContentMD5"] ?? hashMD5(body ?? '')); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "PutPublicAccessBlock", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}?publicAccessBlock`, @@ -2161,7 +2154,7 @@ export default class S3 { } async restoreObject( - {abortSignal, ...params}: RequestConfig & s.RestoreObjectRequest, + params: s.RestoreObjectRequest, ): Promise { const inner = params["RestoreRequest"]; const body = inner ? xmlP.stringify({ @@ -2182,7 +2175,7 @@ export default class S3 { if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "RestoreObject", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?restore`, }); @@ -2194,7 +2187,7 @@ export default class S3 { } async selectObjectContent( - {abortSignal, ...params}: RequestConfig & s.SelectObjectContentRequest, + params: s.SelectObjectContentRequest, ): Promise { const headers = new Headers; const body = xmlP.stringify({ @@ -2213,7 +2206,7 @@ export default class S3 { if (params["SSECustomerKeyMD5"] != null) headers.append("x-amz-server-side-encryption-customer-key-MD5", params["SSECustomerKeyMD5"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "SelectObjectContent", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}?select&select-type=2`, }); @@ -2230,7 +2223,7 @@ export default class S3 { } async uploadPart( - {abortSignal, ...params}: RequestConfig & s.UploadPartRequest, + params: s.UploadPartRequest, ): Promise { const body = typeof params["Body"] === 'string' ? new TextEncoder().encode(params["Body"]) : params["Body"]; const headers = new Headers; @@ -2245,7 +2238,7 @@ export default class S3 { if (params["RequestPayer"] != null) headers.append("x-amz-request-payer", params["RequestPayer"]); if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, body, + headers, query, body, action: "UploadPart", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}`, @@ -2263,7 +2256,7 @@ export default class S3 { } async uploadPartCopy( - {abortSignal, ...params}: RequestConfig & s.UploadPartCopyRequest, + params: s.UploadPartCopyRequest, ): Promise { const headers = new Headers; const query = new URLSearchParams; @@ -2285,7 +2278,7 @@ export default class S3 { if (params["ExpectedBucketOwner"] != null) headers.append("x-amz-expected-bucket-owner", params["ExpectedBucketOwner"]); if (params["ExpectedSourceBucketOwner"] != null) headers.append("x-amz-source-expected-bucket-owner", params["ExpectedSourceBucketOwner"]); const resp = await this.#client.performRequest({ - abortSignal, headers, query, + headers, query, action: "UploadPartCopy", method: "PUT", requestUri: cmnP.encodePath`/${params["Bucket"]}/${params["Key"].split("/")}`, @@ -2309,7 +2302,7 @@ export default class S3 { } async writeGetObjectResponse( - {abortSignal, ...params}: RequestConfig & s.WriteGetObjectResponseRequest, + params: s.WriteGetObjectResponseRequest, ): Promise { const body = typeof params["Body"] === 'string' ? new TextEncoder().encode(params["Body"]) : params["Body"]; const headers = new Headers; @@ -2351,7 +2344,7 @@ export default class S3 { if (params["VersionId"] != null) headers.append("x-amz-fwd-header-x-amz-version-id", params["VersionId"]); if (params["BucketKeyEnabled"] != null) headers.append("x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled", params["BucketKeyEnabled"]?.toString() ?? ''); const resp = await this.#client.performRequest({ - abortSignal, headers, body, + headers, body, action: "WriteGetObjectResponse", requestUri: "/WriteGetObjectResponse", hostPrefix: `${params.RequestRoute}.`, @@ -2363,7 +2356,7 @@ export default class S3 { /** Checks state up to 20 times, 5 seconds apart (about 2 minutes max wait time). */ async waitForBucketExists( - params: RequestConfig & s.HeadBucketRequest, + params: s.HeadBucketRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state BucketExists'; for (let i = 0; i < 20; i++) { @@ -2382,7 +2375,7 @@ export default class S3 { /** Checks state up to 20 times, 5 seconds apart (about 2 minutes max wait time). */ async waitForBucketNotExists( - params: RequestConfig & s.HeadBucketRequest, + params: s.HeadBucketRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state BucketNotExists'; for (let i = 0; i < 20; i++) { @@ -2399,7 +2392,7 @@ export default class S3 { /** Checks state up to 20 times, 5 seconds apart (about 2 minutes max wait time). */ async waitForObjectExists( - params: RequestConfig & s.HeadObjectRequest, + params: s.HeadObjectRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ObjectExists'; for (let i = 0; i < 20; i++) { @@ -2416,7 +2409,7 @@ export default class S3 { /** Checks state up to 20 times, 5 seconds apart (about 2 minutes max wait time). */ async waitForObjectNotExists( - params: RequestConfig & s.HeadObjectRequest, + params: s.HeadObjectRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state ObjectNotExists'; for (let i = 0; i < 20; i++) { diff --git a/lib/services/ses/mod.ts b/lib/services/ses/mod.ts index 102c5da9..8c6e955d 100644 --- a/lib/services/ses/mod.ts +++ b/lib/services/ses/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon Simple Email Service -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"; @@ -15,7 +11,7 @@ function serializeBlob(input: string | Uint8Array | null | undefined) { return Base64.encode(input); } -export default class SES { +export class SES { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(SES.ApiMetadata); @@ -35,62 +31,62 @@ export default class SES { }; async cloneReceiptRuleSet( - {abortSignal, ...params}: RequestConfig & s.CloneReceiptRuleSetRequest, + params: s.CloneReceiptRuleSetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RuleSetName", (params["RuleSetName"] ?? '').toString()); body.append(prefix+"OriginalRuleSetName", (params["OriginalRuleSetName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CloneReceiptRuleSet", }); await resp.arrayBuffer(); // consume body without use } async createConfigurationSet( - {abortSignal, ...params}: RequestConfig & s.CreateConfigurationSetRequest, + params: s.CreateConfigurationSetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; ConfigurationSet_Serialize(body, prefix+"ConfigurationSet", params["ConfigurationSet"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateConfigurationSet", }); await resp.arrayBuffer(); // consume body without use } async createConfigurationSetEventDestination( - {abortSignal, ...params}: RequestConfig & s.CreateConfigurationSetEventDestinationRequest, + params: s.CreateConfigurationSetEventDestinationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); EventDestination_Serialize(body, prefix+"EventDestination", params["EventDestination"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateConfigurationSetEventDestination", }); await resp.arrayBuffer(); // consume body without use } async createConfigurationSetTrackingOptions( - {abortSignal, ...params}: RequestConfig & s.CreateConfigurationSetTrackingOptionsRequest, + params: s.CreateConfigurationSetTrackingOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); TrackingOptions_Serialize(body, prefix+"TrackingOptions", params["TrackingOptions"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateConfigurationSetTrackingOptions", }); await resp.arrayBuffer(); // consume body without use } async createCustomVerificationEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.CreateCustomVerificationEmailTemplateRequest, + params: s.CreateCustomVerificationEmailTemplateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -101,27 +97,27 @@ export default class SES { body.append(prefix+"SuccessRedirectionURL", (params["SuccessRedirectionURL"] ?? '').toString()); body.append(prefix+"FailureRedirectionURL", (params["FailureRedirectionURL"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateCustomVerificationEmailTemplate", }); await resp.arrayBuffer(); // consume body without use } async createReceiptFilter( - {abortSignal, ...params}: RequestConfig & s.CreateReceiptFilterRequest, + params: s.CreateReceiptFilterRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; ReceiptFilter_Serialize(body, prefix+"Filter", params["Filter"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateReceiptFilter", }); await resp.arrayBuffer(); // consume body without use } async createReceiptRule( - {abortSignal, ...params}: RequestConfig & s.CreateReceiptRuleRequest, + params: s.CreateReceiptRuleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -129,190 +125,188 @@ export default class SES { if ("After" in params) body.append(prefix+"After", (params["After"] ?? '').toString()); ReceiptRule_Serialize(body, prefix+"Rule", params["Rule"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateReceiptRule", }); await resp.arrayBuffer(); // consume body without use } async createReceiptRuleSet( - {abortSignal, ...params}: RequestConfig & s.CreateReceiptRuleSetRequest, + params: s.CreateReceiptRuleSetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RuleSetName", (params["RuleSetName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateReceiptRuleSet", }); await resp.arrayBuffer(); // consume body without use } async createTemplate( - {abortSignal, ...params}: RequestConfig & s.CreateTemplateRequest, + params: s.CreateTemplateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; Template_Serialize(body, prefix+"Template", params["Template"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTemplate", }); await resp.arrayBuffer(); // consume body without use } async deleteConfigurationSet( - {abortSignal, ...params}: RequestConfig & s.DeleteConfigurationSetRequest, + params: s.DeleteConfigurationSetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteConfigurationSet", }); await resp.arrayBuffer(); // consume body without use } async deleteConfigurationSetEventDestination( - {abortSignal, ...params}: RequestConfig & s.DeleteConfigurationSetEventDestinationRequest, + params: s.DeleteConfigurationSetEventDestinationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); body.append(prefix+"EventDestinationName", (params["EventDestinationName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteConfigurationSetEventDestination", }); await resp.arrayBuffer(); // consume body without use } async deleteConfigurationSetTrackingOptions( - {abortSignal, ...params}: RequestConfig & s.DeleteConfigurationSetTrackingOptionsRequest, + params: s.DeleteConfigurationSetTrackingOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteConfigurationSetTrackingOptions", }); await resp.arrayBuffer(); // consume body without use } async deleteCustomVerificationEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.DeleteCustomVerificationEmailTemplateRequest, + params: s.DeleteCustomVerificationEmailTemplateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TemplateName", (params["TemplateName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteCustomVerificationEmailTemplate", }); await resp.arrayBuffer(); // consume body without use } async deleteIdentity( - {abortSignal, ...params}: RequestConfig & s.DeleteIdentityRequest, + params: s.DeleteIdentityRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Identity", (params["Identity"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteIdentity", }); await resp.arrayBuffer(); // consume body without use } async deleteIdentityPolicy( - {abortSignal, ...params}: RequestConfig & s.DeleteIdentityPolicyRequest, + params: s.DeleteIdentityPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Identity", (params["Identity"] ?? '').toString()); body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteIdentityPolicy", }); await resp.arrayBuffer(); // consume body without use } async deleteReceiptFilter( - {abortSignal, ...params}: RequestConfig & s.DeleteReceiptFilterRequest, + params: s.DeleteReceiptFilterRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"FilterName", (params["FilterName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteReceiptFilter", }); await resp.arrayBuffer(); // consume body without use } async deleteReceiptRule( - {abortSignal, ...params}: RequestConfig & s.DeleteReceiptRuleRequest, + params: s.DeleteReceiptRuleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RuleSetName", (params["RuleSetName"] ?? '').toString()); body.append(prefix+"RuleName", (params["RuleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteReceiptRule", }); await resp.arrayBuffer(); // consume body without use } async deleteReceiptRuleSet( - {abortSignal, ...params}: RequestConfig & s.DeleteReceiptRuleSetRequest, + params: s.DeleteReceiptRuleSetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RuleSetName", (params["RuleSetName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteReceiptRuleSet", }); await resp.arrayBuffer(); // consume body without use } async deleteTemplate( - {abortSignal, ...params}: RequestConfig & s.DeleteTemplateRequest, + params: s.DeleteTemplateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TemplateName", (params["TemplateName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTemplate", }); await resp.arrayBuffer(); // consume body without use } async deleteVerifiedEmailAddress( - {abortSignal, ...params}: RequestConfig & s.DeleteVerifiedEmailAddressRequest, + params: s.DeleteVerifiedEmailAddressRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"EmailAddress", (params["EmailAddress"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteVerifiedEmailAddress", }); await resp.arrayBuffer(); // consume body without use } - async describeActiveReceiptRuleSet( - {abortSignal}: RequestConfig = {}, - ): Promise { + async describeActiveReceiptRuleSet(): Promise { const body = new URLSearchParams; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeActiveReceiptRuleSet", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeActiveReceiptRuleSetResult"); @@ -323,14 +317,14 @@ export default class SES { } async describeConfigurationSet( - {abortSignal, ...params}: RequestConfig & s.DescribeConfigurationSetRequest, + params: s.DescribeConfigurationSetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); if (params["ConfigurationSetAttributeNames"]) qsP.appendList(body, prefix+"ConfigurationSetAttributeNames", params["ConfigurationSetAttributeNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeConfigurationSet", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeConfigurationSetResult"); @@ -344,14 +338,14 @@ export default class SES { } async describeReceiptRule( - {abortSignal, ...params}: RequestConfig & s.DescribeReceiptRuleRequest, + params: s.DescribeReceiptRuleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RuleSetName", (params["RuleSetName"] ?? '').toString()); body.append(prefix+"RuleName", (params["RuleName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeReceiptRule", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeReceiptRuleResult"); @@ -361,13 +355,13 @@ export default class SES { } async describeReceiptRuleSet( - {abortSignal, ...params}: RequestConfig & s.DescribeReceiptRuleSetRequest, + params: s.DescribeReceiptRuleSetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RuleSetName", (params["RuleSetName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeReceiptRuleSet", }); const xml = xmlP.readXmlResult(await resp.text(), "DescribeReceiptRuleSetResult"); @@ -377,11 +371,8 @@ export default class SES { }; } - async getAccountSendingEnabled( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getAccountSendingEnabled(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetAccountSendingEnabled", }); const xml = xmlP.readXmlResult(await resp.text(), "GetAccountSendingEnabledResult"); @@ -391,13 +382,13 @@ export default class SES { } async getCustomVerificationEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.GetCustomVerificationEmailTemplateRequest, + params: s.GetCustomVerificationEmailTemplateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TemplateName", (params["TemplateName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetCustomVerificationEmailTemplate", }); const xml = xmlP.readXmlResult(await resp.text(), "GetCustomVerificationEmailTemplateResult"); @@ -407,13 +398,13 @@ export default class SES { } async getIdentityDkimAttributes( - {abortSignal, ...params}: RequestConfig & s.GetIdentityDkimAttributesRequest, + params: s.GetIdentityDkimAttributesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["Identities"]) qsP.appendList(body, prefix+"Identities", params["Identities"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetIdentityDkimAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "GetIdentityDkimAttributesResult"); @@ -423,13 +414,13 @@ export default class SES { } async getIdentityMailFromDomainAttributes( - {abortSignal, ...params}: RequestConfig & s.GetIdentityMailFromDomainAttributesRequest, + params: s.GetIdentityMailFromDomainAttributesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["Identities"]) qsP.appendList(body, prefix+"Identities", params["Identities"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetIdentityMailFromDomainAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "GetIdentityMailFromDomainAttributesResult"); @@ -439,13 +430,13 @@ export default class SES { } async getIdentityNotificationAttributes( - {abortSignal, ...params}: RequestConfig & s.GetIdentityNotificationAttributesRequest, + params: s.GetIdentityNotificationAttributesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["Identities"]) qsP.appendList(body, prefix+"Identities", params["Identities"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetIdentityNotificationAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "GetIdentityNotificationAttributesResult"); @@ -455,14 +446,14 @@ export default class SES { } async getIdentityPolicies( - {abortSignal, ...params}: RequestConfig & s.GetIdentityPoliciesRequest, + params: s.GetIdentityPoliciesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Identity", (params["Identity"] ?? '').toString()); if (params["PolicyNames"]) qsP.appendList(body, prefix+"PolicyNames", params["PolicyNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetIdentityPolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "GetIdentityPoliciesResult"); @@ -472,13 +463,13 @@ export default class SES { } async getIdentityVerificationAttributes( - {abortSignal, ...params}: RequestConfig & s.GetIdentityVerificationAttributesRequest, + params: s.GetIdentityVerificationAttributesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["Identities"]) qsP.appendList(body, prefix+"Identities", params["Identities"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetIdentityVerificationAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "GetIdentityVerificationAttributesResult"); @@ -487,11 +478,8 @@ export default class SES { }; } - async getSendQuota( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getSendQuota(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetSendQuota", }); const xml = xmlP.readXmlResult(await resp.text(), "GetSendQuotaResult"); @@ -502,11 +490,8 @@ export default class SES { }; } - async getSendStatistics( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getSendStatistics(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetSendStatistics", }); const xml = xmlP.readXmlResult(await resp.text(), "GetSendStatisticsResult"); @@ -516,13 +501,13 @@ export default class SES { } async getTemplate( - {abortSignal, ...params}: RequestConfig & s.GetTemplateRequest, + params: s.GetTemplateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TemplateName", (params["TemplateName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetTemplate", }); const xml = xmlP.readXmlResult(await resp.text(), "GetTemplateResult"); @@ -532,14 +517,14 @@ export default class SES { } async listConfigurationSets( - {abortSignal, ...params}: RequestConfig & s.ListConfigurationSetsRequest = {}, + params: s.ListConfigurationSetsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListConfigurationSets", }); const xml = xmlP.readXmlResult(await resp.text(), "ListConfigurationSetsResult"); @@ -552,14 +537,14 @@ export default class SES { } async listCustomVerificationEmailTemplates( - {abortSignal, ...params}: RequestConfig & s.ListCustomVerificationEmailTemplatesRequest = {}, + params: s.ListCustomVerificationEmailTemplatesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListCustomVerificationEmailTemplates", }); const xml = xmlP.readXmlResult(await resp.text(), "ListCustomVerificationEmailTemplatesResult"); @@ -572,7 +557,7 @@ export default class SES { } async listIdentities( - {abortSignal, ...params}: RequestConfig & s.ListIdentitiesRequest = {}, + params: s.ListIdentitiesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -580,7 +565,7 @@ export default class SES { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListIdentities", }); const xml = xmlP.readXmlResult(await resp.text(), "ListIdentitiesResult"); @@ -593,13 +578,13 @@ export default class SES { } async listIdentityPolicies( - {abortSignal, ...params}: RequestConfig & s.ListIdentityPoliciesRequest, + params: s.ListIdentityPoliciesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Identity", (params["Identity"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListIdentityPolicies", }); const xml = xmlP.readXmlResult(await resp.text(), "ListIdentityPoliciesResult"); @@ -608,12 +593,10 @@ export default class SES { }; } - async listReceiptFilters( - {abortSignal}: RequestConfig = {}, - ): Promise { + async listReceiptFilters(): Promise { const body = new URLSearchParams; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListReceiptFilters", }); const xml = xmlP.readXmlResult(await resp.text(), "ListReceiptFiltersResult"); @@ -623,13 +606,13 @@ export default class SES { } async listReceiptRuleSets( - {abortSignal, ...params}: RequestConfig & s.ListReceiptRuleSetsRequest = {}, + params: s.ListReceiptRuleSetsRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListReceiptRuleSets", }); const xml = xmlP.readXmlResult(await resp.text(), "ListReceiptRuleSetsResult"); @@ -642,14 +625,14 @@ export default class SES { } async listTemplates( - {abortSignal, ...params}: RequestConfig & s.ListTemplatesRequest = {}, + params: s.ListTemplatesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxItems" in params) body.append(prefix+"MaxItems", (params["MaxItems"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListTemplates", }); const xml = xmlP.readXmlResult(await resp.text(), "ListTemplatesResult"); @@ -661,11 +644,8 @@ export default class SES { }; } - async listVerifiedEmailAddresses( - {abortSignal}: RequestConfig = {}, - ): Promise { + async listVerifiedEmailAddresses(): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "ListVerifiedEmailAddresses", }); const xml = xmlP.readXmlResult(await resp.text(), "ListVerifiedEmailAddressesResult"); @@ -675,21 +655,21 @@ export default class SES { } async putConfigurationSetDeliveryOptions( - {abortSignal, ...params}: RequestConfig & s.PutConfigurationSetDeliveryOptionsRequest, + params: s.PutConfigurationSetDeliveryOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); if (params["DeliveryOptions"] != null) DeliveryOptions_Serialize(body, prefix+"DeliveryOptions", params["DeliveryOptions"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutConfigurationSetDeliveryOptions", }); await resp.arrayBuffer(); // consume body without use } async putIdentityPolicy( - {abortSignal, ...params}: RequestConfig & s.PutIdentityPolicyRequest, + params: s.PutIdentityPolicyRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -697,28 +677,28 @@ export default class SES { body.append(prefix+"PolicyName", (params["PolicyName"] ?? '').toString()); body.append(prefix+"Policy", (params["Policy"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutIdentityPolicy", }); await resp.arrayBuffer(); // consume body without use } async reorderReceiptRuleSet( - {abortSignal, ...params}: RequestConfig & s.ReorderReceiptRuleSetRequest, + params: s.ReorderReceiptRuleSetRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RuleSetName", (params["RuleSetName"] ?? '').toString()); if (params["RuleNames"]) qsP.appendList(body, prefix+"RuleNames", params["RuleNames"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReorderReceiptRuleSet", }); await resp.arrayBuffer(); // consume body without use } async sendBounce( - {abortSignal, ...params}: RequestConfig & s.SendBounceRequest, + params: s.SendBounceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -729,7 +709,7 @@ export default class SES { if (params["BouncedRecipientInfoList"]) qsP.appendList(body, prefix+"BouncedRecipientInfoList", params["BouncedRecipientInfoList"], {"appender":BouncedRecipientInfo_Serialize,"entryPrefix":".member."}) if ("BounceSenderArn" in params) body.append(prefix+"BounceSenderArn", (params["BounceSenderArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendBounce", }); const xml = xmlP.readXmlResult(await resp.text(), "SendBounceResult"); @@ -739,7 +719,7 @@ export default class SES { } async sendBulkTemplatedEmail( - {abortSignal, ...params}: RequestConfig & s.SendBulkTemplatedEmailRequest, + params: s.SendBulkTemplatedEmailRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -755,7 +735,7 @@ export default class SES { if ("DefaultTemplateData" in params) body.append(prefix+"DefaultTemplateData", (params["DefaultTemplateData"] ?? '').toString()); if (params["Destinations"]) qsP.appendList(body, prefix+"Destinations", params["Destinations"], {"appender":BulkEmailDestination_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendBulkTemplatedEmail", }); const xml = xmlP.readXmlResult(await resp.text(), "SendBulkTemplatedEmailResult"); @@ -765,7 +745,7 @@ export default class SES { } async sendCustomVerificationEmail( - {abortSignal, ...params}: RequestConfig & s.SendCustomVerificationEmailRequest, + params: s.SendCustomVerificationEmailRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -773,7 +753,7 @@ export default class SES { body.append(prefix+"TemplateName", (params["TemplateName"] ?? '').toString()); if ("ConfigurationSetName" in params) body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendCustomVerificationEmail", }); const xml = xmlP.readXmlResult(await resp.text(), "SendCustomVerificationEmailResult"); @@ -783,7 +763,7 @@ export default class SES { } async sendEmail( - {abortSignal, ...params}: RequestConfig & s.SendEmailRequest, + params: s.SendEmailRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -797,7 +777,7 @@ export default class SES { if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":MessageTag_Serialize,"entryPrefix":".member."}) if ("ConfigurationSetName" in params) body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendEmail", }); const xml = xmlP.readXmlResult(await resp.text(), "SendEmailResult"); @@ -807,7 +787,7 @@ export default class SES { } async sendRawEmail( - {abortSignal, ...params}: RequestConfig & s.SendRawEmailRequest, + params: s.SendRawEmailRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -820,7 +800,7 @@ export default class SES { if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":MessageTag_Serialize,"entryPrefix":".member."}) if ("ConfigurationSetName" in params) body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendRawEmail", }); const xml = xmlP.readXmlResult(await resp.text(), "SendRawEmailResult"); @@ -830,7 +810,7 @@ export default class SES { } async sendTemplatedEmail( - {abortSignal, ...params}: RequestConfig & s.SendTemplatedEmailRequest, + params: s.SendTemplatedEmailRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -846,7 +826,7 @@ export default class SES { if ("TemplateArn" in params) body.append(prefix+"TemplateArn", (params["TemplateArn"] ?? '').toString()); body.append(prefix+"TemplateData", (params["TemplateData"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendTemplatedEmail", }); const xml = xmlP.readXmlResult(await resp.text(), "SendTemplatedEmailResult"); @@ -856,48 +836,48 @@ export default class SES { } async setActiveReceiptRuleSet( - {abortSignal, ...params}: RequestConfig & s.SetActiveReceiptRuleSetRequest = {}, + params: s.SetActiveReceiptRuleSetRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("RuleSetName" in params) body.append(prefix+"RuleSetName", (params["RuleSetName"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetActiveReceiptRuleSet", }); await resp.arrayBuffer(); // consume body without use } async setIdentityDkimEnabled( - {abortSignal, ...params}: RequestConfig & s.SetIdentityDkimEnabledRequest, + params: s.SetIdentityDkimEnabledRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Identity", (params["Identity"] ?? '').toString()); body.append(prefix+"DkimEnabled", (params["DkimEnabled"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetIdentityDkimEnabled", }); await resp.arrayBuffer(); // consume body without use } async setIdentityFeedbackForwardingEnabled( - {abortSignal, ...params}: RequestConfig & s.SetIdentityFeedbackForwardingEnabledRequest, + params: s.SetIdentityFeedbackForwardingEnabledRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Identity", (params["Identity"] ?? '').toString()); body.append(prefix+"ForwardingEnabled", (params["ForwardingEnabled"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetIdentityFeedbackForwardingEnabled", }); await resp.arrayBuffer(); // consume body without use } async setIdentityHeadersInNotificationsEnabled( - {abortSignal, ...params}: RequestConfig & s.SetIdentityHeadersInNotificationsEnabledRequest, + params: s.SetIdentityHeadersInNotificationsEnabledRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -905,14 +885,14 @@ export default class SES { body.append(prefix+"NotificationType", (params["NotificationType"] ?? '').toString()); body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetIdentityHeadersInNotificationsEnabled", }); await resp.arrayBuffer(); // consume body without use } async setIdentityMailFromDomain( - {abortSignal, ...params}: RequestConfig & s.SetIdentityMailFromDomainRequest, + params: s.SetIdentityMailFromDomainRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -920,14 +900,14 @@ export default class SES { if ("MailFromDomain" in params) body.append(prefix+"MailFromDomain", (params["MailFromDomain"] ?? '').toString()); if ("BehaviorOnMXFailure" in params) body.append(prefix+"BehaviorOnMXFailure", (params["BehaviorOnMXFailure"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetIdentityMailFromDomain", }); await resp.arrayBuffer(); // consume body without use } async setIdentityNotificationTopic( - {abortSignal, ...params}: RequestConfig & s.SetIdentityNotificationTopicRequest, + params: s.SetIdentityNotificationTopicRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -935,14 +915,14 @@ export default class SES { body.append(prefix+"NotificationType", (params["NotificationType"] ?? '').toString()); if ("SnsTopic" in params) body.append(prefix+"SnsTopic", (params["SnsTopic"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetIdentityNotificationTopic", }); await resp.arrayBuffer(); // consume body without use } async setReceiptRulePosition( - {abortSignal, ...params}: RequestConfig & s.SetReceiptRulePositionRequest, + params: s.SetReceiptRulePositionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -950,21 +930,21 @@ export default class SES { body.append(prefix+"RuleName", (params["RuleName"] ?? '').toString()); if ("After" in params) body.append(prefix+"After", (params["After"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetReceiptRulePosition", }); await resp.arrayBuffer(); // consume body without use } async testRenderTemplate( - {abortSignal, ...params}: RequestConfig & s.TestRenderTemplateRequest, + params: s.TestRenderTemplateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TemplateName", (params["TemplateName"] ?? '').toString()); body.append(prefix+"TemplateData", (params["TemplateData"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TestRenderTemplate", }); const xml = xmlP.readXmlResult(await resp.text(), "TestRenderTemplateResult"); @@ -974,76 +954,76 @@ export default class SES { } async updateAccountSendingEnabled( - {abortSignal, ...params}: RequestConfig & s.UpdateAccountSendingEnabledRequest = {}, + params: s.UpdateAccountSendingEnabledRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("Enabled" in params) body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateAccountSendingEnabled", }); await resp.arrayBuffer(); // consume body without use } async updateConfigurationSetEventDestination( - {abortSignal, ...params}: RequestConfig & s.UpdateConfigurationSetEventDestinationRequest, + params: s.UpdateConfigurationSetEventDestinationRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); EventDestination_Serialize(body, prefix+"EventDestination", params["EventDestination"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateConfigurationSetEventDestination", }); await resp.arrayBuffer(); // consume body without use } async updateConfigurationSetReputationMetricsEnabled( - {abortSignal, ...params}: RequestConfig & s.UpdateConfigurationSetReputationMetricsEnabledRequest, + params: s.UpdateConfigurationSetReputationMetricsEnabledRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateConfigurationSetReputationMetricsEnabled", }); await resp.arrayBuffer(); // consume body without use } async updateConfigurationSetSendingEnabled( - {abortSignal, ...params}: RequestConfig & s.UpdateConfigurationSetSendingEnabledRequest, + params: s.UpdateConfigurationSetSendingEnabledRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateConfigurationSetSendingEnabled", }); await resp.arrayBuffer(); // consume body without use } async updateConfigurationSetTrackingOptions( - {abortSignal, ...params}: RequestConfig & s.UpdateConfigurationSetTrackingOptionsRequest, + params: s.UpdateConfigurationSetTrackingOptionsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ConfigurationSetName", (params["ConfigurationSetName"] ?? '').toString()); TrackingOptions_Serialize(body, prefix+"TrackingOptions", params["TrackingOptions"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateConfigurationSetTrackingOptions", }); await resp.arrayBuffer(); // consume body without use } async updateCustomVerificationEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.UpdateCustomVerificationEmailTemplateRequest, + params: s.UpdateCustomVerificationEmailTemplateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -1054,47 +1034,47 @@ export default class SES { if ("SuccessRedirectionURL" in params) body.append(prefix+"SuccessRedirectionURL", (params["SuccessRedirectionURL"] ?? '').toString()); if ("FailureRedirectionURL" in params) body.append(prefix+"FailureRedirectionURL", (params["FailureRedirectionURL"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateCustomVerificationEmailTemplate", }); await resp.arrayBuffer(); // consume body without use } async updateReceiptRule( - {abortSignal, ...params}: RequestConfig & s.UpdateReceiptRuleRequest, + params: s.UpdateReceiptRuleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"RuleSetName", (params["RuleSetName"] ?? '').toString()); ReceiptRule_Serialize(body, prefix+"Rule", params["Rule"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateReceiptRule", }); await resp.arrayBuffer(); // consume body without use } async updateTemplate( - {abortSignal, ...params}: RequestConfig & s.UpdateTemplateRequest, + params: s.UpdateTemplateRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; Template_Serialize(body, prefix+"Template", params["Template"]); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateTemplate", }); await resp.arrayBuffer(); // consume body without use } async verifyDomainDkim( - {abortSignal, ...params}: RequestConfig & s.VerifyDomainDkimRequest, + params: s.VerifyDomainDkimRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Domain", (params["Domain"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "VerifyDomainDkim", }); const xml = xmlP.readXmlResult(await resp.text(), "VerifyDomainDkimResult"); @@ -1104,13 +1084,13 @@ export default class SES { } async verifyDomainIdentity( - {abortSignal, ...params}: RequestConfig & s.VerifyDomainIdentityRequest, + params: s.VerifyDomainIdentityRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"Domain", (params["Domain"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "VerifyDomainIdentity", }); const xml = xmlP.readXmlResult(await resp.text(), "VerifyDomainIdentityResult"); @@ -1120,26 +1100,26 @@ export default class SES { } async verifyEmailAddress( - {abortSignal, ...params}: RequestConfig & s.VerifyEmailAddressRequest, + params: s.VerifyEmailAddressRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"EmailAddress", (params["EmailAddress"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "VerifyEmailAddress", }); await resp.arrayBuffer(); // consume body without use } async verifyEmailIdentity( - {abortSignal, ...params}: RequestConfig & s.VerifyEmailIdentityRequest, + params: s.VerifyEmailIdentityRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"EmailAddress", (params["EmailAddress"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "VerifyEmailIdentity", }); await resp.arrayBuffer(); // consume body without use @@ -1149,7 +1129,7 @@ export default class SES { /** Checks state up to 20 times, 3 seconds apart (about 1 minutes max wait time). */ async waitForIdentityExists( - params: RequestConfig & s.GetIdentityVerificationAttributesRequest, + params: s.GetIdentityVerificationAttributesRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state IdentityExists'; for (let i = 0; i < 20; i++) { diff --git a/lib/services/sesv2/mod.ts b/lib/services/sesv2/mod.ts index a9b2a24f..f22601b5 100644 --- a/lib/services/sesv2/mod.ts +++ b/lib/services/sesv2/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon Simple Email Service -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"; @@ -15,7 +11,7 @@ function serializeBlob(input: string | Uint8Array | null | undefined) { return Base64.encode(input); } -export default class SESV2 { +export class SESV2 { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(SESV2.ApiMetadata); @@ -35,7 +31,7 @@ export default class SESV2 { }; async createConfigurationSet( - {abortSignal, ...params}: RequestConfig & s.CreateConfigurationSetRequest, + params: s.CreateConfigurationSetRequest, ): Promise { const body: jsonP.JSONObject = { ConfigurationSetName: params["ConfigurationSetName"], @@ -47,7 +43,7 @@ export default class SESV2 { SuppressionOptions: fromSuppressionOptions(params["SuppressionOptions"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateConfigurationSet", requestUri: "/v2/email/configuration-sets", }); @@ -55,14 +51,14 @@ export default class SESV2 { } async createConfigurationSetEventDestination( - {abortSignal, ...params}: RequestConfig & s.CreateConfigurationSetEventDestinationRequest, + params: s.CreateConfigurationSetEventDestinationRequest, ): Promise { const body: jsonP.JSONObject = { EventDestinationName: params["EventDestinationName"], EventDestination: fromEventDestinationDefinition(params["EventDestination"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateConfigurationSetEventDestination", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}/event-destinations`, }); @@ -70,7 +66,7 @@ export default class SESV2 { } async createContact( - {abortSignal, ...params}: RequestConfig & s.CreateContactRequest, + params: s.CreateContactRequest, ): Promise { const body: jsonP.JSONObject = { EmailAddress: params["EmailAddress"], @@ -79,7 +75,7 @@ export default class SESV2 { AttributesData: params["AttributesData"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateContact", requestUri: cmnP.encodePath`/v2/email/contact-lists/${params["ContactListName"]}/contacts`, }); @@ -87,7 +83,7 @@ export default class SESV2 { } async createContactList( - {abortSignal, ...params}: RequestConfig & s.CreateContactListRequest, + params: s.CreateContactListRequest, ): Promise { const body: jsonP.JSONObject = { ContactListName: params["ContactListName"], @@ -96,7 +92,7 @@ export default class SESV2 { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateContactList", requestUri: "/v2/email/contact-lists", }); @@ -104,7 +100,7 @@ export default class SESV2 { } async createCustomVerificationEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.CreateCustomVerificationEmailTemplateRequest, + params: s.CreateCustomVerificationEmailTemplateRequest, ): Promise { const body: jsonP.JSONObject = { TemplateName: params["TemplateName"], @@ -115,7 +111,7 @@ export default class SESV2 { FailureRedirectionURL: params["FailureRedirectionURL"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateCustomVerificationEmailTemplate", requestUri: "/v2/email/custom-verification-email-templates", }); @@ -123,14 +119,14 @@ export default class SESV2 { } async createDedicatedIpPool( - {abortSignal, ...params}: RequestConfig & s.CreateDedicatedIpPoolRequest, + params: s.CreateDedicatedIpPoolRequest, ): Promise { const body: jsonP.JSONObject = { PoolName: params["PoolName"], Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDedicatedIpPool", requestUri: "/v2/email/dedicated-ip-pools", }); @@ -138,7 +134,7 @@ export default class SESV2 { } async createDeliverabilityTestReport( - {abortSignal, ...params}: RequestConfig & s.CreateDeliverabilityTestReportRequest, + params: s.CreateDeliverabilityTestReportRequest, ): Promise { const body: jsonP.JSONObject = { ReportName: params["ReportName"], @@ -147,7 +143,7 @@ export default class SESV2 { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDeliverabilityTestReport", requestUri: "/v2/email/deliverability-dashboard/test", }); @@ -161,7 +157,7 @@ export default class SESV2 { } async createEmailIdentity( - {abortSignal, ...params}: RequestConfig & s.CreateEmailIdentityRequest, + params: s.CreateEmailIdentityRequest, ): Promise { const body: jsonP.JSONObject = { EmailIdentity: params["EmailIdentity"], @@ -170,7 +166,7 @@ export default class SESV2 { ConfigurationSetName: params["ConfigurationSetName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateEmailIdentity", requestUri: "/v2/email/identities", }); @@ -185,13 +181,13 @@ export default class SESV2 { } async createEmailIdentityPolicy( - {abortSignal, ...params}: RequestConfig & s.CreateEmailIdentityPolicyRequest, + params: s.CreateEmailIdentityPolicyRequest, ): Promise { const body: jsonP.JSONObject = { Policy: params["Policy"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateEmailIdentityPolicy", requestUri: cmnP.encodePath`/v2/email/identities/${params["EmailIdentity"]}/policies/${params["PolicyName"]}`, }); @@ -199,14 +195,14 @@ export default class SESV2 { } async createEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.CreateEmailTemplateRequest, + params: s.CreateEmailTemplateRequest, ): Promise { const body: jsonP.JSONObject = { TemplateName: params["TemplateName"], TemplateContent: fromEmailTemplateContent(params["TemplateContent"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateEmailTemplate", requestUri: "/v2/email/templates", }); @@ -214,14 +210,14 @@ export default class SESV2 { } async createImportJob( - {abortSignal, ...params}: RequestConfig & s.CreateImportJobRequest, + params: s.CreateImportJobRequest, ): Promise { const body: jsonP.JSONObject = { ImportDestination: fromImportDestination(params["ImportDestination"]), ImportDataSource: fromImportDataSource(params["ImportDataSource"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateImportJob", requestUri: "/v2/email/import-jobs", }); @@ -234,11 +230,10 @@ export default class SESV2 { } async deleteConfigurationSet( - {abortSignal, ...params}: RequestConfig & s.DeleteConfigurationSetRequest, + params: s.DeleteConfigurationSetRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteConfigurationSet", method: "DELETE", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}`, @@ -247,11 +242,10 @@ export default class SESV2 { } async deleteConfigurationSetEventDestination( - {abortSignal, ...params}: RequestConfig & s.DeleteConfigurationSetEventDestinationRequest, + params: s.DeleteConfigurationSetEventDestinationRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteConfigurationSetEventDestination", method: "DELETE", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}/event-destinations/${params["EventDestinationName"]}`, @@ -260,11 +254,10 @@ export default class SESV2 { } async deleteContact( - {abortSignal, ...params}: RequestConfig & s.DeleteContactRequest, + params: s.DeleteContactRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteContact", method: "DELETE", requestUri: cmnP.encodePath`/v2/email/contact-lists/${params["ContactListName"]}/contacts/${params["EmailAddress"]}`, @@ -273,11 +266,10 @@ export default class SESV2 { } async deleteContactList( - {abortSignal, ...params}: RequestConfig & s.DeleteContactListRequest, + params: s.DeleteContactListRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteContactList", method: "DELETE", requestUri: cmnP.encodePath`/v2/email/contact-lists/${params["ContactListName"]}`, @@ -286,11 +278,10 @@ export default class SESV2 { } async deleteCustomVerificationEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.DeleteCustomVerificationEmailTemplateRequest, + params: s.DeleteCustomVerificationEmailTemplateRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteCustomVerificationEmailTemplate", method: "DELETE", requestUri: cmnP.encodePath`/v2/email/custom-verification-email-templates/${params["TemplateName"]}`, @@ -299,11 +290,10 @@ export default class SESV2 { } async deleteDedicatedIpPool( - {abortSignal, ...params}: RequestConfig & s.DeleteDedicatedIpPoolRequest, + params: s.DeleteDedicatedIpPoolRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteDedicatedIpPool", method: "DELETE", requestUri: cmnP.encodePath`/v2/email/dedicated-ip-pools/${params["PoolName"]}`, @@ -312,11 +302,10 @@ export default class SESV2 { } async deleteEmailIdentity( - {abortSignal, ...params}: RequestConfig & s.DeleteEmailIdentityRequest, + params: s.DeleteEmailIdentityRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteEmailIdentity", method: "DELETE", requestUri: cmnP.encodePath`/v2/email/identities/${params["EmailIdentity"]}`, @@ -325,11 +314,10 @@ export default class SESV2 { } async deleteEmailIdentityPolicy( - {abortSignal, ...params}: RequestConfig & s.DeleteEmailIdentityPolicyRequest, + params: s.DeleteEmailIdentityPolicyRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteEmailIdentityPolicy", method: "DELETE", requestUri: cmnP.encodePath`/v2/email/identities/${params["EmailIdentity"]}/policies/${params["PolicyName"]}`, @@ -338,11 +326,10 @@ export default class SESV2 { } async deleteEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.DeleteEmailTemplateRequest, + params: s.DeleteEmailTemplateRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteEmailTemplate", method: "DELETE", requestUri: cmnP.encodePath`/v2/email/templates/${params["TemplateName"]}`, @@ -351,11 +338,10 @@ export default class SESV2 { } async deleteSuppressedDestination( - {abortSignal, ...params}: RequestConfig & s.DeleteSuppressedDestinationRequest, + params: s.DeleteSuppressedDestinationRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "DeleteSuppressedDestination", method: "DELETE", requestUri: cmnP.encodePath`/v2/email/suppression/addresses/${params["EmailAddress"]}`, @@ -363,12 +349,10 @@ export default class SESV2 { await resp.arrayBuffer(); // consume body without use } - async getAccount( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getAccount(): Promise { const body: jsonP.JSONObject = {}; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetAccount", method: "GET", requestUri: "/v2/email/account", @@ -388,14 +372,14 @@ export default class SESV2 { } async getBlacklistReports( - {abortSignal, ...params}: RequestConfig & s.GetBlacklistReportsRequest, + params: s.GetBlacklistReportsRequest, ): Promise { const query = new URLSearchParams; for (const item of params["BlacklistItemNames"]) { query.append("BlacklistItemNames", item?.toString() ?? ""); } const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetBlacklistReports", method: "GET", requestUri: "/v2/email/deliverability-dashboard/blacklist-report", @@ -409,11 +393,10 @@ export default class SESV2 { } async getConfigurationSet( - {abortSignal, ...params}: RequestConfig & s.GetConfigurationSetRequest, + params: s.GetConfigurationSetRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetConfigurationSet", method: "GET", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}`, @@ -433,11 +416,10 @@ export default class SESV2 { } async getConfigurationSetEventDestinations( - {abortSignal, ...params}: RequestConfig & s.GetConfigurationSetEventDestinationsRequest, + params: s.GetConfigurationSetEventDestinationsRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetConfigurationSetEventDestinations", method: "GET", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}/event-destinations`, @@ -451,11 +433,10 @@ export default class SESV2 { } async getContact( - {abortSignal, ...params}: RequestConfig & s.GetContactRequest, + params: s.GetContactRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetContact", method: "GET", requestUri: cmnP.encodePath`/v2/email/contact-lists/${params["ContactListName"]}/contacts/${params["EmailAddress"]}`, @@ -476,11 +457,10 @@ export default class SESV2 { } async getContactList( - {abortSignal, ...params}: RequestConfig & s.GetContactListRequest, + params: s.GetContactListRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetContactList", method: "GET", requestUri: cmnP.encodePath`/v2/email/contact-lists/${params["ContactListName"]}`, @@ -499,11 +479,10 @@ export default class SESV2 { } async getCustomVerificationEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.GetCustomVerificationEmailTemplateRequest, + params: s.GetCustomVerificationEmailTemplateRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetCustomVerificationEmailTemplate", method: "GET", requestUri: cmnP.encodePath`/v2/email/custom-verification-email-templates/${params["TemplateName"]}`, @@ -522,11 +501,10 @@ export default class SESV2 { } async getDedicatedIp( - {abortSignal, ...params}: RequestConfig & s.GetDedicatedIpRequest, + params: s.GetDedicatedIpRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetDedicatedIp", method: "GET", requestUri: cmnP.encodePath`/v2/email/dedicated-ips/${params["Ip"]}`, @@ -540,14 +518,14 @@ export default class SESV2 { } async getDedicatedIps( - {abortSignal, ...params}: RequestConfig & s.GetDedicatedIpsRequest = {}, + params: s.GetDedicatedIpsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["PoolName"] != null) query.set("PoolName", params["PoolName"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetDedicatedIps", method: "GET", requestUri: "/v2/email/dedicated-ips", @@ -561,12 +539,10 @@ export default class SESV2 { }, await resp.json()); } - async getDeliverabilityDashboardOptions( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getDeliverabilityDashboardOptions(): Promise { const body: jsonP.JSONObject = {}; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetDeliverabilityDashboardOptions", method: "GET", requestUri: "/v2/email/deliverability-dashboard", @@ -585,11 +561,10 @@ export default class SESV2 { } async getDeliverabilityTestReport( - {abortSignal, ...params}: RequestConfig & s.GetDeliverabilityTestReportRequest, + params: s.GetDeliverabilityTestReportRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetDeliverabilityTestReport", method: "GET", requestUri: cmnP.encodePath`/v2/email/deliverability-dashboard/test-reports/${params["ReportId"]}`, @@ -608,11 +583,10 @@ export default class SESV2 { } async getDomainDeliverabilityCampaign( - {abortSignal, ...params}: RequestConfig & s.GetDomainDeliverabilityCampaignRequest, + params: s.GetDomainDeliverabilityCampaignRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetDomainDeliverabilityCampaign", method: "GET", requestUri: cmnP.encodePath`/v2/email/deliverability-dashboard/campaigns/${params["CampaignId"]}`, @@ -626,13 +600,13 @@ export default class SESV2 { } async getDomainStatisticsReport( - {abortSignal, ...params}: RequestConfig & s.GetDomainStatisticsReportRequest, + params: s.GetDomainStatisticsReportRequest, ): Promise { const query = new URLSearchParams; query.set("StartDate", cmnP.serializeDate_iso8601(params["StartDate"]) ?? ""); query.set("EndDate", cmnP.serializeDate_iso8601(params["EndDate"]) ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "GetDomainStatisticsReport", method: "GET", requestUri: cmnP.encodePath`/v2/email/deliverability-dashboard/statistics-report/${params["Domain"]}`, @@ -647,11 +621,10 @@ export default class SESV2 { } async getEmailIdentity( - {abortSignal, ...params}: RequestConfig & s.GetEmailIdentityRequest, + params: s.GetEmailIdentityRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetEmailIdentity", method: "GET", requestUri: cmnP.encodePath`/v2/email/identities/${params["EmailIdentity"]}`, @@ -672,11 +645,10 @@ export default class SESV2 { } async getEmailIdentityPolicies( - {abortSignal, ...params}: RequestConfig & s.GetEmailIdentityPoliciesRequest, + params: s.GetEmailIdentityPoliciesRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetEmailIdentityPolicies", method: "GET", requestUri: cmnP.encodePath`/v2/email/identities/${params["EmailIdentity"]}/policies`, @@ -690,11 +662,10 @@ export default class SESV2 { } async getEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.GetEmailTemplateRequest, + params: s.GetEmailTemplateRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetEmailTemplate", method: "GET", requestUri: cmnP.encodePath`/v2/email/templates/${params["TemplateName"]}`, @@ -709,11 +680,10 @@ export default class SESV2 { } async getImportJob( - {abortSignal, ...params}: RequestConfig & s.GetImportJobRequest, + params: s.GetImportJobRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetImportJob", method: "GET", requestUri: cmnP.encodePath`/v2/email/import-jobs/${params["JobId"]}`, @@ -735,11 +705,10 @@ export default class SESV2 { } async getSuppressedDestination( - {abortSignal, ...params}: RequestConfig & s.GetSuppressedDestinationRequest, + params: s.GetSuppressedDestinationRequest, ): Promise { const resp = await this.#client.performRequest({ - abortSignal, action: "GetSuppressedDestination", method: "GET", requestUri: cmnP.encodePath`/v2/email/suppression/addresses/${params["EmailAddress"]}`, @@ -753,13 +722,13 @@ export default class SESV2 { } async listConfigurationSets( - {abortSignal, ...params}: RequestConfig & s.ListConfigurationSetsRequest = {}, + params: s.ListConfigurationSetsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListConfigurationSets", method: "GET", requestUri: "/v2/email/configuration-sets", @@ -774,13 +743,13 @@ export default class SESV2 { } async listContactLists( - {abortSignal, ...params}: RequestConfig & s.ListContactListsRequest = {}, + params: s.ListContactListsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListContactLists", method: "GET", requestUri: "/v2/email/contact-lists", @@ -795,7 +764,7 @@ export default class SESV2 { } async listContacts( - {abortSignal, ...params}: RequestConfig & s.ListContactsRequest, + params: s.ListContactsRequest, ): Promise { const query = new URLSearchParams; const body: jsonP.JSONObject = { @@ -804,7 +773,7 @@ export default class SESV2 { if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, body, + query, body, action: "ListContacts", method: "GET", requestUri: cmnP.encodePath`/v2/email/contact-lists/${params["ContactListName"]}/contacts`, @@ -819,13 +788,13 @@ export default class SESV2 { } async listCustomVerificationEmailTemplates( - {abortSignal, ...params}: RequestConfig & s.ListCustomVerificationEmailTemplatesRequest = {}, + params: s.ListCustomVerificationEmailTemplatesRequest = {}, ): Promise { const query = new URLSearchParams; if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListCustomVerificationEmailTemplates", method: "GET", requestUri: "/v2/email/custom-verification-email-templates", @@ -840,13 +809,13 @@ export default class SESV2 { } async listDedicatedIpPools( - {abortSignal, ...params}: RequestConfig & s.ListDedicatedIpPoolsRequest = {}, + params: s.ListDedicatedIpPoolsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListDedicatedIpPools", method: "GET", requestUri: "/v2/email/dedicated-ip-pools", @@ -861,13 +830,13 @@ export default class SESV2 { } async listDeliverabilityTestReports( - {abortSignal, ...params}: RequestConfig & s.ListDeliverabilityTestReportsRequest = {}, + params: s.ListDeliverabilityTestReportsRequest = {}, ): Promise { const query = new URLSearchParams; if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListDeliverabilityTestReports", method: "GET", requestUri: "/v2/email/deliverability-dashboard/test-reports", @@ -883,7 +852,7 @@ export default class SESV2 { } async listDomainDeliverabilityCampaigns( - {abortSignal, ...params}: RequestConfig & s.ListDomainDeliverabilityCampaignsRequest, + params: s.ListDomainDeliverabilityCampaignsRequest, ): Promise { const query = new URLSearchParams; query.set("StartDate", cmnP.serializeDate_iso8601(params["StartDate"]) ?? ""); @@ -891,7 +860,7 @@ export default class SESV2 { if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListDomainDeliverabilityCampaigns", method: "GET", requestUri: cmnP.encodePath`/v2/email/deliverability-dashboard/domains/${params["SubscribedDomain"]}/campaigns`, @@ -907,13 +876,13 @@ export default class SESV2 { } async listEmailIdentities( - {abortSignal, ...params}: RequestConfig & s.ListEmailIdentitiesRequest = {}, + params: s.ListEmailIdentitiesRequest = {}, ): Promise { const query = new URLSearchParams; if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListEmailIdentities", method: "GET", requestUri: "/v2/email/identities", @@ -928,13 +897,13 @@ export default class SESV2 { } async listEmailTemplates( - {abortSignal, ...params}: RequestConfig & s.ListEmailTemplatesRequest = {}, + params: s.ListEmailTemplatesRequest = {}, ): Promise { const query = new URLSearchParams; if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListEmailTemplates", method: "GET", requestUri: "/v2/email/templates", @@ -949,7 +918,7 @@ export default class SESV2 { } async listImportJobs( - {abortSignal, ...params}: RequestConfig & s.ListImportJobsRequest = {}, + params: s.ListImportJobsRequest = {}, ): Promise { const query = new URLSearchParams; const body: jsonP.JSONObject = { @@ -958,7 +927,7 @@ export default class SESV2 { if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, body, + query, body, action: "ListImportJobs", method: "GET", requestUri: "/v2/email/import-jobs", @@ -973,7 +942,7 @@ export default class SESV2 { } async listSuppressedDestinations( - {abortSignal, ...params}: RequestConfig & s.ListSuppressedDestinationsRequest = {}, + params: s.ListSuppressedDestinationsRequest = {}, ): Promise { const query = new URLSearchParams; for (const item of params["Reasons"] ?? []) { @@ -984,7 +953,7 @@ export default class SESV2 { if (params["NextToken"] != null) query.set("NextToken", params["NextToken"]?.toString() ?? ""); if (params["PageSize"] != null) query.set("PageSize", params["PageSize"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListSuppressedDestinations", method: "GET", requestUri: "/v2/email/suppression/addresses", @@ -999,12 +968,12 @@ export default class SESV2 { } async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceRequest, + params: s.ListTagsForResourceRequest, ): Promise { const query = new URLSearchParams; query.set("ResourceArn", params["ResourceArn"]?.toString() ?? ""); const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "ListTagsForResource", method: "GET", requestUri: "/v2/email/tags", @@ -1018,13 +987,13 @@ export default class SESV2 { } async putAccountDedicatedIpWarmupAttributes( - {abortSignal, ...params}: RequestConfig & s.PutAccountDedicatedIpWarmupAttributesRequest = {}, + params: s.PutAccountDedicatedIpWarmupAttributesRequest = {}, ): Promise { const body: jsonP.JSONObject = { AutoWarmupEnabled: params["AutoWarmupEnabled"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutAccountDedicatedIpWarmupAttributes", method: "PUT", requestUri: "/v2/email/account/dedicated-ips/warmup", @@ -1033,7 +1002,7 @@ export default class SESV2 { } async putAccountDetails( - {abortSignal, ...params}: RequestConfig & s.PutAccountDetailsRequest, + params: s.PutAccountDetailsRequest, ): Promise { const body: jsonP.JSONObject = { MailType: params["MailType"], @@ -1044,7 +1013,7 @@ export default class SESV2 { ProductionAccessEnabled: params["ProductionAccessEnabled"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutAccountDetails", requestUri: "/v2/email/account/details", }); @@ -1052,13 +1021,13 @@ export default class SESV2 { } async putAccountSendingAttributes( - {abortSignal, ...params}: RequestConfig & s.PutAccountSendingAttributesRequest = {}, + params: s.PutAccountSendingAttributesRequest = {}, ): Promise { const body: jsonP.JSONObject = { SendingEnabled: params["SendingEnabled"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutAccountSendingAttributes", method: "PUT", requestUri: "/v2/email/account/sending", @@ -1067,13 +1036,13 @@ export default class SESV2 { } async putAccountSuppressionAttributes( - {abortSignal, ...params}: RequestConfig & s.PutAccountSuppressionAttributesRequest = {}, + params: s.PutAccountSuppressionAttributesRequest = {}, ): Promise { const body: jsonP.JSONObject = { SuppressedReasons: params["SuppressedReasons"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutAccountSuppressionAttributes", method: "PUT", requestUri: "/v2/email/account/suppression", @@ -1082,14 +1051,14 @@ export default class SESV2 { } async putConfigurationSetDeliveryOptions( - {abortSignal, ...params}: RequestConfig & s.PutConfigurationSetDeliveryOptionsRequest, + params: s.PutConfigurationSetDeliveryOptionsRequest, ): Promise { const body: jsonP.JSONObject = { TlsPolicy: params["TlsPolicy"], SendingPoolName: params["SendingPoolName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutConfigurationSetDeliveryOptions", method: "PUT", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}/delivery-options`, @@ -1098,13 +1067,13 @@ export default class SESV2 { } async putConfigurationSetReputationOptions( - {abortSignal, ...params}: RequestConfig & s.PutConfigurationSetReputationOptionsRequest, + params: s.PutConfigurationSetReputationOptionsRequest, ): Promise { const body: jsonP.JSONObject = { ReputationMetricsEnabled: params["ReputationMetricsEnabled"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutConfigurationSetReputationOptions", method: "PUT", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}/reputation-options`, @@ -1113,13 +1082,13 @@ export default class SESV2 { } async putConfigurationSetSendingOptions( - {abortSignal, ...params}: RequestConfig & s.PutConfigurationSetSendingOptionsRequest, + params: s.PutConfigurationSetSendingOptionsRequest, ): Promise { const body: jsonP.JSONObject = { SendingEnabled: params["SendingEnabled"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutConfigurationSetSendingOptions", method: "PUT", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}/sending`, @@ -1128,13 +1097,13 @@ export default class SESV2 { } async putConfigurationSetSuppressionOptions( - {abortSignal, ...params}: RequestConfig & s.PutConfigurationSetSuppressionOptionsRequest, + params: s.PutConfigurationSetSuppressionOptionsRequest, ): Promise { const body: jsonP.JSONObject = { SuppressedReasons: params["SuppressedReasons"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutConfigurationSetSuppressionOptions", method: "PUT", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}/suppression-options`, @@ -1143,13 +1112,13 @@ export default class SESV2 { } async putConfigurationSetTrackingOptions( - {abortSignal, ...params}: RequestConfig & s.PutConfigurationSetTrackingOptionsRequest, + params: s.PutConfigurationSetTrackingOptionsRequest, ): Promise { const body: jsonP.JSONObject = { CustomRedirectDomain: params["CustomRedirectDomain"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutConfigurationSetTrackingOptions", method: "PUT", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}/tracking-options`, @@ -1158,13 +1127,13 @@ export default class SESV2 { } async putDedicatedIpInPool( - {abortSignal, ...params}: RequestConfig & s.PutDedicatedIpInPoolRequest, + params: s.PutDedicatedIpInPoolRequest, ): Promise { const body: jsonP.JSONObject = { DestinationPoolName: params["DestinationPoolName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutDedicatedIpInPool", method: "PUT", requestUri: cmnP.encodePath`/v2/email/dedicated-ips/${params["Ip"]}/pool`, @@ -1173,13 +1142,13 @@ export default class SESV2 { } async putDedicatedIpWarmupAttributes( - {abortSignal, ...params}: RequestConfig & s.PutDedicatedIpWarmupAttributesRequest, + params: s.PutDedicatedIpWarmupAttributesRequest, ): Promise { const body: jsonP.JSONObject = { WarmupPercentage: params["WarmupPercentage"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutDedicatedIpWarmupAttributes", method: "PUT", requestUri: cmnP.encodePath`/v2/email/dedicated-ips/${params["Ip"]}/warmup`, @@ -1188,14 +1157,14 @@ export default class SESV2 { } async putDeliverabilityDashboardOption( - {abortSignal, ...params}: RequestConfig & s.PutDeliverabilityDashboardOptionRequest, + params: s.PutDeliverabilityDashboardOptionRequest, ): Promise { const body: jsonP.JSONObject = { DashboardEnabled: params["DashboardEnabled"], SubscribedDomains: params["SubscribedDomains"]?.map(x => fromDomainDeliverabilityTrackingOption(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutDeliverabilityDashboardOption", method: "PUT", requestUri: "/v2/email/deliverability-dashboard", @@ -1204,13 +1173,13 @@ export default class SESV2 { } async putEmailIdentityConfigurationSetAttributes( - {abortSignal, ...params}: RequestConfig & s.PutEmailIdentityConfigurationSetAttributesRequest, + params: s.PutEmailIdentityConfigurationSetAttributesRequest, ): Promise { const body: jsonP.JSONObject = { ConfigurationSetName: params["ConfigurationSetName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutEmailIdentityConfigurationSetAttributes", method: "PUT", requestUri: cmnP.encodePath`/v2/email/identities/${params["EmailIdentity"]}/configuration-set`, @@ -1219,13 +1188,13 @@ export default class SESV2 { } async putEmailIdentityDkimAttributes( - {abortSignal, ...params}: RequestConfig & s.PutEmailIdentityDkimAttributesRequest, + params: s.PutEmailIdentityDkimAttributesRequest, ): Promise { const body: jsonP.JSONObject = { SigningEnabled: params["SigningEnabled"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutEmailIdentityDkimAttributes", method: "PUT", requestUri: cmnP.encodePath`/v2/email/identities/${params["EmailIdentity"]}/dkim`, @@ -1234,14 +1203,14 @@ export default class SESV2 { } async putEmailIdentityDkimSigningAttributes( - {abortSignal, ...params}: RequestConfig & s.PutEmailIdentityDkimSigningAttributesRequest, + params: s.PutEmailIdentityDkimSigningAttributesRequest, ): Promise { const body: jsonP.JSONObject = { SigningAttributesOrigin: params["SigningAttributesOrigin"], SigningAttributes: fromDkimSigningAttributes(params["SigningAttributes"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutEmailIdentityDkimSigningAttributes", method: "PUT", requestUri: cmnP.encodePath`/v1/email/identities/${params["EmailIdentity"]}/dkim/signing`, @@ -1256,13 +1225,13 @@ export default class SESV2 { } async putEmailIdentityFeedbackAttributes( - {abortSignal, ...params}: RequestConfig & s.PutEmailIdentityFeedbackAttributesRequest, + params: s.PutEmailIdentityFeedbackAttributesRequest, ): Promise { const body: jsonP.JSONObject = { EmailForwardingEnabled: params["EmailForwardingEnabled"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutEmailIdentityFeedbackAttributes", method: "PUT", requestUri: cmnP.encodePath`/v2/email/identities/${params["EmailIdentity"]}/feedback`, @@ -1271,14 +1240,14 @@ export default class SESV2 { } async putEmailIdentityMailFromAttributes( - {abortSignal, ...params}: RequestConfig & s.PutEmailIdentityMailFromAttributesRequest, + params: s.PutEmailIdentityMailFromAttributesRequest, ): Promise { const body: jsonP.JSONObject = { MailFromDomain: params["MailFromDomain"], BehaviorOnMxFailure: params["BehaviorOnMxFailure"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutEmailIdentityMailFromAttributes", method: "PUT", requestUri: cmnP.encodePath`/v2/email/identities/${params["EmailIdentity"]}/mail-from`, @@ -1287,14 +1256,14 @@ export default class SESV2 { } async putSuppressedDestination( - {abortSignal, ...params}: RequestConfig & s.PutSuppressedDestinationRequest, + params: s.PutSuppressedDestinationRequest, ): Promise { const body: jsonP.JSONObject = { EmailAddress: params["EmailAddress"], Reason: params["Reason"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutSuppressedDestination", method: "PUT", requestUri: "/v2/email/suppression/addresses", @@ -1303,7 +1272,7 @@ export default class SESV2 { } async sendBulkEmail( - {abortSignal, ...params}: RequestConfig & s.SendBulkEmailRequest, + params: s.SendBulkEmailRequest, ): Promise { const body: jsonP.JSONObject = { FromEmailAddress: params["FromEmailAddress"], @@ -1317,7 +1286,7 @@ export default class SESV2 { ConfigurationSetName: params["ConfigurationSetName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendBulkEmail", requestUri: "/v2/email/outbound-bulk-emails", }); @@ -1330,7 +1299,7 @@ export default class SESV2 { } async sendCustomVerificationEmail( - {abortSignal, ...params}: RequestConfig & s.SendCustomVerificationEmailRequest, + params: s.SendCustomVerificationEmailRequest, ): Promise { const body: jsonP.JSONObject = { EmailAddress: params["EmailAddress"], @@ -1338,7 +1307,7 @@ export default class SESV2 { ConfigurationSetName: params["ConfigurationSetName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendCustomVerificationEmail", requestUri: "/v2/email/outbound-custom-verification-emails", }); @@ -1351,7 +1320,7 @@ export default class SESV2 { } async sendEmail( - {abortSignal, ...params}: RequestConfig & s.SendEmailRequest, + params: s.SendEmailRequest, ): Promise { const body: jsonP.JSONObject = { FromEmailAddress: params["FromEmailAddress"], @@ -1366,7 +1335,7 @@ export default class SESV2 { ListManagementOptions: fromListManagementOptions(params["ListManagementOptions"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendEmail", requestUri: "/v2/email/outbound-emails", }); @@ -1379,14 +1348,14 @@ export default class SESV2 { } async tagResource( - {abortSignal, ...params}: RequestConfig & s.TagResourceRequest, + params: s.TagResourceRequest, ): Promise { const body: jsonP.JSONObject = { ResourceArn: params["ResourceArn"], Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagResource", requestUri: "/v2/email/tags", }); @@ -1394,13 +1363,13 @@ export default class SESV2 { } async testRenderEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.TestRenderEmailTemplateRequest, + params: s.TestRenderEmailTemplateRequest, ): Promise { const body: jsonP.JSONObject = { TemplateData: params["TemplateData"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TestRenderEmailTemplate", requestUri: cmnP.encodePath`/v2/email/templates/${params["TemplateName"]}/render`, }); @@ -1413,7 +1382,7 @@ export default class SESV2 { } async untagResource( - {abortSignal, ...params}: RequestConfig & s.UntagResourceRequest, + params: s.UntagResourceRequest, ): Promise { const query = new URLSearchParams; query.set("ResourceArn", params["ResourceArn"]?.toString() ?? ""); @@ -1421,7 +1390,7 @@ export default class SESV2 { query.append("TagKeys", item?.toString() ?? ""); } const resp = await this.#client.performRequest({ - abortSignal, query, + query, action: "UntagResource", method: "DELETE", requestUri: "/v2/email/tags", @@ -1430,13 +1399,13 @@ export default class SESV2 { } async updateConfigurationSetEventDestination( - {abortSignal, ...params}: RequestConfig & s.UpdateConfigurationSetEventDestinationRequest, + params: s.UpdateConfigurationSetEventDestinationRequest, ): Promise { const body: jsonP.JSONObject = { EventDestination: fromEventDestinationDefinition(params["EventDestination"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateConfigurationSetEventDestination", method: "PUT", requestUri: cmnP.encodePath`/v2/email/configuration-sets/${params["ConfigurationSetName"]}/event-destinations/${params["EventDestinationName"]}`, @@ -1445,7 +1414,7 @@ export default class SESV2 { } async updateContact( - {abortSignal, ...params}: RequestConfig & s.UpdateContactRequest, + params: s.UpdateContactRequest, ): Promise { const body: jsonP.JSONObject = { TopicPreferences: params["TopicPreferences"]?.map(x => fromTopicPreference(x)), @@ -1453,7 +1422,7 @@ export default class SESV2 { AttributesData: params["AttributesData"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateContact", method: "PUT", requestUri: cmnP.encodePath`/v2/email/contact-lists/${params["ContactListName"]}/contacts/${params["EmailAddress"]}`, @@ -1462,14 +1431,14 @@ export default class SESV2 { } async updateContactList( - {abortSignal, ...params}: RequestConfig & s.UpdateContactListRequest, + params: s.UpdateContactListRequest, ): Promise { const body: jsonP.JSONObject = { Topics: params["Topics"]?.map(x => fromTopic(x)), Description: params["Description"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateContactList", method: "PUT", requestUri: cmnP.encodePath`/v2/email/contact-lists/${params["ContactListName"]}`, @@ -1478,7 +1447,7 @@ export default class SESV2 { } async updateCustomVerificationEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.UpdateCustomVerificationEmailTemplateRequest, + params: s.UpdateCustomVerificationEmailTemplateRequest, ): Promise { const body: jsonP.JSONObject = { FromEmailAddress: params["FromEmailAddress"], @@ -1488,7 +1457,7 @@ export default class SESV2 { FailureRedirectionURL: params["FailureRedirectionURL"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateCustomVerificationEmailTemplate", method: "PUT", requestUri: cmnP.encodePath`/v2/email/custom-verification-email-templates/${params["TemplateName"]}`, @@ -1497,13 +1466,13 @@ export default class SESV2 { } async updateEmailIdentityPolicy( - {abortSignal, ...params}: RequestConfig & s.UpdateEmailIdentityPolicyRequest, + params: s.UpdateEmailIdentityPolicyRequest, ): Promise { const body: jsonP.JSONObject = { Policy: params["Policy"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateEmailIdentityPolicy", method: "PUT", requestUri: cmnP.encodePath`/v2/email/identities/${params["EmailIdentity"]}/policies/${params["PolicyName"]}`, @@ -1512,13 +1481,13 @@ export default class SESV2 { } async updateEmailTemplate( - {abortSignal, ...params}: RequestConfig & s.UpdateEmailTemplateRequest, + params: s.UpdateEmailTemplateRequest, ): Promise { const body: jsonP.JSONObject = { TemplateContent: fromEmailTemplateContent(params["TemplateContent"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateEmailTemplate", method: "PUT", requestUri: cmnP.encodePath`/v2/email/templates/${params["TemplateName"]}`, diff --git a/lib/services/sns/mod.ts b/lib/services/sns/mod.ts index 5f484e39..5c9e7ad8 100644 --- a/lib/services/sns/mod.ts +++ b/lib/services/sns/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon Simple Notification Service -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"; @@ -15,7 +11,7 @@ function serializeBlob(input: string | Uint8Array | null | undefined) { return Base64.encode(input); } -export default class SNS { +export class SNS { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(SNS.ApiMetadata); @@ -34,7 +30,7 @@ export default class SNS { }; async addPermission( - {abortSignal, ...params}: RequestConfig & s.AddPermissionInput, + params: s.AddPermissionInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -43,20 +39,20 @@ export default class SNS { if (params["AWSAccountId"]) qsP.appendList(body, prefix+"AWSAccountId", params["AWSAccountId"], {"entryPrefix":".member."}) if (params["ActionName"]) qsP.appendList(body, prefix+"ActionName", params["ActionName"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddPermission", }); await resp.arrayBuffer(); // consume body without use } async checkIfPhoneNumberIsOptedOut( - {abortSignal, ...params}: RequestConfig & s.CheckIfPhoneNumberIsOptedOutInput, + params: s.CheckIfPhoneNumberIsOptedOutInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"phoneNumber", (params["phoneNumber"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CheckIfPhoneNumberIsOptedOut", }); const xml = xmlP.readXmlResult(await resp.text(), "CheckIfPhoneNumberIsOptedOutResult"); @@ -66,7 +62,7 @@ export default class SNS { } async confirmSubscription( - {abortSignal, ...params}: RequestConfig & s.ConfirmSubscriptionInput, + params: s.ConfirmSubscriptionInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -74,7 +70,7 @@ export default class SNS { body.append(prefix+"Token", (params["Token"] ?? '').toString()); if ("AuthenticateOnUnsubscribe" in params) body.append(prefix+"AuthenticateOnUnsubscribe", (params["AuthenticateOnUnsubscribe"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ConfirmSubscription", }); const xml = xmlP.readXmlResult(await resp.text(), "ConfirmSubscriptionResult"); @@ -84,7 +80,7 @@ export default class SNS { } async createPlatformApplication( - {abortSignal, ...params}: RequestConfig & s.CreatePlatformApplicationInput, + params: s.CreatePlatformApplicationInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -92,7 +88,7 @@ export default class SNS { body.append(prefix+"Platform", (params["Platform"] ?? '').toString()); if (params["Attributes"]) qsP.appendMap(body, prefix+"Attributes", params["Attributes"], {"entryPrefix":".entry."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreatePlatformApplication", }); const xml = xmlP.readXmlResult(await resp.text(), "CreatePlatformApplicationResult"); @@ -102,7 +98,7 @@ export default class SNS { } async createPlatformEndpoint( - {abortSignal, ...params}: RequestConfig & s.CreatePlatformEndpointInput, + params: s.CreatePlatformEndpointInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -111,7 +107,7 @@ export default class SNS { if ("CustomUserData" in params) body.append(prefix+"CustomUserData", (params["CustomUserData"] ?? '').toString()); if (params["Attributes"]) qsP.appendMap(body, prefix+"Attributes", params["Attributes"], {"entryPrefix":".entry."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreatePlatformEndpoint", }); const xml = xmlP.readXmlResult(await resp.text(), "CreatePlatformEndpointResult"); @@ -121,7 +117,7 @@ export default class SNS { } async createTopic( - {abortSignal, ...params}: RequestConfig & s.CreateTopicInput, + params: s.CreateTopicInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -129,7 +125,7 @@ export default class SNS { if (params["Attributes"]) qsP.appendMap(body, prefix+"Attributes", params["Attributes"], {"entryPrefix":".entry."}) if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateTopic", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateTopicResult"); @@ -139,52 +135,52 @@ export default class SNS { } async deleteEndpoint( - {abortSignal, ...params}: RequestConfig & s.DeleteEndpointInput, + params: s.DeleteEndpointInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"EndpointArn", (params["EndpointArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteEndpoint", }); await resp.arrayBuffer(); // consume body without use } async deletePlatformApplication( - {abortSignal, ...params}: RequestConfig & s.DeletePlatformApplicationInput, + params: s.DeletePlatformApplicationInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PlatformApplicationArn", (params["PlatformApplicationArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeletePlatformApplication", }); await resp.arrayBuffer(); // consume body without use } async deleteTopic( - {abortSignal, ...params}: RequestConfig & s.DeleteTopicInput, + params: s.DeleteTopicInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TopicArn", (params["TopicArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteTopic", }); await resp.arrayBuffer(); // consume body without use } async getEndpointAttributes( - {abortSignal, ...params}: RequestConfig & s.GetEndpointAttributesInput, + params: s.GetEndpointAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"EndpointArn", (params["EndpointArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetEndpointAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "GetEndpointAttributesResult"); @@ -194,13 +190,13 @@ export default class SNS { } async getPlatformApplicationAttributes( - {abortSignal, ...params}: RequestConfig & s.GetPlatformApplicationAttributesInput, + params: s.GetPlatformApplicationAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PlatformApplicationArn", (params["PlatformApplicationArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetPlatformApplicationAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "GetPlatformApplicationAttributesResult"); @@ -210,13 +206,13 @@ export default class SNS { } async getSMSAttributes( - {abortSignal, ...params}: RequestConfig & s.GetSMSAttributesInput = {}, + params: s.GetSMSAttributesInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["attributes"]) qsP.appendList(body, prefix+"attributes", params["attributes"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetSMSAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "GetSMSAttributesResult"); @@ -226,13 +222,13 @@ export default class SNS { } async getSubscriptionAttributes( - {abortSignal, ...params}: RequestConfig & s.GetSubscriptionAttributesInput, + params: s.GetSubscriptionAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SubscriptionArn", (params["SubscriptionArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetSubscriptionAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "GetSubscriptionAttributesResult"); @@ -242,13 +238,13 @@ export default class SNS { } async getTopicAttributes( - {abortSignal, ...params}: RequestConfig & s.GetTopicAttributesInput, + params: s.GetTopicAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TopicArn", (params["TopicArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetTopicAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "GetTopicAttributesResult"); @@ -258,14 +254,14 @@ export default class SNS { } async listEndpointsByPlatformApplication( - {abortSignal, ...params}: RequestConfig & s.ListEndpointsByPlatformApplicationInput, + params: s.ListEndpointsByPlatformApplicationInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PlatformApplicationArn", (params["PlatformApplicationArn"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListEndpointsByPlatformApplication", }); const xml = xmlP.readXmlResult(await resp.text(), "ListEndpointsByPlatformApplicationResult"); @@ -278,13 +274,13 @@ export default class SNS { } async listPhoneNumbersOptedOut( - {abortSignal, ...params}: RequestConfig & s.ListPhoneNumbersOptedOutInput = {}, + params: s.ListPhoneNumbersOptedOutInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("nextToken" in params) body.append(prefix+"nextToken", (params["nextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListPhoneNumbersOptedOut", }); const xml = xmlP.readXmlResult(await resp.text(), "ListPhoneNumbersOptedOutResult"); @@ -297,13 +293,13 @@ export default class SNS { } async listPlatformApplications( - {abortSignal, ...params}: RequestConfig & s.ListPlatformApplicationsInput = {}, + params: s.ListPlatformApplicationsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListPlatformApplications", }); const xml = xmlP.readXmlResult(await resp.text(), "ListPlatformApplicationsResult"); @@ -316,13 +312,13 @@ export default class SNS { } async listSubscriptions( - {abortSignal, ...params}: RequestConfig & s.ListSubscriptionsInput = {}, + params: s.ListSubscriptionsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListSubscriptions", }); const xml = xmlP.readXmlResult(await resp.text(), "ListSubscriptionsResult"); @@ -335,14 +331,14 @@ export default class SNS { } async listSubscriptionsByTopic( - {abortSignal, ...params}: RequestConfig & s.ListSubscriptionsByTopicInput, + params: s.ListSubscriptionsByTopicInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TopicArn", (params["TopicArn"] ?? '').toString()); if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListSubscriptionsByTopic", }); const xml = xmlP.readXmlResult(await resp.text(), "ListSubscriptionsByTopicResult"); @@ -355,13 +351,13 @@ export default class SNS { } async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceRequest, + params: s.ListTagsForResourceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ResourceArn", (params["ResourceArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListTagsForResource", }); const xml = xmlP.readXmlResult(await resp.text(), "ListTagsForResourceResult"); @@ -371,13 +367,13 @@ export default class SNS { } async listTopics( - {abortSignal, ...params}: RequestConfig & s.ListTopicsInput = {}, + params: s.ListTopicsInput = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListTopics", }); const xml = xmlP.readXmlResult(await resp.text(), "ListTopicsResult"); @@ -390,20 +386,20 @@ export default class SNS { } async optInPhoneNumber( - {abortSignal, ...params}: RequestConfig & s.OptInPhoneNumberInput, + params: s.OptInPhoneNumberInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"phoneNumber", (params["phoneNumber"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "OptInPhoneNumber", }); await resp.arrayBuffer(); // consume body without use } async publish( - {abortSignal, ...params}: RequestConfig & s.PublishInput, + params: s.PublishInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -417,7 +413,7 @@ export default class SNS { if ("MessageDeduplicationId" in params) body.append(prefix+"MessageDeduplicationId", (params["MessageDeduplicationId"] ?? '').toString()); if ("MessageGroupId" in params) body.append(prefix+"MessageGroupId", (params["MessageGroupId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "Publish", }); const xml = xmlP.readXmlResult(await resp.text(), "PublishResult"); @@ -427,62 +423,62 @@ export default class SNS { } async removePermission( - {abortSignal, ...params}: RequestConfig & s.RemovePermissionInput, + params: s.RemovePermissionInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"TopicArn", (params["TopicArn"] ?? '').toString()); body.append(prefix+"Label", (params["Label"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemovePermission", }); await resp.arrayBuffer(); // consume body without use } async setEndpointAttributes( - {abortSignal, ...params}: RequestConfig & s.SetEndpointAttributesInput, + params: s.SetEndpointAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"EndpointArn", (params["EndpointArn"] ?? '').toString()); if (params["Attributes"]) qsP.appendMap(body, prefix+"Attributes", params["Attributes"], {"entryPrefix":".entry."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetEndpointAttributes", }); await resp.arrayBuffer(); // consume body without use } async setPlatformApplicationAttributes( - {abortSignal, ...params}: RequestConfig & s.SetPlatformApplicationAttributesInput, + params: s.SetPlatformApplicationAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"PlatformApplicationArn", (params["PlatformApplicationArn"] ?? '').toString()); if (params["Attributes"]) qsP.appendMap(body, prefix+"Attributes", params["Attributes"], {"entryPrefix":".entry."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetPlatformApplicationAttributes", }); await resp.arrayBuffer(); // consume body without use } async setSMSAttributes( - {abortSignal, ...params}: RequestConfig & s.SetSMSAttributesInput, + params: s.SetSMSAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; if (params["attributes"]) qsP.appendMap(body, prefix+"attributes", params["attributes"], {"entryPrefix":".entry."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetSMSAttributes", }); await resp.arrayBuffer(); // consume body without use } async setSubscriptionAttributes( - {abortSignal, ...params}: RequestConfig & s.SetSubscriptionAttributesInput, + params: s.SetSubscriptionAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -490,14 +486,14 @@ export default class SNS { body.append(prefix+"AttributeName", (params["AttributeName"] ?? '').toString()); if ("AttributeValue" in params) body.append(prefix+"AttributeValue", (params["AttributeValue"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetSubscriptionAttributes", }); await resp.arrayBuffer(); // consume body without use } async setTopicAttributes( - {abortSignal, ...params}: RequestConfig & s.SetTopicAttributesInput, + params: s.SetTopicAttributesInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -505,14 +501,14 @@ export default class SNS { body.append(prefix+"AttributeName", (params["AttributeName"] ?? '').toString()); if ("AttributeValue" in params) body.append(prefix+"AttributeValue", (params["AttributeValue"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetTopicAttributes", }); await resp.arrayBuffer(); // consume body without use } async subscribe( - {abortSignal, ...params}: RequestConfig & s.SubscribeInput, + params: s.SubscribeInput, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -522,7 +518,7 @@ export default class SNS { if (params["Attributes"]) qsP.appendMap(body, prefix+"Attributes", params["Attributes"], {"entryPrefix":".entry."}) if ("ReturnSubscriptionArn" in params) body.append(prefix+"ReturnSubscriptionArn", (params["ReturnSubscriptionArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "Subscribe", }); const xml = xmlP.readXmlResult(await resp.text(), "SubscribeResult"); @@ -532,41 +528,41 @@ export default class SNS { } async tagResource( - {abortSignal, ...params}: RequestConfig & s.TagResourceRequest, + params: s.TagResourceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ResourceArn", (params["ResourceArn"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagResource", }); await resp.arrayBuffer(); // consume body without use } async unsubscribe( - {abortSignal, ...params}: RequestConfig & s.UnsubscribeInput, + params: s.UnsubscribeInput, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"SubscriptionArn", (params["SubscriptionArn"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "Unsubscribe", }); await resp.arrayBuffer(); // consume body without use } async untagResource( - {abortSignal, ...params}: RequestConfig & s.UntagResourceRequest, + params: s.UntagResourceRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"ResourceArn", (params["ResourceArn"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagResource", }); await resp.arrayBuffer(); // consume body without use diff --git a/lib/services/sqs/mod.ts b/lib/services/sqs/mod.ts index 9eae2a78..3b5c4f92 100644 --- a/lib/services/sqs/mod.ts +++ b/lib/services/sqs/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon Simple Queue Service -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"; @@ -19,7 +15,7 @@ function parseBlob(input: string | null | undefined) { return Base64.decode(input); } -export default class SQS { +export class SQS { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(SQS.ApiMetadata); @@ -38,7 +34,7 @@ export default class SQS { }; async addPermission( - {abortSignal, ...params}: RequestConfig & s.AddPermissionRequest, + params: s.AddPermissionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -47,14 +43,14 @@ export default class SQS { if (params["AWSAccountIds"]) qsP.appendList(body, prefix+"AWSAccountId", params["AWSAccountIds"], {"entryPrefix":"."}) if (params["Actions"]) qsP.appendList(body, prefix+"ActionName", params["Actions"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddPermission", }); await resp.arrayBuffer(); // consume body without use } async changeMessageVisibility( - {abortSignal, ...params}: RequestConfig & s.ChangeMessageVisibilityRequest, + params: s.ChangeMessageVisibilityRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -62,21 +58,21 @@ export default class SQS { body.append(prefix+"ReceiptHandle", (params["ReceiptHandle"] ?? '').toString()); body.append(prefix+"VisibilityTimeout", (params["VisibilityTimeout"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ChangeMessageVisibility", }); await resp.arrayBuffer(); // consume body without use } async changeMessageVisibilityBatch( - {abortSignal, ...params}: RequestConfig & s.ChangeMessageVisibilityBatchRequest, + params: s.ChangeMessageVisibilityBatchRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); if (params["Entries"]) qsP.appendList(body, prefix+"ChangeMessageVisibilityBatchRequestEntry", params["Entries"], {"appender":ChangeMessageVisibilityBatchRequestEntry_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ChangeMessageVisibilityBatch", }); const xml = xmlP.readXmlResult(await resp.text(), "ChangeMessageVisibilityBatchResult"); @@ -87,7 +83,7 @@ export default class SQS { } async createQueue( - {abortSignal, ...params}: RequestConfig & s.CreateQueueRequest, + params: s.CreateQueueRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -95,7 +91,7 @@ export default class SQS { if (params["Attributes"]) qsP.appendMap(body, prefix+"Attribute", params["Attributes"], {"keyName":".Name","valName":".Value","entryPrefix":"."}) if (params["tags"]) qsP.appendMap(body, prefix+"Tag", params["tags"], {"keyName":".Key","valName":".Value","entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateQueue", }); const xml = xmlP.readXmlResult(await resp.text(), "CreateQueueResult"); @@ -105,28 +101,28 @@ export default class SQS { } async deleteMessage( - {abortSignal, ...params}: RequestConfig & s.DeleteMessageRequest, + params: s.DeleteMessageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); body.append(prefix+"ReceiptHandle", (params["ReceiptHandle"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteMessage", }); await resp.arrayBuffer(); // consume body without use } async deleteMessageBatch( - {abortSignal, ...params}: RequestConfig & s.DeleteMessageBatchRequest, + params: s.DeleteMessageBatchRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); if (params["Entries"]) qsP.appendList(body, prefix+"DeleteMessageBatchRequestEntry", params["Entries"], {"appender":DeleteMessageBatchRequestEntry_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteMessageBatch", }); const xml = xmlP.readXmlResult(await resp.text(), "DeleteMessageBatchResult"); @@ -137,27 +133,27 @@ export default class SQS { } async deleteQueue( - {abortSignal, ...params}: RequestConfig & s.DeleteQueueRequest, + params: s.DeleteQueueRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteQueue", }); await resp.arrayBuffer(); // consume body without use } async getQueueAttributes( - {abortSignal, ...params}: RequestConfig & s.GetQueueAttributesRequest, + params: s.GetQueueAttributesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); if (params["AttributeNames"]) qsP.appendList(body, prefix+"AttributeName", params["AttributeNames"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetQueueAttributes", }); const xml = xmlP.readXmlResult(await resp.text(), "GetQueueAttributesResult"); @@ -167,14 +163,14 @@ export default class SQS { } async getQueueUrl( - {abortSignal, ...params}: RequestConfig & s.GetQueueUrlRequest, + params: s.GetQueueUrlRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueName", (params["QueueName"] ?? '').toString()); if ("QueueOwnerAWSAccountId" in params) body.append(prefix+"QueueOwnerAWSAccountId", (params["QueueOwnerAWSAccountId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetQueueUrl", }); const xml = xmlP.readXmlResult(await resp.text(), "GetQueueUrlResult"); @@ -184,7 +180,7 @@ export default class SQS { } async listDeadLetterSourceQueues( - {abortSignal, ...params}: RequestConfig & s.ListDeadLetterSourceQueuesRequest, + params: s.ListDeadLetterSourceQueuesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -192,7 +188,7 @@ export default class SQS { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListDeadLetterSourceQueues", }); const xml = xmlP.readXmlResult(await resp.text(), "ListDeadLetterSourceQueuesResult"); @@ -205,13 +201,13 @@ export default class SQS { } async listQueueTags( - {abortSignal, ...params}: RequestConfig & s.ListQueueTagsRequest, + params: s.ListQueueTagsRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListQueueTags", }); const xml = xmlP.readXmlResult(await resp.text(), "ListQueueTagsResult"); @@ -221,7 +217,7 @@ export default class SQS { } async listQueues( - {abortSignal, ...params}: RequestConfig & s.ListQueuesRequest = {}, + params: s.ListQueuesRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -229,7 +225,7 @@ export default class SQS { if ("NextToken" in params) body.append(prefix+"NextToken", (params["NextToken"] ?? '').toString()); if ("MaxResults" in params) body.append(prefix+"MaxResults", (params["MaxResults"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListQueues", }); const xml = xmlP.readXmlResult(await resp.text(), "ListQueuesResult"); @@ -242,20 +238,20 @@ export default class SQS { } async purgeQueue( - {abortSignal, ...params}: RequestConfig & s.PurgeQueueRequest, + params: s.PurgeQueueRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PurgeQueue", }); await resp.arrayBuffer(); // consume body without use } async receiveMessage( - {abortSignal, ...params}: RequestConfig & s.ReceiveMessageRequest, + params: s.ReceiveMessageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -267,7 +263,7 @@ export default class SQS { if ("WaitTimeSeconds" in params) body.append(prefix+"WaitTimeSeconds", (params["WaitTimeSeconds"] ?? '').toString()); if ("ReceiveRequestAttemptId" in params) body.append(prefix+"ReceiveRequestAttemptId", (params["ReceiveRequestAttemptId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ReceiveMessage", }); const xml = xmlP.readXmlResult(await resp.text(), "ReceiveMessageResult"); @@ -277,21 +273,21 @@ export default class SQS { } async removePermission( - {abortSignal, ...params}: RequestConfig & s.RemovePermissionRequest, + params: s.RemovePermissionRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); body.append(prefix+"Label", (params["Label"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemovePermission", }); await resp.arrayBuffer(); // consume body without use } async sendMessage( - {abortSignal, ...params}: RequestConfig & s.SendMessageRequest, + params: s.SendMessageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -303,7 +299,7 @@ export default class SQS { if ("MessageDeduplicationId" in params) body.append(prefix+"MessageDeduplicationId", (params["MessageDeduplicationId"] ?? '').toString()); if ("MessageGroupId" in params) body.append(prefix+"MessageGroupId", (params["MessageGroupId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendMessage", }); const xml = xmlP.readXmlResult(await resp.text(), "SendMessageResult"); @@ -313,14 +309,14 @@ export default class SQS { } async sendMessageBatch( - {abortSignal, ...params}: RequestConfig & s.SendMessageBatchRequest, + params: s.SendMessageBatchRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); if (params["Entries"]) qsP.appendList(body, prefix+"SendMessageBatchRequestEntry", params["Entries"], {"appender":SendMessageBatchRequestEntry_Serialize,"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendMessageBatch", }); const xml = xmlP.readXmlResult(await resp.text(), "SendMessageBatchResult"); @@ -331,42 +327,42 @@ export default class SQS { } async setQueueAttributes( - {abortSignal, ...params}: RequestConfig & s.SetQueueAttributesRequest, + params: s.SetQueueAttributesRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); if (params["Attributes"]) qsP.appendMap(body, prefix+"Attribute", params["Attributes"], {"keyName":".Name","valName":".Value","entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SetQueueAttributes", }); await resp.arrayBuffer(); // consume body without use } async tagQueue( - {abortSignal, ...params}: RequestConfig & s.TagQueueRequest, + params: s.TagQueueRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); if (params["Tags"]) qsP.appendMap(body, prefix+"Tag", params["Tags"], {"keyName":".Key","valName":".Value","entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TagQueue", }); await resp.arrayBuffer(); // consume body without use } async untagQueue( - {abortSignal, ...params}: RequestConfig & s.UntagQueueRequest, + params: s.UntagQueueRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"QueueUrl", (params["QueueUrl"] ?? '').toString()); if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKey", params["TagKeys"], {"entryPrefix":"."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UntagQueue", }); await resp.arrayBuffer(); // consume body without use diff --git a/lib/services/ssm/mod.ts b/lib/services/ssm/mod.ts index c239e99c..bd18f39e 100644 --- a/lib/services/ssm/mod.ts +++ b/lib/services/ssm/mod.ts @@ -1,9 +1,5 @@ // Autogenerated API client for: Amazon Simple Systems Manager (SSM) -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"; @@ -19,7 +15,7 @@ function serializeBlob(input: string | Uint8Array | null | undefined) { return Base64.encode(input); } -export default class SSM { +export class SSM { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(SSM.ApiMetadata); @@ -39,7 +35,7 @@ export default class SSM { }; async addTagsToResource( - {abortSignal, ...params}: RequestConfig & s.AddTagsToResourceRequest, + params: s.AddTagsToResourceRequest, ): Promise { const body: jsonP.JSONObject = { ResourceType: params["ResourceType"], @@ -47,34 +43,34 @@ export default class SSM { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AddTagsToResource", }); await resp.arrayBuffer(); // consume body without use } async cancelCommand( - {abortSignal, ...params}: RequestConfig & s.CancelCommandRequest, + params: s.CancelCommandRequest, ): Promise { const body: jsonP.JSONObject = { CommandId: params["CommandId"], InstanceIds: params["InstanceIds"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelCommand", }); await resp.arrayBuffer(); // consume body without use } async cancelMaintenanceWindowExecution( - {abortSignal, ...params}: RequestConfig & s.CancelMaintenanceWindowExecutionRequest, + params: s.CancelMaintenanceWindowExecutionRequest, ): Promise { const body: jsonP.JSONObject = { WindowExecutionId: params["WindowExecutionId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CancelMaintenanceWindowExecution", }); return jsonP.readObj({ @@ -86,7 +82,7 @@ export default class SSM { } async createActivation( - {abortSignal, ...params}: RequestConfig & s.CreateActivationRequest, + params: s.CreateActivationRequest, ): Promise { const body: jsonP.JSONObject = { Description: params["Description"], @@ -97,7 +93,7 @@ export default class SSM { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateActivation", }); return jsonP.readObj({ @@ -110,7 +106,7 @@ export default class SSM { } async createAssociation( - {abortSignal, ...params}: RequestConfig & s.CreateAssociationRequest, + params: s.CreateAssociationRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -130,7 +126,7 @@ export default class SSM { TargetLocations: params["TargetLocations"]?.map(x => fromTargetLocation(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateAssociation", }); return jsonP.readObj({ @@ -142,13 +138,13 @@ export default class SSM { } async createAssociationBatch( - {abortSignal, ...params}: RequestConfig & s.CreateAssociationBatchRequest, + params: s.CreateAssociationBatchRequest, ): Promise { const body: jsonP.JSONObject = { Entries: params["Entries"]?.map(x => fromCreateAssociationBatchRequestEntry(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateAssociationBatch", }); return jsonP.readObj({ @@ -161,7 +157,7 @@ export default class SSM { } async createDocument( - {abortSignal, ...params}: RequestConfig & s.CreateDocumentRequest, + params: s.CreateDocumentRequest, ): Promise { const body: jsonP.JSONObject = { Content: params["Content"], @@ -175,7 +171,7 @@ export default class SSM { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateDocument", }); return jsonP.readObj({ @@ -187,7 +183,7 @@ export default class SSM { } async createMaintenanceWindow( - {abortSignal, ...params}: RequestConfig & s.CreateMaintenanceWindowRequest, + params: s.CreateMaintenanceWindowRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -204,7 +200,7 @@ export default class SSM { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateMaintenanceWindow", }); return jsonP.readObj({ @@ -216,7 +212,7 @@ export default class SSM { } async createOpsItem( - {abortSignal, ...params}: RequestConfig & s.CreateOpsItemRequest, + params: s.CreateOpsItemRequest, ): Promise { const body: jsonP.JSONObject = { Description: params["Description"], @@ -236,7 +232,7 @@ export default class SSM { PlannedEndTime: jsonP.serializeDate_unixTimestamp(params["PlannedEndTime"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateOpsItem", }); return jsonP.readObj({ @@ -248,7 +244,7 @@ export default class SSM { } async createOpsMetadata( - {abortSignal, ...params}: RequestConfig & s.CreateOpsMetadataRequest, + params: s.CreateOpsMetadataRequest, ): Promise { const body: jsonP.JSONObject = { ResourceId: params["ResourceId"], @@ -256,7 +252,7 @@ export default class SSM { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateOpsMetadata", }); return jsonP.readObj({ @@ -268,7 +264,7 @@ export default class SSM { } async createPatchBaseline( - {abortSignal, ...params}: RequestConfig & s.CreatePatchBaselineRequest, + params: s.CreatePatchBaselineRequest, ): Promise { const body: jsonP.JSONObject = { OperatingSystem: params["OperatingSystem"], @@ -286,7 +282,7 @@ export default class SSM { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreatePatchBaseline", }); return jsonP.readObj({ @@ -298,7 +294,7 @@ export default class SSM { } async createResourceDataSync( - {abortSignal, ...params}: RequestConfig & s.CreateResourceDataSyncRequest, + params: s.CreateResourceDataSyncRequest, ): Promise { const body: jsonP.JSONObject = { SyncName: params["SyncName"], @@ -307,27 +303,27 @@ export default class SSM { SyncSource: fromResourceDataSyncSource(params["SyncSource"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "CreateResourceDataSync", }); await resp.arrayBuffer(); // consume body without use } async deleteActivation( - {abortSignal, ...params}: RequestConfig & s.DeleteActivationRequest, + params: s.DeleteActivationRequest, ): Promise { const body: jsonP.JSONObject = { ActivationId: params["ActivationId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteActivation", }); await resp.arrayBuffer(); // consume body without use } async deleteAssociation( - {abortSignal, ...params}: RequestConfig & s.DeleteAssociationRequest = {}, + params: s.DeleteAssociationRequest = {}, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -335,14 +331,14 @@ export default class SSM { AssociationId: params["AssociationId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteAssociation", }); await resp.arrayBuffer(); // consume body without use } async deleteDocument( - {abortSignal, ...params}: RequestConfig & s.DeleteDocumentRequest, + params: s.DeleteDocumentRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -351,14 +347,14 @@ export default class SSM { Force: params["Force"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteDocument", }); await resp.arrayBuffer(); // consume body without use } async deleteInventory( - {abortSignal, ...params}: RequestConfig & s.DeleteInventoryRequest, + params: s.DeleteInventoryRequest, ): Promise { const body: jsonP.JSONObject = { TypeName: params["TypeName"], @@ -367,7 +363,7 @@ export default class SSM { ClientToken: params["ClientToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteInventory", }); return jsonP.readObj({ @@ -381,13 +377,13 @@ export default class SSM { } async deleteMaintenanceWindow( - {abortSignal, ...params}: RequestConfig & s.DeleteMaintenanceWindowRequest, + params: s.DeleteMaintenanceWindowRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteMaintenanceWindow", }); return jsonP.readObj({ @@ -399,39 +395,39 @@ export default class SSM { } async deleteOpsMetadata( - {abortSignal, ...params}: RequestConfig & s.DeleteOpsMetadataRequest, + params: s.DeleteOpsMetadataRequest, ): Promise { const body: jsonP.JSONObject = { OpsMetadataArn: params["OpsMetadataArn"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteOpsMetadata", }); await resp.arrayBuffer(); // consume body without use } async deleteParameter( - {abortSignal, ...params}: RequestConfig & s.DeleteParameterRequest, + params: s.DeleteParameterRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteParameter", }); await resp.arrayBuffer(); // consume body without use } async deleteParameters( - {abortSignal, ...params}: RequestConfig & s.DeleteParametersRequest, + params: s.DeleteParametersRequest, ): Promise { const body: jsonP.JSONObject = { Names: params["Names"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteParameters", }); return jsonP.readObj({ @@ -444,13 +440,13 @@ export default class SSM { } async deletePatchBaseline( - {abortSignal, ...params}: RequestConfig & s.DeletePatchBaselineRequest, + params: s.DeletePatchBaselineRequest, ): Promise { const body: jsonP.JSONObject = { BaselineId: params["BaselineId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeletePatchBaseline", }); return jsonP.readObj({ @@ -462,41 +458,41 @@ export default class SSM { } async deleteResourceDataSync( - {abortSignal, ...params}: RequestConfig & s.DeleteResourceDataSyncRequest, + params: s.DeleteResourceDataSyncRequest, ): Promise { const body: jsonP.JSONObject = { SyncName: params["SyncName"], SyncType: params["SyncType"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeleteResourceDataSync", }); await resp.arrayBuffer(); // consume body without use } async deregisterManagedInstance( - {abortSignal, ...params}: RequestConfig & s.DeregisterManagedInstanceRequest, + params: s.DeregisterManagedInstanceRequest, ): Promise { const body: jsonP.JSONObject = { InstanceId: params["InstanceId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterManagedInstance", }); await resp.arrayBuffer(); // consume body without use } async deregisterPatchBaselineForPatchGroup( - {abortSignal, ...params}: RequestConfig & s.DeregisterPatchBaselineForPatchGroupRequest, + params: s.DeregisterPatchBaselineForPatchGroupRequest, ): Promise { const body: jsonP.JSONObject = { BaselineId: params["BaselineId"], PatchGroup: params["PatchGroup"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterPatchBaselineForPatchGroup", }); return jsonP.readObj({ @@ -509,7 +505,7 @@ export default class SSM { } async deregisterTargetFromMaintenanceWindow( - {abortSignal, ...params}: RequestConfig & s.DeregisterTargetFromMaintenanceWindowRequest, + params: s.DeregisterTargetFromMaintenanceWindowRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], @@ -517,7 +513,7 @@ export default class SSM { Safe: params["Safe"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterTargetFromMaintenanceWindow", }); return jsonP.readObj({ @@ -530,14 +526,14 @@ export default class SSM { } async deregisterTaskFromMaintenanceWindow( - {abortSignal, ...params}: RequestConfig & s.DeregisterTaskFromMaintenanceWindowRequest, + params: s.DeregisterTaskFromMaintenanceWindowRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], WindowTaskId: params["WindowTaskId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DeregisterTaskFromMaintenanceWindow", }); return jsonP.readObj({ @@ -550,7 +546,7 @@ export default class SSM { } async describeActivations( - {abortSignal, ...params}: RequestConfig & s.DescribeActivationsRequest = {}, + params: s.DescribeActivationsRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromDescribeActivationsFilter(x)), @@ -558,7 +554,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeActivations", }); return jsonP.readObj({ @@ -571,7 +567,7 @@ export default class SSM { } async describeAssociation( - {abortSignal, ...params}: RequestConfig & s.DescribeAssociationRequest = {}, + params: s.DescribeAssociationRequest = {}, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -580,7 +576,7 @@ export default class SSM { AssociationVersion: params["AssociationVersion"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAssociation", }); return jsonP.readObj({ @@ -592,7 +588,7 @@ export default class SSM { } async describeAssociationExecutionTargets( - {abortSignal, ...params}: RequestConfig & s.DescribeAssociationExecutionTargetsRequest, + params: s.DescribeAssociationExecutionTargetsRequest, ): Promise { const body: jsonP.JSONObject = { AssociationId: params["AssociationId"], @@ -602,7 +598,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAssociationExecutionTargets", }); return jsonP.readObj({ @@ -615,7 +611,7 @@ export default class SSM { } async describeAssociationExecutions( - {abortSignal, ...params}: RequestConfig & s.DescribeAssociationExecutionsRequest, + params: s.DescribeAssociationExecutionsRequest, ): Promise { const body: jsonP.JSONObject = { AssociationId: params["AssociationId"], @@ -624,7 +620,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAssociationExecutions", }); return jsonP.readObj({ @@ -637,7 +633,7 @@ export default class SSM { } async describeAutomationExecutions( - {abortSignal, ...params}: RequestConfig & s.DescribeAutomationExecutionsRequest = {}, + params: s.DescribeAutomationExecutionsRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromAutomationExecutionFilter(x)), @@ -645,7 +641,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAutomationExecutions", }); return jsonP.readObj({ @@ -658,7 +654,7 @@ export default class SSM { } async describeAutomationStepExecutions( - {abortSignal, ...params}: RequestConfig & s.DescribeAutomationStepExecutionsRequest, + params: s.DescribeAutomationStepExecutionsRequest, ): Promise { const body: jsonP.JSONObject = { AutomationExecutionId: params["AutomationExecutionId"], @@ -668,7 +664,7 @@ export default class SSM { ReverseOrder: params["ReverseOrder"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAutomationStepExecutions", }); return jsonP.readObj({ @@ -681,7 +677,7 @@ export default class SSM { } async describeAvailablePatches( - {abortSignal, ...params}: RequestConfig & s.DescribeAvailablePatchesRequest = {}, + params: s.DescribeAvailablePatchesRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromPatchOrchestratorFilter(x)), @@ -689,7 +685,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeAvailablePatches", }); return jsonP.readObj({ @@ -702,7 +698,7 @@ export default class SSM { } async describeDocument( - {abortSignal, ...params}: RequestConfig & s.DescribeDocumentRequest, + params: s.DescribeDocumentRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -710,7 +706,7 @@ export default class SSM { VersionName: params["VersionName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDocument", }); return jsonP.readObj({ @@ -722,7 +718,7 @@ export default class SSM { } async describeDocumentPermission( - {abortSignal, ...params}: RequestConfig & s.DescribeDocumentPermissionRequest, + params: s.DescribeDocumentPermissionRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -731,7 +727,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeDocumentPermission", }); return jsonP.readObj({ @@ -745,7 +741,7 @@ export default class SSM { } async describeEffectiveInstanceAssociations( - {abortSignal, ...params}: RequestConfig & s.DescribeEffectiveInstanceAssociationsRequest, + params: s.DescribeEffectiveInstanceAssociationsRequest, ): Promise { const body: jsonP.JSONObject = { InstanceId: params["InstanceId"], @@ -753,7 +749,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeEffectiveInstanceAssociations", }); return jsonP.readObj({ @@ -766,7 +762,7 @@ export default class SSM { } async describeEffectivePatchesForPatchBaseline( - {abortSignal, ...params}: RequestConfig & s.DescribeEffectivePatchesForPatchBaselineRequest, + params: s.DescribeEffectivePatchesForPatchBaselineRequest, ): Promise { const body: jsonP.JSONObject = { BaselineId: params["BaselineId"], @@ -774,7 +770,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeEffectivePatchesForPatchBaseline", }); return jsonP.readObj({ @@ -787,7 +783,7 @@ export default class SSM { } async describeInstanceAssociationsStatus( - {abortSignal, ...params}: RequestConfig & s.DescribeInstanceAssociationsStatusRequest, + params: s.DescribeInstanceAssociationsStatusRequest, ): Promise { const body: jsonP.JSONObject = { InstanceId: params["InstanceId"], @@ -795,7 +791,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstanceAssociationsStatus", }); return jsonP.readObj({ @@ -808,7 +804,7 @@ export default class SSM { } async describeInstanceInformation( - {abortSignal, ...params}: RequestConfig & s.DescribeInstanceInformationRequest = {}, + params: s.DescribeInstanceInformationRequest = {}, ): Promise { const body: jsonP.JSONObject = { InstanceInformationFilterList: params["InstanceInformationFilterList"]?.map(x => fromInstanceInformationFilter(x)), @@ -817,7 +813,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstanceInformation", }); return jsonP.readObj({ @@ -830,7 +826,7 @@ export default class SSM { } async describeInstancePatchStates( - {abortSignal, ...params}: RequestConfig & s.DescribeInstancePatchStatesRequest, + params: s.DescribeInstancePatchStatesRequest, ): Promise { const body: jsonP.JSONObject = { InstanceIds: params["InstanceIds"], @@ -838,7 +834,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstancePatchStates", }); return jsonP.readObj({ @@ -851,7 +847,7 @@ export default class SSM { } async describeInstancePatchStatesForPatchGroup( - {abortSignal, ...params}: RequestConfig & s.DescribeInstancePatchStatesForPatchGroupRequest, + params: s.DescribeInstancePatchStatesForPatchGroupRequest, ): Promise { const body: jsonP.JSONObject = { PatchGroup: params["PatchGroup"], @@ -860,7 +856,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstancePatchStatesForPatchGroup", }); return jsonP.readObj({ @@ -873,7 +869,7 @@ export default class SSM { } async describeInstancePatches( - {abortSignal, ...params}: RequestConfig & s.DescribeInstancePatchesRequest, + params: s.DescribeInstancePatchesRequest, ): Promise { const body: jsonP.JSONObject = { InstanceId: params["InstanceId"], @@ -882,7 +878,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInstancePatches", }); return jsonP.readObj({ @@ -895,7 +891,7 @@ export default class SSM { } async describeInventoryDeletions( - {abortSignal, ...params}: RequestConfig & s.DescribeInventoryDeletionsRequest = {}, + params: s.DescribeInventoryDeletionsRequest = {}, ): Promise { const body: jsonP.JSONObject = { DeletionId: params["DeletionId"], @@ -903,7 +899,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeInventoryDeletions", }); return jsonP.readObj({ @@ -916,7 +912,7 @@ export default class SSM { } async describeMaintenanceWindowExecutionTaskInvocations( - {abortSignal, ...params}: RequestConfig & s.DescribeMaintenanceWindowExecutionTaskInvocationsRequest, + params: s.DescribeMaintenanceWindowExecutionTaskInvocationsRequest, ): Promise { const body: jsonP.JSONObject = { WindowExecutionId: params["WindowExecutionId"], @@ -926,7 +922,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeMaintenanceWindowExecutionTaskInvocations", }); return jsonP.readObj({ @@ -939,7 +935,7 @@ export default class SSM { } async describeMaintenanceWindowExecutionTasks( - {abortSignal, ...params}: RequestConfig & s.DescribeMaintenanceWindowExecutionTasksRequest, + params: s.DescribeMaintenanceWindowExecutionTasksRequest, ): Promise { const body: jsonP.JSONObject = { WindowExecutionId: params["WindowExecutionId"], @@ -948,7 +944,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeMaintenanceWindowExecutionTasks", }); return jsonP.readObj({ @@ -961,7 +957,7 @@ export default class SSM { } async describeMaintenanceWindowExecutions( - {abortSignal, ...params}: RequestConfig & s.DescribeMaintenanceWindowExecutionsRequest, + params: s.DescribeMaintenanceWindowExecutionsRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], @@ -970,7 +966,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeMaintenanceWindowExecutions", }); return jsonP.readObj({ @@ -983,7 +979,7 @@ export default class SSM { } async describeMaintenanceWindowSchedule( - {abortSignal, ...params}: RequestConfig & s.DescribeMaintenanceWindowScheduleRequest = {}, + params: s.DescribeMaintenanceWindowScheduleRequest = {}, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], @@ -994,7 +990,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeMaintenanceWindowSchedule", }); return jsonP.readObj({ @@ -1007,7 +1003,7 @@ export default class SSM { } async describeMaintenanceWindowTargets( - {abortSignal, ...params}: RequestConfig & s.DescribeMaintenanceWindowTargetsRequest, + params: s.DescribeMaintenanceWindowTargetsRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], @@ -1016,7 +1012,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeMaintenanceWindowTargets", }); return jsonP.readObj({ @@ -1029,7 +1025,7 @@ export default class SSM { } async describeMaintenanceWindowTasks( - {abortSignal, ...params}: RequestConfig & s.DescribeMaintenanceWindowTasksRequest, + params: s.DescribeMaintenanceWindowTasksRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], @@ -1038,7 +1034,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeMaintenanceWindowTasks", }); return jsonP.readObj({ @@ -1051,7 +1047,7 @@ export default class SSM { } async describeMaintenanceWindows( - {abortSignal, ...params}: RequestConfig & s.DescribeMaintenanceWindowsRequest = {}, + params: s.DescribeMaintenanceWindowsRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromMaintenanceWindowFilter(x)), @@ -1059,7 +1055,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeMaintenanceWindows", }); return jsonP.readObj({ @@ -1072,7 +1068,7 @@ export default class SSM { } async describeMaintenanceWindowsForTarget( - {abortSignal, ...params}: RequestConfig & s.DescribeMaintenanceWindowsForTargetRequest, + params: s.DescribeMaintenanceWindowsForTargetRequest, ): Promise { const body: jsonP.JSONObject = { Targets: params["Targets"]?.map(x => fromTarget(x)), @@ -1081,7 +1077,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeMaintenanceWindowsForTarget", }); return jsonP.readObj({ @@ -1094,7 +1090,7 @@ export default class SSM { } async describeOpsItems( - {abortSignal, ...params}: RequestConfig & s.DescribeOpsItemsRequest = {}, + params: s.DescribeOpsItemsRequest = {}, ): Promise { const body: jsonP.JSONObject = { OpsItemFilters: params["OpsItemFilters"]?.map(x => fromOpsItemFilter(x)), @@ -1102,7 +1098,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeOpsItems", }); return jsonP.readObj({ @@ -1115,7 +1111,7 @@ export default class SSM { } async describeParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeParametersRequest = {}, + params: s.DescribeParametersRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromParametersFilter(x)), @@ -1124,7 +1120,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeParameters", }); return jsonP.readObj({ @@ -1137,7 +1133,7 @@ export default class SSM { } async describePatchBaselines( - {abortSignal, ...params}: RequestConfig & s.DescribePatchBaselinesRequest = {}, + params: s.DescribePatchBaselinesRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromPatchOrchestratorFilter(x)), @@ -1145,7 +1141,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribePatchBaselines", }); return jsonP.readObj({ @@ -1158,13 +1154,13 @@ export default class SSM { } async describePatchGroupState( - {abortSignal, ...params}: RequestConfig & s.DescribePatchGroupStateRequest, + params: s.DescribePatchGroupStateRequest, ): Promise { const body: jsonP.JSONObject = { PatchGroup: params["PatchGroup"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribePatchGroupState", }); return jsonP.readObj({ @@ -1184,7 +1180,7 @@ export default class SSM { } async describePatchGroups( - {abortSignal, ...params}: RequestConfig & s.DescribePatchGroupsRequest = {}, + params: s.DescribePatchGroupsRequest = {}, ): Promise { const body: jsonP.JSONObject = { MaxResults: params["MaxResults"], @@ -1192,7 +1188,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribePatchGroups", }); return jsonP.readObj({ @@ -1205,7 +1201,7 @@ export default class SSM { } async describePatchProperties( - {abortSignal, ...params}: RequestConfig & s.DescribePatchPropertiesRequest, + params: s.DescribePatchPropertiesRequest, ): Promise { const body: jsonP.JSONObject = { OperatingSystem: params["OperatingSystem"], @@ -1215,7 +1211,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribePatchProperties", }); return jsonP.readObj({ @@ -1228,7 +1224,7 @@ export default class SSM { } async describeSessions( - {abortSignal, ...params}: RequestConfig & s.DescribeSessionsRequest, + params: s.DescribeSessionsRequest, ): Promise { const body: jsonP.JSONObject = { State: params["State"], @@ -1237,7 +1233,7 @@ export default class SSM { Filters: params["Filters"]?.map(x => fromSessionFilter(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DescribeSessions", }); return jsonP.readObj({ @@ -1250,13 +1246,13 @@ export default class SSM { } async getAutomationExecution( - {abortSignal, ...params}: RequestConfig & s.GetAutomationExecutionRequest, + params: s.GetAutomationExecutionRequest, ): Promise { const body: jsonP.JSONObject = { AutomationExecutionId: params["AutomationExecutionId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetAutomationExecution", }); return jsonP.readObj({ @@ -1268,14 +1264,14 @@ export default class SSM { } async getCalendarState( - {abortSignal, ...params}: RequestConfig & s.GetCalendarStateRequest, + params: s.GetCalendarStateRequest, ): Promise { const body: jsonP.JSONObject = { CalendarNames: params["CalendarNames"], AtTime: params["AtTime"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetCalendarState", }); return jsonP.readObj({ @@ -1289,7 +1285,7 @@ export default class SSM { } async getCommandInvocation( - {abortSignal, ...params}: RequestConfig & s.GetCommandInvocationRequest, + params: s.GetCommandInvocationRequest, ): Promise { const body: jsonP.JSONObject = { CommandId: params["CommandId"], @@ -1297,7 +1293,7 @@ export default class SSM { PluginName: params["PluginName"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetCommandInvocation", }); return jsonP.readObj({ @@ -1325,13 +1321,13 @@ export default class SSM { } async getConnectionStatus( - {abortSignal, ...params}: RequestConfig & s.GetConnectionStatusRequest, + params: s.GetConnectionStatusRequest, ): Promise { const body: jsonP.JSONObject = { Target: params["Target"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetConnectionStatus", }); return jsonP.readObj({ @@ -1344,13 +1340,13 @@ export default class SSM { } async getDefaultPatchBaseline( - {abortSignal, ...params}: RequestConfig & s.GetDefaultPatchBaselineRequest = {}, + params: s.GetDefaultPatchBaselineRequest = {}, ): Promise { const body: jsonP.JSONObject = { OperatingSystem: params["OperatingSystem"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetDefaultPatchBaseline", }); return jsonP.readObj({ @@ -1363,7 +1359,7 @@ export default class SSM { } async getDeployablePatchSnapshotForInstance( - {abortSignal, ...params}: RequestConfig & s.GetDeployablePatchSnapshotForInstanceRequest, + params: s.GetDeployablePatchSnapshotForInstanceRequest, ): Promise { const body: jsonP.JSONObject = { InstanceId: params["InstanceId"], @@ -1371,7 +1367,7 @@ export default class SSM { BaselineOverride: fromBaselineOverride(params["BaselineOverride"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetDeployablePatchSnapshotForInstance", }); return jsonP.readObj({ @@ -1386,7 +1382,7 @@ export default class SSM { } async getDocument( - {abortSignal, ...params}: RequestConfig & s.GetDocumentRequest, + params: s.GetDocumentRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -1395,7 +1391,7 @@ export default class SSM { DocumentFormat: params["DocumentFormat"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetDocument", }); return jsonP.readObj({ @@ -1417,7 +1413,7 @@ export default class SSM { } async getInventory( - {abortSignal, ...params}: RequestConfig & s.GetInventoryRequest = {}, + params: s.GetInventoryRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromInventoryFilter(x)), @@ -1427,7 +1423,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetInventory", }); return jsonP.readObj({ @@ -1440,7 +1436,7 @@ export default class SSM { } async getInventorySchema( - {abortSignal, ...params}: RequestConfig & s.GetInventorySchemaRequest = {}, + params: s.GetInventorySchemaRequest = {}, ): Promise { const body: jsonP.JSONObject = { TypeName: params["TypeName"], @@ -1450,7 +1446,7 @@ export default class SSM { SubType: params["SubType"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetInventorySchema", }); return jsonP.readObj({ @@ -1463,13 +1459,13 @@ export default class SSM { } async getMaintenanceWindow( - {abortSignal, ...params}: RequestConfig & s.GetMaintenanceWindowRequest, + params: s.GetMaintenanceWindowRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetMaintenanceWindow", }); return jsonP.readObj({ @@ -1495,13 +1491,13 @@ export default class SSM { } async getMaintenanceWindowExecution( - {abortSignal, ...params}: RequestConfig & s.GetMaintenanceWindowExecutionRequest, + params: s.GetMaintenanceWindowExecutionRequest, ): Promise { const body: jsonP.JSONObject = { WindowExecutionId: params["WindowExecutionId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetMaintenanceWindowExecution", }); return jsonP.readObj({ @@ -1518,14 +1514,14 @@ export default class SSM { } async getMaintenanceWindowExecutionTask( - {abortSignal, ...params}: RequestConfig & s.GetMaintenanceWindowExecutionTaskRequest, + params: s.GetMaintenanceWindowExecutionTaskRequest, ): Promise { const body: jsonP.JSONObject = { WindowExecutionId: params["WindowExecutionId"], TaskId: params["TaskId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetMaintenanceWindowExecutionTask", }); return jsonP.readObj({ @@ -1549,7 +1545,7 @@ export default class SSM { } async getMaintenanceWindowExecutionTaskInvocation( - {abortSignal, ...params}: RequestConfig & s.GetMaintenanceWindowExecutionTaskInvocationRequest, + params: s.GetMaintenanceWindowExecutionTaskInvocationRequest, ): Promise { const body: jsonP.JSONObject = { WindowExecutionId: params["WindowExecutionId"], @@ -1557,7 +1553,7 @@ export default class SSM { InvocationId: params["InvocationId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetMaintenanceWindowExecutionTaskInvocation", }); return jsonP.readObj({ @@ -1580,14 +1576,14 @@ export default class SSM { } async getMaintenanceWindowTask( - {abortSignal, ...params}: RequestConfig & s.GetMaintenanceWindowTaskRequest, + params: s.GetMaintenanceWindowTaskRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], WindowTaskId: params["WindowTaskId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetMaintenanceWindowTask", }); return jsonP.readObj({ @@ -1612,13 +1608,13 @@ export default class SSM { } async getOpsItem( - {abortSignal, ...params}: RequestConfig & s.GetOpsItemRequest, + params: s.GetOpsItemRequest, ): Promise { const body: jsonP.JSONObject = { OpsItemId: params["OpsItemId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetOpsItem", }); return jsonP.readObj({ @@ -1630,7 +1626,7 @@ export default class SSM { } async getOpsMetadata( - {abortSignal, ...params}: RequestConfig & s.GetOpsMetadataRequest, + params: s.GetOpsMetadataRequest, ): Promise { const body: jsonP.JSONObject = { OpsMetadataArn: params["OpsMetadataArn"], @@ -1638,7 +1634,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetOpsMetadata", }); return jsonP.readObj({ @@ -1652,7 +1648,7 @@ export default class SSM { } async getOpsSummary( - {abortSignal, ...params}: RequestConfig & s.GetOpsSummaryRequest = {}, + params: s.GetOpsSummaryRequest = {}, ): Promise { const body: jsonP.JSONObject = { SyncName: params["SyncName"], @@ -1663,7 +1659,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetOpsSummary", }); return jsonP.readObj({ @@ -1676,14 +1672,14 @@ export default class SSM { } async getParameter( - {abortSignal, ...params}: RequestConfig & s.GetParameterRequest, + params: s.GetParameterRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], WithDecryption: params["WithDecryption"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetParameter", }); return jsonP.readObj({ @@ -1695,7 +1691,7 @@ export default class SSM { } async getParameterHistory( - {abortSignal, ...params}: RequestConfig & s.GetParameterHistoryRequest, + params: s.GetParameterHistoryRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -1704,7 +1700,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetParameterHistory", }); return jsonP.readObj({ @@ -1717,14 +1713,14 @@ export default class SSM { } async getParameters( - {abortSignal, ...params}: RequestConfig & s.GetParametersRequest, + params: s.GetParametersRequest, ): Promise { const body: jsonP.JSONObject = { Names: params["Names"], WithDecryption: params["WithDecryption"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetParameters", }); return jsonP.readObj({ @@ -1737,7 +1733,7 @@ export default class SSM { } async getParametersByPath( - {abortSignal, ...params}: RequestConfig & s.GetParametersByPathRequest, + params: s.GetParametersByPathRequest, ): Promise { const body: jsonP.JSONObject = { Path: params["Path"], @@ -1748,7 +1744,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetParametersByPath", }); return jsonP.readObj({ @@ -1761,13 +1757,13 @@ export default class SSM { } async getPatchBaseline( - {abortSignal, ...params}: RequestConfig & s.GetPatchBaselineRequest, + params: s.GetPatchBaselineRequest, ): Promise { const body: jsonP.JSONObject = { BaselineId: params["BaselineId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetPatchBaseline", }); return jsonP.readObj({ @@ -1793,14 +1789,14 @@ export default class SSM { } async getPatchBaselineForPatchGroup( - {abortSignal, ...params}: RequestConfig & s.GetPatchBaselineForPatchGroupRequest, + params: s.GetPatchBaselineForPatchGroupRequest, ): Promise { const body: jsonP.JSONObject = { PatchGroup: params["PatchGroup"], OperatingSystem: params["OperatingSystem"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetPatchBaselineForPatchGroup", }); return jsonP.readObj({ @@ -1814,13 +1810,13 @@ export default class SSM { } async getServiceSetting( - {abortSignal, ...params}: RequestConfig & s.GetServiceSettingRequest, + params: s.GetServiceSettingRequest, ): Promise { const body: jsonP.JSONObject = { SettingId: params["SettingId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetServiceSetting", }); return jsonP.readObj({ @@ -1832,7 +1828,7 @@ export default class SSM { } async labelParameterVersion( - {abortSignal, ...params}: RequestConfig & s.LabelParameterVersionRequest, + params: s.LabelParameterVersionRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -1840,7 +1836,7 @@ export default class SSM { Labels: params["Labels"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "LabelParameterVersion", }); return jsonP.readObj({ @@ -1853,7 +1849,7 @@ export default class SSM { } async listAssociationVersions( - {abortSignal, ...params}: RequestConfig & s.ListAssociationVersionsRequest, + params: s.ListAssociationVersionsRequest, ): Promise { const body: jsonP.JSONObject = { AssociationId: params["AssociationId"], @@ -1861,7 +1857,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListAssociationVersions", }); return jsonP.readObj({ @@ -1874,7 +1870,7 @@ export default class SSM { } async listAssociations( - {abortSignal, ...params}: RequestConfig & s.ListAssociationsRequest = {}, + params: s.ListAssociationsRequest = {}, ): Promise { const body: jsonP.JSONObject = { AssociationFilterList: params["AssociationFilterList"]?.map(x => fromAssociationFilter(x)), @@ -1882,7 +1878,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListAssociations", }); return jsonP.readObj({ @@ -1895,7 +1891,7 @@ export default class SSM { } async listCommandInvocations( - {abortSignal, ...params}: RequestConfig & s.ListCommandInvocationsRequest = {}, + params: s.ListCommandInvocationsRequest = {}, ): Promise { const body: jsonP.JSONObject = { CommandId: params["CommandId"], @@ -1906,7 +1902,7 @@ export default class SSM { Details: params["Details"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListCommandInvocations", }); return jsonP.readObj({ @@ -1919,7 +1915,7 @@ export default class SSM { } async listCommands( - {abortSignal, ...params}: RequestConfig & s.ListCommandsRequest = {}, + params: s.ListCommandsRequest = {}, ): Promise { const body: jsonP.JSONObject = { CommandId: params["CommandId"], @@ -1929,7 +1925,7 @@ export default class SSM { Filters: params["Filters"]?.map(x => fromCommandFilter(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListCommands", }); return jsonP.readObj({ @@ -1942,7 +1938,7 @@ export default class SSM { } async listComplianceItems( - {abortSignal, ...params}: RequestConfig & s.ListComplianceItemsRequest = {}, + params: s.ListComplianceItemsRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromComplianceStringFilter(x)), @@ -1952,7 +1948,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListComplianceItems", }); return jsonP.readObj({ @@ -1965,7 +1961,7 @@ export default class SSM { } async listComplianceSummaries( - {abortSignal, ...params}: RequestConfig & s.ListComplianceSummariesRequest = {}, + params: s.ListComplianceSummariesRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromComplianceStringFilter(x)), @@ -1973,7 +1969,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListComplianceSummaries", }); return jsonP.readObj({ @@ -1986,7 +1982,7 @@ export default class SSM { } async listDocumentMetadataHistory( - {abortSignal, ...params}: RequestConfig & s.ListDocumentMetadataHistoryRequest, + params: s.ListDocumentMetadataHistoryRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -1996,7 +1992,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListDocumentMetadataHistory", }); return jsonP.readObj({ @@ -2012,7 +2008,7 @@ export default class SSM { } async listDocumentVersions( - {abortSignal, ...params}: RequestConfig & s.ListDocumentVersionsRequest, + params: s.ListDocumentVersionsRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -2020,7 +2016,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListDocumentVersions", }); return jsonP.readObj({ @@ -2033,7 +2029,7 @@ export default class SSM { } async listDocuments( - {abortSignal, ...params}: RequestConfig & s.ListDocumentsRequest = {}, + params: s.ListDocumentsRequest = {}, ): Promise { const body: jsonP.JSONObject = { DocumentFilterList: params["DocumentFilterList"]?.map(x => fromDocumentFilter(x)), @@ -2042,7 +2038,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListDocuments", }); return jsonP.readObj({ @@ -2055,7 +2051,7 @@ export default class SSM { } async listInventoryEntries( - {abortSignal, ...params}: RequestConfig & s.ListInventoryEntriesRequest, + params: s.ListInventoryEntriesRequest, ): Promise { const body: jsonP.JSONObject = { InstanceId: params["InstanceId"], @@ -2065,7 +2061,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListInventoryEntries", }); return jsonP.readObj({ @@ -2082,7 +2078,7 @@ export default class SSM { } async listOpsItemEvents( - {abortSignal, ...params}: RequestConfig & s.ListOpsItemEventsRequest = {}, + params: s.ListOpsItemEventsRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromOpsItemEventFilter(x)), @@ -2090,7 +2086,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListOpsItemEvents", }); return jsonP.readObj({ @@ -2103,7 +2099,7 @@ export default class SSM { } async listOpsMetadata( - {abortSignal, ...params}: RequestConfig & s.ListOpsMetadataRequest = {}, + params: s.ListOpsMetadataRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromOpsMetadataFilter(x)), @@ -2111,7 +2107,7 @@ export default class SSM { NextToken: params["NextToken"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListOpsMetadata", }); return jsonP.readObj({ @@ -2124,7 +2120,7 @@ export default class SSM { } async listResourceComplianceSummaries( - {abortSignal, ...params}: RequestConfig & s.ListResourceComplianceSummariesRequest = {}, + params: s.ListResourceComplianceSummariesRequest = {}, ): Promise { const body: jsonP.JSONObject = { Filters: params["Filters"]?.map(x => fromComplianceStringFilter(x)), @@ -2132,7 +2128,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListResourceComplianceSummaries", }); return jsonP.readObj({ @@ -2145,7 +2141,7 @@ export default class SSM { } async listResourceDataSync( - {abortSignal, ...params}: RequestConfig & s.ListResourceDataSyncRequest = {}, + params: s.ListResourceDataSyncRequest = {}, ): Promise { const body: jsonP.JSONObject = { SyncType: params["SyncType"], @@ -2153,7 +2149,7 @@ export default class SSM { MaxResults: params["MaxResults"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListResourceDataSync", }); return jsonP.readObj({ @@ -2166,14 +2162,14 @@ export default class SSM { } async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceRequest, + params: s.ListTagsForResourceRequest, ): Promise { const body: jsonP.JSONObject = { ResourceType: params["ResourceType"], ResourceId: params["ResourceId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ListTagsForResource", }); return jsonP.readObj({ @@ -2185,7 +2181,7 @@ export default class SSM { } async modifyDocumentPermission( - {abortSignal, ...params}: RequestConfig & s.ModifyDocumentPermissionRequest, + params: s.ModifyDocumentPermissionRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -2195,14 +2191,14 @@ export default class SSM { SharedDocumentVersion: params["SharedDocumentVersion"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ModifyDocumentPermission", }); await resp.arrayBuffer(); // consume body without use } async putComplianceItems( - {abortSignal, ...params}: RequestConfig & s.PutComplianceItemsRequest, + params: s.PutComplianceItemsRequest, ): Promise { const body: jsonP.JSONObject = { ResourceId: params["ResourceId"], @@ -2214,21 +2210,21 @@ export default class SSM { UploadType: params["UploadType"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutComplianceItems", }); await resp.arrayBuffer(); // consume body without use } async putInventory( - {abortSignal, ...params}: RequestConfig & s.PutInventoryRequest, + params: s.PutInventoryRequest, ): Promise { const body: jsonP.JSONObject = { InstanceId: params["InstanceId"], Items: params["Items"]?.map(x => fromInventoryItem(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutInventory", }); return jsonP.readObj({ @@ -2240,7 +2236,7 @@ export default class SSM { } async putParameter( - {abortSignal, ...params}: RequestConfig & s.PutParameterRequest, + params: s.PutParameterRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -2256,7 +2252,7 @@ export default class SSM { DataType: params["DataType"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "PutParameter", }); return jsonP.readObj({ @@ -2269,13 +2265,13 @@ export default class SSM { } async registerDefaultPatchBaseline( - {abortSignal, ...params}: RequestConfig & s.RegisterDefaultPatchBaselineRequest, + params: s.RegisterDefaultPatchBaselineRequest, ): Promise { const body: jsonP.JSONObject = { BaselineId: params["BaselineId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterDefaultPatchBaseline", }); return jsonP.readObj({ @@ -2287,14 +2283,14 @@ export default class SSM { } async registerPatchBaselineForPatchGroup( - {abortSignal, ...params}: RequestConfig & s.RegisterPatchBaselineForPatchGroupRequest, + params: s.RegisterPatchBaselineForPatchGroupRequest, ): Promise { const body: jsonP.JSONObject = { BaselineId: params["BaselineId"], PatchGroup: params["PatchGroup"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterPatchBaselineForPatchGroup", }); return jsonP.readObj({ @@ -2307,7 +2303,7 @@ export default class SSM { } async registerTargetWithMaintenanceWindow( - {abortSignal, ...params}: RequestConfig & s.RegisterTargetWithMaintenanceWindowRequest, + params: s.RegisterTargetWithMaintenanceWindowRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], @@ -2319,7 +2315,7 @@ export default class SSM { ClientToken: params["ClientToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterTargetWithMaintenanceWindow", }); return jsonP.readObj({ @@ -2331,7 +2327,7 @@ export default class SSM { } async registerTaskWithMaintenanceWindow( - {abortSignal, ...params}: RequestConfig & s.RegisterTaskWithMaintenanceWindowRequest, + params: s.RegisterTaskWithMaintenanceWindowRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], @@ -2350,7 +2346,7 @@ export default class SSM { ClientToken: params["ClientToken"] ?? generateIdemptToken(), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RegisterTaskWithMaintenanceWindow", }); return jsonP.readObj({ @@ -2362,7 +2358,7 @@ export default class SSM { } async removeTagsFromResource( - {abortSignal, ...params}: RequestConfig & s.RemoveTagsFromResourceRequest, + params: s.RemoveTagsFromResourceRequest, ): Promise { const body: jsonP.JSONObject = { ResourceType: params["ResourceType"], @@ -2370,20 +2366,20 @@ export default class SSM { TagKeys: params["TagKeys"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "RemoveTagsFromResource", }); await resp.arrayBuffer(); // consume body without use } async resetServiceSetting( - {abortSignal, ...params}: RequestConfig & s.ResetServiceSettingRequest, + params: s.ResetServiceSettingRequest, ): Promise { const body: jsonP.JSONObject = { SettingId: params["SettingId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResetServiceSetting", }); return jsonP.readObj({ @@ -2395,13 +2391,13 @@ export default class SSM { } async resumeSession( - {abortSignal, ...params}: RequestConfig & s.ResumeSessionRequest, + params: s.ResumeSessionRequest, ): Promise { const body: jsonP.JSONObject = { SessionId: params["SessionId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "ResumeSession", }); return jsonP.readObj({ @@ -2415,7 +2411,7 @@ export default class SSM { } async sendAutomationSignal( - {abortSignal, ...params}: RequestConfig & s.SendAutomationSignalRequest, + params: s.SendAutomationSignalRequest, ): Promise { const body: jsonP.JSONObject = { AutomationExecutionId: params["AutomationExecutionId"], @@ -2423,14 +2419,14 @@ export default class SSM { Payload: params["Payload"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendAutomationSignal", }); await resp.arrayBuffer(); // consume body without use } async sendCommand( - {abortSignal, ...params}: RequestConfig & s.SendCommandRequest, + params: s.SendCommandRequest, ): Promise { const body: jsonP.JSONObject = { InstanceIds: params["InstanceIds"], @@ -2452,7 +2448,7 @@ export default class SSM { CloudWatchOutputConfig: fromCloudWatchOutputConfig(params["CloudWatchOutputConfig"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "SendCommand", }); return jsonP.readObj({ @@ -2464,20 +2460,20 @@ export default class SSM { } async startAssociationsOnce( - {abortSignal, ...params}: RequestConfig & s.StartAssociationsOnceRequest, + params: s.StartAssociationsOnceRequest, ): Promise { const body: jsonP.JSONObject = { AssociationIds: params["AssociationIds"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartAssociationsOnce", }); await resp.arrayBuffer(); // consume body without use } async startAutomationExecution( - {abortSignal, ...params}: RequestConfig & s.StartAutomationExecutionRequest, + params: s.StartAutomationExecutionRequest, ): Promise { const body: jsonP.JSONObject = { DocumentName: params["DocumentName"], @@ -2494,7 +2490,7 @@ export default class SSM { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartAutomationExecution", }); return jsonP.readObj({ @@ -2506,7 +2502,7 @@ export default class SSM { } async startChangeRequestExecution( - {abortSignal, ...params}: RequestConfig & s.StartChangeRequestExecutionRequest, + params: s.StartChangeRequestExecutionRequest, ): Promise { const body: jsonP.JSONObject = { ScheduledTime: jsonP.serializeDate_unixTimestamp(params["ScheduledTime"]), @@ -2519,7 +2515,7 @@ export default class SSM { Tags: params["Tags"]?.map(x => fromTag(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartChangeRequestExecution", }); return jsonP.readObj({ @@ -2531,7 +2527,7 @@ export default class SSM { } async startSession( - {abortSignal, ...params}: RequestConfig & s.StartSessionRequest, + params: s.StartSessionRequest, ): Promise { const body: jsonP.JSONObject = { Target: params["Target"], @@ -2539,7 +2535,7 @@ export default class SSM { Parameters: params["Parameters"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StartSession", }); return jsonP.readObj({ @@ -2553,27 +2549,27 @@ export default class SSM { } async stopAutomationExecution( - {abortSignal, ...params}: RequestConfig & s.StopAutomationExecutionRequest, + params: s.StopAutomationExecutionRequest, ): Promise { const body: jsonP.JSONObject = { AutomationExecutionId: params["AutomationExecutionId"], Type: params["Type"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "StopAutomationExecution", }); await resp.arrayBuffer(); // consume body without use } async terminateSession( - {abortSignal, ...params}: RequestConfig & s.TerminateSessionRequest, + params: s.TerminateSessionRequest, ): Promise { const body: jsonP.JSONObject = { SessionId: params["SessionId"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "TerminateSession", }); return jsonP.readObj({ @@ -2585,7 +2581,7 @@ export default class SSM { } async updateAssociation( - {abortSignal, ...params}: RequestConfig & s.UpdateAssociationRequest, + params: s.UpdateAssociationRequest, ): Promise { const body: jsonP.JSONObject = { AssociationId: params["AssociationId"], @@ -2606,7 +2602,7 @@ export default class SSM { TargetLocations: params["TargetLocations"]?.map(x => fromTargetLocation(x)), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateAssociation", }); return jsonP.readObj({ @@ -2618,7 +2614,7 @@ export default class SSM { } async updateAssociationStatus( - {abortSignal, ...params}: RequestConfig & s.UpdateAssociationStatusRequest, + params: s.UpdateAssociationStatusRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -2626,7 +2622,7 @@ export default class SSM { AssociationStatus: fromAssociationStatus(params["AssociationStatus"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateAssociationStatus", }); return jsonP.readObj({ @@ -2638,7 +2634,7 @@ export default class SSM { } async updateDocument( - {abortSignal, ...params}: RequestConfig & s.UpdateDocumentRequest, + params: s.UpdateDocumentRequest, ): Promise { const body: jsonP.JSONObject = { Content: params["Content"], @@ -2650,7 +2646,7 @@ export default class SSM { TargetType: params["TargetType"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateDocument", }); return jsonP.readObj({ @@ -2662,14 +2658,14 @@ export default class SSM { } async updateDocumentDefaultVersion( - {abortSignal, ...params}: RequestConfig & s.UpdateDocumentDefaultVersionRequest, + params: s.UpdateDocumentDefaultVersionRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], DocumentVersion: params["DocumentVersion"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateDocumentDefaultVersion", }); return jsonP.readObj({ @@ -2681,7 +2677,7 @@ export default class SSM { } async updateDocumentMetadata( - {abortSignal, ...params}: RequestConfig & s.UpdateDocumentMetadataRequest, + params: s.UpdateDocumentMetadataRequest, ): Promise { const body: jsonP.JSONObject = { Name: params["Name"], @@ -2689,14 +2685,14 @@ export default class SSM { DocumentReviews: fromDocumentReviews(params["DocumentReviews"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateDocumentMetadata", }); await resp.arrayBuffer(); // consume body without use } async updateMaintenanceWindow( - {abortSignal, ...params}: RequestConfig & s.UpdateMaintenanceWindowRequest, + params: s.UpdateMaintenanceWindowRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], @@ -2714,7 +2710,7 @@ export default class SSM { Replace: params["Replace"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateMaintenanceWindow", }); return jsonP.readObj({ @@ -2737,7 +2733,7 @@ export default class SSM { } async updateMaintenanceWindowTarget( - {abortSignal, ...params}: RequestConfig & s.UpdateMaintenanceWindowTargetRequest, + params: s.UpdateMaintenanceWindowTargetRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], @@ -2749,7 +2745,7 @@ export default class SSM { Replace: params["Replace"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateMaintenanceWindowTarget", }); return jsonP.readObj({ @@ -2766,7 +2762,7 @@ export default class SSM { } async updateMaintenanceWindowTask( - {abortSignal, ...params}: RequestConfig & s.UpdateMaintenanceWindowTaskRequest, + params: s.UpdateMaintenanceWindowTaskRequest, ): Promise { const body: jsonP.JSONObject = { WindowId: params["WindowId"], @@ -2785,7 +2781,7 @@ export default class SSM { Replace: params["Replace"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateMaintenanceWindowTask", }); return jsonP.readObj({ @@ -2809,21 +2805,21 @@ export default class SSM { } async updateManagedInstanceRole( - {abortSignal, ...params}: RequestConfig & s.UpdateManagedInstanceRoleRequest, + params: s.UpdateManagedInstanceRoleRequest, ): Promise { const body: jsonP.JSONObject = { InstanceId: params["InstanceId"], IamRole: params["IamRole"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateManagedInstanceRole", }); await resp.arrayBuffer(); // consume body without use } async updateOpsItem( - {abortSignal, ...params}: RequestConfig & s.UpdateOpsItemRequest, + params: s.UpdateOpsItemRequest, ): Promise { const body: jsonP.JSONObject = { Description: params["Description"], @@ -2843,14 +2839,14 @@ export default class SSM { PlannedEndTime: jsonP.serializeDate_unixTimestamp(params["PlannedEndTime"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateOpsItem", }); await resp.arrayBuffer(); // consume body without use } async updateOpsMetadata( - {abortSignal, ...params}: RequestConfig & s.UpdateOpsMetadataRequest, + params: s.UpdateOpsMetadataRequest, ): Promise { const body: jsonP.JSONObject = { OpsMetadataArn: params["OpsMetadataArn"], @@ -2858,7 +2854,7 @@ export default class SSM { KeysToDelete: params["KeysToDelete"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateOpsMetadata", }); return jsonP.readObj({ @@ -2870,7 +2866,7 @@ export default class SSM { } async updatePatchBaseline( - {abortSignal, ...params}: RequestConfig & s.UpdatePatchBaselineRequest, + params: s.UpdatePatchBaselineRequest, ): Promise { const body: jsonP.JSONObject = { BaselineId: params["BaselineId"], @@ -2887,7 +2883,7 @@ export default class SSM { Replace: params["Replace"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdatePatchBaseline", }); return jsonP.readObj({ @@ -2912,7 +2908,7 @@ export default class SSM { } async updateResourceDataSync( - {abortSignal, ...params}: RequestConfig & s.UpdateResourceDataSyncRequest, + params: s.UpdateResourceDataSyncRequest, ): Promise { const body: jsonP.JSONObject = { SyncName: params["SyncName"], @@ -2920,21 +2916,21 @@ export default class SSM { SyncSource: fromResourceDataSyncSource(params["SyncSource"]), }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateResourceDataSync", }); await resp.arrayBuffer(); // consume body without use } async updateServiceSetting( - {abortSignal, ...params}: RequestConfig & s.UpdateServiceSettingRequest, + params: s.UpdateServiceSettingRequest, ): Promise { const body: jsonP.JSONObject = { SettingId: params["SettingId"], SettingValue: params["SettingValue"], }; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "UpdateServiceSetting", }); await resp.arrayBuffer(); // consume body without use @@ -2944,7 +2940,7 @@ export default class SSM { /** Checks state up to 20 times, 5 seconds apart (about 2 minutes max wait time). */ async waitForCommandExecuted( - params: RequestConfig & s.GetCommandInvocationRequest, + params: s.GetCommandInvocationRequest, ): Promise { const errMessage = 'ResourceNotReady: Resource is not in the state CommandExecuted'; for (let i = 0; i < 20; i++) { diff --git a/lib/services/sts/mod.ts b/lib/services/sts/mod.ts index 94154ffc..3f7e8976 100644 --- a/lib/services/sts/mod.ts +++ b/lib/services/sts/mod.ts @@ -1,16 +1,12 @@ // Autogenerated API client for: AWS Security Token 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 STS { +export class STS { #client: client.ServiceClient; constructor(apiFactory: client.ApiFactory) { this.#client = apiFactory.buildServiceClient(STS.ApiMetadata); @@ -30,7 +26,7 @@ export default class STS { }; async assumeRole( - {abortSignal, ...params}: RequestConfig & s.AssumeRoleRequest, + params: s.AssumeRoleRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -45,7 +41,7 @@ export default class STS { if ("SerialNumber" in params) body.append(prefix+"SerialNumber", (params["SerialNumber"] ?? '').toString()); if ("TokenCode" in params) body.append(prefix+"TokenCode", (params["TokenCode"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "AssumeRole", }); const xml = xmlP.readXmlResult(await resp.text(), "AssumeRoleResult"); @@ -57,7 +53,7 @@ export default class STS { } async assumeRoleWithSAML( - {abortSignal, ...params}: RequestConfig & s.AssumeRoleWithSAMLRequest, + params: s.AssumeRoleWithSAMLRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -69,7 +65,7 @@ export default class STS { if ("DurationSeconds" in params) body.append(prefix+"DurationSeconds", (params["DurationSeconds"] ?? '').toString()); const resp = await this.#client.performRequest({ skipSigning: true, - abortSignal, body, + body, action: "AssumeRoleWithSAML", }); const xml = xmlP.readXmlResult(await resp.text(), "AssumeRoleWithSAMLResult"); @@ -84,7 +80,7 @@ export default class STS { } async assumeRoleWithWebIdentity( - {abortSignal, ...params}: RequestConfig & s.AssumeRoleWithWebIdentityRequest, + params: s.AssumeRoleWithWebIdentityRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -97,7 +93,7 @@ export default class STS { if ("DurationSeconds" in params) body.append(prefix+"DurationSeconds", (params["DurationSeconds"] ?? '').toString()); const resp = await this.#client.performRequest({ skipSigning: true, - abortSignal, body, + body, action: "AssumeRoleWithWebIdentity", }); const xml = xmlP.readXmlResult(await resp.text(), "AssumeRoleWithWebIdentityResult"); @@ -112,13 +108,13 @@ export default class STS { } async decodeAuthorizationMessage( - {abortSignal, ...params}: RequestConfig & s.DecodeAuthorizationMessageRequest, + params: s.DecodeAuthorizationMessageRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"EncodedMessage", (params["EncodedMessage"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "DecodeAuthorizationMessage", }); const xml = xmlP.readXmlResult(await resp.text(), "DecodeAuthorizationMessageResult"); @@ -128,13 +124,13 @@ export default class STS { } async getAccessKeyInfo( - {abortSignal, ...params}: RequestConfig & s.GetAccessKeyInfoRequest, + params: s.GetAccessKeyInfoRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; body.append(prefix+"AccessKeyId", (params["AccessKeyId"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetAccessKeyInfo", }); const xml = xmlP.readXmlResult(await resp.text(), "GetAccessKeyInfoResult"); @@ -143,12 +139,10 @@ export default class STS { }); } - async getCallerIdentity( - {abortSignal}: RequestConfig = {}, - ): Promise { + async getCallerIdentity(): Promise { const body = new URLSearchParams; const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetCallerIdentity", }); const xml = xmlP.readXmlResult(await resp.text(), "GetCallerIdentityResult"); @@ -158,7 +152,7 @@ export default class STS { } async getFederationToken( - {abortSignal, ...params}: RequestConfig & s.GetFederationTokenRequest, + params: s.GetFederationTokenRequest, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -168,7 +162,7 @@ export default class STS { if ("DurationSeconds" in params) body.append(prefix+"DurationSeconds", (params["DurationSeconds"] ?? '').toString()); if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".member."}) const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetFederationToken", }); const xml = xmlP.readXmlResult(await resp.text(), "GetFederationTokenResult"); @@ -180,7 +174,7 @@ export default class STS { } async getSessionToken( - {abortSignal, ...params}: RequestConfig & s.GetSessionTokenRequest = {}, + params: s.GetSessionTokenRequest = {}, ): Promise { const body = new URLSearchParams; const prefix = ''; @@ -188,7 +182,7 @@ export default class STS { if ("SerialNumber" in params) body.append(prefix+"SerialNumber", (params["SerialNumber"] ?? '').toString()); if ("TokenCode" in params) body.append(prefix+"TokenCode", (params["TokenCode"] ?? '').toString()); const resp = await this.#client.performRequest({ - abortSignal, body, + body, action: "GetSessionToken", }); const xml = xmlP.readXmlResult(await resp.text(), "GetSessionTokenResult");