@aws-sdk/client-support-app 3.315.0 → 3.319.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SupportApp = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateSlackChannelConfigurationCommand_1 = require("./commands/CreateSlackChannelConfigurationCommand");
5
6
  const DeleteAccountAliasCommand_1 = require("./commands/DeleteAccountAliasCommand");
6
7
  const DeleteSlackChannelConfigurationCommand_1 = require("./commands/DeleteSlackChannelConfigurationCommand");
@@ -12,146 +13,19 @@ const PutAccountAliasCommand_1 = require("./commands/PutAccountAliasCommand");
12
13
  const RegisterSlackWorkspaceForOrganizationCommand_1 = require("./commands/RegisterSlackWorkspaceForOrganizationCommand");
13
14
  const UpdateSlackChannelConfigurationCommand_1 = require("./commands/UpdateSlackChannelConfigurationCommand");
14
15
  const SupportAppClient_1 = require("./SupportAppClient");
16
+ const commands = {
17
+ CreateSlackChannelConfigurationCommand: CreateSlackChannelConfigurationCommand_1.CreateSlackChannelConfigurationCommand,
18
+ DeleteAccountAliasCommand: DeleteAccountAliasCommand_1.DeleteAccountAliasCommand,
19
+ DeleteSlackChannelConfigurationCommand: DeleteSlackChannelConfigurationCommand_1.DeleteSlackChannelConfigurationCommand,
20
+ DeleteSlackWorkspaceConfigurationCommand: DeleteSlackWorkspaceConfigurationCommand_1.DeleteSlackWorkspaceConfigurationCommand,
21
+ GetAccountAliasCommand: GetAccountAliasCommand_1.GetAccountAliasCommand,
22
+ ListSlackChannelConfigurationsCommand: ListSlackChannelConfigurationsCommand_1.ListSlackChannelConfigurationsCommand,
23
+ ListSlackWorkspaceConfigurationsCommand: ListSlackWorkspaceConfigurationsCommand_1.ListSlackWorkspaceConfigurationsCommand,
24
+ PutAccountAliasCommand: PutAccountAliasCommand_1.PutAccountAliasCommand,
25
+ RegisterSlackWorkspaceForOrganizationCommand: RegisterSlackWorkspaceForOrganizationCommand_1.RegisterSlackWorkspaceForOrganizationCommand,
26
+ UpdateSlackChannelConfigurationCommand: UpdateSlackChannelConfigurationCommand_1.UpdateSlackChannelConfigurationCommand,
27
+ };
15
28
  class SupportApp extends SupportAppClient_1.SupportAppClient {
16
- createSlackChannelConfiguration(args, optionsOrCb, cb) {
17
- const command = new CreateSlackChannelConfigurationCommand_1.CreateSlackChannelConfigurationCommand(args);
18
- if (typeof optionsOrCb === "function") {
19
- this.send(command, optionsOrCb);
20
- }
21
- else if (typeof cb === "function") {
22
- if (typeof optionsOrCb !== "object")
23
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
24
- this.send(command, optionsOrCb || {}, cb);
25
- }
26
- else {
27
- return this.send(command, optionsOrCb);
28
- }
29
- }
30
- deleteAccountAlias(args, optionsOrCb, cb) {
31
- const command = new DeleteAccountAliasCommand_1.DeleteAccountAliasCommand(args);
32
- if (typeof optionsOrCb === "function") {
33
- this.send(command, optionsOrCb);
34
- }
35
- else if (typeof cb === "function") {
36
- if (typeof optionsOrCb !== "object")
37
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
- this.send(command, optionsOrCb || {}, cb);
39
- }
40
- else {
41
- return this.send(command, optionsOrCb);
42
- }
43
- }
44
- deleteSlackChannelConfiguration(args, optionsOrCb, cb) {
45
- const command = new DeleteSlackChannelConfigurationCommand_1.DeleteSlackChannelConfigurationCommand(args);
46
- if (typeof optionsOrCb === "function") {
47
- this.send(command, optionsOrCb);
48
- }
49
- else if (typeof cb === "function") {
50
- if (typeof optionsOrCb !== "object")
51
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
- this.send(command, optionsOrCb || {}, cb);
53
- }
54
- else {
55
- return this.send(command, optionsOrCb);
56
- }
57
- }
58
- deleteSlackWorkspaceConfiguration(args, optionsOrCb, cb) {
59
- const command = new DeleteSlackWorkspaceConfigurationCommand_1.DeleteSlackWorkspaceConfigurationCommand(args);
60
- if (typeof optionsOrCb === "function") {
61
- this.send(command, optionsOrCb);
62
- }
63
- else if (typeof cb === "function") {
64
- if (typeof optionsOrCb !== "object")
65
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
- this.send(command, optionsOrCb || {}, cb);
67
- }
68
- else {
69
- return this.send(command, optionsOrCb);
70
- }
71
- }
72
- getAccountAlias(args, optionsOrCb, cb) {
73
- const command = new GetAccountAliasCommand_1.GetAccountAliasCommand(args);
74
- if (typeof optionsOrCb === "function") {
75
- this.send(command, optionsOrCb);
76
- }
77
- else if (typeof cb === "function") {
78
- if (typeof optionsOrCb !== "object")
79
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
- this.send(command, optionsOrCb || {}, cb);
81
- }
82
- else {
83
- return this.send(command, optionsOrCb);
84
- }
85
- }
86
- listSlackChannelConfigurations(args, optionsOrCb, cb) {
87
- const command = new ListSlackChannelConfigurationsCommand_1.ListSlackChannelConfigurationsCommand(args);
88
- if (typeof optionsOrCb === "function") {
89
- this.send(command, optionsOrCb);
90
- }
91
- else if (typeof cb === "function") {
92
- if (typeof optionsOrCb !== "object")
93
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
- this.send(command, optionsOrCb || {}, cb);
95
- }
96
- else {
97
- return this.send(command, optionsOrCb);
98
- }
99
- }
100
- listSlackWorkspaceConfigurations(args, optionsOrCb, cb) {
101
- const command = new ListSlackWorkspaceConfigurationsCommand_1.ListSlackWorkspaceConfigurationsCommand(args);
102
- if (typeof optionsOrCb === "function") {
103
- this.send(command, optionsOrCb);
104
- }
105
- else if (typeof cb === "function") {
106
- if (typeof optionsOrCb !== "object")
107
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
- this.send(command, optionsOrCb || {}, cb);
109
- }
110
- else {
111
- return this.send(command, optionsOrCb);
112
- }
113
- }
114
- putAccountAlias(args, optionsOrCb, cb) {
115
- const command = new PutAccountAliasCommand_1.PutAccountAliasCommand(args);
116
- if (typeof optionsOrCb === "function") {
117
- this.send(command, optionsOrCb);
118
- }
119
- else if (typeof cb === "function") {
120
- if (typeof optionsOrCb !== "object")
121
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
- this.send(command, optionsOrCb || {}, cb);
123
- }
124
- else {
125
- return this.send(command, optionsOrCb);
126
- }
127
- }
128
- registerSlackWorkspaceForOrganization(args, optionsOrCb, cb) {
129
- const command = new RegisterSlackWorkspaceForOrganizationCommand_1.RegisterSlackWorkspaceForOrganizationCommand(args);
130
- if (typeof optionsOrCb === "function") {
131
- this.send(command, optionsOrCb);
132
- }
133
- else if (typeof cb === "function") {
134
- if (typeof optionsOrCb !== "object")
135
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
- this.send(command, optionsOrCb || {}, cb);
137
- }
138
- else {
139
- return this.send(command, optionsOrCb);
140
- }
141
- }
142
- updateSlackChannelConfiguration(args, optionsOrCb, cb) {
143
- const command = new UpdateSlackChannelConfigurationCommand_1.UpdateSlackChannelConfigurationCommand(args);
144
- if (typeof optionsOrCb === "function") {
145
- this.send(command, optionsOrCb);
146
- }
147
- else if (typeof cb === "function") {
148
- if (typeof optionsOrCb !== "object")
149
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- }
152
- else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
29
  }
157
30
  exports.SupportApp = SupportApp;
31
+ (0, smithy_client_1.createAggregatedClient)(commands, SupportApp);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateSlackChannelConfigurationCommand, } from "./commands/CreateSlackChannelConfigurationCommand";
2
3
  import { DeleteAccountAliasCommand, } from "./commands/DeleteAccountAliasCommand";
