@aws-sdk/client-ram 3.1162.0 → 3.1164.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.
Files changed (36) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +126 -35
  3. package/dist-es/RAM.js +2 -0
  4. package/dist-es/commands/UpdatePermissionCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +13 -4
  7. package/dist-es/schemas/schemas_0.js +98 -30
  8. package/dist-types/RAM.d.ts +7 -0
  9. package/dist-types/RAMClient.d.ts +3 -2
  10. package/dist-types/commands/AssociateResourceSharePermissionCommand.d.ts +8 -0
  11. package/dist-types/commands/CreatePermissionCommand.d.ts +18 -0
  12. package/dist-types/commands/CreatePermissionVersionCommand.d.ts +19 -1
  13. package/dist-types/commands/CreateResourceShareCommand.d.ts +13 -0
  14. package/dist-types/commands/DeletePermissionCommand.d.ts +1 -1
  15. package/dist-types/commands/DeletePermissionVersionCommand.d.ts +1 -1
  16. package/dist-types/commands/GetPermissionCommand.d.ts +23 -1
  17. package/dist-types/commands/ListPermissionAssociationsCommand.d.ts +12 -0
  18. package/dist-types/commands/ListPermissionVersionsCommand.d.ts +11 -0
  19. package/dist-types/commands/ListPermissionsCommand.d.ts +13 -0
  20. package/dist-types/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +10 -0
  21. package/dist-types/commands/ListResourceSharePermissionsCommand.d.ts +11 -0
  22. package/dist-types/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +11 -0
  23. package/dist-types/commands/ReplacePermissionAssociationsCommand.d.ts +18 -0
  24. package/dist-types/commands/UpdatePermissionCommand.d.ts +124 -0
  25. package/dist-types/commands/index.d.ts +1 -0
  26. package/dist-types/models/enums.d.ts +37 -12
  27. package/dist-types/models/models_0.d.ts +347 -3
  28. package/dist-types/schemas/schemas_0.d.ts +7 -0
  29. package/dist-types/ts3.4/RAM.d.ts +17 -0
  30. package/dist-types/ts3.4/RAMClient.d.ts +6 -0
  31. package/dist-types/ts3.4/commands/UpdatePermissionCommand.d.ts +38 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/enums.d.ts +18 -5
  34. package/dist-types/ts3.4/models/models_0.d.ts +46 -0
  35. package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -0
  36. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import type { PermissionFeatureSet, PermissionStatus, PermissionType, PermissionTypeFilter, ReplacePermissionAssociationsWorkStatus, ResourceOwner, ResourceRegionScope, ResourceRegionScopeFilter, ResourceShareAssociationStatus, ResourceShareAssociationType, ResourceShareFeatureSet, ResourceShareInvitationStatus, ResourceShareStatus, ResourceStatus } from "./enums";
1
+ import type { PermissionFeatureSet, PermissionStatus, PermissionTemplateParameterType, PermissionType, PermissionTypeFilter, ReplacePermissionAssociationsWorkStatus, ResourceOwner, ResourceRegionScope, ResourceRegionScopeFilter, ResourceShareAssociationStatus, ResourceShareAssociationType, ResourceShareFeatureSet, ResourceShareInvitationStatus, ResourceShareStatus, ResourceStatus, UpdatePermissionStatus } from "./enums";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -271,6 +271,25 @@ export interface AssociateResourceShareResponse {
271
271
  */
272
272
  clientToken?: string | undefined;
273
273
  }
274
+ /**
275
+ * <p>Contains the name and values to assign to a template parameter when associating a permission template with a resource share.</p>
276
+ * @public
277
+ */
278
+ export interface PermissionTemplateParameterInput {
279
+ /**
280
+ * <p>The name of the template parameter to assign a value to. This must match a parameter
281
+ * name declared in the permission template.</p>
282
+ * @public
283
+ */
284
+ name?: string | undefined;
285
+ /**
286
+ * <p>The values to assign to the template parameter. For <code>STRING</code> type
287
+ * parameters, provide a single value. For <code>STRING_LIST</code> type parameters,
288
+ * provide one or more values.</p>
289
+ * @public
290
+ */
291
+ values?: string[] | undefined;
292
+ }
274
293
  /**
275
294
  * @public
276
295
  */
