Skip to content

Commit

Permalink
feat(client-mgn): Removed required annotation from input fields in De…
Browse files Browse the repository at this point in the history
…scribe operations requests. Added quotaValue to ServiceQuotaExceededException
  • Loading branch information
awstools committed Apr 20, 2022
1 parent cad1178 commit ee4defd
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 210 deletions.
12 changes: 9 additions & 3 deletions clients/client-mgn/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export interface DescribeJobsRequest {
/**
* <p>Request to describe Job log filters.</p>
*/
filters: DescribeJobsRequestFilters | undefined;
filters?: DescribeJobsRequestFilters;

/**
* <p>Request to describe job log items by max results.</p>
Expand Down Expand Up @@ -848,7 +848,7 @@ export interface DescribeReplicationConfigurationTemplatesRequest {
/**
* <p>Request to describe Replication Configuration template by template IDs.</p>
*/
replicationConfigurationTemplateIDs: string[] | undefined;
replicationConfigurationTemplateIDs?: string[];

/**
* <p>Request to describe Replication Configuration template by max results.</p>
Expand Down Expand Up @@ -1841,7 +1841,7 @@ export interface DescribeSourceServersRequest {
/**
* <p>Request to filter Source Servers list.</p>
*/
filters: DescribeSourceServersRequestFilters | undefined;
filters?: DescribeSourceServersRequestFilters;

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

/**
* <p>Exceeded the service quota value.</p>
*/
quotaValue?: number;

/**
* @internal
*/
Expand All @@ -2289,6 +2294,7 @@ export class ServiceQuotaExceededException extends __BaseException {
this.resourceType = opts.resourceType;
this.serviceCode = opts.serviceCode;
this.quotaCode = opts.quotaCode;
this.quotaValue = opts.quotaValue;
}
}

Expand Down
4 changes: 4 additions & 0 deletions clients/client-mgn/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
import {
decorateServiceException as __decorateServiceException,
expectBoolean as __expectBoolean,
expectInt32 as __expectInt32,
expectLong as __expectLong,
expectNonNull as __expectNonNull,
expectObject as __expectObject,
Expand Down Expand Up @@ -3193,6 +3194,9 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (
if (data.quotaCode !== undefined && data.quotaCode !== null) {
contents.quotaCode = __expectString(data.quotaCode);
}
if (data.quotaValue !== undefined && data.quotaValue !== null) {
contents.quotaValue = __expectInt32(data.quotaValue);
}
if (data.resourceId !== undefined && data.resourceId !== null) {
contents.resourceId = __expectString(data.resourceId);
}
Expand Down
Loading

0 comments on commit ee4defd

Please sign in to comment.