Skip to content

Commit

Permalink
feat(client-iotsitewise): Provide support for tagging of data streams…
Browse files Browse the repository at this point in the history
… and enabling tag based authorization for property alias
  • Loading branch information
awstools committed Mar 21, 2023
1 parent eb6d517 commit 0a085f6
Show file tree
Hide file tree
Showing 4 changed files with 876 additions and 704 deletions.
35 changes: 18 additions & 17 deletions clients/client-iotsitewise/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/iotsitewise.json */

const p="required",
q="fn",
r="argv",
s="ref";
const a="PartitionResult",
const q="required",
r="fn",
s="argv",
t="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e={[p]:false,"type":"String"},
f={[p]:true,"default":false,"type":"Boolean"},
g={[s]:"Endpoint"},
h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
j={},
k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]},
l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]},
m=[g],
n=[h],
o=[i];
const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],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:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://iotsitewise-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},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:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iotsitewise-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://iotsitewise.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://iotsitewise.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]};
e="PartitionResult",
f={[q]:false,"type":"String"},
g={[q]:true,"default":false,"type":"Boolean"},
h={[t]:"Endpoint"},
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
k={},
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
n=[i],
o=[j],
p=[{[t]:"Region"}];
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://iotsitewise-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://iotsitewise-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://iotsitewise.{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://iotsitewise.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
export const ruleSet: RuleSetObject = _data;
52 changes: 34 additions & 18 deletions clients/client-iotsitewise/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ export interface AssetModelSummary {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the asset model, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}</code>
* </p>
*/
Expand Down Expand Up @@ -1235,7 +1235,7 @@ export interface AssetSummary {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the asset, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}</code>
* </p>
*/
Expand Down Expand Up @@ -1477,7 +1477,7 @@ export interface AssociatedAssetsSummary {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the asset, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}</code>
* </p>
*/
Expand Down Expand Up @@ -1868,7 +1868,7 @@ export interface BatchGetAssetPropertyValueEntry {
export interface BatchGetAssetPropertyValueRequest {
/**
* <p>The list of asset property value entries for the batch get request. You can specify up to
* 16 entries per request.</p>
* 128 entries per request.</p>
*/
entries: BatchGetAssetPropertyValueEntry[] | undefined;

Expand Down Expand Up @@ -2311,7 +2311,7 @@ export interface CreateAccessPolicyResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the access policy, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId}</code>
* </p>
*/
Expand Down Expand Up @@ -2356,7 +2356,7 @@ export interface CreateAssetResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the asset, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}</code>
* </p>
*/
Expand Down Expand Up @@ -2426,7 +2426,7 @@ export interface CreateAssetModelResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the asset model, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}</code>
* </p>
*/
Expand Down Expand Up @@ -2645,7 +2645,7 @@ export interface CreateDashboardResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the dashboard, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:dashboard/${DashboardId}</code>
* </p>
*/
Expand Down Expand Up @@ -2723,7 +2723,7 @@ export interface CreateGatewayResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the gateway, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}</code>
* </p>
*/
Expand Down Expand Up @@ -2885,7 +2885,7 @@ export interface CreatePortalResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the portal, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId}</code>
* </p>
*/
Expand Down Expand Up @@ -2947,7 +2947,7 @@ export interface CreateProjectResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the project, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:project/${ProjectId}</code>
* </p>
*/
Expand Down Expand Up @@ -3100,7 +3100,7 @@ export interface DescribeAccessPolicyResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the access policy, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId}</code>
* </p>
*/
Expand Down Expand Up @@ -3157,7 +3157,7 @@ export interface DescribeAssetResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the asset, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}</code>
* </p>
*/
Expand Down Expand Up @@ -3233,7 +3233,7 @@ export interface DescribeAssetModelResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the asset model, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}</code>
* </p>
*/
Expand Down Expand Up @@ -3495,7 +3495,7 @@ export interface DescribeDashboardResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the dashboard, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:dashboard/${DashboardId}</code>
* </p>
*/
Expand Down Expand Up @@ -3656,7 +3656,7 @@ export interface DescribeGatewayResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the gateway, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}</code>
* </p>
*/
Expand Down Expand Up @@ -3794,7 +3794,7 @@ export interface DescribePortalResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the portal, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId}</code>
* </p>
*/
Expand Down Expand Up @@ -3886,7 +3886,7 @@ export interface DescribeProjectResponse {

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the project, which has the following format.</p>
* <p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:project/${ProjectId}</code>
* </p>
*/
Expand Down Expand Up @@ -4103,6 +4103,14 @@ export interface DescribeTimeSeriesResponse {
* <p>The date that the time series was last updated, in Unix epoch time.</p>
*/
timeSeriesLastUpdateDate: Date | undefined;

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the time series, which has the following format.</p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:time-series/${TimeSeriesId}</code>
* </p>
*/
timeSeriesArn: string | undefined;
}

export interface DisassociateAssetsRequest {
Expand Down Expand Up @@ -5336,6 +5344,14 @@ export interface TimeSeriesSummary {
* <p>The date that the time series was last updated, in Unix epoch time.</p>
*/
timeSeriesLastUpdateDate: Date | undefined;

/**
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the time series, which has the following format.</p>
* <p>
* <code>arn:${Partition}:iotsitewise:${Region}:${Account}:time-series/${TimeSeriesId}</code>
* </p>
*/
timeSeriesArn: string | undefined;
}

export interface ListTimeSeriesResponse {
Expand Down
4 changes: 4 additions & 0 deletions clients/client-iotsitewise/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5147,6 +5147,9 @@ export const deserializeAws_restJson1DescribeTimeSeriesCommand = async (
if (data.propertyId != null) {
contents.propertyId = __expectString(data.propertyId);
}
if (data.timeSeriesArn != null) {
contents.timeSeriesArn = __expectString(data.timeSeriesArn);
}
if (data.timeSeriesCreationDate != null) {
contents.timeSeriesCreationDate = __expectNonNull(
__parseEpochTimestamp(__expectNumber(data.timeSeriesCreationDate))
Expand Down Expand Up @@ -9248,6 +9251,7 @@ const deserializeAws_restJson1TimeSeriesSummary = (output: any, context: __Serde
dataType: __expectString(output.dataType),
dataTypeSpec: __expectString(output.dataTypeSpec),
propertyId: __expectString(output.propertyId),
timeSeriesArn: __expectString(output.timeSeriesArn),
timeSeriesCreationDate:
output.timeSeriesCreationDate != null
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timeSeriesCreationDate)))
Expand Down
Loading

0 comments on commit 0a085f6

Please sign in to comment.