Skip to content

Commit 49aed2d

Browse files
author
awstools
committed
feat(client-iotfleetwise): Deprecated assignedValue property for actuators and attributes. Added a message to invalid nodes and invalid decoder manifest exceptions.
1 parent e581155 commit 49aed2d

File tree

5 files changed

+43
-23
lines changed

5 files changed

+43
-23
lines changed

clients/client-iotfleetwise/src/endpoint/EndpointParameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
2424
};
2525

2626
export interface EndpointParameters extends __EndpointParameters {
27-
Region?: string;
27+
Region: string;
2828
UseDualStack?: boolean;
2929
UseFIPS?: boolean;
3030
Endpoint?: string;

clients/client-iotfleetwise/src/endpoint/ruleset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const ruleSet: RuleSetObject = {
66
parameters: {
77
Region: {
88
builtIn: "AWS::Region",
9-
required: false,
9+
required: true,
1010
documentation: "The AWS region used to dispatch the request.",
1111
type: "String",
1212
},

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export interface Actuator {
9898
max?: number;
9999

100100
/**
101+
* @deprecated
102+
*
101103
* <p>A specified value for the actuator.</p>
102104
*/
103105
assignedValue?: string;
@@ -306,6 +308,8 @@ export interface Attribute {
306308
max?: number;
307309

308310
/**
311+
* @deprecated
312+
*
309313
* <p>A specified value for the attribute.</p>
310314
*/
311315
assignedValue?: string;
@@ -1592,6 +1596,7 @@ export class DecoderManifestValidationException extends __BaseException {
15921596
* <p>The request couldn't be completed because of invalid network interfaces in the request.</p>
15931597
*/
15941598
invalidNetworkInterfaces?: InvalidNetworkInterface[];
1599+
15951600
/**
15961601
* @internal
15971602
*/
@@ -1910,6 +1915,7 @@ export class InvalidNodeException extends __BaseException {
19101915
* <p>The reason the node validation failed.</p>
19111916
*/
19121917
reason?: string;
1918+
19131919
/**
19141920
* @internal
19151921
*/

clients/client-iotfleetwise/src/protocols/Aws_json1_0.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5037,6 +5037,7 @@ const deserializeAws_json1_0DecoderManifestValidationException = (
50375037
output.invalidSignals != null
50385038
? deserializeAws_json1_0InvalidSignalDecoders(output.invalidSignals, context)
50395039
: undefined,
5040+
message: __expectString(output.message),
50405041
} as any;
50415042
};
50425043

@@ -5400,6 +5401,7 @@ const deserializeAws_json1_0InvalidNetworkInterfaces = (
54005401
const deserializeAws_json1_0InvalidNodeException = (output: any, context: __SerdeContext): InvalidNodeException => {
54015402
return {
54025403
invalidNodes: output.invalidNodes != null ? deserializeAws_json1_0Nodes(output.invalidNodes, context) : undefined,
5404+
message: __expectString(output.message),
54035405
reason: __expectString(output.reason),
54045406
} as any;
54055407
};

codegen/sdk-codegen/aws-models/iotfleetwise.json

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
"assignedValue": {
6868
"target": "com.amazonaws.iotfleetwise#string",
6969
"traits": {
70+
"smithy.api#deprecated": {
71+
"message": "assignedValue is no longer in use"
72+
},
7073
"smithy.api#documentation": "<p>A specified value for the actuator.</p>"
7174
}
7275
}
@@ -192,6 +195,9 @@
192195
"assignedValue": {
193196
"target": "com.amazonaws.iotfleetwise#string",
194197
"traits": {
198+
"smithy.api#deprecated": {
199+
"message": "assignedValue is no longer in use"
200+
},
195201
"smithy.api#documentation": "<p>A specified value for the attribute.</p>"
196202
}
197203
},
@@ -1597,6 +1603,9 @@
15971603
"traits": {
15981604
"smithy.api#documentation": "<p>The request couldn't be completed because of invalid network interfaces in the request.</p>"
15991605
}
1606+
},
1607+
"message": {
1608+
"target": "com.amazonaws.iotfleetwise#string"
16001609
}
16011610
},
16021611
"traits": {
@@ -3348,6 +3357,9 @@
33483357
"traits": {
33493358
"smithy.api#documentation": "<p>The reason the node validation failed.</p>"
33503359
}
3360+
},
3361+
"message": {
3362+
"target": "com.amazonaws.iotfleetwise#string"
33513363
}
33523364
},
33533365
"traits": {
@@ -3504,7 +3516,7 @@
35043516
"parameters": {
35053517
"Region": {
35063518
"builtIn": "AWS::Region",
3507-
"required": false,
3519+
"required": true,
35083520
"documentation": "The AWS region used to dispatch the request.",
35093521
"type": "String"
35103522
},
@@ -3824,9 +3836,9 @@
38243836
}
38253837
},
38263838
"params": {
3827-
"Region": "eu-central-1",
38283839
"UseDualStack": true,
3829-
"UseFIPS": true
3840+
"UseFIPS": true,
3841+
"Region": "eu-central-1"
38303842
}
38313843
},
38323844
{
@@ -3837,9 +3849,9 @@
38373849
}
38383850
},
38393851
"params": {
3840-
"Region": "eu-central-1",
38413852
"UseDualStack": false,
3842-
"UseFIPS": true
3853+
"UseFIPS": true,
3854+
"Region": "eu-central-1"
38433855
}
38443856
},
38453857
{
@@ -3850,9 +3862,9 @@
38503862
}
38513863
},
38523864
"params": {
3853-
"Region": "eu-central-1",
38543865
"UseDualStack": true,
3855-
"UseFIPS": false
3866+
"UseFIPS": false,
3867+
"Region": "eu-central-1"
38563868
}
38573869
},
38583870
{
@@ -3863,9 +3875,9 @@
38633875
}
38643876
},
38653877
"params": {
3866-
"Region": "eu-central-1",
38673878
"UseDualStack": false,
3868-
"UseFIPS": false
3879+
"UseFIPS": false,
3880+
"Region": "eu-central-1"
38693881
}
38703882
},
38713883
{
@@ -3876,9 +3888,9 @@
38763888
}
38773889
},
38783890
"params": {
3879-
"Region": "us-east-1",
38803891
"UseDualStack": true,
3881-
"UseFIPS": true
3892+
"UseFIPS": true,
3893+
"Region": "us-east-1"
38823894
}
38833895
},
38843896
{
@@ -3889,9 +3901,9 @@
38893901
}
38903902
},
38913903
"params": {
3892-
"Region": "us-east-1",
38933904
"UseDualStack": false,
3894-
"UseFIPS": true
3905+
"UseFIPS": true,
3906+
"Region": "us-east-1"
38953907
}
38963908
},
38973909
{
@@ -3902,9 +3914,9 @@
39023914
}
39033915
},
39043916
"params": {
3905-
"Region": "us-east-1",
39063917
"UseDualStack": true,
3907-
"UseFIPS": false
3918+
"UseFIPS": false,
3919+
"Region": "us-east-1"
39083920
}
39093921
},
39103922
{
@@ -3915,9 +3927,9 @@
39153927
}
39163928
},
39173929
"params": {
3918-
"Region": "us-east-1",
39193930
"UseDualStack": false,
3920-
"UseFIPS": false
3931+
"UseFIPS": false,
3932+
"Region": "us-east-1"
39213933
}
39223934
},
39233935
{
@@ -3928,9 +3940,9 @@
39283940
}
39293941
},
39303942
"params": {
3931-
"Region": "us-east-1",
39323943
"UseDualStack": false,
39333944
"UseFIPS": false,
3945+
"Region": "us-east-1",
39343946
"Endpoint": "https://example.com"
39353947
}
39363948
},
@@ -3940,9 +3952,9 @@
39403952
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
39413953
},
39423954
"params": {
3943-
"Region": "us-east-1",
39443955
"UseDualStack": false,
39453956
"UseFIPS": true,
3957+
"Region": "us-east-1",
39463958
"Endpoint": "https://example.com"
39473959
}
39483960
},
@@ -3952,9 +3964,9 @@
39523964
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
39533965
},
39543966
"params": {
3955-
"Region": "us-east-1",
39563967
"UseDualStack": true,
39573968
"UseFIPS": false,
3969+
"Region": "us-east-1",
39583970
"Endpoint": "https://example.com"
39593971
}
39603972
}
@@ -7781,4 +7793,4 @@
77817793
}
77827794
}
77837795
}
7784-
}
7796+
}

0 commit comments

Comments
 (0)