@aws-sdk/client-ssm 3.211.0 → 3.212.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/SSM.js +45 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/DescribeOpsItemsCommand.js +3 -3
- package/dist-cjs/commands/GetResourcePoliciesCommand.js +46 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateAssociationCommand.js +3 -3
- package/dist-cjs/commands/UpdateAssociationStatusCommand.js +3 -3
- package/dist-cjs/commands/UpdateDocumentCommand.js +3 -3
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +58 -44
- package/dist-cjs/models/models_1.js +80 -106
- package/dist-cjs/models/models_2.js +101 -1
- package/dist-cjs/pagination/GetResourcePoliciesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +356 -115
- package/dist-es/SSM.js +45 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +42 -0
- package/dist-es/commands/DescribeOpsItemsCommand.js +1 -1
- package/dist-es/commands/GetResourcePoliciesCommand.js +42 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +42 -0
- package/dist-es/commands/UpdateAssociationCommand.js +1 -1
- package/dist-es/commands/UpdateAssociationStatusCommand.js +1 -1
- package/dist-es/commands/UpdateDocumentCommand.js +1 -1
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +47 -34
- package/dist-es/models/models_1.js +65 -90
- package/dist-es/models/models_2.js +90 -1
- package/dist-es/pagination/GetResourcePoliciesPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +342 -107
- package/dist-types/SSM.d.ts +28 -0
- package/dist-types/SSMClient.d.ts +5 -2
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +40 -0
- package/dist-types/commands/DescribeOpsItemsCommand.d.ts +1 -1
- package/dist-types/commands/GetResourcePoliciesCommand.d.ts +37 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +41 -0
- package/dist-types/commands/UpdateAssociationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssociationStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDocumentCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +105 -223
- package/dist-types/models/models_1.d.ts +385 -324
- package/dist-types/models/models_2.d.ts +343 -3
- package/dist-types/pagination/GetResourcePoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/SSM.d.ts +51 -0
- package/dist-types/ts3.4/SSMClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeOpsItemsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateAssociationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAssociationStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDocumentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +46 -66
- package/dist-types/ts3.4/models/models_1.d.ts +122 -104
- package/dist-types/ts3.4/models/models_2.d.ts +110 -1
- package/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +29 -29
|
@@ -1,7 +1,71 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { PatchSourceFilterSensitiveLog, } from "./models_0";
|
|
2
|
+
import { AssociationDescriptionFilterSensitiveLog, PatchSourceFilterSensitiveLog, } from "./models_0";
|
|
3
3
|
import { MaintenanceWindowTaskInvocationParametersFilterSensitiveLog, } from "./models_1";
|
|
4
4
|
import { SSMServiceException as __BaseException } from "./SSMServiceException";
|
|
5
|
+
export class InvalidUpdate extends __BaseException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "InvalidUpdate",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "InvalidUpdate";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, InvalidUpdate.prototype);
|
|
15
|
+
this.Message = opts.Message;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export class StatusUnchanged extends __BaseException {
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "StatusUnchanged",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts,
|
|
24
|
+
});
|
|
25
|
+
this.name = "StatusUnchanged";
|
|
26
|
+
this.$fault = "client";
|
|
27
|
+
Object.setPrototypeOf(this, StatusUnchanged.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class DocumentVersionLimitExceeded extends __BaseException {
|
|
31
|
+
constructor(opts) {
|
|
32
|
+
super({
|
|
33
|
+
name: "DocumentVersionLimitExceeded",
|
|
34
|
+
$fault: "client",
|
|
35
|
+
...opts,
|
|
36
|
+
});
|
|
37
|
+
this.name = "DocumentVersionLimitExceeded";
|
|
38
|
+
this.$fault = "client";
|
|
39
|
+
Object.setPrototypeOf(this, DocumentVersionLimitExceeded.prototype);
|
|
40
|
+
this.Message = opts.Message;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export class DuplicateDocumentContent extends __BaseException {
|
|
44
|
+
constructor(opts) {
|
|
45
|
+
super({
|
|
46
|
+
name: "DuplicateDocumentContent",
|
|
47
|
+
$fault: "client",
|
|
48
|
+
...opts,
|
|
49
|
+
});
|
|
50
|
+
this.name = "DuplicateDocumentContent";
|
|
51
|
+
this.$fault = "client";
|
|
52
|
+
Object.setPrototypeOf(this, DuplicateDocumentContent.prototype);
|
|
53
|
+
this.Message = opts.Message;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export class DuplicateDocumentVersionName extends __BaseException {
|
|
57
|
+
constructor(opts) {
|
|
58
|
+
super({
|
|
59
|
+
name: "DuplicateDocumentVersionName",
|
|
60
|
+
$fault: "client",
|
|
61
|
+
...opts,
|
|
62
|
+
});
|
|
63
|
+
this.name = "DuplicateDocumentVersionName";
|
|
64
|
+
this.$fault = "client";
|
|
65
|
+
Object.setPrototypeOf(this, DuplicateDocumentVersionName.prototype);
|
|
66
|
+
this.Message = opts.Message;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
5
69
|
export var DocumentReviewAction;
|
|
6
70
|
(function (DocumentReviewAction) {
|
|
7
71
|
DocumentReviewAction["Approve"] = "Approve";
|
|
@@ -34,6 +98,31 @@ export class ResourceDataSyncConflictException extends __BaseException {
|
|
|
34
98
|
this.Message = opts.Message;
|
|
35
99
|
}
|
|
36
100
|
}
|
|
101
|
+
export const UpdateAssociationRequestFilterSensitiveLog = (obj) => ({
|
|
102
|
+
...obj,
|
|
103
|
+
...(obj.Parameters && { Parameters: SENSITIVE_STRING }),
|
|
104
|
+
});
|
|
105
|
+
export const UpdateAssociationResultFilterSensitiveLog = (obj) => ({
|
|
106
|
+
...obj,
|
|
107
|
+
...(obj.AssociationDescription && {
|
|
108
|
+
AssociationDescription: AssociationDescriptionFilterSensitiveLog(obj.AssociationDescription),
|
|
109
|
+
}),
|
|
110
|
+
});
|
|
111
|
+
export const UpdateAssociationStatusRequestFilterSensitiveLog = (obj) => ({
|
|
112
|
+
...obj,
|
|
113
|
+
});
|
|
114
|
+
export const UpdateAssociationStatusResultFilterSensitiveLog = (obj) => ({
|
|
115
|
+
...obj,
|
|
116
|
+
...(obj.AssociationDescription && {
|
|
117
|
+
AssociationDescription: AssociationDescriptionFilterSensitiveLog(obj.AssociationDescription),
|
|
118
|
+
}),
|
|
119
|
+
});
|
|
120
|
+
export const UpdateDocumentRequestFilterSensitiveLog = (obj) => ({
|
|
121
|
+
...obj,
|
|
122
|
+
});
|
|
123
|
+
export const UpdateDocumentResultFilterSensitiveLog = (obj) => ({
|
|
124
|
+
...obj,
|
|
125
|
+
});
|
|
37
126
|
export const UpdateDocumentDefaultVersionRequestFilterSensitiveLog = (obj) => ({
|
|
38
127
|
...obj,
|
|
39
128
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { GetResourcePoliciesCommand, } from "../commands/GetResourcePoliciesCommand";
|
|
2
|
+
import { SSM } from "../SSM";
|
|
3
|
+
import { SSMClient } from "../SSMClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new GetResourcePoliciesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.getResourcePolicies(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateGetResourcePolicies(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof SSM) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof SSMClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -32,6 +32,7 @@ export * from "./GetInventorySchemaPaginator";
|
|
|
32
32
|
export * from "./GetOpsSummaryPaginator";
|
|
33
33
|
export * from "./GetParameterHistoryPaginator";
|
|
34
34
|
export * from "./GetParametersByPathPaginator";
|
|
35
|
+
export * from "./GetResourcePoliciesPaginator";
|
|
35
36
|
export * from "./ListAssociationVersionsPaginator";
|
|
36
37
|
export * from "./ListAssociationsPaginator";
|
|
37
38
|
export * from "./ListCommandInvocationsPaginator";
|