Skip to content

Commit 96c925c

Browse files
author
awstools
committed
feat(client-iotsitewise): Add ComputationModelVersion support in IoT SiteWise APIs
1 parent 756643e commit 96c925c

File tree

5 files changed

+31
-4
lines changed

5 files changed

+31
-4
lines changed

clients/client-iotsitewise/src/commands/CreateAccessPolicyCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export interface CreateAccessPolicyCommandOutput extends CreateAccessPolicyRespo
3030
/**
3131
* <p>Creates an access policy that grants the specified identity (IAM Identity Center user, IAM Identity Center group, or
3232
* IAM user) access to the specified IoT SiteWise Monitor portal or project resource.</p>
33+
* <note>
34+
* <p>Support for access policies that use an SSO Group as the identity is not supported at this time.</p>
35+
* </note>
3336
* @example
3437
* Use a bare-bones client and the command you need to make an API call.
3538
* ```javascript

clients/client-iotsitewise/src/commands/DescribeComputationModelCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export interface DescribeComputationModelCommandOutput extends DescribeComputati
3838
* const client = new IoTSiteWiseClient(config);
3939
* const input = { // DescribeComputationModelRequest
4040
* computationModelId: "STRING_VALUE", // required
41+
* computationModelVersion: "STRING_VALUE",
4142
* };
4243
* const command = new DescribeComputationModelCommand(input);
4344
* const response = await client.send(command);

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6423,6 +6423,12 @@ export interface DescribeComputationModelRequest {
64236423
* @public
64246424
*/
64256425
computationModelId: string | undefined;
6426+
6427+
/**
6428+
* <p>The version of the computation model.</p>
6429+
* @public
6430+
*/
6431+
computationModelVersion?: string | undefined;
64266432
}
64276433

64286434
/**
@@ -7739,7 +7745,7 @@ export interface ExecuteQueryRequest {
77397745
* <p>Maximum is 20000</p>
77407746
* </li>
77417747
* <li>
7742-
* <p>Default is 250</p>
7748+
* <p>Default is 20000</p>
77437749
* </li>
77447750
* </ul>
77457751
* @public

clients/client-iotsitewise/src/protocols/Aws_restJson1.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,9 @@ export const se_DescribeComputationModelCommand = async (
16461646
const headers: any = {};
16471647
b.bp("/computation-models/{computationModelId}");
16481648
b.p("computationModelId", () => input.computationModelId!, "{computationModelId}", false);
1649+
const query: any = map({
1650+
[_cMV]: [, input[_cMV]!],
1651+
});
16491652
let body: any;
16501653
let { hostname: resolvedHostname } = await context.endpoint();
16511654
if (context.disableHostPrefix !== true) {
@@ -1655,7 +1658,7 @@ export const se_DescribeComputationModelCommand = async (
16551658
}
16561659
}
16571660
b.hn(resolvedHostname);
1658-
b.m("GET").h(headers).b(body);
1661+
b.m("GET").h(headers).q(query).b(body);
16591662
return b.build();
16601663
};
16611664

@@ -7856,6 +7859,7 @@ const _aT = "aggregateTypes";
78567859
const _aTc = "actionType";
78577860
const _cI = "conversationId";
78587861
const _cMT = "computationModelType";
7862+
const _cMV = "computationModelVersion";
78597863
const _cT = "clientToken";
78607864
const _e = "etag";
78617865
const _eD = "endDate";

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5069,6 +5069,12 @@
50695069
}
50705070
}
50715071
},
5072+
"com.amazonaws.iotsitewise#ComputationModelVersionFilter": {
5073+
"type": "string",
5074+
"traits": {
5075+
"smithy.api#pattern": "^(LATEST|ACTIVE|[1-9]{1}\\d{0,9})$"
5076+
}
5077+
},
50725078
"com.amazonaws.iotsitewise#ComputeLocation": {
50735079
"type": "enum",
50745080
"members": {
@@ -5265,7 +5271,7 @@
52655271
}
52665272
],
52675273
"traits": {
5268-
"smithy.api#documentation": "<p>Creates an access policy that grants the specified identity (IAM Identity Center user, IAM Identity Center group, or\n IAM user) access to the specified IoT SiteWise Monitor portal or project resource.</p>",
5274+
"smithy.api#documentation": "<p>Creates an access policy that grants the specified identity (IAM Identity Center user, IAM Identity Center group, or\n IAM user) access to the specified IoT SiteWise Monitor portal or project resource.</p>\n <note>\n <p>Support for access policies that use an SSO Group as the identity is not supported at this time.</p>\n </note>",
52695275
"smithy.api#endpoint": {
52705276
"hostPrefix": "monitor."
52715277
},
@@ -9295,6 +9301,13 @@
92959301
"smithy.api#httpLabel": {},
92969302
"smithy.api#required": {}
92979303
}
9304+
},
9305+
"computationModelVersion": {
9306+
"target": "com.amazonaws.iotsitewise#ComputationModelVersionFilter",
9307+
"traits": {
9308+
"smithy.api#documentation": "<p>The version of the computation model.</p>",
9309+
"smithy.api#httpQuery": "computationModelVersion"
9310+
}
92989311
}
92999312
},
93009313
"traits": {
@@ -11149,7 +11162,7 @@
1114911162
"maxResults": {
1115011163
"target": "com.amazonaws.iotsitewise#ExecuteQueryMaxResults",
1115111164
"traits": {
11152-
"smithy.api#documentation": "<p>The maximum number of results to return at one time.</p>\n <ul>\n <li>\n <p>Minimum is 1</p>\n </li>\n <li>\n <p>Maximum is 20000</p>\n </li>\n <li>\n <p>Default is 250</p>\n </li>\n </ul>"
11165+
"smithy.api#documentation": "<p>The maximum number of results to return at one time.</p>\n <ul>\n <li>\n <p>Minimum is 1</p>\n </li>\n <li>\n <p>Maximum is 20000</p>\n </li>\n <li>\n <p>Default is 20000</p>\n </li>\n </ul>"
1115311166
}
1115411167
},
1115511168
"clientToken": {

0 commit comments

Comments
 (0)