Skip to content

Commit

Permalink
feat(client-lookoutequipment): This release adds support for listing …
Browse files Browse the repository at this point in the history
…inference schedulers by status.
  • Loading branch information
awstools committed Dec 20, 2022
1 parent 858e866 commit 1d7dc07
Show file tree
Hide file tree
Showing 5 changed files with 346 additions and 258 deletions.
Expand Up @@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
};

export interface EndpointParameters extends __EndpointParameters {
Region?: string;
Region: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
Endpoint?: string;
Expand Down
29 changes: 14 additions & 15 deletions clients/client-lookoutequipment/src/endpoint/ruleset.ts
Expand Up @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/lookoutequipment.json */

const s="fn",
t="argv",
u="ref";
const a=false,
b=true,
const r="fn",
s="argv",
t="ref";
const a=true,
b=false,
c="String",
d="Boolean",
e="PartitionResult",
f="tree",
g="error",
h="endpoint",
i={[u]:"Endpoint"},
j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]},
k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]},
i={[t]:"Endpoint"},
j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
l={},
m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]},
n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]},
o=[i],
p=[j],
q=[],
r=[k];
const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://lookoutequipment-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://lookoutequipment-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://lookoutequipment.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://lookoutequipment.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]};
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
o=[j],
p=[],
q=[k];
const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://lookoutequipment-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://lookoutequipment-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://lookoutequipment.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://lookoutequipment.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]};
export const ruleSet: RuleSetObject = _data;
5 changes: 5 additions & 0 deletions clients/client-lookoutequipment/src/models/models_0.ts
Expand Up @@ -1888,6 +1888,11 @@ export interface ListInferenceSchedulersRequest {
* <p>The name of the ML model used by the inference scheduler to be listed. </p>
*/
ModelName?: string;

/**
* <p>Specifies the current status of the inference schedulers to list.</p>
*/
Status?: InferenceSchedulerStatus | string;
}

/**
Expand Down
13 changes: 13 additions & 0 deletions clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts
Expand Up @@ -959,6 +959,9 @@ const deserializeAws_json1_0DeleteDatasetCommandError = async (
case "ThrottlingException":
case "com.amazonaws.lookoutequipment#ThrottlingException":
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
case "ValidationException":
case "com.amazonaws.lookoutequipment#ValidationException":
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
throwDefaultError({
Expand Down Expand Up @@ -1062,6 +1065,9 @@ const deserializeAws_json1_0DeleteLabelCommandError = async (
case "ThrottlingException":
case "com.amazonaws.lookoutequipment#ThrottlingException":
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
case "ValidationException":
case "com.amazonaws.lookoutequipment#ValidationException":
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
throwDefaultError({
Expand Down Expand Up @@ -1112,6 +1118,9 @@ const deserializeAws_json1_0DeleteLabelGroupCommandError = async (
case "ThrottlingException":
case "com.amazonaws.lookoutequipment#ThrottlingException":
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
case "ValidationException":
case "com.amazonaws.lookoutequipment#ValidationException":
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
throwDefaultError({
Expand Down Expand Up @@ -1162,6 +1171,9 @@ const deserializeAws_json1_0DeleteModelCommandError = async (
case "ThrottlingException":
case "com.amazonaws.lookoutequipment#ThrottlingException":
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
case "ValidationException":
case "com.amazonaws.lookoutequipment#ValidationException":
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
throwDefaultError({
Expand Down Expand Up @@ -2841,6 +2853,7 @@ const serializeAws_json1_0ListInferenceSchedulersRequest = (
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
...(input.ModelName != null && { ModelName: input.ModelName }),
...(input.NextToken != null && { NextToken: input.NextToken }),
...(input.Status != null && { Status: input.Status }),
};
};

Expand Down

0 comments on commit 1d7dc07

Please sign in to comment.