Skip to content

Commit ee4defd

Browse files
author
awstools
committed
feat(client-mgn): Removed required annotation from input fields in Describe operations requests. Added quotaValue to ServiceQuotaExceededException
1 parent cad1178 commit ee4defd

File tree

3 files changed

+207
-210
lines changed

3 files changed

+207
-210
lines changed

clients/client-mgn/src/models/models_0.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ export interface DescribeJobsRequest {
386386
/**
387387
* <p>Request to describe Job log filters.</p>
388388
*/
389-
filters: DescribeJobsRequestFilters | undefined;
389+
filters?: DescribeJobsRequestFilters;
390390

391391
/**
392392
* <p>Request to describe job log items by max results.</p>
@@ -848,7 +848,7 @@ export interface DescribeReplicationConfigurationTemplatesRequest {
848848
/**
849849
* <p>Request to describe Replication Configuration template by template IDs.</p>
850850
*/
851-
replicationConfigurationTemplateIDs: string[] | undefined;
851+
replicationConfigurationTemplateIDs?: string[];
852852

853853
/**
854854
* <p>Request to describe Replication Configuration template by max results.</p>
@@ -1841,7 +1841,7 @@ export interface DescribeSourceServersRequest {
18411841
/**
18421842
* <p>Request to filter Source Servers list.</p>
18431843
*/
1844-
filters: DescribeSourceServersRequestFilters | undefined;
1844+
filters?: DescribeSourceServersRequestFilters;
18451845

18461846
/**
18471847
* <p>Request to filter Source Servers list by maximum results.</p>
@@ -2274,6 +2274,11 @@ export class ServiceQuotaExceededException extends __BaseException {
22742274
*/
22752275
quotaCode?: string;
22762276

2277+
/**
2278+
* <p>Exceeded the service quota value.</p>
2279+
*/
2280+
quotaValue?: number;
2281+
22772282
/**
22782283
* @internal
22792284
*/
@@ -2289,6 +2294,7 @@ export class ServiceQuotaExceededException extends __BaseException {
22892294
this.resourceType = opts.resourceType;
22902295
this.serviceCode = opts.serviceCode;
22912296
this.quotaCode = opts.quotaCode;
2297+
this.quotaValue = opts.quotaValue;
22922298
}
22932299
}
22942300

clients/client-mgn/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
22
import {
33
decorateServiceException as __decorateServiceException,
44
expectBoolean as __expectBoolean,
5+
expectInt32 as __expectInt32,
56
expectLong as __expectLong,
67
expectNonNull as __expectNonNull,
78
expectObject as __expectObject,
@@ -3193,6 +3194,9 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (
31933194
if (data.quotaCode !== undefined && data.quotaCode !== null) {
31943195
contents.quotaCode = __expectString(data.quotaCode);
31953196
}
3197+
if (data.quotaValue !== undefined && data.quotaValue !== null) {
3198+
contents.quotaValue = __expectInt32(data.quotaValue);
3199+
}
31963200
if (data.resourceId !== undefined && data.resourceId !== null) {
31973201
contents.resourceId = __expectString(data.resourceId);
31983202
}

0 commit comments

Comments
 (0)