@aws-sdk/client-repostspace 3.670.0 → 3.677.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 +17 -1
- package/dist-cjs/index.js +170 -61
- package/dist-es/Repostspace.js +4 -0
- package/dist-es/commands/BatchAddRoleCommand.js +22 -0
- package/dist-es/commands/BatchRemoveRoleCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +43 -37
- package/dist-es/protocols/Aws_restJson1.js +67 -6
- package/dist-types/Repostspace.d.ts +14 -0
- package/dist-types/RepostspaceClient.d.ts +4 -2
- package/dist-types/commands/BatchAddRoleCommand.d.ts +99 -0
- package/dist-types/commands/BatchRemoveRoleCommand.d.ts +99 -0
- package/dist-types/commands/GetSpaceCommand.d.ts +5 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +202 -88
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/Repostspace.d.ts +34 -0
- package/dist-types/ts3.4/RepostspaceClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/BatchAddRoleCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/BatchRemoveRoleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +68 -37
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
- package/package.json +8 -8
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { BatchAddRoleCommandInput, BatchAddRoleCommandOutput } from "./commands/BatchAddRoleCommand";
|
|
3
|
+
import { BatchRemoveRoleCommandInput, BatchRemoveRoleCommandOutput } from "./commands/BatchRemoveRoleCommand";
|
|
2
4
|
import { CreateSpaceCommandInput, CreateSpaceCommandOutput } from "./commands/CreateSpaceCommand";
|
|
3
5
|
import { DeleteSpaceCommandInput, DeleteSpaceCommandOutput } from "./commands/DeleteSpaceCommand";
|
|
4
6
|
import { DeregisterAdminCommandInput, DeregisterAdminCommandOutput } from "./commands/DeregisterAdminCommand";
|
|
@@ -12,6 +14,18 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
12
14
|
import { UpdateSpaceCommandInput, UpdateSpaceCommandOutput } from "./commands/UpdateSpaceCommand";
|
|
13
15
|
import { RepostspaceClient } from "./RepostspaceClient";
|
|
14
16
|
export interface Repostspace {
|
|
17
|
+
/**
|
|
18
|
+
* @see {@link BatchAddRoleCommand}
|
|
19
|
+
*/
|
|
20
|
+
batchAddRole(args: BatchAddRoleCommandInput, options?: __HttpHandlerOptions): Promise<BatchAddRoleCommandOutput>;
|
|
21
|
+
batchAddRole(args: BatchAddRoleCommandInput, cb: (err: any, data?: BatchAddRoleCommandOutput) => void): void;
|
|
22
|
+
batchAddRole(args: BatchAddRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchAddRoleCommandOutput) => void): void;
|
|
23
|
+
/**
|
|
24
|
+
* @see {@link BatchRemoveRoleCommand}
|
|
25
|
+
*/
|
|
26
|
+
batchRemoveRole(args: BatchRemoveRoleCommandInput, options?: __HttpHandlerOptions): Promise<BatchRemoveRoleCommandOutput>;
|
|
27
|
+
batchRemoveRole(args: BatchRemoveRoleCommandInput, cb: (err: any, data?: BatchRemoveRoleCommandOutput) => void): void;
|
|
28
|
+
batchRemoveRole(args: BatchRemoveRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchRemoveRoleCommandOutput) => void): void;
|
|
15
29
|
/**
|
|
16
30
|
* @see {@link CreateSpaceCommand}
|
|
17
31
|
*/
|
|
@@ -7,6 +7,8 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
|
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
8
|
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { BatchAddRoleCommandInput, BatchAddRoleCommandOutput } from "./commands/BatchAddRoleCommand";
|
|
11
|
+
import { BatchRemoveRoleCommandInput, BatchRemoveRoleCommandOutput } from "./commands/BatchRemoveRoleCommand";
|
|
10
12
|
import { CreateSpaceCommandInput, CreateSpaceCommandOutput } from "./commands/CreateSpaceCommand";
|
|
11
13
|
import { DeleteSpaceCommandInput, DeleteSpaceCommandOutput } from "./commands/DeleteSpaceCommand";
|
|
12
14
|
import { DeregisterAdminCommandInput, DeregisterAdminCommandOutput } from "./commands/DeregisterAdminCommand";
|
|
@@ -24,11 +26,11 @@ export { __Client };
|
|
|
24
26
|
/**
|
|
25
27
|
* @public
|
|
26
28
|
*/
|
|
27
|
-
export type ServiceInputTypes = CreateSpaceCommandInput | DeleteSpaceCommandInput | DeregisterAdminCommandInput | GetSpaceCommandInput | ListSpacesCommandInput | ListTagsForResourceCommandInput | RegisterAdminCommandInput | SendInvitesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSpaceCommandInput;
|
|
29
|
+
export type ServiceInputTypes = BatchAddRoleCommandInput | BatchRemoveRoleCommandInput | CreateSpaceCommandInput | DeleteSpaceCommandInput | DeregisterAdminCommandInput | GetSpaceCommandInput | ListSpacesCommandInput | ListTagsForResourceCommandInput | RegisterAdminCommandInput | SendInvitesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSpaceCommandInput;
|
|
28
30
|
/**
|
|
29
31
|
* @public
|
|
30
32
|
*/
|
|
31
|
-
export type ServiceOutputTypes = CreateSpaceCommandOutput | DeleteSpaceCommandOutput | DeregisterAdminCommandOutput | GetSpaceCommandOutput | ListSpacesCommandOutput | ListTagsForResourceCommandOutput | RegisterAdminCommandOutput | SendInvitesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSpaceCommandOutput;
|
|
33
|
+
export type ServiceOutputTypes = BatchAddRoleCommandOutput | BatchRemoveRoleCommandOutput | CreateSpaceCommandOutput | DeleteSpaceCommandOutput | DeregisterAdminCommandOutput | GetSpaceCommandOutput | ListSpacesCommandOutput | ListTagsForResourceCommandOutput | RegisterAdminCommandOutput | SendInvitesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSpaceCommandOutput;
|
|
32
34
|
/**
|
|
33
35
|
* @public
|
|
34
36
|
*/
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BatchAddRoleInput, BatchAddRoleOutput } from "../models/models_0";
|
|
4
|
+
import { RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RepostspaceClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchAddRoleCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchAddRoleCommandInput extends BatchAddRoleInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchAddRoleCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchAddRoleCommandOutput extends BatchAddRoleOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchAddRoleCommand_base: {
|
|
25
|
+
new (input: BatchAddRoleCommandInput): import("@smithy/smithy-client").CommandImpl<BatchAddRoleCommandInput, BatchAddRoleCommandOutput, RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: BatchAddRoleCommandInput): import("@smithy/smithy-client").CommandImpl<BatchAddRoleCommandInput, BatchAddRoleCommandOutput, RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Add role to multiple users or groups in a private re:Post.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { RepostspaceClient, BatchAddRoleCommand } from "@aws-sdk/client-repostspace"; // ES Modules import
|
|
35
|
+
* // const { RepostspaceClient, BatchAddRoleCommand } = require("@aws-sdk/client-repostspace"); // CommonJS import
|
|
36
|
+
* const client = new RepostspaceClient(config);
|
|
37
|
+
* const input = { // BatchAddRoleInput
|
|
38
|
+
* spaceId: "STRING_VALUE", // required
|
|
39
|
+
* accessorIds: [ // AccessorIdList // required
|
|
40
|
+
* "STRING_VALUE",
|
|
41
|
+
* ],
|
|
42
|
+
* role: "EXPERT" || "MODERATOR" || "ADMINISTRATOR" || "SUPPORTREQUESTOR", // required
|
|
43
|
+
* };
|
|
44
|
+
* const command = new BatchAddRoleCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // BatchAddRoleOutput
|
|
47
|
+
* // addedAccessorIds: [ // AccessorIdList // required
|
|
48
|
+
* // "STRING_VALUE",
|
|
49
|
+
* // ],
|
|
50
|
+
* // errors: [ // BatchErrorList // required
|
|
51
|
+
* // { // BatchError
|
|
52
|
+
* // accessorId: "STRING_VALUE", // required
|
|
53
|
+
* // error: Number("int"), // required
|
|
54
|
+
* // message: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param BatchAddRoleCommandInput - {@link BatchAddRoleCommandInput}
|
|
62
|
+
* @returns {@link BatchAddRoleCommandOutput}
|
|
63
|
+
* @see {@link BatchAddRoleCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link BatchAddRoleCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link RepostspaceClientResolvedConfig | config} for RepostspaceClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
68
|
+
* <p>User does not have sufficient access to perform this action.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* <p>Unexpected error during processing of request.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
74
|
+
* <p>Request references a resource which does not exist.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
77
|
+
* <p>Request was denied due to request throttling.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link RepostspaceServiceException}
|
|
83
|
+
* <p>Base exception class for all service exceptions from Repostspace service.</p>
|
|
84
|
+
*
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export declare class BatchAddRoleCommand extends BatchAddRoleCommand_base {
|
|
88
|
+
/** @internal type navigation helper, not in runtime. */
|
|
89
|
+
protected static __types: {
|
|
90
|
+
api: {
|
|
91
|
+
input: BatchAddRoleInput;
|
|
92
|
+
output: BatchAddRoleOutput;
|
|
93
|
+
};
|
|
94
|
+
sdk: {
|
|
95
|
+
input: BatchAddRoleCommandInput;
|
|
96
|
+
output: BatchAddRoleCommandOutput;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BatchRemoveRoleInput, BatchRemoveRoleOutput } from "../models/models_0";
|
|
4
|
+
import { RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RepostspaceClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchRemoveRoleCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchRemoveRoleCommandInput extends BatchRemoveRoleInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchRemoveRoleCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchRemoveRoleCommandOutput extends BatchRemoveRoleOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchRemoveRoleCommand_base: {
|
|
25
|
+
new (input: BatchRemoveRoleCommandInput): import("@smithy/smithy-client").CommandImpl<BatchRemoveRoleCommandInput, BatchRemoveRoleCommandOutput, RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: BatchRemoveRoleCommandInput): import("@smithy/smithy-client").CommandImpl<BatchRemoveRoleCommandInput, BatchRemoveRoleCommandOutput, RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Remove role from multiple users or groups in a private re:Post.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { RepostspaceClient, BatchRemoveRoleCommand } from "@aws-sdk/client-repostspace"; // ES Modules import
|
|
35
|
+
* // const { RepostspaceClient, BatchRemoveRoleCommand } = require("@aws-sdk/client-repostspace"); // CommonJS import
|
|
36
|
+
* const client = new RepostspaceClient(config);
|
|
37
|
+
* const input = { // BatchRemoveRoleInput
|
|
38
|
+
* spaceId: "STRING_VALUE", // required
|
|
39
|
+
* accessorIds: [ // AccessorIdList // required
|
|
40
|
+
* "STRING_VALUE",
|
|
41
|
+
* ],
|
|
42
|
+
* role: "EXPERT" || "MODERATOR" || "ADMINISTRATOR" || "SUPPORTREQUESTOR", // required
|
|
43
|
+
* };
|
|
44
|
+
* const command = new BatchRemoveRoleCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // BatchRemoveRoleOutput
|
|
47
|
+
* // removedAccessorIds: [ // AccessorIdList // required
|
|
48
|
+
* // "STRING_VALUE",
|
|
49
|
+
* // ],
|
|
50
|
+
* // errors: [ // BatchErrorList // required
|
|
51
|
+
* // { // BatchError
|
|
52
|
+
* // accessorId: "STRING_VALUE", // required
|
|
53
|
+
* // error: Number("int"), // required
|
|
54
|
+
* // message: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param BatchRemoveRoleCommandInput - {@link BatchRemoveRoleCommandInput}
|
|
62
|
+
* @returns {@link BatchRemoveRoleCommandOutput}
|
|
63
|
+
* @see {@link BatchRemoveRoleCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link BatchRemoveRoleCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link RepostspaceClientResolvedConfig | config} for RepostspaceClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
68
|
+
* <p>User does not have sufficient access to perform this action.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* <p>Unexpected error during processing of request.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
74
|
+
* <p>Request references a resource which does not exist.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
77
|
+
* <p>Request was denied due to request throttling.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link RepostspaceServiceException}
|
|
83
|
+
* <p>Base exception class for all service exceptions from Repostspace service.</p>
|
|
84
|
+
*
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export declare class BatchRemoveRoleCommand extends BatchRemoveRoleCommand_base {
|
|
88
|
+
/** @internal type navigation helper, not in runtime. */
|
|
89
|
+
protected static __types: {
|
|
90
|
+
api: {
|
|
91
|
+
input: BatchRemoveRoleInput;
|
|
92
|
+
output: BatchRemoveRoleOutput;
|
|
93
|
+
};
|
|
94
|
+
sdk: {
|
|
95
|
+
input: BatchRemoveRoleCommandInput;
|
|
96
|
+
output: BatchRemoveRoleCommandOutput;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -61,6 +61,11 @@ declare const GetSpaceCommand_base: {
|
|
|
61
61
|
* // groupAdmins: [ // GroupAdmins
|
|
62
62
|
* // "STRING_VALUE",
|
|
63
63
|
* // ],
|
|
64
|
+
* // roles: { // Roles
|
|
65
|
+
* // "<keys>": [ // RoleList
|
|
66
|
+
* // "EXPERT" || "MODERATOR" || "ADMINISTRATOR" || "SUPPORTREQUESTOR",
|
|
67
|
+
* // ],
|
|
68
|
+
* // },
|
|
64
69
|
* // userKMSKey: "STRING_VALUE",
|
|
65
70
|
* // userCount: Number("int"),
|
|
66
71
|
* // contentSize: Number("long"),
|
|
@@ -16,97 +16,71 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
16
16
|
* @public
|
|
17
17
|
* @enum
|
|
18
18
|
*/
|
|
19
|
-
export declare const
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
19
|
+
export declare const Role: {
|
|
20
|
+
readonly ADMINISTRATOR: "ADMINISTRATOR";
|
|
21
|
+
readonly EXPERT: "EXPERT";
|
|
22
|
+
readonly MODERATOR: "MODERATOR";
|
|
23
|
+
readonly SUPPORTREQUESTOR: "SUPPORTREQUESTOR";
|
|
22
24
|
};
|
|
23
25
|
/**
|
|
24
26
|
* @public
|
|
25
27
|
*/
|
|
26
|
-
export type
|
|
28
|
+
export type Role = (typeof Role)[keyof typeof Role];
|
|
27
29
|
/**
|
|
28
|
-
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
29
30
|
* @public
|
|
30
31
|
*/
|
|
31
|
-
export
|
|
32
|
-
readonly name: "ConflictException";
|
|
33
|
-
readonly $fault: "client";
|
|
32
|
+
export interface BatchAddRoleInput {
|
|
34
33
|
/**
|
|
35
|
-
* <p>The ID of the
|
|
34
|
+
* <p>The unique ID of the private re:Post.</p>
|
|
36
35
|
* @public
|
|
37
36
|
*/
|
|
38
|
-
|
|
37
|
+
spaceId: string | undefined;
|
|
39
38
|
/**
|
|
40
|
-
* <p>The
|
|
39
|
+
* <p>The user or group accessor identifiers to add the role to.</p>
|
|
41
40
|
* @public
|
|
42
41
|
*/
|
|
43
|
-
|
|
42
|
+
accessorIds: string[] | undefined;
|
|
44
43
|
/**
|
|
45
|
-
*
|
|
44
|
+
* <p>The role to add to the users or groups.</p>
|
|
45
|
+
* @public
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
role: Role | undefined;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
51
|
-
* @enum
|
|
52
|
-
*/
|
|
53
|
-
export declare const TierLevel: {
|
|
54
|
-
readonly BASIC: "BASIC";
|
|
55
|
-
readonly STANDARD: "STANDARD";
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* @public
|
|
59
|
-
*/
|
|
60
|
-
export type TierLevel = (typeof TierLevel)[keyof typeof TierLevel];
|
|
61
|
-
/**
|
|
50
|
+
* <p>An error that occurred during a batch operation.</p>
|
|
62
51
|
* @public
|
|
63
52
|
*/
|
|
64
|
-
export interface
|
|
65
|
-
/**
|
|
66
|
-
* <p>The name for the private re:Post. This must be unique in your account.</p>
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
name: string | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* <p>The subdomain that you use to access your AWS re:Post Private private re:Post. All custom subdomains must be approved by AWS before use. In addition to your custom subdomain, all private re:Posts are issued an AWS generated subdomain for immediate use.</p>
|
|
72
|
-
* @public
|
|
73
|
-
*/
|
|
74
|
-
subdomain: string | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* <p>The pricing tier for the private re:Post.</p>
|
|
77
|
-
* @public
|
|
78
|
-
*/
|
|
79
|
-
tier: TierLevel | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* <p>A description for the private re:Post. This is used only to help you identify this private re:Post.</p>
|
|
82
|
-
* @public
|
|
83
|
-
*/
|
|
84
|
-
description?: string;
|
|
53
|
+
export interface BatchError {
|
|
85
54
|
/**
|
|
86
|
-
* <p>The
|
|
55
|
+
* <p>The accessor identifier that's related to the error.</p>
|
|
87
56
|
* @public
|
|
88
57
|
*/
|
|
89
|
-
|
|
58
|
+
accessorId: string | undefined;
|
|
90
59
|
/**
|
|
91
|
-
* <p>The
|
|
60
|
+
* <p>The error code.</p>
|
|
92
61
|
* @public
|
|
93
62
|
*/
|
|
94
|
-
|
|
63
|
+
error: number | undefined;
|
|
95
64
|
/**
|
|
96
|
-
* <p>
|
|
65
|
+
* <p>Description of the error.</p>
|
|
97
66
|
* @public
|
|
98
67
|
*/
|
|
99
|
-
|
|
68
|
+
message: string | undefined;
|
|
100
69
|
}
|
|
101
70
|
/**
|
|
102
71
|
* @public
|
|
103
72
|
*/
|
|
104
|
-
export interface
|
|
73
|
+
export interface BatchAddRoleOutput {
|
|
105
74
|
/**
|
|
106
|
-
* <p>
|
|
75
|
+
* <p>An array of successfully updated accessor identifiers.</p>
|
|
107
76
|
* @public
|
|
108
77
|
*/
|
|
109
|
-
|
|
78
|
+
addedAccessorIds: string[] | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* <p>An array of errors that occurred when roles were added.</p>
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
errors: BatchError[] | undefined;
|
|
110
84
|
}
|
|
111
85
|
/**
|
|
112
86
|
* <p>Unexpected error during processing of request.</p>
|
|
@@ -148,38 +122,6 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
148
122
|
*/
|
|
149
123
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
150
124
|
}
|
|
151
|
-
/**
|
|
152
|
-
* <p>Request would cause a service quota to be exceeded.</p>
|
|
153
|
-
* @public
|
|
154
|
-
*/
|
|
155
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
156
|
-
readonly name: "ServiceQuotaExceededException";
|
|
157
|
-
readonly $fault: "client";
|
|
158
|
-
/**
|
|
159
|
-
* <p>The id of the resource.</p>
|
|
160
|
-
* @public
|
|
161
|
-
*/
|
|
162
|
-
resourceId: string | undefined;
|
|
163
|
-
/**
|
|
164
|
-
* <p>The type of the resource.</p>
|
|
165
|
-
* @public
|
|
166
|
-
*/
|
|
167
|
-
resourceType: string | undefined;
|
|
168
|
-
/**
|
|
169
|
-
* <p>The code to identify the service.</p>
|
|
170
|
-
* @public
|
|
171
|
-
*/
|
|
172
|
-
serviceCode: string | undefined;
|
|
173
|
-
/**
|
|
174
|
-
* <p>The code to identify the quota.</p>
|
|
175
|
-
* @public
|
|
176
|
-
*/
|
|
177
|
-
quotaCode: string | undefined;
|
|
178
|
-
/**
|
|
179
|
-
* @internal
|
|
180
|
-
*/
|
|
181
|
-
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
182
|
-
}
|
|
183
125
|
/**
|
|
184
126
|
* <p>Request was denied due to request throttling.</p>
|
|
185
127
|
* @public
|
|
@@ -262,6 +204,169 @@ export declare class ValidationException extends __BaseException {
|
|
|
262
204
|
*/
|
|
263
205
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
264
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* @public
|
|
209
|
+
*/
|
|
210
|
+
export interface BatchRemoveRoleInput {
|
|
211
|
+
/**
|
|
212
|
+
* <p>The unique ID of the private re:Post.</p>
|
|
213
|
+
* @public
|
|
214
|
+
*/
|
|
215
|
+
spaceId: string | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* <p>The user or group accessor identifiers to remove the role from.</p>
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
accessorIds: string[] | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* <p>The role to remove from the users or groups.</p>
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
role: Role | undefined;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* @public
|
|
229
|
+
*/
|
|
230
|
+
export interface BatchRemoveRoleOutput {
|
|
231
|
+
/**
|
|
232
|
+
* <p>An array of successfully updated accessor identifiers.</p>
|
|
233
|
+
* @public
|
|
234
|
+
*/
|
|
235
|
+
removedAccessorIds: string[] | undefined;
|
|
236
|
+
/**
|
|
237
|
+
* <p>An array of errors that occurred when roles were removed.</p>
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
errors: BatchError[] | undefined;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* @public
|
|
244
|
+
* @enum
|
|
245
|
+
*/
|
|
246
|
+
export declare const ConfigurationStatus: {
|
|
247
|
+
readonly CONFIGURED: "CONFIGURED";
|
|
248
|
+
readonly UNCONFIGURED: "UNCONFIGURED";
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* @public
|
|
252
|
+
*/
|
|
253
|
+
export type ConfigurationStatus = (typeof ConfigurationStatus)[keyof typeof ConfigurationStatus];
|
|
254
|
+
/**
|
|
255
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
256
|
+
* @public
|
|
257
|
+
*/
|
|
258
|
+
export declare class ConflictException extends __BaseException {
|
|
259
|
+
readonly name: "ConflictException";
|
|
260
|
+
readonly $fault: "client";
|
|
261
|
+
/**
|
|
262
|
+
* <p>The ID of the resource.</p>
|
|
263
|
+
* @public
|
|
264
|
+
*/
|
|
265
|
+
resourceId: string | undefined;
|
|
266
|
+
/**
|
|
267
|
+
* <p>The type of the resource.</p>
|
|
268
|
+
* @public
|
|
269
|
+
*/
|
|
270
|
+
resourceType: string | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* @internal
|
|
273
|
+
*/
|
|
274
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* @public
|
|
278
|
+
* @enum
|
|
279
|
+
*/
|
|
280
|
+
export declare const TierLevel: {
|
|
281
|
+
readonly BASIC: "BASIC";
|
|
282
|
+
readonly STANDARD: "STANDARD";
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* @public
|
|
286
|
+
*/
|
|
287
|
+
export type TierLevel = (typeof TierLevel)[keyof typeof TierLevel];
|
|
288
|
+
/**
|
|
289
|
+
* @public
|
|
290
|
+
*/
|
|
291
|
+
export interface CreateSpaceInput {
|
|
292
|
+
/**
|
|
293
|
+
* <p>The name for the private re:Post. This must be unique in your account.</p>
|
|
294
|
+
* @public
|
|
295
|
+
*/
|
|
296
|
+
name: string | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* <p>The subdomain that you use to access your AWS re:Post Private private re:Post. All custom subdomains must be approved by AWS before use. In addition to your custom subdomain, all private re:Posts are issued an AWS generated subdomain for immediate use.</p>
|
|
299
|
+
* @public
|
|
300
|
+
*/
|
|
301
|
+
subdomain: string | undefined;
|
|
302
|
+
/**
|
|
303
|
+
* <p>The pricing tier for the private re:Post.</p>
|
|
304
|
+
* @public
|
|
305
|
+
*/
|
|
306
|
+
tier: TierLevel | undefined;
|
|
307
|
+
/**
|
|
308
|
+
* <p>A description for the private re:Post. This is used only to help you identify this private re:Post.</p>
|
|
309
|
+
* @public
|
|
310
|
+
*/
|
|
311
|
+
description?: string;
|
|
312
|
+
/**
|
|
313
|
+
* <p>The AWS KMS key ARN that’s used for the AWS KMS encryption. If you don't provide a key, your data is encrypted by default with a key that AWS owns and manages for you.</p>
|
|
314
|
+
* @public
|
|
315
|
+
*/
|
|
316
|
+
userKMSKey?: string;
|
|
317
|
+
/**
|
|
318
|
+
* <p>The list of tags associated with the private re:Post.</p>
|
|
319
|
+
* @public
|
|
320
|
+
*/
|
|
321
|
+
tags?: Record<string, string>;
|
|
322
|
+
/**
|
|
323
|
+
* <p>The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.</p>
|
|
324
|
+
* @public
|
|
325
|
+
*/
|
|
326
|
+
roleArn?: string;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* @public
|
|
330
|
+
*/
|
|
331
|
+
export interface CreateSpaceOutput {
|
|
332
|
+
/**
|
|
333
|
+
* <p>The unique ID of the private re:Post.</p>
|
|
334
|
+
* @public
|
|
335
|
+
*/
|
|
336
|
+
spaceId: string | undefined;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* <p>Request would cause a service quota to be exceeded.</p>
|
|
340
|
+
* @public
|
|
341
|
+
*/
|
|
342
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
343
|
+
readonly name: "ServiceQuotaExceededException";
|
|
344
|
+
readonly $fault: "client";
|
|
345
|
+
/**
|
|
346
|
+
* <p>The id of the resource.</p>
|
|
347
|
+
* @public
|
|
348
|
+
*/
|
|
349
|
+
resourceId: string | undefined;
|
|
350
|
+
/**
|
|
351
|
+
* <p>The type of the resource.</p>
|
|
352
|
+
* @public
|
|
353
|
+
*/
|
|
354
|
+
resourceType: string | undefined;
|
|
355
|
+
/**
|
|
356
|
+
* <p>The code to identify the service.</p>
|
|
357
|
+
* @public
|
|
358
|
+
*/
|
|
359
|
+
serviceCode: string | undefined;
|
|
360
|
+
/**
|
|
361
|
+
* <p>The code to identify the quota.</p>
|
|
362
|
+
* @public
|
|
363
|
+
*/
|
|
364
|
+
quotaCode: string | undefined;
|
|
365
|
+
/**
|
|
366
|
+
* @internal
|
|
367
|
+
*/
|
|
368
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
369
|
+
}
|
|
265
370
|
/**
|
|
266
371
|
* @public
|
|
267
372
|
*/
|
|
@@ -390,15 +495,24 @@ export interface GetSpaceOutput {
|
|
|
390
495
|
*/
|
|
391
496
|
storageLimit: number | undefined;
|
|
392
497
|
/**
|
|
498
|
+
* @deprecated
|
|
499
|
+
*
|
|
393
500
|
* <p>The list of users that are administrators of the private re:Post.</p>
|
|
394
501
|
* @public
|
|
395
502
|
*/
|
|
396
503
|
userAdmins?: string[];
|
|
397
504
|
/**
|
|
505
|
+
* @deprecated
|
|
506
|
+
*
|
|
398
507
|
* <p>The list of groups that are administrators of the private re:Post.</p>
|
|
399
508
|
* @public
|
|
400
509
|
*/
|
|
401
510
|
groupAdmins?: string[];
|
|
511
|
+
/**
|
|
512
|
+
* <p>A map of accessor identifiers and their roles.</p>
|
|
513
|
+
* @public
|
|
514
|
+
*/
|
|
515
|
+
roles?: Record<string, Role[]>;
|
|
402
516
|
/**
|
|
403
517
|
* <p>The custom AWS KMS key ARN that’s used for the AWS KMS encryption.</p>
|
|
404
518
|
* @public
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
+
import { BatchAddRoleCommandInput, BatchAddRoleCommandOutput } from "../commands/BatchAddRoleCommand";
|
|
4
|
+
import { BatchRemoveRoleCommandInput, BatchRemoveRoleCommandOutput } from "../commands/BatchRemoveRoleCommand";
|
|
3
5
|
import { CreateSpaceCommandInput, CreateSpaceCommandOutput } from "../commands/CreateSpaceCommand";
|
|
4
6
|
import { DeleteSpaceCommandInput, DeleteSpaceCommandOutput } from "../commands/DeleteSpaceCommand";
|
|
5
7
|
import { DeregisterAdminCommandInput, DeregisterAdminCommandOutput } from "../commands/DeregisterAdminCommand";
|
|
@@ -11,6 +13,14 @@ import { SendInvitesCommandInput, SendInvitesCommandOutput } from "../commands/S
|
|
|
11
13
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
12
14
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
13
15
|
import { UpdateSpaceCommandInput, UpdateSpaceCommandOutput } from "../commands/UpdateSpaceCommand";
|
|
16
|
+
/**
|
|
17
|
+
* serializeAws_restJson1BatchAddRoleCommand
|
|
18
|
+
*/
|
|
19
|
+
export declare const se_BatchAddRoleCommand: (input: BatchAddRoleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
20
|
+
/**
|
|
21
|
+
* serializeAws_restJson1BatchRemoveRoleCommand
|
|
22
|
+
*/
|
|
23
|
+
export declare const se_BatchRemoveRoleCommand: (input: BatchRemoveRoleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
24
|
/**
|
|
15
25
|
* serializeAws_restJson1CreateSpaceCommand
|
|
16
26
|
*/
|
|
@@ -55,6 +65,14 @@ export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput,
|
|
|
55
65
|
* serializeAws_restJson1UpdateSpaceCommand
|
|
56
66
|
*/
|
|
57
67
|
export declare const se_UpdateSpaceCommand: (input: UpdateSpaceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
68
|
+
/**
|
|
69
|
+
* deserializeAws_restJson1BatchAddRoleCommand
|
|
70
|
+
*/
|
|
71
|
+
export declare const de_BatchAddRoleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchAddRoleCommandOutput>;
|
|
72
|
+
/**
|
|
73
|
+
* deserializeAws_restJson1BatchRemoveRoleCommand
|
|
74
|
+
*/
|
|
75
|
+
export declare const de_BatchRemoveRoleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchRemoveRoleCommandOutput>;
|
|
58
76
|
/**
|
|
59
77
|
* deserializeAws_restJson1CreateSpaceCommand
|
|
60
78
|
*/
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: RepostspaceClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
11
|
-
defaultUserAgentProvider: (config
|
|
11
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
13
|
region: string | import("@smithy/types").Provider<any>;
|
|
14
14
|
requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
|