3
4
  import { DeleteSlackChannelConfigurationCommand, } from "./commands/DeleteSlackChannelConfigurationCommand";
@@ -9,145 +10,18 @@ import { PutAccountAliasCommand, } from "./commands/PutAccountAliasCommand";
9
10
  import { RegisterSlackWorkspaceForOrganizationCommand, } from "./commands/RegisterSlackWorkspaceForOrganizationCommand";
10
11
  import { UpdateSlackChannelConfigurationCommand, } from "./commands/UpdateSlackChannelConfigurationCommand";
11
12
  import { SupportAppClient } from "./SupportAppClient";
13
+ const commands = {
14
+ CreateSlackChannelConfigurationCommand,
15
+ DeleteAccountAliasCommand,
16
+ DeleteSlackChannelConfigurationCommand,
17
+ DeleteSlackWorkspaceConfigurationCommand,
18
+ GetAccountAliasCommand,
19
+ ListSlackChannelConfigurationsCommand,
20
+ ListSlackWorkspaceConfigurationsCommand,
21
+ PutAccountAliasCommand,
22
+ RegisterSlackWorkspaceForOrganizationCommand,
23
+ UpdateSlackChannelConfigurationCommand,
24
+ };
12
25
  export class SupportApp extends SupportAppClient {
13
- createSlackChannelConfiguration(args, optionsOrCb, cb) {
14
- const command = new CreateSlackChannelConfigurationCommand(args);
15
- if (typeof optionsOrCb === "function") {
16
- this.send(command, optionsOrCb);
17
- }
18
- else if (typeof cb === "function") {
19
- if (typeof optionsOrCb !== "object")
20
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
21
- this.send(command, optionsOrCb || {}, cb);
22
- }
23
- else {
24
- return this.send(command, optionsOrCb);
25
- }
26
- }
27
- deleteAccountAlias(args, optionsOrCb, cb) {
28
- const command = new DeleteAccountAliasCommand(args);
29
- if (typeof optionsOrCb === "function") {
30
- this.send(command, optionsOrCb);
31
- }
32
- else if (typeof cb === "function") {
33
- if (typeof optionsOrCb !== "object")
34
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
- this.send(command, optionsOrCb || {}, cb);
36
- }
37
- else {
38
- return this.send(command, optionsOrCb);
39
- }
40
- }
41
- deleteSlackChannelConfiguration(args, optionsOrCb, cb) {
42
- const command = new DeleteSlackChannelConfigurationCommand(args);
43
- if (typeof optionsOrCb === "function") {
44
- this.send(command, optionsOrCb);
45
- }
46
- else if (typeof cb === "function") {
47
- if (typeof optionsOrCb !== "object")
48
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
- this.send(command, optionsOrCb || {}, cb);
50
- }
51
- else {
52
- return this.send(command, optionsOrCb);
53
- }
54
- }
55
- deleteSlackWorkspaceConfiguration(args, optionsOrCb, cb) {
56
- const command = new DeleteSlackWorkspaceConfigurationCommand(args);
57
- if (typeof optionsOrCb === "function") {
58
- this.send(command, optionsOrCb);
59
- }
60
- else if (typeof cb === "function") {
61
- if (typeof optionsOrCb !== "object")
62
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
- this.send(command, optionsOrCb || {}, cb);
64
- }
65
- else {
66
- return this.send(command, optionsOrCb);
67
- }
68
- }
69
- getAccountAlias(args, optionsOrCb, cb) {
70
- const command = new GetAccountAliasCommand(args);
71
- if (typeof optionsOrCb === "function") {
72
- this.send(command, optionsOrCb);
73
- }
74
- else if (typeof cb === "function") {
75
- if (typeof optionsOrCb !== "object")
76
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
- this.send(command, optionsOrCb || {}, cb);
78
- }
79
- else {
80
- return this.send(command, optionsOrCb);
81
- }
82
- }
83
- listSlackChannelConfigurations(args, optionsOrCb, cb) {
84
- const command = new ListSlackChannelConfigurationsCommand(args);
85
- if (typeof optionsOrCb === "function") {
86
- this.send(command, optionsOrCb);
87
- }
88
- else if (typeof cb === "function") {
89
- if (typeof optionsOrCb !== "object")
90
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
- this.send(command, optionsOrCb || {}, cb);
92
- }
93
- else {
94
- return this.send(command, optionsOrCb);
95
- }
96
- }
97
- listSlackWorkspaceConfigurations(args, optionsOrCb, cb) {
98
- const command = new ListSlackWorkspaceConfigurationsCommand(args);
99
- if (typeof optionsOrCb === "function") {
100
- this.send(command, optionsOrCb);
101
- }
102
- else if (typeof cb === "function") {
103
- if (typeof optionsOrCb !== "object")
104
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
- this.send(command, optionsOrCb || {}, cb);
106
- }
107
- else {
108
- return this.send(command, optionsOrCb);
109
- }
110
- }
111
- putAccountAlias(args, optionsOrCb, cb) {
112
- const command = new PutAccountAliasCommand(args);
113
- if (typeof optionsOrCb === "function") {
114
- this.send(command, optionsOrCb);
115
- }
116
- else if (typeof cb === "function") {
117
- if (typeof optionsOrCb !== "object")
118
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
- this.send(command, optionsOrCb || {}, cb);
120
- }
121
- else {
122
- return this.send(command, optionsOrCb);
123
- }
124
- }
125
- registerSlackWorkspaceForOrganization(args, optionsOrCb, cb) {
126
- const command = new RegisterSlackWorkspaceForOrganizationCommand(args);
127
- if (typeof optionsOrCb === "function") {
128
- this.send(command, optionsOrCb);
129
- }
130
- else if (typeof cb === "function") {
131
- if (typeof optionsOrCb !== "object")
132
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
- this.send(command, optionsOrCb || {}, cb);
134
- }
135
- else {
136
- return this.send(command, optionsOrCb);
137
- }
138
- }
139
- updateSlackChannelConfiguration(args, optionsOrCb, cb) {
140
- const command = new UpdateSlackChannelConfigurationCommand(args);
141
- if (typeof optionsOrCb === "function") {
142
- this.send(command, optionsOrCb);
143
- }
144
- else if (typeof cb === "function") {
145
- if (typeof optionsOrCb !== "object")
146
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
- this.send(command, optionsOrCb || {}, cb);
148
- }
149
- else {
150
- return this.send(command, optionsOrCb);
151
- }
152
- }
153
26
  }
