@aws-sdk/client-connect 3.213.0 → 3.214.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -531,11 +531,17 @@ const serializeAws_restJson1CreateSecurityProfileCommand = async (input, context
531
531
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
532
532
  let body;
533
533
  body = JSON.stringify({
534
+ ...(input.AllowedAccessControlTags != null && {
535
+ AllowedAccessControlTags: serializeAws_restJson1AllowedAccessControlTags(input.AllowedAccessControlTags, context),
536
+ }),
534
537
  ...(input.Description != null && { Description: input.Description }),
535
538
  ...(input.Permissions != null && {
536
539
  Permissions: serializeAws_restJson1PermissionsList(input.Permissions, context),
537
540
  }),
538
541
  ...(input.SecurityProfileName != null && { SecurityProfileName: input.SecurityProfileName }),
542
+ ...(input.TagRestrictedResources != null && {
543
+ TagRestrictedResources: serializeAws_restJson1TagRestrictedResourceList(input.TagRestrictedResources, context),
544
+ }),
539
545
  ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
540
546
  });
541
547
  return new protocol_http_1.HttpRequest({
@@ -3615,10 +3621,16 @@ const serializeAws_restJson1UpdateSecurityProfileCommand = async (input, context
3615
3621
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3616
3622
  let body;
3617
3623
  body = JSON.stringify({
3624
+ ...(input.AllowedAccessControlTags != null && {
3625
+ AllowedAccessControlTags: serializeAws_restJson1AllowedAccessControlTags(input.AllowedAccessControlTags, context),
3626
+ }),
3618
3627
  ...(input.Description != null && { Description: input.Description }),
3619
3628
  ...(input.Permissions != null && {
3620
3629
  Permissions: serializeAws_restJson1PermissionsList(input.Permissions, context),
3621
3630
  }),
3631
+ ...(input.TagRestrictedResources != null && {
3632
+ TagRestrictedResources: serializeAws_restJson1TagRestrictedResourceList(input.TagRestrictedResources, context),
3633
+ }),
3622
3634
  });
3623
3635
  return new protocol_http_1.HttpRequest({
3624
3636
  protocol,
@@ -11868,6 +11880,15 @@ const deserializeAws_restJson1UserNotFoundExceptionResponse = async (parsedOutpu
11868
11880
  });
11869
11881
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
11870
11882
  };
11883
+ const serializeAws_restJson1AllowedAccessControlTags = (input, context) => {
11884
+ return Object.entries(input).reduce((acc, [key, value]) => {
11885
+ if (value === null) {
11886
+ return acc;
11887
+ }
11888
+ acc[key] = value;
11889
+ return acc;
11890
+ }, {});
11891
+ };
11871
11892
  const serializeAws_restJson1AllowedMonitorCapabilities = (input, context) => {
11872
11893
  return input
11873
11894
  .filter((e) => e != null)
@@ -12400,6 +12421,13 @@ const serializeAws_restJson1TagOrConditionList = (input, context) => {
12400
12421
  return serializeAws_restJson1TagAndConditionList(entry, context);
12401
12422
  });
12402
12423
  };
12424
+ const serializeAws_restJson1TagRestrictedResourceList = (input, context) => {
12425
+ return input
12426
+ .filter((e) => e != null)
12427
+ .map((entry) => {
12428
+ return entry;
12429
+ });
12430
+ };
12403
12431
  const serializeAws_restJson1TaskTemplateConstraints = (input, context) => {
12404
12432
  return {
12405
12433
  ...(input.InvisibleFields != null && {
@@ -12607,6 +12635,15 @@ const deserializeAws_restJson1AgentStatusSummaryList = (output, context) => {
12607
12635
  });
12608
12636
  return retVal;
12609
12637
  };
12638
+ const deserializeAws_restJson1AllowedAccessControlTags = (output, context) => {
12639
+ return Object.entries(output).reduce((acc, [key, value]) => {
12640
+ if (value === null) {
12641
+ return acc;
12642
+ }
12643
+ acc[key] = (0, smithy_client_1.expectString)(value);
12644
+ return acc;
12645
+ }, {});
12646
+ };
12610
12647
  const deserializeAws_restJson1AttachmentReference = (output, context) => {
12611
12648
  return {
12612
12649
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -13691,11 +13728,17 @@ const deserializeAws_restJson1SecurityKeysList = (output, context) => {
13691
13728
  };
13692
13729
  const deserializeAws_restJson1SecurityProfile = (output, context) => {
13693
13730
  return {
13731
+ AllowedAccessControlTags: output.AllowedAccessControlTags != null
13732
+ ? deserializeAws_restJson1AllowedAccessControlTags(output.AllowedAccessControlTags, context)
13733
+ : undefined,
13694
13734
  Arn: (0, smithy_client_1.expectString)(output.Arn),
13695
13735
  Description: (0, smithy_client_1.expectString)(output.Description),
13696
13736
  Id: (0, smithy_client_1.expectString)(output.Id),
13697
13737
  OrganizationResourceId: (0, smithy_client_1.expectString)(output.OrganizationResourceId),
13698
13738
  SecurityProfileName: (0, smithy_client_1.expectString)(output.SecurityProfileName),
13739
+ TagRestrictedResources: output.TagRestrictedResources != null
13740
+ ? deserializeAws_restJson1TagRestrictedResourceList(output.TagRestrictedResources, context)
13741
+ : undefined,
13699
13742
  Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
13700
13743
  };
13701
13744
  };
@@ -13775,6 +13818,17 @@ const deserializeAws_restJson1TagMap = (output, context) => {
13775
13818
  return acc;
13776
13819
  }, {});
13777
13820
  };
13821
+ const deserializeAws_restJson1TagRestrictedResourceList = (output, context) => {
13822
+ const retVal = (output || [])
13823
+ .filter((e) => e != null)
13824
+ .map((entry) => {
13825
+ if (entry === null) {
13826
+ return null;
13827
+ }
13828
+ return (0, smithy_client_1.expectString)(entry);
13829
+ });
13830
+ return retVal;
13831
+ };
13778
13832
  const deserializeAws_restJson1TaskTemplateConstraints = (output, context) => {
13779
13833
  return {
13780
13834
  InvisibleFields: output.InvisibleFields != null
@@ -502,11 +502,17 @@ export const serializeAws_restJson1CreateSecurityProfileCommand = async (input,
502
502
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
503
503
  let body;
504
504
  body = JSON.stringify({
505
+ ...(input.AllowedAccessControlTags != null && {
506
+ AllowedAccessControlTags: serializeAws_restJson1AllowedAccessControlTags(input.AllowedAccessControlTags, context),
507
+ }),
505
508
  ...(input.Description != null && { Description: input.Description }),
506
509
  ...(input.Permissions != null && {
507
510
  Permissions: serializeAws_restJson1PermissionsList(input.Permissions, context),
508
511
  }),
509
512
  ...(input.SecurityProfileName != null && { SecurityProfileName: input.SecurityProfileName }),
513
+ ...(input.TagRestrictedResources != null && {
514
+ TagRestrictedResources: serializeAws_restJson1TagRestrictedResourceList(input.TagRestrictedResources, context),
515
+ }),
510
516
  ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
511
517
  });
512
518
  return new __HttpRequest({
@@ -3453,10 +3459,16 @@ export const serializeAws_restJson1UpdateSecurityProfileCommand = async (input,
3453
3459
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3454
3460
  let body;
3455
3461
  body = JSON.stringify({
3462
+ ...(input.AllowedAccessControlTags != null && {
3463
+ AllowedAccessControlTags: serializeAws_restJson1AllowedAccessControlTags(input.AllowedAccessControlTags, context),
3464
+ }),
3456
3465
  ...(input.Description != null && { Description: input.Description }),
3457
3466
  ...(input.Permissions != null && {
3458
3467
  Permissions: serializeAws_restJson1PermissionsList(input.Permissions, context),
3459
3468
  }),
3469
+ ...(input.TagRestrictedResources != null && {
3470
+ TagRestrictedResources: serializeAws_restJson1TagRestrictedResourceList(input.TagRestrictedResources, context),
3471
+ }),
3460
3472
  });
3461
3473
  return new __HttpRequest({
3462
3474
  protocol,
@@ -11533,6 +11545,15 @@ const deserializeAws_restJson1UserNotFoundExceptionResponse = async (parsedOutpu
11533
11545
  });
11534
11546
  return __decorateServiceException(exception, parsedOutput.body);
11535
11547
  };
11548
+ const serializeAws_restJson1AllowedAccessControlTags = (input, context) => {
11549
+ return Object.entries(input).reduce((acc, [key, value]) => {
11550
+ if (value === null) {
11551
+ return acc;
11552
+ }
11553
+ acc[key] = value;
11554
+ return acc;
11555
+ }, {});
11556
+ };
11536
11557
  const serializeAws_restJson1AllowedMonitorCapabilities = (input, context) => {
11537
11558
  return input
11538
11559
  .filter((e) => e != null)
@@ -12065,6 +12086,13 @@ const serializeAws_restJson1TagOrConditionList = (input, context) => {
12065
12086
  return serializeAws_restJson1TagAndConditionList(entry, context);
12066
12087
  });
12067
12088
  };
12089
+ const serializeAws_restJson1TagRestrictedResourceList = (input, context) => {
12090
+ return input
12091
+ .filter((e) => e != null)
12092
+ .map((entry) => {
12093
+ return entry;
12094
+ });
12095
+ };
12068
12096
  const serializeAws_restJson1TaskTemplateConstraints = (input, context) => {
12069
12097
  return {
12070
12098
  ...(input.InvisibleFields != null && {
@@ -12272,6 +12300,15 @@ const deserializeAws_restJson1AgentStatusSummaryList = (output, context) => {
12272
12300
  });
12273
12301
  return retVal;
12274
12302
  };
12303
+ const deserializeAws_restJson1AllowedAccessControlTags = (output, context) => {
12304
+ return Object.entries(output).reduce((acc, [key, value]) => {
12305
+ if (value === null) {
12306
+ return acc;
12307
+ }
12308
+ acc[key] = __expectString(value);
12309
+ return acc;
12310
+ }, {});
12311
+ };
12275
12312
  const deserializeAws_restJson1AttachmentReference = (output, context) => {
12276
12313
  return {
12277
12314
  Name: __expectString(output.Name),
@@ -13356,11 +13393,17 @@ const deserializeAws_restJson1SecurityKeysList = (output, context) => {
13356
13393
  };
13357
13394
  const deserializeAws_restJson1SecurityProfile = (output, context) => {
13358
13395
  return {
13396
+ AllowedAccessControlTags: output.AllowedAccessControlTags != null
13397
+ ? deserializeAws_restJson1AllowedAccessControlTags(output.AllowedAccessControlTags, context)
13398
+ : undefined,
13359
13399
  Arn: __expectString(output.Arn),
13360
13400
  Description: __expectString(output.Description),
13361
13401
  Id: __expectString(output.Id),
13362
13402
  OrganizationResourceId: __expectString(output.OrganizationResourceId),
13363
13403
  SecurityProfileName: __expectString(output.SecurityProfileName),
13404
+ TagRestrictedResources: output.TagRestrictedResources != null
13405
+ ? deserializeAws_restJson1TagRestrictedResourceList(output.TagRestrictedResources, context)
13406
+ : undefined,
13364
13407
  Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
13365
13408
  };
13366
13409
  };
@@ -13440,6 +13483,17 @@ const deserializeAws_restJson1TagMap = (output, context) => {
13440
13483
  return acc;
13441
13484
  }, {});
13442
13485
  };
13486
+ const deserializeAws_restJson1TagRestrictedResourceList = (output, context) => {
13487
+ const retVal = (output || [])
13488
+ .filter((e) => e != null)
13489
+ .map((entry) => {
13490
+ if (entry === null) {
13491
+ return null;
13492
+ }
13493
+ return __expectString(entry);
13494
+ });
13495
+ return retVal;
13496
+ };
13443
13497
  const deserializeAws_restJson1TaskTemplateConstraints = (output, context) => {
13444
13498
  return {
13445
13499
  InvisibleFields: output.InvisibleFields != null
@@ -1263,6 +1263,14 @@ export interface CreateSecurityProfileRequest {
1263
1263
  * <p>The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.</p>
1264
1264
  */
1265
1265
  Tags?: Record<string, string>;
1266
+ /**
1267
+ * <p>The list of tags that a security profile uses to restrict access to resources in Amazon Connect.</p>
1268
+ */
1269
+ AllowedAccessControlTags?: Record<string, string>;
1270
+ /**
1271
+ * <p>The list of resources that a security profile applies tag restrictions to in Amazon Connect.</p>
1272
+ */
1273
+ TagRestrictedResources?: string[];
1266
1274
  }
1267
1275
  export interface CreateSecurityProfileResponse {
1268
1276
  /**
@@ -2947,6 +2955,14 @@ export interface SecurityProfile {
2947
2955
  * <p>The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.</p>
2948
2956
  */
2949
2957
  Tags?: Record<string, string>;
2958
+ /**
2959
+ * <p>The list of tags that a security profile uses to restrict access to resources in Amazon Connect.</p>
2960
+ */
2961
+ AllowedAccessControlTags?: Record<string, string>;
2962
+ /**
2963
+ * <p>The list of resources that a security profile applies tag restrictions to in Amazon Connect.</p>
2964
+ */
2965
+ TagRestrictedResources?: string[];
2950
2966
  }
2951
2967
  export interface DescribeSecurityProfileResponse {
2952
2968
  /**
@@ -2382,6 +2382,14 @@ export interface UpdateSecurityProfileRequest {
2382
2382
  * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.</p>
2383
2383
  */
2384
2384
  InstanceId: string | undefined;
2385
+ /**
2386
+ * <p>The list of tags that a security profile uses to restrict access to resources in Amazon Connect.</p>
2387
+ */
2388
+ AllowedAccessControlTags?: Record<string, string>;
2389
+ /**
2390
+ * <p>The list of resources that a security profile applies tag restrictions to in Amazon Connect.</p>
2391
+ */
2392
+ TagRestrictedResources?: string[];
2385
2393
  }
2386
2394
  export interface UpdateTaskTemplateRequest {
2387
2395
  /**
@@ -527,6 +527,8 @@ export interface CreateSecurityProfileRequest {
527
527
  Permissions?: string[];
528
528
  InstanceId: string | undefined;
529
529
  Tags?: Record<string, string>;
530
+ AllowedAccessControlTags?: Record<string, string>;
531
+ TagRestrictedResources?: string[];
530
532
  }
531
533
  export interface CreateSecurityProfileResponse {
532
534
  SecurityProfileId?: string;
@@ -1290,6 +1292,8 @@ export interface SecurityProfile {
1290
1292
  SecurityProfileName?: string;
1291
1293
  Description?: string;
1292
1294
  Tags?: Record<string, string>;
1295
+ AllowedAccessControlTags?: Record<string, string>;
1296
+ TagRestrictedResources?: string[];
1293
1297
  }
1294
1298
  export interface DescribeSecurityProfileResponse {
1295
1299
  SecurityProfile?: SecurityProfile;
@@ -776,6 +776,8 @@ export interface UpdateSecurityProfileRequest {
776
776
  Permissions?: string[];
777
777
  SecurityProfileId: string | undefined;
778
778
  InstanceId: string | undefined;
779
+ AllowedAccessControlTags?: Record<string, string>;
780
+ TagRestrictedResources?: string[];
779
781
  }
780
782
  export interface UpdateTaskTemplateRequest {
781
783
  TaskTemplateId: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connect",
3
3
  "description": "AWS SDK for JavaScript Connect Client for Node.js, Browser and React Native",
4
- "version": "3.213.0",
4
+ "version": "3.214.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",