Skip to content

Commit bbff135

Browse files
author
awstools
committed
feat(client-iotfleetwise): Campaigns now support selecting Timestream or S3 as the data destination, Signal catalogs now support "Deprecation" keyword released in VSS v2.1 and "Comment" keyword released in VSS v3.0
1 parent 686075c commit bbff135

13 files changed

+1022
-274
lines changed

clients/client-iotfleetwise/src/commands/CreateCampaignCommand.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,20 @@ export interface CreateCampaignCommandOutput extends CreateCampaignResponse, __M
8787
* Value: "STRING_VALUE", // required
8888
* },
8989
* ],
90+
* dataDestinationConfigs: [ // DataDestinationConfigs
91+
* { // DataDestinationConfig Union: only one key present
92+
* s3Config: { // S3Config
93+
* bucketArn: "STRING_VALUE", // required
94+
* dataFormat: "STRING_VALUE",
95+
* storageCompressionFormat: "STRING_VALUE",
96+
* prefix: "STRING_VALUE",
97+
* },
98+
* timestreamConfig: { // TimestreamConfig
99+
* timestreamTableArn: "STRING_VALUE", // required
100+
* executionRoleArn: "STRING_VALUE", // required
101+
* },
102+
* },
103+
* ],
90104
* };
91105
* const command = new CreateCampaignCommand(input);
92106
* const response = await client.send(command);

clients/client-iotfleetwise/src/commands/CreateSignalCatalogCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export interface CreateSignalCatalogCommandOutput extends CreateSignalCatalogRes
5252
* branch: { // Branch
5353
* fullyQualifiedName: "STRING_VALUE", // required
5454
* description: "STRING_VALUE",
55+
* deprecationMessage: "STRING_VALUE",
56+
* comment: "STRING_VALUE",
5557
* },
5658
* sensor: { // Sensor
5759
* fullyQualifiedName: "STRING_VALUE", // required
@@ -63,6 +65,8 @@ export interface CreateSignalCatalogCommandOutput extends CreateSignalCatalogRes
6365
* ],
6466
* min: Number("double"),
6567
* max: Number("double"),
68+
* deprecationMessage: "STRING_VALUE",
69+
* comment: "STRING_VALUE",
6670
* },
6771
* actuator: { // Actuator
6872
* fullyQualifiedName: "STRING_VALUE", // required
@@ -75,6 +79,8 @@ export interface CreateSignalCatalogCommandOutput extends CreateSignalCatalogRes
7579
* min: Number("double"),
7680
* max: Number("double"),
7781
* assignedValue: "STRING_VALUE",
82+
* deprecationMessage: "STRING_VALUE",
83+
* comment: "STRING_VALUE",
7884
* },
7985
* attribute: { // Attribute
8086
* fullyQualifiedName: "STRING_VALUE", // required
@@ -88,6 +94,8 @@ export interface CreateSignalCatalogCommandOutput extends CreateSignalCatalogRes
8894
* max: Number("double"),
8995
* assignedValue: "STRING_VALUE",
9096
* defaultValue: "STRING_VALUE",
97+
* deprecationMessage: "STRING_VALUE",
98+
* comment: "STRING_VALUE",
9199
* },
92100
* },
93101
* ],

clients/client-iotfleetwise/src/commands/CreateVehicleCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface CreateVehicleCommandOutput extends CreateVehicleResponse, __Met
4040
* created from the same vehicle model consist of the same signals inherited from the
4141
* vehicle model.</p>
4242
* <note>
43-
* <p> If you have an existing Amazon Web Services IoT Thing, you can use Amazon Web Services IoT FleetWise to create a
43+
* <p> If you have an existing Amazon Web Services IoT thing, you can use Amazon Web Services IoT FleetWise to create a
4444
* vehicle and collect data from your thing. </p>
4545
* </note>
4646
* <p>For more information, see <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/create-vehicle-cli.html">Create a vehicle

