@aws-sdk/client-ram 3.312.0 → 3.316.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.
- package/README.md +76 -5
- package/dist-cjs/RAM.js +47 -350
- package/dist-cjs/commands/CreatePermissionCommand.js +45 -0
- package/dist-cjs/commands/CreatePermissionVersionCommand.js +45 -0
- package/dist-cjs/commands/DeletePermissionCommand.js +45 -0
- package/dist-cjs/commands/DeletePermissionVersionCommand.js +45 -0
- package/dist-cjs/commands/ListPermissionAssociationsCommand.js +45 -0
- package/dist-cjs/commands/ListReplacePermissionAssociationsWorkCommand.js +45 -0
- package/dist-cjs/commands/PromotePermissionCreatedFromPolicyCommand.js +45 -0
- package/dist-cjs/commands/ReplacePermissionAssociationsCommand.js +45 -0
- package/dist-cjs/commands/SetDefaultPermissionVersionCommand.js +45 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +104 -1
- package/dist-cjs/pagination/ListPermissionAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListReplacePermissionAssociationsWorkPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1404 -756
- package/dist-es/RAM.js +47 -350
- package/dist-es/commands/CreatePermissionCommand.js +41 -0
- package/dist-es/commands/CreatePermissionVersionCommand.js +41 -0
- package/dist-es/commands/DeletePermissionCommand.js +41 -0
- package/dist-es/commands/DeletePermissionVersionCommand.js +41 -0
- package/dist-es/commands/ListPermissionAssociationsCommand.js +41 -0
- package/dist-es/commands/ListReplacePermissionAssociationsWorkCommand.js +41 -0
- package/dist-es/commands/PromotePermissionCreatedFromPolicyCommand.js +41 -0
- package/dist-es/commands/ReplacePermissionAssociationsCommand.js +41 -0
- package/dist-es/commands/SetDefaultPermissionVersionCommand.js +41 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +97 -0
- package/dist-es/pagination/ListPermissionAssociationsPaginator.js +25 -0
- package/dist-es/pagination/ListReplacePermissionAssociationsWorkPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1327 -698
- package/dist-types/RAM.d.ts +114 -113
- package/dist-types/RAMClient.d.ts +15 -7
- package/dist-types/commands/AcceptResourceShareInvitationCommand.d.ts +16 -12
- package/dist-types/commands/AssociateResourceShareCommand.d.ts +19 -14
- package/dist-types/commands/AssociateResourceSharePermissionCommand.d.ts +9 -7
- package/dist-types/commands/CreatePermissionCommand.d.ts +109 -0
- package/dist-types/commands/CreatePermissionVersionCommand.d.ts +106 -0
- package/dist-types/commands/CreateResourceShareCommand.d.ts +19 -13
- package/dist-types/commands/DeletePermissionCommand.d.ts +91 -0
- package/dist-types/commands/DeletePermissionVersionCommand.d.ts +96 -0
- package/dist-types/commands/DeleteResourceShareCommand.d.ts +19 -14
- package/dist-types/commands/DisassociateResourceShareCommand.d.ts +19 -13
- package/dist-types/commands/DisassociateResourceSharePermissionCommand.d.ts +14 -11
- package/dist-types/commands/EnableSharingWithAwsOrganizationCommand.d.ts +14 -11
- package/dist-types/commands/GetPermissionCommand.d.ts +9 -7
- package/dist-types/commands/GetResourcePoliciesCommand.d.ts +10 -6
- package/dist-types/commands/GetResourceShareAssociationsCommand.d.ts +13 -8
- package/dist-types/commands/GetResourceShareInvitationsCommand.d.ts +14 -8
- package/dist-types/commands/GetResourceSharesCommand.d.ts +11 -6
- package/dist-types/commands/ListPendingInvitationResourcesCommand.d.ts +15 -9
- package/dist-types/commands/ListPermissionAssociationsCommand.d.ts +91 -0
- package/dist-types/commands/ListPermissionVersionsCommand.d.ts +11 -7
- package/dist-types/commands/ListPermissionsCommand.d.ts +9 -5
- package/dist-types/commands/ListPrincipalsCommand.d.ts +10 -6
- package/dist-types/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +84 -0
- package/dist-types/commands/ListResourceSharePermissionsCommand.d.ts +11 -7
- package/dist-types/commands/ListResourceTypesCommand.d.ts +7 -4
- package/dist-types/commands/ListResourcesCommand.d.ts +11 -7
- package/dist-types/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +119 -0
- package/dist-types/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +34 -14
- package/dist-types/commands/RejectResourceShareInvitationCommand.d.ts +16 -12
- package/dist-types/commands/ReplacePermissionAssociationsCommand.d.ts +108 -0
- package/dist-types/commands/SetDefaultPermissionVersionCommand.d.ts +92 -0
- package/dist-types/commands/TagResourceCommand.d.ts +17 -11
- package/dist-types/commands/UntagResourceCommand.d.ts +14 -5
- package/dist-types/commands/UpdateResourceShareCommand.d.ts +13 -11
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1286 -195
- package/dist-types/pagination/ListPermissionAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListReplacePermissionAssociationsWorkPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/RAM.d.ts +167 -1
- package/dist-types/ts3.4/RAMClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CreatePermissionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreatePermissionVersionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeletePermissionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeletePermissionVersionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListPermissionAssociationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ReplacePermissionAssociationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/SetDefaultPermissionVersionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +234 -19
- package/dist-types/ts3.4/pagination/ListPermissionAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListReplacePermissionAssociationsWorkPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +6 -6
|
@@ -19,15 +19,17 @@ export interface EnableSharingWithAwsOrganizationCommandOutput extends EnableSha
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Enables resource sharing within your organization in Organizations.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* organization
|
|
26
|
-
* the
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
22
|
+
* <p>Enables resource sharing within your organization in Organizations. This operation creates
|
|
23
|
+
* a service-linked role called <code>AWSServiceRoleForResourceAccessManager</code> that has the IAM managed policy
|
|
24
|
+
* named AWSResourceAccessManagerServiceRolePolicy attached. This role permits RAM to retrieve information about
|
|
25
|
+
* the organization and its structure. This lets you share resources with all of the
|
|
26
|
+
* accounts in the calling account's organization by specifying the organization ID, or all
|
|
27
|
+
* of the accounts in an organizational unit (OU) by specifying the OU ID. Until you enable
|
|
28
|
+
* sharing within the organization, you can specify only individual Amazon Web Services accounts, or for
|
|
29
|
+
* supported resource types, IAM roles and users.</p>
|
|
30
|
+
* <p>You must call this operation from an IAM role or user in the organization's
|
|
30
31
|
* management account.</p>
|
|
32
|
+
* <p></p>
|
|
31
33
|
* @example
|
|
32
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
35
|
* ```javascript
|
|
@@ -46,13 +48,14 @@ export interface EnableSharingWithAwsOrganizationCommandOutput extends EnableSha
|
|
|
46
48
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
47
49
|
*
|
|
48
50
|
* @throws {@link OperationNotPermittedException} (client fault)
|
|
49
|
-
* <p>The requested operation
|
|
51
|
+
* <p>The operation failed because the requested operation isn't permitted.</p>
|
|
50
52
|
*
|
|
51
53
|
* @throws {@link ServerInternalException} (server fault)
|
|
52
|
-
* <p>The service could not respond to the request due to an
|
|
54
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
55
|
+
* internal problem. Try again later.</p>
|
|
53
56
|
*
|
|
54
57
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
55
|
-
* <p>The service
|
|
58
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
56
59
|
*
|
|
57
60
|
*
|
|
58
61
|
*/
|
|
@@ -19,7 +19,7 @@ export interface GetPermissionCommandOutput extends GetPermissionResponse, __Met
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>
|
|
22
|
+
* <p>Retrieves the contents of a managed permission in JSON format.</p>
|
|
23
23
|
* @example
|
|
24
24
|
* Use a bare-bones client and the command you need to make an API call.
|
|
25
25
|
* ```javascript
|
|
@@ -41,22 +41,24 @@ export interface GetPermissionCommandOutput extends GetPermissionResponse, __Met
|
|
|
41
41
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
42
42
|
*
|
|
43
43
|
* @throws {@link InvalidParameterException} (client fault)
|
|
44
|
-
* <p>
|
|
44
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
45
45
|
*
|
|
46
46
|
* @throws {@link MalformedArnException} (client fault)
|
|
47
|
-
* <p>The
|
|
47
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
48
|
+
* valid.</p>
|
|
48
49
|
*
|
|
49
50
|
* @throws {@link OperationNotPermittedException} (client fault)
|
|
50
|
-
* <p>The requested operation
|
|
51
|
+
* <p>The operation failed because the requested operation isn't permitted.</p>
|
|
51
52
|
*
|
|
52
53
|
* @throws {@link ServerInternalException} (server fault)
|
|
53
|
-
* <p>The service could not respond to the request due to an
|
|
54
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
55
|
+
* internal problem. Try again later.</p>
|
|
54
56
|
*
|
|
55
57
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
56
|
-
* <p>The service
|
|
58
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
57
59
|
*
|
|
58
60
|
* @throws {@link UnknownResourceException} (client fault)
|
|
59
|
-
* <p>
|
|
61
|
+
* <p>The operation failed because a specified resource couldn't be found.</p>
|
|
60
62
|
*
|
|
61
63
|
*
|
|
62
64
|
*/
|
|
@@ -46,22 +46,26 @@ export interface GetResourcePoliciesCommandOutput extends GetResourcePoliciesRes
|
|
|
46
46
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
47
47
|
*
|
|
48
48
|
* @throws {@link InvalidNextTokenException} (client fault)
|
|
49
|
-
* <p>The specified value for <code>NextToken</code>
|
|
49
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
50
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
51
|
+
* previous call to this operation.</p>
|
|
50
52
|
*
|
|
51
53
|
* @throws {@link InvalidParameterException} (client fault)
|
|
52
|
-
* <p>
|
|
54
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
53
55
|
*
|
|
54
56
|
* @throws {@link MalformedArnException} (client fault)
|
|
55
|
-
* <p>The
|
|
57
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
58
|
+
* valid.</p>
|
|
56
59
|
*
|
|
57
60
|
* @throws {@link ResourceArnNotFoundException} (client fault)
|
|
58
|
-
* <p>The specified Amazon Resource Name (ARN) was not found.</p>
|
|
61
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> was not found.</p>
|
|
59
62
|
*
|
|
60
63
|
* @throws {@link ServerInternalException} (server fault)
|
|
61
|
-
* <p>The service could not respond to the request due to an
|
|
64
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
65
|
+
* internal problem. Try again later.</p>
|
|
62
66
|
*
|
|
63
67
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
64
|
-
* <p>The service
|
|
68
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
65
69
|
*
|
|
66
70
|
*
|
|
67
71
|
*/
|
|
@@ -19,7 +19,8 @@ export interface GetResourceShareAssociationsCommandOutput extends GetResourceSh
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Retrieves the
|
|
22
|
+
* <p>Retrieves the lists of resources and principals that associated for resource shares that you
|
|
23
|
+
* own.</p>
|
|
23
24
|
* @example
|
|
24
25
|
* Use a bare-bones client and the command you need to make an API call.
|
|
25
26
|
* ```javascript
|
|
@@ -48,25 +49,29 @@ export interface GetResourceShareAssociationsCommandOutput extends GetResourceSh
|
|
|
48
49
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
49
50
|
*
|
|
50
51
|
* @throws {@link InvalidNextTokenException} (client fault)
|
|
51
|
-
* <p>The specified value for <code>NextToken</code>
|
|
52
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
53
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
54
|
+
* previous call to this operation.</p>
|
|
52
55
|
*
|
|
53
56
|
* @throws {@link InvalidParameterException} (client fault)
|
|
54
|
-
* <p>
|
|
57
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
55
58
|
*
|
|
56
59
|
* @throws {@link MalformedArnException} (client fault)
|
|
57
|
-
* <p>The
|
|
60
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
61
|
+
* valid.</p>
|
|
58
62
|
*
|
|
59
63
|
* @throws {@link OperationNotPermittedException} (client fault)
|
|
60
|
-
* <p>The requested operation
|
|
64
|
+
* <p>The operation failed because the requested operation isn't permitted.</p>
|
|
61
65
|
*
|
|
62
66
|
* @throws {@link ServerInternalException} (server fault)
|
|
63
|
-
* <p>The service could not respond to the request due to an
|
|
67
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
68
|
+
* internal problem. Try again later.</p>
|
|
64
69
|
*
|
|
65
70
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
66
|
-
* <p>The service
|
|
71
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
67
72
|
*
|
|
68
73
|
* @throws {@link UnknownResourceException} (client fault)
|
|
69
|
-
* <p>
|
|
74
|
+
* <p>The operation failed because a specified resource couldn't be found.</p>
|
|
70
75
|
*
|
|
71
76
|
*
|
|
72
77
|
*/
|
|
@@ -47,28 +47,34 @@ export interface GetResourceShareInvitationsCommandOutput extends GetResourceSha
|
|
|
47
47
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
48
48
|
*
|
|
49
49
|
* @throws {@link InvalidMaxResultsException} (client fault)
|
|
50
|
-
* <p>The specified value for <code>MaxResults</code>
|
|
50
|
+
* <p>The operation failed because the specified value for <code>MaxResults</code> isn't
|
|
51
|
+
* valid.</p>
|
|
51
52
|
*
|
|
52
53
|
* @throws {@link InvalidNextTokenException} (client fault)
|
|
53
|
-
* <p>The specified value for <code>NextToken</code>
|
|
54
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
55
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
56
|
+
* previous call to this operation.</p>
|
|
54
57
|
*
|
|
55
58
|
* @throws {@link InvalidParameterException} (client fault)
|
|
56
|
-
* <p>
|
|
59
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
57
60
|
*
|
|
58
61
|
* @throws {@link MalformedArnException} (client fault)
|
|
59
|
-
* <p>The
|
|
62
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
63
|
+
* valid.</p>
|
|
60
64
|
*
|
|
61
65
|
* @throws {@link ResourceShareInvitationArnNotFoundException} (client fault)
|
|
62
|
-
* <p>The specified Amazon Resource Name (ARN) for an invitation was not
|
|
66
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> for an invitation was not
|
|
67
|
+
* found.</p>
|
|
63
68
|
*
|
|
64
69
|
* @throws {@link ServerInternalException} (server fault)
|
|
65
|
-
* <p>The service could not respond to the request due to an
|
|
70
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
71
|
+
* internal problem. Try again later.</p>
|
|
66
72
|
*
|
|
67
73
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
68
|
-
* <p>The service
|
|
74
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
69
75
|
*
|
|
70
76
|
* @throws {@link UnknownResourceException} (client fault)
|
|
71
|
-
* <p>
|
|
77
|
+
* <p>The operation failed because a specified resource couldn't be found.</p>
|
|
72
78
|
*
|
|
73
79
|
*
|
|
74
80
|
*/
|
|
@@ -44,6 +44,7 @@ export interface GetResourceSharesCommandOutput extends GetResourceSharesRespons
|
|
|
44
44
|
* nextToken: "STRING_VALUE",
|
|
45
45
|
* maxResults: Number("int"),
|
|
46
46
|
* permissionArn: "STRING_VALUE",
|
|
47
|
+
* permissionVersion: Number("int"),
|
|
47
48
|
* };
|
|
48
49
|
* const command = new GetResourceSharesCommand(input);
|
|
49
50
|
* const response = await client.send(command);
|
|
@@ -56,22 +57,26 @@ export interface GetResourceSharesCommandOutput extends GetResourceSharesRespons
|
|
|
56
57
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
57
58
|
*
|
|
58
59
|
* @throws {@link InvalidNextTokenException} (client fault)
|
|
59
|
-
* <p>The specified value for <code>NextToken</code>
|
|
60
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
61
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
62
|
+
* previous call to this operation.</p>
|
|
60
63
|
*
|
|
61
64
|
* @throws {@link InvalidParameterException} (client fault)
|
|
62
|
-
* <p>
|
|
65
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
63
66
|
*
|
|
64
67
|
* @throws {@link MalformedArnException} (client fault)
|
|
65
|
-
* <p>The
|
|
68
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
69
|
+
* valid.</p>
|
|
66
70
|
*
|
|
67
71
|
* @throws {@link ServerInternalException} (server fault)
|
|
68
|
-
* <p>The service could not respond to the request due to an
|
|
72
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
73
|
+
* internal problem. Try again later.</p>
|
|
69
74
|
*
|
|
70
75
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
71
|
-
* <p>The service
|
|
76
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
72
77
|
*
|
|
73
78
|
* @throws {@link UnknownResourceException} (client fault)
|
|
74
|
-
* <p>
|
|
79
|
+
* <p>The operation failed because a specified resource couldn't be found.</p>
|
|
75
80
|
*
|
|
76
81
|
*
|
|
77
82
|
*/
|
|
@@ -45,31 +45,37 @@ export interface ListPendingInvitationResourcesCommandOutput extends ListPending
|
|
|
45
45
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
46
46
|
*
|
|
47
47
|
* @throws {@link InvalidNextTokenException} (client fault)
|
|
48
|
-
* <p>The specified value for <code>NextToken</code>
|
|
48
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
49
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
50
|
+
* previous call to this operation.</p>
|
|
49
51
|
*
|
|
50
52
|
* @throws {@link InvalidParameterException} (client fault)
|
|
51
|
-
* <p>
|
|
53
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
52
54
|
*
|
|
53
55
|
* @throws {@link MalformedArnException} (client fault)
|
|
54
|
-
* <p>The
|
|
56
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
57
|
+
* valid.</p>
|
|
55
58
|
*
|
|
56
59
|
* @throws {@link MissingRequiredParameterException} (client fault)
|
|
57
|
-
* <p>
|
|
60
|
+
* <p>The operation failed because a required input parameter is missing.</p>
|
|
58
61
|
*
|
|
59
62
|
* @throws {@link ResourceShareInvitationAlreadyRejectedException} (client fault)
|
|
60
|
-
* <p>The specified invitation was already rejected.</p>
|
|
63
|
+
* <p>The operation failed because the specified invitation was already rejected.</p>
|
|
61
64
|
*
|
|
62
65
|
* @throws {@link ResourceShareInvitationArnNotFoundException} (client fault)
|
|
63
|
-
* <p>The specified Amazon Resource Name (ARN) for an invitation was not
|
|
66
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> for an invitation was not
|
|
67
|
+
* found.</p>
|
|
64
68
|
*
|
|
65
69
|
* @throws {@link ResourceShareInvitationExpiredException} (client fault)
|
|
66
|
-
* <p>The specified invitation is
|
|
70
|
+
* <p>The operation failed because the specified invitation is past its expiration date and
|
|
71
|
+
* time.</p>
|
|
67
72
|
*
|
|
68
73
|
* @throws {@link ServerInternalException} (server fault)
|
|
69
|
-
* <p>The service could not respond to the request due to an
|
|
74
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
75
|
+
* internal problem. Try again later.</p>
|
|
70
76
|
*
|
|
71
77
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
72
|
-
* <p>The service
|
|
78
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
73
79
|
*
|
|
74
80
|
*
|
|
75
81
|
*/
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ListPermissionAssociationsRequest, ListPermissionAssociationsResponse } from "../models/models_0";
|
|
5
|
+
import { RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RAMClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
9
|
+
* The input for {@link ListPermissionAssociationsCommand}.
|
|
10
|
+
*/
|
|
11
|
+
export interface ListPermissionAssociationsCommandInput extends ListPermissionAssociationsRequest {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The output of {@link ListPermissionAssociationsCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface ListPermissionAssociationsCommandOutput extends ListPermissionAssociationsResponse, __MetadataBearer {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>Lists information about the managed permission and its associations to any resource shares that use
|
|
23
|
+
* this managed permission. This lets you see which resource shares use which versions of the specified
|
|
24
|
+
* managed permission.</p>
|
|
25
|
+
* @example
|
|
26
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
+
* ```javascript
|
|
28
|
+
* import { RAMClient, ListPermissionAssociationsCommand } from "@aws-sdk/client-ram"; // ES Modules import
|
|
29
|
+
* // const { RAMClient, ListPermissionAssociationsCommand } = require("@aws-sdk/client-ram"); // CommonJS import
|
|
30
|
+
* const client = new RAMClient(config);
|
|
31
|
+
* const input = { // ListPermissionAssociationsRequest
|
|
32
|
+
* permissionArn: "STRING_VALUE",
|
|
33
|
+
* permissionVersion: Number("int"),
|
|
34
|
+
* associationStatus: "ASSOCIATING" || "ASSOCIATED" || "FAILED" || "DISASSOCIATING" || "DISASSOCIATED",
|
|
35
|
+
* resourceType: "STRING_VALUE",
|
|
36
|
+
* featureSet: "CREATED_FROM_POLICY" || "PROMOTING_TO_STANDARD" || "STANDARD",
|
|
37
|
+
* defaultVersion: true || false,
|
|
38
|
+
* nextToken: "STRING_VALUE",
|
|
39
|
+
* maxResults: Number("int"),
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListPermissionAssociationsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param ListPermissionAssociationsCommandInput - {@link ListPermissionAssociationsCommandInput}
|
|
46
|
+
* @returns {@link ListPermissionAssociationsCommandOutput}
|
|
47
|
+
* @see {@link ListPermissionAssociationsCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link ListPermissionAssociationsCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link InvalidNextTokenException} (client fault)
|
|
52
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
53
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
54
|
+
* previous call to this operation.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
57
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link MalformedArnException} (client fault)
|
|
60
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
61
|
+
* valid.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ServerInternalException} (server fault)
|
|
64
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
65
|
+
* internal problem. Try again later.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
68
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
69
|
+
*
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
export declare class ListPermissionAssociationsCommand extends $Command<ListPermissionAssociationsCommandInput, ListPermissionAssociationsCommandOutput, RAMClientResolvedConfig> {
|
|
73
|
+
readonly input: ListPermissionAssociationsCommandInput;
|
|
74
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
75
|
+
/**
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
constructor(input: ListPermissionAssociationsCommandInput);
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListPermissionAssociationsCommandInput, ListPermissionAssociationsCommandOutput>;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
private serialize;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
private deserialize;
|
|
91
|
+
}
|
|
@@ -42,25 +42,29 @@ export interface ListPermissionVersionsCommandOutput extends ListPermissionVersi
|
|
|
42
42
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
43
43
|
*
|
|
44
44
|
* @throws {@link InvalidNextTokenException} (client fault)
|
|
45
|
-
* <p>The specified value for <code>NextToken</code>
|
|
45
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
46
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
47
|
+
* previous call to this operation.</p>
|
|
46
48
|
*
|
|
47
49
|
* @throws {@link InvalidParameterException} (client fault)
|
|
48
|
-
* <p>
|
|
50
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
49
51
|
*
|
|
50
52
|
* @throws {@link MalformedArnException} (client fault)
|
|
51
|
-
* <p>The
|
|
53
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
54
|
+
* valid.</p>
|
|
52
55
|
*
|
|
53
56
|
* @throws {@link OperationNotPermittedException} (client fault)
|
|
54
|
-
* <p>The requested operation
|
|
57
|
+
* <p>The operation failed because the requested operation isn't permitted.</p>
|
|
55
58
|
*
|
|
56
59
|
* @throws {@link ServerInternalException} (server fault)
|
|
57
|
-
* <p>The service could not respond to the request due to an
|
|
60
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
61
|
+
* internal problem. Try again later.</p>
|
|
58
62
|
*
|
|
59
63
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
60
|
-
* <p>The service
|
|
64
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
61
65
|
*
|
|
62
66
|
* @throws {@link UnknownResourceException} (client fault)
|
|
63
|
-
* <p>
|
|
67
|
+
* <p>The operation failed because a specified resource couldn't be found.</p>
|
|
64
68
|
*
|
|
65
69
|
*
|
|
66
70
|
*/
|
|
@@ -31,6 +31,7 @@ export interface ListPermissionsCommandOutput extends ListPermissionsResponse, _
|
|
|
31
31
|
* resourceType: "STRING_VALUE",
|
|
32
32
|
* nextToken: "STRING_VALUE",
|
|
33
33
|
* maxResults: Number("int"),
|
|
34
|
+
* permissionType: "ALL" || "AWS_MANAGED" || "CUSTOMER_MANAGED",
|
|
34
35
|
* };
|
|
35
36
|
* const command = new ListPermissionsCommand(input);
|
|
36
37
|
* const response = await client.send(command);
|
|
@@ -43,19 +44,22 @@ export interface ListPermissionsCommandOutput extends ListPermissionsResponse, _
|
|
|
43
44
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
44
45
|
*
|
|
45
46
|
* @throws {@link InvalidNextTokenException} (client fault)
|
|
46
|
-
* <p>The specified value for <code>NextToken</code>
|
|
47
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
48
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
49
|
+
* previous call to this operation.</p>
|
|
47
50
|
*
|
|
48
51
|
* @throws {@link InvalidParameterException} (client fault)
|
|
49
|
-
* <p>
|
|
52
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
50
53
|
*
|
|
51
54
|
* @throws {@link OperationNotPermittedException} (client fault)
|
|
52
|
-
* <p>The requested operation
|
|
55
|
+
* <p>The operation failed because the requested operation isn't permitted.</p>
|
|
53
56
|
*
|
|
54
57
|
* @throws {@link ServerInternalException} (server fault)
|
|
55
|
-
* <p>The service could not respond to the request due to an
|
|
58
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
59
|
+
* internal problem. Try again later.</p>
|
|
56
60
|
*
|
|
57
61
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
58
|
-
* <p>The service
|
|
62
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
59
63
|
*
|
|
60
64
|
*
|
|
61
65
|
*/
|
|
@@ -51,22 +51,26 @@ export interface ListPrincipalsCommandOutput extends ListPrincipalsResponse, __M
|
|
|
51
51
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
52
52
|
*
|
|
53
53
|
* @throws {@link InvalidNextTokenException} (client fault)
|
|
54
|
-
* <p>The specified value for <code>NextToken</code>
|
|
54
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
55
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
56
|
+
* previous call to this operation.</p>
|
|
55
57
|
*
|
|
56
58
|
* @throws {@link InvalidParameterException} (client fault)
|
|
57
|
-
* <p>
|
|
59
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
58
60
|
*
|
|
59
61
|
* @throws {@link MalformedArnException} (client fault)
|
|
60
|
-
* <p>The
|
|
62
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
63
|
+
* valid.</p>
|
|
61
64
|
*
|
|
62
65
|
* @throws {@link ServerInternalException} (server fault)
|
|
63
|
-
* <p>The service could not respond to the request due to an
|
|
66
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
67
|
+
* internal problem. Try again later.</p>
|
|
64
68
|
*
|
|
65
69
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
66
|
-
* <p>The service
|
|
70
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
67
71
|
*
|
|
68
72
|
* @throws {@link UnknownResourceException} (client fault)
|
|
69
|
-
* <p>
|
|
73
|
+
* <p>The operation failed because a specified resource couldn't be found.</p>
|
|
70
74
|
*
|
|
71
75
|
*
|
|
72
76
|
*/
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ListReplacePermissionAssociationsWorkRequest, ListReplacePermissionAssociationsWorkResponse } from "../models/models_0";
|
|
5
|
+
import { RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RAMClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
9
|
+
* The input for {@link ListReplacePermissionAssociationsWorkCommand}.
|
|
10
|
+
*/
|
|
11
|
+
export interface ListReplacePermissionAssociationsWorkCommandInput extends ListReplacePermissionAssociationsWorkRequest {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The output of {@link ListReplacePermissionAssociationsWorkCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface ListReplacePermissionAssociationsWorkCommandOutput extends ListReplacePermissionAssociationsWorkResponse, __MetadataBearer {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>Retrieves the current status of the asynchronous tasks performed by RAM when you
|
|
23
|
+
* perform the <a>ReplacePermissionAssociationsWork</a> operation.</p>
|
|
24
|
+
* @example
|
|
25
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
+
* ```javascript
|
|
27
|
+
* import { RAMClient, ListReplacePermissionAssociationsWorkCommand } from "@aws-sdk/client-ram"; // ES Modules import
|
|
28
|
+
* // const { RAMClient, ListReplacePermissionAssociationsWorkCommand } = require("@aws-sdk/client-ram"); // CommonJS import
|
|
29
|
+
* const client = new RAMClient(config);
|
|
30
|
+
* const input = { // ListReplacePermissionAssociationsWorkRequest
|
|
31
|
+
* workIds: [ // ReplacePermissionAssociationsWorkIdList
|
|
32
|
+
* "STRING_VALUE",
|
|
33
|
+
* ],
|
|
34
|
+
* status: "IN_PROGRESS" || "COMPLETED" || "FAILED",
|
|
35
|
+
* nextToken: "STRING_VALUE",
|
|
36
|
+
* maxResults: Number("int"),
|
|
37
|
+
* };
|
|
38
|
+
* const command = new ListReplacePermissionAssociationsWorkCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @param ListReplacePermissionAssociationsWorkCommandInput - {@link ListReplacePermissionAssociationsWorkCommandInput}
|
|
43
|
+
* @returns {@link ListReplacePermissionAssociationsWorkCommandOutput}
|
|
44
|
+
* @see {@link ListReplacePermissionAssociationsWorkCommandInput} for command's `input` shape.
|
|
45
|
+
* @see {@link ListReplacePermissionAssociationsWorkCommandOutput} for command's `response` shape.
|
|
46
|
+
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link InvalidNextTokenException} (client fault)
|
|
49
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
50
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
51
|
+
* previous call to this operation.</p>
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
54
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ServerInternalException} (server fault)
|
|
57
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
58
|
+
* internal problem. Try again later.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
61
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
62
|
+
*
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
export declare class ListReplacePermissionAssociationsWorkCommand extends $Command<ListReplacePermissionAssociationsWorkCommandInput, ListReplacePermissionAssociationsWorkCommandOutput, RAMClientResolvedConfig> {
|
|
66
|
+
readonly input: ListReplacePermissionAssociationsWorkCommandInput;
|
|
67
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
constructor(input: ListReplacePermissionAssociationsWorkCommandInput);
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListReplacePermissionAssociationsWorkCommandInput, ListReplacePermissionAssociationsWorkCommandOutput>;
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
private serialize;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
private deserialize;
|
|
84
|
+
}
|
|
@@ -42,25 +42,29 @@ export interface ListResourceSharePermissionsCommandOutput extends ListResourceS
|
|
|
42
42
|
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
43
43
|
*
|
|
44
44
|
* @throws {@link InvalidNextTokenException} (client fault)
|
|
45
|
-
* <p>The specified value for <code>NextToken</code>
|
|
45
|
+
* <p>The operation failed because the specified value for <code>NextToken</code> isn't
|
|
46
|
+
* valid. You must specify a value you received in the <code>NextToken</code> response of a
|
|
47
|
+
* previous call to this operation.</p>
|
|
46
48
|
*
|
|
47
49
|
* @throws {@link InvalidParameterException} (client fault)
|
|
48
|
-
* <p>
|
|
50
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
49
51
|
*
|
|
50
52
|
* @throws {@link MalformedArnException} (client fault)
|
|
51
|
-
* <p>The
|
|
53
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
54
|
+
* valid.</p>
|
|
52
55
|
*
|
|
53
56
|
* @throws {@link OperationNotPermittedException} (client fault)
|
|
54
|
-
* <p>The requested operation
|
|
57
|
+
* <p>The operation failed because the requested operation isn't permitted.</p>
|
|
55
58
|
*
|
|
56
59
|
* @throws {@link ServerInternalException} (server fault)
|
|
57
|
-
* <p>The service could not respond to the request due to an
|
|
60
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
61
|
+
* internal problem. Try again later.</p>
|
|
58
62
|
*
|
|
59
63
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
60
|
-
* <p>The service
|
|
64
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
61
65
|
*
|
|
62
66
|
* @throws {@link UnknownResourceException} (client fault)
|
|
63
|
-
* <p>
|
|
67
|
+
* <p>The operation failed because a specified resource couldn't be found.</p>
|
|
64
68
|
*
|
|
65
69
|
*
|
|
66
70
|
*/
|