27
+ createAggregatedClient(commands, SupportApp);
@@ -10,6 +10,68 @@ import { PutAccountAliasCommandInput, PutAccountAliasCommandOutput } from "./com
10
10
  import { RegisterSlackWorkspaceForOrganizationCommandInput, RegisterSlackWorkspaceForOrganizationCommandOutput } from "./commands/RegisterSlackWorkspaceForOrganizationCommand";
11
11
  import { UpdateSlackChannelConfigurationCommandInput, UpdateSlackChannelConfigurationCommandOutput } from "./commands/UpdateSlackChannelConfigurationCommand";
12
12
  import { SupportAppClient } from "./SupportAppClient";
13
+ export interface SupportApp {
14
+ /**
15
+ * @see {@link CreateSlackChannelConfigurationCommand}
16
+ */
17
+ createSlackChannelConfiguration(args: CreateSlackChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateSlackChannelConfigurationCommandOutput>;
18
+ createSlackChannelConfiguration(args: CreateSlackChannelConfigurationCommandInput, cb: (err: any, data?: CreateSlackChannelConfigurationCommandOutput) => void): void;
19
+ createSlackChannelConfiguration(args: CreateSlackChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSlackChannelConfigurationCommandOutput) => void): void;
20
+ /**
21
+ * @see {@link DeleteAccountAliasCommand}
22
+ */
23
+ deleteAccountAlias(args: DeleteAccountAliasCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAccountAliasCommandOutput>;
24
+ deleteAccountAlias(args: DeleteAccountAliasCommandInput, cb: (err: any, data?: DeleteAccountAliasCommandOutput) => void): void;
25
+ deleteAccountAlias(args: DeleteAccountAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAccountAliasCommandOutput) => void): void;
26
+ /**
27
+ * @see {@link DeleteSlackChannelConfigurationCommand}
28
+ */
29
+ deleteSlackChannelConfiguration(args: DeleteSlackChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSlackChannelConfigurationCommandOutput>;
30
+ deleteSlackChannelConfiguration(args: DeleteSlackChannelConfigurationCommandInput, cb: (err: any, data?: DeleteSlackChannelConfigurationCommandOutput) => void): void;
31
+ deleteSlackChannelConfiguration(args: DeleteSlackChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSlackChannelConfigurationCommandOutput) => void): void;
32
+ /**
33
+ * @see {@link DeleteSlackWorkspaceConfigurationCommand}
34
+ */
35
+ deleteSlackWorkspaceConfiguration(args: DeleteSlackWorkspaceConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSlackWorkspaceConfigurationCommandOutput>;
36
+ deleteSlackWorkspaceConfiguration(args: DeleteSlackWorkspaceConfigurationCommandInput, cb: (err: any, data?: DeleteSlackWorkspaceConfigurationCommandOutput) => void): void;
37
+ deleteSlackWorkspaceConfiguration(args: DeleteSlackWorkspaceConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSlackWorkspaceConfigurationCommandOutput) => void): void;
38
+ /**
39
+ * @see {@link GetAccountAliasCommand}
40
+ */
41
+ getAccountAlias(args: GetAccountAliasCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountAliasCommandOutput>;
42
+ getAccountAlias(args: GetAccountAliasCommandInput, cb: (err: any, data?: GetAccountAliasCommandOutput) => void): void;
43
+ getAccountAlias(args: GetAccountAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountAliasCommandOutput) => void): void;
44
+ /**
45
+ * @see {@link ListSlackChannelConfigurationsCommand}
46
+ */
47
+ listSlackChannelConfigurations(args: ListSlackChannelConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListSlackChannelConfigurationsCommandOutput>;
48
+ listSlackChannelConfigurations(args: ListSlackChannelConfigurationsCommandInput, cb: (err: any, data?: ListSlackChannelConfigurationsCommandOutput) => void): void;
49
+ listSlackChannelConfigurations(args: ListSlackChannelConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSlackChannelConfigurationsCommandOutput) => void): void;
50
+ /**
51
+ * @see {@link ListSlackWorkspaceConfigurationsCommand}
52
+ */
53
+ listSlackWorkspaceConfigurations(args: ListSlackWorkspaceConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListSlackWorkspaceConfigurationsCommandOutput>;
54
+ listSlackWorkspaceConfigurations(args: ListSlackWorkspaceConfigurationsCommandInput, cb: (err: any, data?: ListSlackWorkspaceConfigurationsCommandOutput) => void): void;
55
+ listSlackWorkspaceConfigurations(args: ListSlackWorkspaceConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSlackWorkspaceConfigurationsCommandOutput) => void): void;
56
+ /**
57
+ * @see {@link PutAccountAliasCommand}
58
+ */
59
+ putAccountAlias(args: PutAccountAliasCommandInput, options?: __HttpHandlerOptions): Promise<PutAccountAliasCommandOutput>;
60
+ putAccountAlias(args: PutAccountAliasCommandInput, cb: (err: any, data?: PutAccountAliasCommandOutput) => void): void;
61
+ putAccountAlias(args: PutAccountAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAccountAliasCommandOutput) => void): void;
62
+ /**
63
+ * @see {@link RegisterSlackWorkspaceForOrganizationCommand}
64
+ */
65
+ registerSlackWorkspaceForOrganization(args: RegisterSlackWorkspaceForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<RegisterSlackWorkspaceForOrganizationCommandOutput>;
66
+ registerSlackWorkspaceForOrganization(args: RegisterSlackWorkspaceForOrganizationCommandInput, cb: (err: any, data?: RegisterSlackWorkspaceForOrganizationCommandOutput) => void): void;
67
+ registerSlackWorkspaceForOrganization(args: RegisterSlackWorkspaceForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterSlackWorkspaceForOrganizationCommandOutput) => void): void;
68
+ /**
69
+ * @see {@link UpdateSlackChannelConfigurationCommand}
70
+ */
71
+ updateSlackChannelConfiguration(args: UpdateSlackChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSlackChannelConfigurationCommandOutput>;
72
+ updateSlackChannelConfiguration(args: UpdateSlackChannelConfigurationCommandInput, cb: (err: any, data?: UpdateSlackChannelConfigurationCommandOutput) => void): void;
73
+ updateSlackChannelConfiguration(args: UpdateSlackChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSlackChannelConfigurationCommandOutput) => void): void;
74
+ }
13
75
  /**
14
76
  * @public
15
77
  * <fullname>Amazon Web Services Support App in Slack</fullname>
@@ -67,130 +129,5 @@ import { SupportAppClient } from "./SupportAppClient";
67
129
  * </ul>
68
130
  * </note>
69
131
  */