@@ -288,6 +307,13 @@ export interface AssociateResourceSharePermissionRequest {
288
307
  * @public
289
308
  */
290
309
  permissionArn: string | undefined;
310
+ /**
311
+ * <p>Specifies the template parameter values for the permission being associated. You must
312
+ * provide values for all parameters declared in the permission template. This parameter is
313
+ * required only if the specified permission has template parameters.</p>
314
+ * @public
315
+ */
316
+ permissionTemplateParameters?: PermissionTemplateParameterInput[] | undefined;
291
317
  /**
292
318
  * <p>Specifies whether the specified permission should replace the existing permission
293
319
  * associated with the resource share. Use <code>true</code> to replace the current permissions. Use
@@ -351,6 +377,42 @@ export interface AssociateResourceSharePermissionResponse {
351
377
  */
352
378
  clientToken?: string | undefined;
353
379
  }
380
+ /**
381
+ * <p>Describes a template parameter declaration for a customer managed permission. Each declaration defines a
382
+ * named placeholder that can be used in the permission's policy template.</p>
383
+ * @public
384
+ */
385
+ export interface PermissionTemplateParameterDeclaration {
386
+ /**
387
+ * <p>The name of the template parameter. This name is used as the placeholder in the
388
+ * policy template using the syntax <code>@\{parameterName\}</code>.</p>
389
+ * @public
390
+ */
391
+ name?: string | undefined;
392
+ /**
393
+ * <p>The type of the template parameter. This can be one of the following values:</p>
394
+ * <ul>
395
+ * <li>
396
+ * <p>
397
+ * <code>STRING</code> – A single string value that is substituted
398
+ * directly into the template.</p>
399
+ * </li>
400
+ * <li>
401
+ * <p>
402
+ * <code>STRING_LIST</code> – One or more string values that expand to
403
+ * an array in the rendered policy.</p>
404
+ * </li>
405
+ * </ul>
406
+ * @public
407
+ */
408
+ type?: PermissionTemplateParameterType | undefined;
409
+ /**
410
+ * <p>A description of the template parameter that helps consumers understand what value to
411
+ * provide.</p>
412
+ * @public
413
+ */
414
+ description?: string | undefined;
415
+ }
354
416
  /**
355
417
  * <p>A structure containing a tag. A tag is metadata that you can attach to your resources
356
418
  * to help organize and categorize them. You can also use them to help you secure your
@@ -433,6 +495,14 @@ export interface CreatePermissionRequest {
433
495
  * @public
434
496
  */
435
497
  policyTemplate: string | undefined;
498
+ /**
499
+ * <p>Specifies a list of template parameter declarations for this permission. Each
500
+ * declaration defines a named placeholder that can be used in the policy template using
501
+ * the syntax <code>@\{parameterName\}</code>. Template parameters can only appear in
502
+ * Condition Key and Condition Value fields of the policy. When you associate this permission with a resource share, you must provide values for all declared parameters.</p>
503
+ * @public
504
+ */
505
+ permissionTemplateParameters?: PermissionTemplateParameterDeclaration[] | undefined;
436
506
  /**
437
507
  * <p>Specifies a unique, case-sensitive identifier that you provide to
438
508
  * ensure the idempotency of the request. This lets you safely retry the request without
@@ -455,6 +525,45 @@ export interface CreatePermissionRequest {
455
525
  */
456
526
  tags?: Tag[] | undefined;
457
527
  }
