@aws-sdk/client-ram 3.477.0 → 3.481.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/dist-cjs/commands/AcceptResourceShareInvitationCommand.js +18 -41
- package/dist-cjs/commands/AssociateResourceShareCommand.js +18 -41
- package/dist-cjs/commands/AssociateResourceSharePermissionCommand.js +18 -41
- package/dist-cjs/commands/CreatePermissionCommand.js +18 -41
- package/dist-cjs/commands/CreatePermissionVersionCommand.js +18 -41
- package/dist-cjs/commands/CreateResourceShareCommand.js +18 -41
- package/dist-cjs/commands/DeletePermissionCommand.js +18 -41
- package/dist-cjs/commands/DeletePermissionVersionCommand.js +18 -41
- package/dist-cjs/commands/DeleteResourceShareCommand.js +18 -41
- package/dist-cjs/commands/DisassociateResourceShareCommand.js +18 -41
- package/dist-cjs/commands/DisassociateResourceSharePermissionCommand.js +18 -41
- package/dist-cjs/commands/EnableSharingWithAwsOrganizationCommand.js +18 -41
- package/dist-cjs/commands/GetPermissionCommand.js +18 -41
- package/dist-cjs/commands/GetResourcePoliciesCommand.js +18 -41
- package/dist-cjs/commands/GetResourceShareAssociationsCommand.js +18 -41
- package/dist-cjs/commands/GetResourceShareInvitationsCommand.js +18 -41
- package/dist-cjs/commands/GetResourceSharesCommand.js +18 -41
- package/dist-cjs/commands/ListPendingInvitationResourcesCommand.js +18 -41
- package/dist-cjs/commands/ListPermissionAssociationsCommand.js +18 -41
- package/dist-cjs/commands/ListPermissionVersionsCommand.js +18 -41
- package/dist-cjs/commands/ListPermissionsCommand.js +18 -41
- package/dist-cjs/commands/ListPrincipalsCommand.js +18 -41
- package/dist-cjs/commands/ListReplacePermissionAssociationsWorkCommand.js +18 -41
- package/dist-cjs/commands/ListResourceSharePermissionsCommand.js +18 -41
- package/dist-cjs/commands/ListResourceTypesCommand.js +18 -41
- package/dist-cjs/commands/ListResourcesCommand.js +18 -41
- package/dist-cjs/commands/PromotePermissionCreatedFromPolicyCommand.js +18 -41
- package/dist-cjs/commands/PromoteResourceShareCreatedFromPolicyCommand.js +18 -41
- package/dist-cjs/commands/RejectResourceShareInvitationCommand.js +18 -41
- package/dist-cjs/commands/ReplacePermissionAssociationsCommand.js +18 -41
- package/dist-cjs/commands/SetDefaultPermissionVersionCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/commands/UpdateResourceShareCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/GetResourcePoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/GetResourceShareAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/GetResourceShareInvitationsPaginator.js +2 -24
- package/dist-cjs/pagination/GetResourceSharesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPendingInvitationResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPermissionAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPermissionVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPrincipalsPaginator.js +2 -24
- package/dist-cjs/pagination/ListReplacePermissionAssociationsWorkPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourceSharePermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourceTypesPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourcesPaginator.js +2 -24
- package/dist-es/commands/AcceptResourceShareInvitationCommand.js +18 -41
- package/dist-es/commands/AssociateResourceShareCommand.js +18 -41
- package/dist-es/commands/AssociateResourceSharePermissionCommand.js +18 -41
- package/dist-es/commands/CreatePermissionCommand.js +18 -41
- package/dist-es/commands/CreatePermissionVersionCommand.js +18 -41
- package/dist-es/commands/CreateResourceShareCommand.js +18 -41
- package/dist-es/commands/DeletePermissionCommand.js +18 -41
- package/dist-es/commands/DeletePermissionVersionCommand.js +18 -41
- package/dist-es/commands/DeleteResourceShareCommand.js +18 -41
- package/dist-es/commands/DisassociateResourceShareCommand.js +18 -41
- package/dist-es/commands/DisassociateResourceSharePermissionCommand.js +18 -41
- package/dist-es/commands/EnableSharingWithAwsOrganizationCommand.js +18 -41
- package/dist-es/commands/GetPermissionCommand.js +18 -41
- package/dist-es/commands/GetResourcePoliciesCommand.js +18 -41
- package/dist-es/commands/GetResourceShareAssociationsCommand.js +18 -41
- package/dist-es/commands/GetResourceShareInvitationsCommand.js +18 -41
- package/dist-es/commands/GetResourceSharesCommand.js +18 -41
- package/dist-es/commands/ListPendingInvitationResourcesCommand.js +18 -41
- package/dist-es/commands/ListPermissionAssociationsCommand.js +18 -41
- package/dist-es/commands/ListPermissionVersionsCommand.js +18 -41
- package/dist-es/commands/ListPermissionsCommand.js +18 -41
- package/dist-es/commands/ListPrincipalsCommand.js +18 -41
- package/dist-es/commands/ListReplacePermissionAssociationsWorkCommand.js +18 -41
- package/dist-es/commands/ListResourceSharePermissionsCommand.js +18 -41
- package/dist-es/commands/ListResourceTypesCommand.js +18 -41
- package/dist-es/commands/ListResourcesCommand.js +18 -41
- package/dist-es/commands/PromotePermissionCreatedFromPolicyCommand.js +18 -41
- package/dist-es/commands/PromoteResourceShareCreatedFromPolicyCommand.js +18 -41
- package/dist-es/commands/RejectResourceShareInvitationCommand.js +18 -41
- package/dist-es/commands/ReplacePermissionAssociationsCommand.js +18 -41
- package/dist-es/commands/SetDefaultPermissionVersionCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/commands/UpdateResourceShareCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/GetResourcePoliciesPaginator.js +2 -23
- package/dist-es/pagination/GetResourceShareAssociationsPaginator.js +2 -23
- package/dist-es/pagination/GetResourceShareInvitationsPaginator.js +2 -23
- package/dist-es/pagination/GetResourceSharesPaginator.js +2 -23
- package/dist-es/pagination/ListPendingInvitationResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListPermissionAssociationsPaginator.js +2 -23
- package/dist-es/pagination/ListPermissionVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListPermissionsPaginator.js +2 -23
- package/dist-es/pagination/ListPrincipalsPaginator.js +2 -23
- package/dist-es/pagination/ListReplacePermissionAssociationsWorkPaginator.js +2 -23
- package/dist-es/pagination/ListResourceSharePermissionsPaginator.js +2 -23
- package/dist-es/pagination/ListResourceTypesPaginator.js +2 -23
- package/dist-es/pagination/ListResourcesPaginator.js +2 -23
- package/dist-types/commands/AcceptResourceShareInvitationCommand.d.ts +6 -21
- package/dist-types/commands/AssociateResourceShareCommand.d.ts +6 -21
- package/dist-types/commands/AssociateResourceSharePermissionCommand.d.ts +6 -21
- package/dist-types/commands/CreatePermissionCommand.d.ts +6 -21
- package/dist-types/commands/CreatePermissionVersionCommand.d.ts +6 -21
- package/dist-types/commands/CreateResourceShareCommand.d.ts +6 -21
- package/dist-types/commands/DeletePermissionCommand.d.ts +6 -21
- package/dist-types/commands/DeletePermissionVersionCommand.d.ts +6 -21
- package/dist-types/commands/DeleteResourceShareCommand.d.ts +6 -21
- package/dist-types/commands/DisassociateResourceShareCommand.d.ts +6 -21
- package/dist-types/commands/DisassociateResourceSharePermissionCommand.d.ts +6 -21
- package/dist-types/commands/EnableSharingWithAwsOrganizationCommand.d.ts +6 -21
- package/dist-types/commands/GetPermissionCommand.d.ts +6 -21
- package/dist-types/commands/GetResourcePoliciesCommand.d.ts +6 -21
- package/dist-types/commands/GetResourceShareAssociationsCommand.d.ts +6 -21
- package/dist-types/commands/GetResourceShareInvitationsCommand.d.ts +6 -21
- package/dist-types/commands/GetResourceSharesCommand.d.ts +6 -21
- package/dist-types/commands/ListPendingInvitationResourcesCommand.d.ts +6 -21
- package/dist-types/commands/ListPermissionAssociationsCommand.d.ts +6 -21
- package/dist-types/commands/ListPermissionVersionsCommand.d.ts +6 -21
- package/dist-types/commands/ListPermissionsCommand.d.ts +6 -21
- package/dist-types/commands/ListPrincipalsCommand.d.ts +6 -21
- package/dist-types/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +6 -21
- package/dist-types/commands/ListResourceSharePermissionsCommand.d.ts +6 -21
- package/dist-types/commands/ListResourceTypesCommand.d.ts +6 -21
- package/dist-types/commands/ListResourcesCommand.d.ts +6 -21
- package/dist-types/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +6 -21
- package/dist-types/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +6 -21
- package/dist-types/commands/RejectResourceShareInvitationCommand.d.ts +6 -21
- package/dist-types/commands/ReplacePermissionAssociationsCommand.d.ts +6 -21
- package/dist-types/commands/SetDefaultPermissionVersionCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UpdateResourceShareCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/GetResourcePoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetResourceShareAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetResourceShareInvitationsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetResourceSharesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPendingInvitationResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPermissionAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPermissionVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPrincipalsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListReplacePermissionAssociationsWorkPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourceSharePermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourceTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourcesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/AcceptResourceShareInvitationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/AssociateResourceShareCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/AssociateResourceSharePermissionCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreatePermissionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreatePermissionVersionCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateResourceShareCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeletePermissionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeletePermissionVersionCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteResourceShareCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DisassociateResourceShareCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DisassociateResourceSharePermissionCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/EnableSharingWithAwsOrganizationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetPermissionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetResourceShareAssociationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetResourceShareInvitationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetResourceSharesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListPendingInvitationResourcesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListPermissionAssociationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListPermissionVersionsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListPermissionsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListPrincipalsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListResourceSharePermissionsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListResourceTypesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListResourcesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/RejectResourceShareInvitationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ReplacePermissionAssociationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/SetDefaultPermissionVersionCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateResourceShareCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetResourceShareAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetResourceShareInvitationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetResourceSharesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPendingInvitationResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPermissionAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPermissionVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPrincipalsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListReplacePermissionAssociationsWorkPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourceSharePermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourceTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourcesPaginator.d.ts +3 -3
- package/package.json +11 -11
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class PromoteResourceShareCreatedFromPolicyCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "RAMClient";
|
|
29
|
-
const commandName = "PromoteResourceShareCreatedFromPolicyCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "AmazonResourceSharing",
|
|
38
|
-
operation: "PromoteResourceShareCreatedFromPolicy",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_restJson1_1.se_PromoteResourceShareCreatedFromPolicyCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_restJson1_1.de_PromoteResourceShareCreatedFromPolicyCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class PromoteResourceShareCreatedFromPolicyCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("AmazonResourceSharing", "PromoteResourceShareCreatedFromPolicy", {})
|
|
22
|
+
.n("RAMClient", "PromoteResourceShareCreatedFromPolicyCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_restJson1_1.se_PromoteResourceShareCreatedFromPolicyCommand)
|
|
25
|
+
.de(Aws_restJson1_1.de_PromoteResourceShareCreatedFromPolicyCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.PromoteResourceShareCreatedFromPolicyCommand = PromoteResourceShareCreatedFromPolicyCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class RejectResourceShareInvitationCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "RAMClient";
|
|
29
|
-
const commandName = "RejectResourceShareInvitationCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "AmazonResourceSharing",
|
|
38
|
-
operation: "RejectResourceShareInvitation",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_restJson1_1.se_RejectResourceShareInvitationCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_restJson1_1.de_RejectResourceShareInvitationCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class RejectResourceShareInvitationCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("AmazonResourceSharing", "RejectResourceShareInvitation", {})
|
|
22
|
+
.n("RAMClient", "RejectResourceShareInvitationCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_restJson1_1.se_RejectResourceShareInvitationCommand)
|
|
25
|
+
.de(Aws_restJson1_1.de_RejectResourceShareInvitationCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.RejectResourceShareInvitationCommand = RejectResourceShareInvitationCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class ReplacePermissionAssociationsCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "RAMClient";
|
|
29
|
-
const commandName = "ReplacePermissionAssociationsCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "AmazonResourceSharing",
|
|
38
|
-
operation: "ReplacePermissionAssociations",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_restJson1_1.se_ReplacePermissionAssociationsCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_restJson1_1.de_ReplacePermissionAssociationsCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class ReplacePermissionAssociationsCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("AmazonResourceSharing", "ReplacePermissionAssociations", {})
|
|
22
|
+
.n("RAMClient", "ReplacePermissionAssociationsCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_restJson1_1.se_ReplacePermissionAssociationsCommand)
|
|
25
|
+
.de(Aws_restJson1_1.de_ReplacePermissionAssociationsCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.ReplacePermissionAssociationsCommand = ReplacePermissionAssociationsCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class SetDefaultPermissionVersionCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "RAMClient";
|
|
29
|
-
const commandName = "SetDefaultPermissionVersionCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "AmazonResourceSharing",
|
|
38
|
-
operation: "SetDefaultPermissionVersion",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_restJson1_1.se_SetDefaultPermissionVersionCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_restJson1_1.de_SetDefaultPermissionVersionCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class SetDefaultPermissionVersionCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("AmazonResourceSharing", "SetDefaultPermissionVersion", {})
|
|
22
|
+
.n("RAMClient", "SetDefaultPermissionVersionCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_restJson1_1.se_SetDefaultPermissionVersionCommand)
|
|
25
|
+
.de(Aws_restJson1_1.de_SetDefaultPermissionVersionCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.SetDefaultPermissionVersionCommand = SetDefaultPermissionVersionCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class TagResourceCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "RAMClient";
|
|
29
|
-
const commandName = "TagResourceCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "AmazonResourceSharing",
|
|
38
|
-
operation: "TagResource",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_restJson1_1.se_TagResourceCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_restJson1_1.de_TagResourceCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class TagResourceCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("AmazonResourceSharing", "TagResource", {})
|
|
22
|
+
.n("RAMClient", "TagResourceCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_restJson1_1.se_TagResourceCommand)
|
|
25
|
+
.de(Aws_restJson1_1.de_TagResourceCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.TagResourceCommand = TagResourceCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class UntagResourceCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "RAMClient";
|
|
29
|
-
const commandName = "UntagResourceCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "AmazonResourceSharing",
|
|
38
|
-
operation: "UntagResource",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_restJson1_1.se_UntagResourceCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_restJson1_1.de_UntagResourceCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class UntagResourceCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("AmazonResourceSharing", "UntagResource", {})
|
|
22
|
+
.n("RAMClient", "UntagResourceCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_restJson1_1.se_UntagResourceCommand)
|
|
25
|
+
.de(Aws_restJson1_1.de_UntagResourceCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class UpdateResourceShareCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "RAMClient";
|
|
29
|
-
const commandName = "UpdateResourceShareCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "AmazonResourceSharing",
|
|
38
|
-
operation: "UpdateResourceShare",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_restJson1_1.se_UpdateResourceShareCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_restJson1_1.de_UpdateResourceShareCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class UpdateResourceShareCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("AmazonResourceSharing", "UpdateResourceShare", {})
|
|
22
|
+
.n("RAMClient", "UpdateResourceShareCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_restJson1_1.se_UpdateResourceShareCommand)
|
|
25
|
+
.de(Aws_restJson1_1.de_UpdateResourceShareCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.UpdateResourceShareCommand = UpdateResourceShareCommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveClientEndpointParameters = void 0;
|
|
3
|
+
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
5
|
return {
|
|
6
6
|
...options,
|
|
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
+
exports.commonParams = {
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetResourcePolicies = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetResourcePoliciesCommand_1 = require("../commands/GetResourcePoliciesCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetResourcePoliciesCommand_1.GetResourcePoliciesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetResourcePolicies(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetResourcePolicies = paginateGetResourcePolicies;
|
|
7
|
+
exports.paginateGetResourcePolicies = (0, core_1.createPaginator)(RAMClient_1.RAMClient, GetResourcePoliciesCommand_1.GetResourcePoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetResourceShareAssociations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetResourceShareAssociationsCommand_1 = require("../commands/GetResourceShareAssociationsCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetResourceShareAssociationsCommand_1.GetResourceShareAssociationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetResourceShareAssociations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetResourceShareAssociations = paginateGetResourceShareAssociations;
|
|
7
|
+
exports.paginateGetResourceShareAssociations = (0, core_1.createPaginator)(RAMClient_1.RAMClient, GetResourceShareAssociationsCommand_1.GetResourceShareAssociationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetResourceShareInvitations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetResourceShareInvitationsCommand_1 = require("../commands/GetResourceShareInvitationsCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetResourceShareInvitationsCommand_1.GetResourceShareInvitationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetResourceShareInvitations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetResourceShareInvitations = paginateGetResourceShareInvitations;
|
|
7
|
+
exports.paginateGetResourceShareInvitations = (0, core_1.createPaginator)(RAMClient_1.RAMClient, GetResourceShareInvitationsCommand_1.GetResourceShareInvitationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetResourceShares = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetResourceSharesCommand_1 = require("../commands/GetResourceSharesCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetResourceSharesCommand_1.GetResourceSharesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetResourceShares(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetResourceShares = paginateGetResourceShares;
|
|
7
|
+
exports.paginateGetResourceShares = (0, core_1.createPaginator)(RAMClient_1.RAMClient, GetResourceSharesCommand_1.GetResourceSharesCommand, "nextToken", "nextToken", "maxResults");
|