Skip to content

Commit

Permalink
feat(client-iotfleetwise): Deprecated assignedValue property for actu…
Browse files Browse the repository at this point in the history
…ators and attributes. Added a message to invalid nodes and invalid decoder manifest exceptions.
  • Loading branch information
awstools committed Dec 9, 2022
1 parent e581155 commit 49aed2d
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 23 deletions.
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion clients/client-iotfleetwise/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const ruleSet: RuleSetObject = {
parameters: {
Region: {
builtIn: "AWS::Region",
required: false,
required: true,
documentation: "The AWS region used to dispatch the request.",
type: "String",
},
Expand Down
6 changes: 6 additions & 0 deletions clients/client-iotfleetwise/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export interface Actuator {
max?: number;

/**
* @deprecated
*
* <p>A specified value for the actuator.</p>
*/
assignedValue?: string;
Expand Down Expand Up @@ -306,6 +308,8 @@ export interface Attribute {
max?: number;

/**
* @deprecated
*
* <p>A specified value for the attribute.</p>
*/
assignedValue?: string;
Expand Down Expand Up @@ -1592,6 +1596,7 @@ export class DecoderManifestValidationException extends __BaseException {
* <p>The request couldn't be completed because of invalid network interfaces in the request.</p>
*/
invalidNetworkInterfaces?: InvalidNetworkInterface[];

/**
* @internal
*/
Expand Down Expand Up @@ -1910,6 +1915,7 @@ export class InvalidNodeException extends __BaseException {
* <p>The reason the node validation failed.</p>
*/
reason?: string;

/**
* @internal
*/
Expand Down
2 changes: 2 additions & 0 deletions clients/client-iotfleetwise/src/protocols/Aws_json1_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5037,6 +5037,7 @@ const deserializeAws_json1_0DecoderManifestValidationException = (
output.invalidSignals != null
? deserializeAws_json1_0InvalidSignalDecoders(output.invalidSignals, context)
: undefined,
message: __expectString(output.message),
} as any;
};

Expand Down Expand Up @@ -5400,6 +5401,7 @@ const deserializeAws_json1_0InvalidNetworkInterfaces = (
const deserializeAws_json1_0InvalidNodeException = (output: any, context: __SerdeContext): InvalidNodeException => {
return {
invalidNodes: output.invalidNodes != null ? deserializeAws_json1_0Nodes(output.invalidNodes, context) : undefined,
message: __expectString(output.message),
reason: __expectString(output.reason),
} as any;
};
Expand Down
54 changes: 33 additions & 21 deletions codegen/sdk-codegen/aws-models/iotfleetwise.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
"assignedValue": {
"target": "com.amazonaws.iotfleetwise#string",
"traits": {
"smithy.api#deprecated": {
"message": "assignedValue is no longer in use"
},
"smithy.api#documentation": "<p>A specified value for the actuator.</p>"
}
}
Expand Down Expand Up @@ -192,6 +195,9 @@
"assignedValue": {
"target": "com.amazonaws.iotfleetwise#string",
"traits": {
"smithy.api#deprecated": {
"message": "assignedValue is no longer in use"
},
"smithy.api#documentation": "<p>A specified value for the attribute.</p>"
}
},
Expand Down Expand Up @@ -1597,6 +1603,9 @@
"traits": {
"smithy.api#documentation": "<p>The request couldn't be completed because of invalid network interfaces in the request.</p>"
}
},
"message": {
"target": "com.amazonaws.iotfleetwise#string"
}
},
"traits": {
Expand Down Expand Up @@ -3348,6 +3357,9 @@
"traits": {
"smithy.api#documentation": "<p>The reason the node validation failed.</p>"
}
},
"message": {
"target": "com.amazonaws.iotfleetwise#string"
}
},
"traits": {
Expand Down Expand Up @@ -3504,7 +3516,7 @@
"parameters": {
"Region": {
"builtIn": "AWS::Region",
"required": false,
"required": true,
"documentation": "The AWS region used to dispatch the request.",
"type": "String"
},
Expand Down Expand Up @@ -3824,9 +3836,9 @@
}
},
"params": {
"Region": "eu-central-1",
"UseDualStack": true,
"UseFIPS": true
"UseFIPS": true,
"Region": "eu-central-1"
}
},
{
Expand All @@ -3837,9 +3849,9 @@
}
},
"params": {
"Region": "eu-central-1",
"UseDualStack": false,
"UseFIPS": true
"UseFIPS": true,
"Region": "eu-central-1"
}
},
{
Expand All @@ -3850,9 +3862,9 @@
}
},
"params": {
"Region": "eu-central-1",
"UseDualStack": true,
"UseFIPS": false
"UseFIPS": false,
"Region": "eu-central-1"
}
},
{
Expand All @@ -3863,9 +3875,9 @@
}
},
"params": {
"Region": "eu-central-1",
"UseDualStack": false,
"UseFIPS": false
"UseFIPS": false,
"Region": "eu-central-1"
}
},
{
Expand All @@ -3876,9 +3888,9 @@
}
},
"params": {
"Region": "us-east-1",
"UseDualStack": true,
"UseFIPS": true
"UseFIPS": true,
"Region": "us-east-1"
}
},
{
Expand All @@ -3889,9 +3901,9 @@
}
},
"params": {
"Region": "us-east-1",
"UseDualStack": false,
"UseFIPS": true
"UseFIPS": true,
"Region": "us-east-1"
}
},
{
Expand All @@ -3902,9 +3914,9 @@
}
},
"params": {
"Region": "us-east-1",
"UseDualStack": true,
"UseFIPS": false
"UseFIPS": false,
"Region": "us-east-1"
}
},
{
Expand All @@ -3915,9 +3927,9 @@
}
},
"params": {
"Region": "us-east-1",
"UseDualStack": false,
"UseFIPS": false
"UseFIPS": false,
"Region": "us-east-1"
}
},
{
Expand All @@ -3928,9 +3940,9 @@
}
},
"params": {
"Region": "us-east-1",
"UseDualStack": false,
"UseFIPS": false,
"Region": "us-east-1",
"Endpoint": "https://example.com"
}
},
Expand All @@ -3940,9 +3952,9 @@
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
},
"params": {
"Region": "us-east-1",
"UseDualStack": false,
"UseFIPS": true,
"Region": "us-east-1",
"Endpoint": "https://example.com"
}
},
Expand All @@ -3952,9 +3964,9 @@
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
},
"params": {
"Region": "us-east-1",
"UseDualStack": true,
"UseFIPS": false,
"Region": "us-east-1",
"Endpoint": "https://example.com"
}
}
Expand Down Expand Up @@ -7781,4 +7793,4 @@
}
}
}
}
}

0 comments on commit 49aed2d

Please sign in to comment.