528
+ /**
529
+ * <p>Contains the declaration of a template parameter for a customer managed permission. When returned in the context of a permission association, it also includes the values assigned to that parameter.</p>
530
+ * @public
531
+ */
532
+ export interface PermissionTemplateParameter {
533
+ /**
534
+ * <p>The name of the template parameter.</p>
535
+ * @public
536
+ */
537
+ name?: string | undefined;
538
+ /**
539
+ * <p>The type of the template parameter. This can be one of the following values:</p>
540
+ * <ul>
541
+ * <li>
542
+ * <p>
543
+ * <code>STRING</code> – A single string value.</p>
544
+ * </li>
545
+ * <li>
546
+ * <p>
547
+ * <code>STRING_LIST</code> – One or more string values.</p>
548
+ * </li>
549
+ * </ul>
550
+ * @public
551
+ */
552
+ type?: PermissionTemplateParameterType | undefined;
553
+ /**
554
+ * <p>A description of the template parameter.</p>
555
+ * @public
556
+ */
557
+ description?: string | undefined;
558
+ /**
559
+ * <p>The values assigned to this template parameter in the context of a permission
560
+ * association. This field is present only when the parameter has been assigned values
561
+ * (for example, in the response from <a>ListPermissionAssociations</a> or
562
+ * <a>ListResourceSharePermissions</a>).</p>
563
+ * @public
564
+ */
565
+ values?: string[] | undefined;
566
+ }
458
567
  /**
459
568
  * <p>Information about an RAM permission.</p>
460
569
  * @public
@@ -561,11 +670,36 @@ export interface ResourceSharePermissionSummary {
561
670
  * @public
562
671
  */
563
672
  featureSet?: PermissionFeatureSet | undefined;
673
+ /**
674
+ * <p>The list of template parameters defined for this permission, including their names,
675
+ * types, descriptions, and values. This field is present only if the permission is a
676
+ * template with declared parameters. When returned in the context of a permission
677
+ * association, the values are also included.</p>
678
+ * @public
679
+ */
680
+ permissionTemplateParameters?: PermissionTemplateParameter[] | undefined;
564
681
  /**
565
682
  * <p>A list of the tag key value pairs currently attached to the permission.</p>
566
683
  * @public
567
684
  */
568
685
  tags?: Tag[] | undefined;
686
+ /**
687
+ * <p>The owner of the permission. This can be one of the following values:</p>
688
+ * <ul>
689
+ * <li>
690
+ * <p>
691
+ * <code>SELF</code> – The permission is owned by the current
692
+ * account.</p>
693
+ * </li>
694
+ * <li>
695
+ * <p>
696
+ * <code>OTHER-ACCOUNTS</code> – The permission is owned by another
697
+ * account and shared with the current account.</p>
698
+ * </li>
699
+ * </ul>
700
+ * @public
701
+ */
702
+ resourceOwner?: ResourceOwner | undefined;
569
703
  }
570
704
  /**
571
705
  * @public
@@ -630,6 +764,14 @@ export interface CreatePermissionVersionRequest {
630
764
  * @public
631
765
  */
632
766
  policyTemplate: string | undefined;
767
+ /**
768
+ * <p>Specifies a list of template parameter declarations for this version of the
769
+ * permission. Each declaration defines a named placeholder that can be used in the policy
770
+ * template. Because each version is independent, you can define the same or
771
+ * a different set of template parameters for each version.</p>
772
+ * @public
773
+ */
774
+ permissionTemplateParameters?: PermissionTemplateParameterDeclaration[] | undefined;
633
775
  /**
634
776
  * <p>Specifies a unique, case-sensitive identifier that you provide to
635
777
  * ensure the idempotency of the request. This lets you safely retry the request without
@@ -684,6 +826,13 @@ export interface ResourceSharePermissionDetail {
684
826
  * @public
685
827
  */
686
828
  permission?: string | undefined;