clients/client-iotfleetwise/src/commands/GetCampaignCommand.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,20 @@ export interface GetCampaignCommandOutput extends GetCampaignResponse, __Metadat
8585
* // ],
8686
* // creationTime: new Date("TIMESTAMP"),
8787
* // lastModificationTime: new Date("TIMESTAMP"),
88+
* // dataDestinationConfigs: [ // DataDestinationConfigs
89+
* // { // DataDestinationConfig Union: only one key present
90+
* // s3Config: { // S3Config
91+
* // bucketArn: "STRING_VALUE", // required
92+
* // dataFormat: "STRING_VALUE",
93+
* // storageCompressionFormat: "STRING_VALUE",
94+
* // prefix: "STRING_VALUE",
95+
* // },
96+
* // timestreamConfig: { // TimestreamConfig
97+
* // timestreamTableArn: "STRING_VALUE", // required
98+
* // executionRoleArn: "STRING_VALUE", // required
99+
* // },
100+
* // },
101+
* // ],
88102
* // };
89103
*
90104
* ```

clients/client-iotfleetwise/src/commands/ListModelManifestNodesCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export interface ListModelManifestNodesCommandOutput extends ListModelManifestNo
5959
* // branch: { // Branch
6060
* // fullyQualifiedName: "STRING_VALUE", // required
6161
* // description: "STRING_VALUE",
62+
* // deprecationMessage: "STRING_VALUE",
63+
* // comment: "STRING_VALUE",
6264
* // },
6365
* // sensor: { // Sensor
6466
* // fullyQualifiedName: "STRING_VALUE", // required
@@ -70,6 +72,8 @@ export interface ListModelManifestNodesCommandOutput extends ListModelManifestNo
7072
* // ],
7173
* // min: Number("double"),
7274
* // max: Number("double"),
75+
* // deprecationMessage: "STRING_VALUE",
76+
* // comment: "STRING_VALUE",
7377
* // },
7478
* // actuator: { // Actuator
7579
* // fullyQualifiedName: "STRING_VALUE", // required
@@ -82,6 +86,8 @@ export interface ListModelManifestNodesCommandOutput extends ListModelManifestNo
8286
* // min: Number("double"),
8387
* // max: Number("double"),
8488
* // assignedValue: "STRING_VALUE",
89+
* // deprecationMessage: "STRING_VALUE",
90+
* // comment: "STRING_VALUE",
8591
* // },
8692
* // attribute: { // Attribute
8793
* // fullyQualifiedName: "STRING_VALUE", // required
@@ -95,6 +101,8 @@ export interface ListModelManifestNodesCommandOutput extends ListModelManifestNo
95101
* // max: Number("double"),
96102
* // assignedValue: "STRING_VALUE",
97103
* // defaultValue: "STRING_VALUE",
104+
* // deprecationMessage: "STRING_VALUE",
105+
* // comment: "STRING_VALUE",
98106
* // },
99107
* // },
100108
* // ],

clients/client-iotfleetwise/src/commands/ListSignalCatalogNodesCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export interface ListSignalCatalogNodesCommandOutput extends ListSignalCatalogNo
5959
* // branch: { // Branch
6060
* // fullyQualifiedName: "STRING_VALUE", // required
6161
* // description: "STRING_VALUE",
62+
* // deprecationMessage: "STRING_VALUE",
63+
* // comment: "STRING_VALUE",
6264
* // },
6365
* // sensor: { // Sensor
6466
* // fullyQualifiedName: "STRING_VALUE", // required
@@ -70,6 +72,8 @@ export interface ListSignalCatalogNodesCommandOutput extends ListSignalCatalogNo
7072
* // ],
7173
* // min: Number("double"),
7274
* // max: Number("double"),
75+
* // deprecationMessage: "STRING_VALUE",
76+
* // comment: "STRING_VALUE",
7377
* // },
7478
* // actuator: { // Actuator
7579
* // fullyQualifiedName: "STRING_VALUE", // required
@@ -82,6 +86,8 @@ export interface ListSignalCatalogNodesCommandOutput extends ListSignalCatalogNo
8286
* // min: Number("double"),
8387
* // max: Number("double"),
8488
* // assignedValue: "STRING_VALUE",
89+
* // deprecationMessage: "STRING_VALUE",
90+
* // comment: "STRING_VALUE",
8591
* // },
8692
* // attribute: { // Attribute
8793
* // fullyQualifiedName: "STRING_VALUE", // required
@@ -95,6 +101,8 @@ export interface ListSignalCatalogNodesCommandOutput extends ListSignalCatalogNo
95101
* // max: Number("double"),
96102
* // assignedValue: "STRING_VALUE",
97103
* // defaultValue: "STRING_VALUE",
104+
* // deprecationMessage: "STRING_VALUE",
105+
* // comment: "STRING_VALUE",
98106
* // },
99107
* // },
100108
* // ],

clients/client-iotfleetwise/src/commands/RegisterAccountCommand.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,18 @@ export interface RegisterAccountCommandOutput extends RegisterAccountResponse, _
3636

3737
/**
3838
* @public
39-
* <p>Registers your Amazon Web Services account, IAM, and Amazon Timestream resources so Amazon Web Services IoT FleetWise can
39+
* <important>
40+
* <p>This API operation contains deprecated parameters. Register your account again without the Timestream resources parameter so that Amazon Web Services IoT FleetWise can remove the Timestream metadata stored. You should then pass the data destination into the <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/APIReference/API_CreateCampaign.html">CreateCampaign</a> API operation.</p>
41+
* <p>You must delete any existing campaigns that include an empty data destination before you register your account again. For more information, see the <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/APIReference/API_DeleteCampaign.html">DeleteCampaign</a> API operation.</p>
42+
* <p>If you want to delete the Timestream inline policy from the service-linked role, such as to mitigate an overly permissive policy, you must first delete any existing campaigns. Then delete the service-linked role and register your account again to enable CloudWatch metrics. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_DeleteServiceLinkedRole.html">DeleteServiceLinkedRole</a> in the <i>Identity and Access Management API Reference</i>.</p>
43+
* </important>
44+
*
45+
* <p>Registers your Amazon Web Services account, IAM, and Amazon Timestream resources so Amazon Web Services IoT FleetWise can
4046
* transfer your vehicle data to the Amazon Web Services Cloud. For more information, including
4147
* step-by-step procedures, see <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/setting-up.html">Setting up
4248
* Amazon Web Services IoT FleetWise</a>. </p>
4349
* <note>
44-
* <p>An Amazon Web Services account is <b>not</b> the same thing as a "user
45-
* account". An <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_identity-management.html#intro-identity-users">Amazon Web Services user</a> is an identity that you create using Identity and Access Management (IAM) and
50+
* <p>An Amazon Web Services account is <b>not</b> the same thing as a "user." An <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_identity-management.html#intro-identity-users">Amazon Web Services user</a> is an identity that you create using Identity and Access Management (IAM) and
4651
* takes the form of either an <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html">IAM user</a> or an <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html">IAM role, both
4752
* with credentials</a>. A single Amazon Web Services account can, and typically does,
4853
* contain many users and roles.</p>

clients/client-iotfleetwise/src/commands/UpdateSignalCatalogCommand.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export interface UpdateSignalCatalogCommandOutput extends UpdateSignalCatalogRes
5151
* branch: { // Branch
5252
* fullyQualifiedName: "STRING_VALUE", // required
5353
* description: "STRING_VALUE",
54+
* deprecationMessage: "STRING_VALUE",
55+
* comment: "STRING_VALUE",
5456
* },
5557
* sensor: { // Sensor
5658
* fullyQualifiedName: "STRING_VALUE", // required
@@ -62,6 +64,8 @@ export interface UpdateSignalCatalogCommandOutput extends UpdateSignalCatalogRes
6264
* ],
6365
* min: Number("double"),
6466
* max: Number("double"),
67+
* deprecationMessage: "STRING_VALUE",
68+
* comment: "STRING_VALUE",
6569
* },
6670
* actuator: { // Actuator
6771
* fullyQualifiedName: "STRING_VALUE", // required
@@ -74,6 +78,8 @@ export interface UpdateSignalCatalogCommandOutput extends UpdateSignalCatalogRes
7478
* min: Number("double"),
7579
* max: Number("double"),
7680
* assignedValue: "STRING_VALUE",
81+
* deprecationMessage: "STRING_VALUE",
82+
* comment: "STRING_VALUE",
7783
* },
7884
* attribute: { // Attribute
7985
* fullyQualifiedName: "STRING_VALUE", // required
@@ -87,6 +93,8 @@ export interface UpdateSignalCatalogCommandOutput extends UpdateSignalCatalogRes
8793
* max: Number("double"),
8894
* assignedValue: "STRING_VALUE",
8995
* defaultValue: "STRING_VALUE",
96+
* deprecationMessage: "STRING_VALUE",
97+
* comment: "STRING_VALUE",
9098
* },
9199
* },
92100
* ],
@@ -95,6 +103,8 @@ export interface UpdateSignalCatalogCommandOutput extends UpdateSignalCatalogRes
95103
* branch: {
96104
* fullyQualifiedName: "STRING_VALUE", // required
97105
* description: "STRING_VALUE",
106+
* deprecationMessage: "STRING_VALUE",
107+
* comment: "STRING_VALUE",
98108
* },
99109
* sensor: {
100110
* fullyQualifiedName: "STRING_VALUE", // required
@@ -106,6 +116,8 @@ export interface UpdateSignalCatalogCommandOutput extends UpdateSignalCatalogRes
106116
* ],
107117
* min: Number("double"),
108118
* max: Number("double"),
119+
* deprecationMessage: "STRING_VALUE",
120+
* comment: "STRING_VALUE",
109121
* },
110122
* actuator: {
111123
* fullyQualifiedName: "STRING_VALUE", // required
@@ -118,6 +130,8 @@ export interface UpdateSignalCatalogCommandOutput extends UpdateSignalCatalogRes
118130
* min: Number("double"),
119131
* max: Number("double"),
120132
* assignedValue: "STRING_VALUE",
133+
* deprecationMessage: "STRING_VALUE",
134+
* comment: "STRING_VALUE",
121135
* },
122136
* attribute: {
123137
* fullyQualifiedName: "STRING_VALUE", // required
@@ -129,6 +143,8 @@ export interface UpdateSignalCatalogCommandOutput extends UpdateSignalCatalogRes
129143
* max: Number("double"),
130144
* assignedValue: "STRING_VALUE",
131145
* defaultValue: "STRING_VALUE",
146+
* deprecationMessage: "STRING_VALUE",
147+
* comment: "STRING_VALUE",
132148
* },
133149
* },
134150
* ],

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

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

2727
export interface EndpointParameters extends __EndpointParameters {
28-
Region: string;
28+
Region?: string;
2929
UseDualStack?: boolean;
3030
UseFIPS?: boolean;
3131
Endpoint?: string;

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

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
66
or see "smithy.rules#endpointRuleSet"
77
in codegen/sdk-codegen/aws-models/iotfleetwise.json */
88

9-
const q="fn",
10-
r="argv",
11-
s="ref";
12-
const a=true,
13-
b=false,
14-
c="String",
15-
d="PartitionResult",
16-
e="tree",
17-
f="error",
18-
g="endpoint",
19-
h={"required":true,"default":false,"type":"Boolean"},
20-
i={[s]:"Endpoint"},
21-
j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
22-
k={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
23-
l={},
24-
m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]},
25-
n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsDualStack"]}]},
9+
const q="required",
10+
r="fn",
11+
s="argv",
12+
t="ref";
13+
const a="isSet",
14+
b="tree",
15+
c="error",
16+
d="endpoint",
17+
e="PartitionResult",
18+
f={[q]:false,"type":"String"},
19+
g={[q]:true,"default":false,"type":"Boolean"},
20+
h={[t]:"Endpoint"},
21+
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
22+
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
23+
k={},
24+
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
25+
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
26+
n=[i],
2627
o=[j],
27-
p=[k];
28-
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://iotfleetwise-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://iotfleetwise-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://iotfleetwise.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://iotfleetwise.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]};
28+
p=[{[t]:"Region"}];
29+
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iotfleetwise-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iotfleetwise-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iotfleetwise.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://iotfleetwise.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
2930
export const ruleSet: RuleSetObject = _data;

0 commit comments

Comments
 (0)