70
- export declare class SupportApp extends SupportAppClient {
71
- /**
72
- * @public
73
- * <p>Creates a Slack channel configuration for your Amazon Web Services account.</p>
74
- * <note>
75
- * <ul>
76
- * <li>
77
- * <p>You can add up to 5 Slack workspaces for your account.</p>
78
- * </li>
79
- * <li>
80
- * <p>You can add up to 20 Slack channels for your account.</p>
81
- * </li>
82
- * </ul>
83
- * </note>
84
- * <p>A Slack channel can have up to 100 Amazon Web Services accounts. This means that only 100 accounts can
85
- * add the same Slack channel to the Amazon Web Services Support App. We recommend that you only add the accounts that
86
- * you need to manage support cases for your organization. This can reduce the notifications
87
- * about case updates that you receive in the Slack channel.</p>
88
- * <note>
89
- * <p>We recommend that you choose a private Slack channel so that only members in that
90
- * channel have read and write access to your support cases. Anyone in your Slack channel can
91
- * create, update, or resolve support cases for your account. Users require an invitation to
92
- * join private channels. </p>
93
- * </note>
94
- */
95
- createSlackChannelConfiguration(args: CreateSlackChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateSlackChannelConfigurationCommandOutput>;
96
- createSlackChannelConfiguration(args: CreateSlackChannelConfigurationCommandInput, cb: (err: any, data?: CreateSlackChannelConfigurationCommandOutput) => void): void;
97
- createSlackChannelConfiguration(args: CreateSlackChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSlackChannelConfigurationCommandOutput) => void): void;
98
- /**
99
- * @public
100
- * <p>Deletes an alias for an Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of the
101
- * Amazon Web Services Support Center. The alias also appears in Slack messages from the Amazon Web Services Support App.</p>
102
- */
103
- deleteAccountAlias(args: DeleteAccountAliasCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAccountAliasCommandOutput>;
104
- deleteAccountAlias(args: DeleteAccountAliasCommandInput, cb: (err: any, data?: DeleteAccountAliasCommandOutput) => void): void;
105
- deleteAccountAlias(args: DeleteAccountAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAccountAliasCommandOutput) => void): void;
106
- /**
107
- * @public
108
- * <p>Deletes a Slack channel configuration from your Amazon Web Services account. This operation doesn't
109
- * delete your Slack channel.</p>
110
- */
111
- deleteSlackChannelConfiguration(args: DeleteSlackChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSlackChannelConfigurationCommandOutput>;
112
- deleteSlackChannelConfiguration(args: DeleteSlackChannelConfigurationCommandInput, cb: (err: any, data?: DeleteSlackChannelConfigurationCommandOutput) => void): void;
113
- deleteSlackChannelConfiguration(args: DeleteSlackChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSlackChannelConfigurationCommandOutput) => void): void;
114
- /**
115
- * @public
116
- * <p>Deletes a Slack workspace configuration from your Amazon Web Services account. This operation doesn't
117
- * delete your Slack workspace.</p>
118
- */
119
- deleteSlackWorkspaceConfiguration(args: DeleteSlackWorkspaceConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSlackWorkspaceConfigurationCommandOutput>;
120
- deleteSlackWorkspaceConfiguration(args: DeleteSlackWorkspaceConfigurationCommandInput, cb: (err: any, data?: DeleteSlackWorkspaceConfigurationCommandOutput) => void): void;
121
- deleteSlackWorkspaceConfiguration(args: DeleteSlackWorkspaceConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSlackWorkspaceConfigurationCommandOutput) => void): void;
122
- /**
123
- * @public
124
- * <p>Retrieves the alias from an Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of
125
- * the Amazon Web Services Support Center. The alias also appears in Slack messages from the Amazon Web Services Support App.</p>
126
- */
127
- getAccountAlias(args: GetAccountAliasCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountAliasCommandOutput>;
128
- getAccountAlias(args: GetAccountAliasCommandInput, cb: (err: any, data?: GetAccountAliasCommandOutput) => void): void;
129
- getAccountAlias(args: GetAccountAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountAliasCommandOutput) => void): void;
130
- /**
131
- * @public
132
- * <p>Lists the Slack channel configurations for an Amazon Web Services account.</p>
133
- */
134
- listSlackChannelConfigurations(args: ListSlackChannelConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListSlackChannelConfigurationsCommandOutput>;
135
- listSlackChannelConfigurations(args: ListSlackChannelConfigurationsCommandInput, cb: (err: any, data?: ListSlackChannelConfigurationsCommandOutput) => void): void;
136
- listSlackChannelConfigurations(args: ListSlackChannelConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSlackChannelConfigurationsCommandOutput) => void): void;
137
- /**
138
- * @public
139
- * <p>Lists the Slack workspace configurations for an Amazon Web Services account.</p>
140
- */
141
- listSlackWorkspaceConfigurations(args: ListSlackWorkspaceConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListSlackWorkspaceConfigurationsCommandOutput>;
142
- listSlackWorkspaceConfigurations(args: ListSlackWorkspaceConfigurationsCommandInput, cb: (err: any, data?: ListSlackWorkspaceConfigurationsCommandOutput) => void): void;
143
- listSlackWorkspaceConfigurations(args: ListSlackWorkspaceConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSlackWorkspaceConfigurationsCommandOutput) => void): void;
144
- /**
145
- * @public
146
- * <p>Creates or updates an individual alias for each Amazon Web Services account ID. The alias appears in the
147
- * Amazon Web Services Support App page of the Amazon Web Services Support Center. The alias also appears in Slack messages from the
148
- * Amazon Web Services Support App.</p>
149
- */
150
- putAccountAlias(args: PutAccountAliasCommandInput, options?: __HttpHandlerOptions): Promise<PutAccountAliasCommandOutput>;
151
- putAccountAlias(args: PutAccountAliasCommandInput, cb: (err: any, data?: PutAccountAliasCommandOutput) => void): void;
152
- putAccountAlias(args: PutAccountAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAccountAliasCommandOutput) => void): void;
153
- /**
154
- * @public
155
- * <p>Registers a Slack workspace for your Amazon Web Services account. To call this API, your account must be
156
- * part of an organization in Organizations.</p>
157
- * <p>If you're the <i>management account</i> and you want to register Slack
158
- * workspaces for your organization, you must complete the following tasks:</p>
159
- * <ol>
160
- * <li>
161
- * <p>Sign in to the <a href="https://console.aws.amazon.com/support/app">Amazon Web Services Support Center</a> and
162
- * authorize the Slack workspaces where you want your organization to have access to. See
163
- * <a href="https://docs.aws.amazon.com/awssupport/latest/user/authorize-slack-workspace.html">Authorize a Slack workspace</a> in the <i>Amazon Web Services Support User
164
- * Guide</i>.</p>
165
- * </li>
166
- * <li>
167
- * <p>Call the <code>RegisterSlackWorkspaceForOrganization</code> API to authorize each
168
- * Slack workspace for the organization.</p>
169
- * </li>
170
- * </ol>
171
- * <p>After the management account authorizes the Slack workspace, member accounts can call this
172
- * API to authorize the same Slack workspace for their individual accounts. Member accounts don't
173
- * need to authorize the Slack workspace manually through the <a href="https://console.aws.amazon.com/support/app">Amazon Web Services Support Center</a>.</p>
174
- * <p>To use the Amazon Web Services Support App, each account must then complete the following tasks:</p>
175
- * <ul>
176
- * <li>
177
- * <p>Create an Identity and Access Management (IAM) role with the required permission. For more information,
178
- * see <a href="https://docs.aws.amazon.com/awssupport/latest/user/support-app-permissions.html">Managing access to the Amazon Web Services Support App</a>.</p>
179
- * </li>
180
- * <li>
181
- * <p>Configure a Slack channel to use the Amazon Web Services Support App for support cases for that account. For
182
- * more information, see <a href="https://docs.aws.amazon.com/awssupport/latest/user/add-your-slack-channel.html">Configuring a Slack channel</a>.</p>
183
- * </li>
184
- * </ul>
185
- */
186
- registerSlackWorkspaceForOrganization(args: RegisterSlackWorkspaceForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<RegisterSlackWorkspaceForOrganizationCommandOutput>;
187
- registerSlackWorkspaceForOrganization(args: RegisterSlackWorkspaceForOrganizationCommandInput, cb: (err: any, data?: RegisterSlackWorkspaceForOrganizationCommandOutput) => void): void;
188
- registerSlackWorkspaceForOrganization(args: RegisterSlackWorkspaceForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterSlackWorkspaceForOrganizationCommandOutput) => void): void;
189
- /**
190
- * @public
191
- * <p>Updates the configuration for a Slack channel, such as case update notifications.</p>
192
- */
193
- updateSlackChannelConfiguration(args: UpdateSlackChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSlackChannelConfigurationCommandOutput>;
194
- updateSlackChannelConfiguration(args: UpdateSlackChannelConfigurationCommandInput, cb: (err: any, data?: UpdateSlackChannelConfigurationCommandOutput) => void): void;
195
- updateSlackChannelConfiguration(args: UpdateSlackChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSlackChannelConfigurationCommandOutput) => void): void;
132
+ export declare class SupportApp extends SupportAppClient implements SupportApp {
196
133
  }
@@ -40,7 +40,7 @@ import {
40
40
  UpdateSlackChannelConfigurationCommandOutput,
41
41
  } from "./commands/UpdateSlackChannelConfigurationCommand";
42
42
  import { SupportAppClient } from "./SupportAppClient";
43
- export declare class SupportApp extends SupportAppClient {
43
+ export interface SupportApp {
44
44
  createSlackChannelConfiguration(
45
45
  args: CreateSlackChannelConfigurationCommandInput,
46
46
  options?: __HttpHandlerOptions
@@ -184,3 +184,6 @@ export declare class SupportApp extends SupportAppClient {
184
184
  cb: (err: any, data?: UpdateSlackChannelConfigurationCommandOutput) => void
185
185
  ): void;
186
186
  }
187
+ export declare class SupportApp
188
+ extends SupportAppClient
189
+ implements SupportApp {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-support-app",
3
3
  "description": "AWS SDK for JavaScript Support App Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",