829
+ /**
830
+ * <p>The list of template parameter declarations defined for this permission. Each
831
+ * declaration includes the parameter name, type, and description. This field is present
832
+ * only if the permission is a template with declared parameters.</p>
833
+ * @public
834
+ */
835
+ permissionTemplateParameters?: PermissionTemplateParameterDeclaration[] | undefined;
687
836
  /**
688
837
  * <p>The date and time when the permission was created.</p>
689
838
  * @public
@@ -774,6 +923,11 @@ export interface ResourceSharePermissionDetail {
774
923
  * <p>
775
924
  * <code>DELETED</code> – This permission or version is deleted.</p>
776
925
  * </li>
926
+ * <li>
927
+ * <p>
928
+ * <code>DEPRECATED</code> – The permission owner deprecated this permission. It can't be associated with new resource shares, but existing
929
+ * associations continue to function.</p>
930
+ * </li>
777
931
  * </ul>
778
932
  * @public
779
933
  */
@@ -783,13 +937,30 @@ export interface ResourceSharePermissionDetail {
783
937
  * @public
784
938
  */
785
939
  tags?: Tag[] | undefined;
940
+ /**
941
+ * <p>The owner of the permission. This can be one of the following values:</p>
942
+ * <ul>
943
+ * <li>
944
+ * <p>
945
+ * <code>SELF</code> – The permission is owned by the current
946
+ * account.</p>
947
+ * </li>
948
+ * <li>
949
+ * <p>
950
+ * <code>OTHER-ACCOUNTS</code> – The permission is owned by another
951
+ * account and shared with the current account.</p>
952
+ * </li>
953
+ * </ul>
954
+ * @public
955
+ */
956
+ resourceOwner?: ResourceOwner | undefined;
786
957
  }
787
958
  /**
788
959
  * @public
789
960
  */
790
961
  export interface CreatePermissionVersionResponse {
791
962
  /**
792
- * <p>Information about a RAM managed permission.</p>
963
+ * <p>The details of the new permission version, including its <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a>, version number, status, and policy document.</p>
793
964
  * @public
794
965
  */
795
966
  permission?: ResourceSharePermissionDetail | undefined;
@@ -802,6 +973,23 @@ export interface CreatePermissionVersionResponse {
802
973
  */
803
974
  clientToken?: string | undefined;
804
975
  }
976
+ /**
977
+ * <p>Contains a permission ARN and its associated template parameter values. The <a>CreateResourceShare</a> operation uses this structure when associating permissions that have template parameters.</p>
978
+ * @public
979
+ */
980
+ export interface PermissionArnAndTemplateParameters {
981
+ /**
982
+ * <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of the permission to associate with the resource share.</p>
983
+ * @public
984
+ */
985
+ permissionArn?: string | undefined;
986
+ /**
987
+ * <p>The list of template parameter values to assign for this permission. You must provide
988
+ * values for all parameters declared in the permission template.</p>
989
+ * @public
990
+ */
991
+ permissionTemplateParameters?: PermissionTemplateParameterInput[] | undefined;
992
+ }
805
993
  /**
806
994
  * <p>The configuration of the resource share</p>
807
995
  * @public
@@ -912,6 +1100,14 @@ export interface CreateResourceShareRequest {
912
1100
  * @public
913
1101
  */
914
1102
  sources?: string[] | undefined;
1103
+ /**
1104
+ * <p>Specifies the template parameter values for each permission being associated that has
1105
+ * template parameters. Each entry maps a permission ARN to the parameter values to use
1106
+ * when rendering the permission template for this resource share. You must provide values for all
1107
+ * parameters declared in each permission template.</p>
1108
+ * @public
1109
+ */
1110
+ permissionTemplateParameters?: PermissionArnAndTemplateParameters[] | undefined;
915
1111
  /**
916
1112
  * <p>Specifies the configuration of this resource share.</p>
917
1113
  * @public
@@ -1376,6 +1572,18 @@ export interface GetPermissionRequest {
1376
1572
  * @public
1377
1573
  */
1378
1574
  permissionVersion?: number | undefined;
1575
+ /**
1576
+ * <p>Specifies the template parameter values to use when rendering the permission's policy
1577
+ * template. Each entry supplies a parameter name and its values. When you provide this
1578
+ * parameter, the response contains the rendered policy with the specified values
1579
+ * in place of the template parameter placeholders.</p>
1580
+ * <p>For <code>STRING</code> type parameters, provide a single value. For
1581
+ * <code>STRING_LIST</code> type parameters, provide one or more values.</p>
1582
+ * <p>You can specify this parameter only for permissions that declare template parameters.
1583
+ * You must provide values for all parameters declared in the permission template.</p>
1584
+ * @public
1585
+ */
1586
+ permissionTemplateParameters?: PermissionTemplateParameterInput[] | undefined;
1379
1587
  }
1380
1588
  /**
1381
1589
  * @public
@@ -1904,6 +2112,31 @@ export interface ListPermissionAssociationsRequest {
1904
2112
  * @public
1905
2113
  */
1906
2114
  defaultVersion?: boolean | undefined;
2115
+ /**
2116
+ * <p>Specifies that you want to list only those associations with resource shares owned by a specific
2117
+ * entity:</p>
2118
+ * <ul>
2119
+ * <li>
2120
+ * <p>
2121
+ * <code>SELF</code> – returns only associations with resource shares owned by the
2122
+ * calling account.</p>
2123
+ * </li>
2124
+ * <li>
2125
+ * <p>
2126
+ * <code>OTHER-ACCOUNTS</code> – returns only associations with resource shares
2127
+ * owned by other Amazon Web Services accounts.</p>
2128
+ * </li>
2129
+ * </ul>
2130
+ * <p>If you don't specify this parameter, the default is <code>SELF</code>.</p>
2131
+ * @public
2132
+ */
2133
+ resourceOwner?: ResourceOwner | undefined;
2134
+ /**
2135
+ * <p>Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of the resource share for which you want to retrieve permission
2136
+ * associations.</p>
2137
+ * @public
2138
+ */
2139
+ resourceShareArn?: string | undefined;
1907
2140
  /**
1908
2141
  * <p>Specifies that you want to receive the next page of results. Valid
1909
2142
  * only if you received a <code>NextToken</code> response in the previous request. If you
@@ -1976,6 +2209,11 @@ export interface AssociatedPermission {
1976
2209
  * <p>
1977
2210
  * <code>DELETED</code> – This permission or version is deleted.</p>
1978
2211
  * </li>
2212
+ * <li>
2213
+ * <p>
2214
+ * <code>DEPRECATED</code> – The permission owner deprecated this permission. It can't be associated with new resource shares, but existing
2215
+ * associations continue to function.</p>
2216
+ * </li>
1979
2217
  * </ul>
1980
2218
  * @public
1981
2219
  */
@@ -2024,6 +2262,12 @@ export interface AssociatedPermission {
2024
2262
  * @public
2025
2263
  */
2026
2264
  resourceShareArn?: string | undefined;
2265
+ /**
2266
+ * <p>The template parameter values provided when the permission was associated with this
2267
+ * resource share. If the permission has no declared template parameters, this member doesn't appear in the response.</p>
2268
+ * @public
2269
+ */
2270
+ permissionTemplateParameters?: PermissionTemplateParameter[] | undefined;
2027
2271
  }
2028
2272
  /**
2029
2273
  * @public
@@ -2057,6 +2301,23 @@ export interface ListPermissionsRequest {
2057
2301
  * @public
2058
2302
  */
2059
2303
  resourceType?: string | undefined;
2304
+ /**
2305
+ * <p>Specifies that you want to list only permissions owned by a specific entity:</p>
2306
+ * <ul>
2307
+ * <li>
2308
+ * <p>
2309
+ * <code>SELF</code> – returns only permissions owned by the calling
2310
+ * account.</p>
2311
+ * </li>
2312
+ * <li>
2313
+ * <p>
2314
+ * <code>OTHER-ACCOUNTS</code> – returns only permissions shared with the
2315
+ * calling account by other accounts.</p>
2316
+ * </li>
2317
+ * </ul>
2318
+ * @public
2319
+ */
2320
+ resourceOwner?: ResourceOwner | undefined;
2060
2321
  /**
2061
2322
  * <p>Specifies that you want to receive the next page of results. Valid
2062
2323
  * only if you received a <code>NextToken</code> response in the previous request. If you
@@ -2099,6 +2360,14 @@ export interface ListPermissionsRequest {
2099
2360
  * @public
2100
2361
  */
2101
2362
  permissionType?: PermissionTypeFilter | undefined;
2363
+ /**
2364
+ * <p>Specifies that you want to filter the results to include only permissions with the
2365
+ * specified status. For example, use <code>ATTACHABLE</code> to list only permissions that
2366
+ * can be associated with resource shares, or <code>DEPRECATED</code> to list only
2367
+ * deprecated permissions.</p>
2368
+ * @public
2369
+ */
2370
+ permissionStatus?: PermissionStatus | undefined;
2102
2371
  }
2103
2372
  /**
2104
2373
  * @public
@@ -2419,6 +2688,12 @@ export interface ReplacePermissionAssociationsWork {
2419
2688
  * @public
2420
2689
  */
2421
2690
  toPermissionVersion?: string | undefined;
2691
+ /**
2692
+ * <p>The template parameter values to apply when replacing the permission. This field is
2693
+ * present only if the target permission is a template with declared parameters.</p>
2694
+ * @public
2695
+ */
2696
+ permissionTemplateParameters?: PermissionTemplateParameter[] | undefined;
2422
2697
  /**
2423
2698
  * <p>Specifies the current status of the background tasks for the specified ID. The output
2424
2699
  * is one of the following strings:</p>
@@ -2882,7 +3157,7 @@ export interface PromotePermissionCreatedFromPolicyRequest {
2882
3157
  */
2883
3158
  export interface PromotePermissionCreatedFromPolicyResponse {
2884
3159
  /**
2885
- * <p>Information about an RAM permission.</p>
3160
+ * <p>The details of the promoted customer managed permission, including its <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a>, version, and status.</p>
2886
3161
  * @public
2887
3162
  */
2888
3163
  permission?: ResourceSharePermissionSummary | undefined;
@@ -2983,6 +3258,14 @@ export interface ReplacePermissionAssociationsRequest {
2983
3258
  * @public
2984
3259
  */
2985
3260
  toPermissionArn: string | undefined;
3261
+ /**
3262
+ * <p>Specifies the template parameter values to apply when replacing the permission. You
3263
+ * must provide values for all parameters declared in the target permission template. This
3264
+ * parameter is required only if the target permission (<code>toPermissionArn</code>) has
3265
+ * template parameters.</p>
3266
+ * @public
3267
+ */
3268
+ permissionTemplateParameters?: PermissionTemplateParameterInput[] | undefined;
2986
3269
  /**
2987
3270
  * <p>Specifies a unique, case-sensitive identifier that you provide to
2988
3271
  * ensure the idempotency of the request. This lets you safely retry the request without
@@ -3127,6 +3410,67 @@ export interface UntagResourceRequest {
3127
3410
  */
3128
3411
  export interface UntagResourceResponse {
3129
3412
  }
3413
+ /**
3414
+ * @public
3415
+ */
3416
+ export interface UpdatePermissionRequest {
3417
+ /**
3418
+ * <p>Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of the customer managed permission that you want to update.</p>
3419
+ * @public
3420
+ */
3421
+ permissionArn: string | undefined;
3422
+ /**
3423
+ * <p>Specifies the new status for the permission. This can be one of the following
3424
+ * values:</p>
3425
+ * <ul>
3426
+ * <li>
3427
+ * <p>
3428
+ * <code>ATTACHABLE</code> – Restores a previously deprecated permission
3429
+ * so it can be associated with resource shares again.</p>
3430
+ * </li>
3431
+ * <li>
3432
+ * <p>
3433
+ * <code>DEPRECATED</code> – Deprecates the permission so it can no
3434
+ * longer be associated with new resource shares.</p>
3435
+ * </li>
3436
+ * </ul>
3437
+ * @public
3438
+ */
3439
+ status: UpdatePermissionStatus | undefined;
3440
+ /**
3441
+ * <p>Specifies a unique, case-sensitive identifier that you provide to
3442
+ * ensure the idempotency of the request. This lets you safely retry the request without
3443
+ * accidentally performing the same operation a second time. Passing the same value to a
3444
+ * later call to an operation requires that you also pass the same value for all other
3445
+ * parameters. We recommend that you use a <a href="https://wikipedia.org/wiki/Universally_unique_identifier">UUID type of
3446
+ * value.</a>.</p>
3447
+ * <p>If you don't provide this value, then Amazon Web Services generates a random one for
3448
+ * you.</p>
3449
+ * <p>If you retry the operation with the same <code>ClientToken</code>, but with
3450
+ * different parameters, the retry fails with an <code>IdempotentParameterMismatch</code>
3451
+ * error.</p>
3452
+ * @public
3453
+ */
3454
+ clientToken?: string | undefined;
3455
+ }
3456
+ /**
3457
+ * @public
3458
+ */
3459
+ export interface UpdatePermissionResponse {
3460
+ /**
3461
+ * <p>The idempotency identifier associated with this request. If you
3462
+ * want to repeat the same operation in an idempotent manner then you must include this
3463
+ * value in the <code>clientToken</code> request parameter of that later call. All other
3464
+ * parameters must also have the same values that you used in the first call.</p>
3465
+ * @public
3466
+ */
3467
+ clientToken?: string | undefined;
3468
+ /**
3469
+ * <p>The updated status of the permission.</p>
3470
+ * @public
3471
+ */
3472
+ permissionStatus?: UpdatePermissionStatus | undefined;
3473
+ }
3130
3474
  /**
3131
3475
  * @public
3132
3476
  */
@@ -91,6 +91,10 @@ export declare var ListResourceTypesRequest$: StaticStructureSchema;
91
91
  export declare var ListResourceTypesResponse$: StaticStructureSchema;
92
92
  export declare var ListSourceAssociationsRequest$: StaticStructureSchema;
93
93
  export declare var ListSourceAssociationsResponse$: StaticStructureSchema;
94
+ export declare var PermissionArnAndTemplateParameters$: StaticStructureSchema;
95
+ export declare var PermissionTemplateParameter$: StaticStructureSchema;
96
+ export declare var PermissionTemplateParameterDeclaration$: StaticStructureSchema;
97
+ export declare var PermissionTemplateParameterInput$: StaticStructureSchema;
94
98
  export declare var Principal$: StaticStructureSchema;
95
99
  export declare var PromotePermissionCreatedFromPolicyRequest$: StaticStructureSchema;
96
100
  export declare var PromotePermissionCreatedFromPolicyResponse$: StaticStructureSchema;
@@ -117,6 +121,8 @@ export declare var TagResourceRequest$: StaticStructureSchema;
117
121
  export declare var TagResourceResponse$: StaticStructureSchema;
118
122
  export declare var UntagResourceRequest$: StaticStructureSchema;
119
123
  export declare var UntagResourceResponse$: StaticStructureSchema;
124
+ export declare var UpdatePermissionRequest$: StaticStructureSchema;
125
+ export declare var UpdatePermissionResponse$: StaticStructureSchema;
120
126
  export declare var UpdateResourceShareRequest$: StaticStructureSchema;
121
127
  export declare var UpdateResourceShareResponse$: StaticStructureSchema;
122
128
  export declare var AcceptResourceShareInvitation$: StaticOperationSchema;
@@ -153,4 +159,5 @@ export declare var ReplacePermissionAssociations$: StaticOperationSchema;
153
159
  export declare var SetDefaultPermissionVersion$: StaticOperationSchema;
154
160
  export declare var TagResource$: StaticOperationSchema;
155
161
  export declare var UntagResource$: StaticOperationSchema;
162
+ export declare var UpdatePermission$: StaticOperationSchema;
156
163
  export declare var UpdateResourceShare$: StaticOperationSchema;
@@ -137,6 +137,10 @@ import {
137
137
  UntagResourceCommandInput,
138
138
  UntagResourceCommandOutput,
139
139
  } from "./commands/UntagResourceCommand";
140
+ import {
141
+ UpdatePermissionCommandInput,
142
+ UpdatePermissionCommandOutput,
143
+ } from "./commands/UpdatePermissionCommand";
140
144
  import {
141
145
  UpdateResourceShareCommandInput,
142
146
  UpdateResourceShareCommandOutput,
@@ -595,6 +599,19 @@ export interface RAM {
595
599
  options: RAMRequestOptions,
596
600
  cb: (err: any, data?: UntagResourceCommandOutput) => void,
597
601
  ): void;
602
+ updatePermission(
603
+ args: UpdatePermissionCommandInput,
604
+ options?: RAMRequestOptions,
605
+ ): Promise<UpdatePermissionCommandOutput>;
606
+ updatePermission(
607
+ args: UpdatePermissionCommandInput,
608
+ cb: (err: any, data?: UpdatePermissionCommandOutput) => void,
609
+ ): void;
610
+ updatePermission(
611
+ args: UpdatePermissionCommandInput,
612
+ options: RAMRequestOptions,
613
+ cb: (err: any, data?: UpdatePermissionCommandOutput) => void,
614
+ ): void;
598
615
  updateResourceShare(
599
616
  args: UpdateResourceShareCommandInput,
600
617
  options?: RAMRequestOptions,
@@ -166,6 +166,10 @@ import {
166
166
  UntagResourceCommandInput,
167
167
  UntagResourceCommandOutput,
168
168
  } from "./commands/UntagResourceCommand";
169
+ import {
170
+ UpdatePermissionCommandInput,
171
+ UpdatePermissionCommandOutput,
172
+ } from "./commands/UpdatePermissionCommand";
169
173
  import {
170
174
  UpdateResourceShareCommandInput,
171
175
  UpdateResourceShareCommandOutput,
@@ -212,6 +216,7 @@ export type ServiceInputTypes =
212
216
  | SetDefaultPermissionVersionCommandInput
213
217
  | TagResourceCommandInput
214
218
  | UntagResourceCommandInput
219
+ | UpdatePermissionCommandInput
215
220
  | UpdateResourceShareCommandInput;
216
221
  export type ServiceOutputTypes =
217
222
  | AcceptResourceShareInvitationCommandOutput
@@ -248,6 +253,7 @@ export type ServiceOutputTypes =
248
253
  | SetDefaultPermissionVersionCommandOutput
249
254
  | TagResourceCommandOutput
250
255
  | UntagResourceCommandOutput
256
+ | UpdatePermissionCommandOutput
251
257
  | UpdateResourceShareCommandOutput;
252
258
  export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
253
259
  requestHandler?: __HttpHandlerUserInput;
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { UpdatePermissionRequest, UpdatePermissionResponse } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface UpdatePermissionCommandInput extends UpdatePermissionRequest {}
5
+ export interface UpdatePermissionCommandOutput extends UpdatePermissionResponse, __MetadataBearer {}
6
+ declare const UpdatePermissionCommand_base: {
7
+ new (
8
+ input: UpdatePermissionCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ UpdatePermissionCommandInput,
11
+ UpdatePermissionCommandOutput,
12
+ import("..").RAMClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: UpdatePermissionCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ UpdatePermissionCommandInput,
20
+ UpdatePermissionCommandOutput,
21
+ import("..").RAMClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class UpdatePermissionCommand extends UpdatePermissionCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: UpdatePermissionRequest;
31
+ output: UpdatePermissionResponse;
32
+ };
33
+ sdk: {
34
+ input: UpdatePermissionCommandInput;
35
+ output: UpdatePermissionCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -32,4 +32,5 @@ export * from "./ReplacePermissionAssociationsCommand";
32
32
  export * from "./SetDefaultPermissionVersionCommand";
33
33
  export * from "./TagResourceCommand";
34
34
  export * from "./UntagResourceCommand";
35
+ export * from "./UpdatePermissionCommand";
35
36
  export * from "./UpdateResourceShareCommand";