@aws-sdk/client-qbusiness 3.738.0 → 3.741.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 +32 -0
- package/dist-cjs/index.js +220 -8
- package/dist-es/QBusiness.js +8 -0
- package/dist-es/commands/CancelSubscriptionCommand.js +22 -0
- package/dist-es/commands/CreateSubscriptionCommand.js +22 -0
- package/dist-es/commands/ListSubscriptionsCommand.js +22 -0
- package/dist-es/commands/UpdateSubscriptionCommand.js +22 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +10 -7
- package/dist-es/models/models_1.js +7 -0
- package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +118 -0
- package/dist-types/QBusiness.d.ts +28 -0
- package/dist-types/QBusinessClient.d.ts +6 -2
- package/dist-types/commands/AssociatePermissionCommand.d.ts +3 -3
- package/dist-types/commands/CancelSubscriptionCommand.d.ts +100 -0
- package/dist-types/commands/CreateDataAccessorCommand.d.ts +4 -4
- package/dist-types/commands/CreateSubscriptionCommand.d.ts +113 -0
- package/dist-types/commands/DeleteDataAccessorCommand.d.ts +1 -1
- package/dist-types/commands/DisassociatePermissionCommand.d.ts +1 -1
- package/dist-types/commands/GetDataAccessorCommand.d.ts +1 -1
- package/dist-types/commands/GetPolicyCommand.d.ts +1 -1
- package/dist-types/commands/ListDataAccessorsCommand.d.ts +1 -1
- package/dist-types/commands/ListSubscriptionsCommand.d.ts +113 -0
- package/dist-types/commands/PutGroupCommand.d.ts +5 -1
- package/dist-types/commands/SearchRelevantContentCommand.d.ts +3 -4
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +1 -2
- package/dist-types/commands/UpdateSubscriptionCommand.d.ts +106 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +234 -203
- package/dist-types/models/models_1.d.ts +241 -7
- package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/QBusiness.d.ts +68 -0
- package/dist-types/ts3.4/QBusinessClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CancelSubscriptionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchRelevantContentCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -48
- package/dist-types/ts3.4/models/models_1.d.ts +63 -0
- package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +2 -2
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateSubscriptionRequest, CreateSubscriptionResponse } from "../models/models_0";
|
|
4
|
+
import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateSubscriptionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateSubscriptionCommandInput extends CreateSubscriptionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateSubscriptionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateSubscriptionCommandOutput extends CreateSubscriptionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateSubscriptionCommand_base: {
|
|
25
|
+
new (input: CreateSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSubscriptionCommandInput, CreateSubscriptionCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSubscriptionCommandInput, CreateSubscriptionCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Subscribes an IAM Identity Center user or a group to a pricing tier for an
|
|
31
|
+
* Amazon Q Business application.</p>
|
|
32
|
+
* <p>Amazon Q Business offers two subscription tiers: <code>Q_LITE</code> and
|
|
33
|
+
* <code>Q_BUSINESS</code>. Subscription tier determines feature access for the user.
|
|
34
|
+
* For more information on subscriptions and pricing tiers, see <a href="https://aws.amazon.com/q/business/pricing/">Amazon Q Business
|
|
35
|
+
* pricing</a>.</p>
|
|
36
|
+
* @example
|
|
37
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
38
|
+
* ```javascript
|
|
39
|
+
* import { QBusinessClient, CreateSubscriptionCommand } from "@aws-sdk/client-qbusiness"; // ES Modules import
|
|
40
|
+
* // const { QBusinessClient, CreateSubscriptionCommand } = require("@aws-sdk/client-qbusiness"); // CommonJS import
|
|
41
|
+
* const client = new QBusinessClient(config);
|
|
42
|
+
* const input = { // CreateSubscriptionRequest
|
|
43
|
+
* applicationId: "STRING_VALUE", // required
|
|
44
|
+
* principal: { // SubscriptionPrincipal Union: only one key present
|
|
45
|
+
* user: "STRING_VALUE",
|
|
46
|
+
* group: "STRING_VALUE",
|
|
47
|
+
* },
|
|
48
|
+
* type: "Q_LITE" || "Q_BUSINESS", // required
|
|
49
|
+
* clientToken: "STRING_VALUE",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new CreateSubscriptionCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // CreateSubscriptionResponse
|
|
54
|
+
* // subscriptionId: "STRING_VALUE",
|
|
55
|
+
* // subscriptionArn: "STRING_VALUE",
|
|
56
|
+
* // currentSubscription: { // SubscriptionDetails
|
|
57
|
+
* // type: "Q_LITE" || "Q_BUSINESS",
|
|
58
|
+
* // },
|
|
59
|
+
* // nextSubscription: {
|
|
60
|
+
* // type: "Q_LITE" || "Q_BUSINESS",
|
|
61
|
+
* // },
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param CreateSubscriptionCommandInput - {@link CreateSubscriptionCommandInput}
|
|
67
|
+
* @returns {@link CreateSubscriptionCommandOutput}
|
|
68
|
+
* @see {@link CreateSubscriptionCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link CreateSubscriptionCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link QBusinessClientResolvedConfig | config} for QBusinessClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p> You don't have access to perform this action. Make sure you have the required
|
|
74
|
+
* permission policies and user accounts and try again.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ConflictException} (client fault)
|
|
77
|
+
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
78
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InternalServerException} (server fault)
|
|
81
|
+
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
82
|
+
* some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>The application or plugin resource you want to use doesn’t exist. Make sure you have
|
|
86
|
+
* provided the correct resource and try again.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
89
|
+
* <p>The request was denied due to throttling. Reduce the number of requests and try
|
|
90
|
+
* again.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ValidationException} (client fault)
|
|
93
|
+
* <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the
|
|
94
|
+
* correct input and try again.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link QBusinessServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from QBusiness service.</p>
|
|
98
|
+
*
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
export declare class CreateSubscriptionCommand extends CreateSubscriptionCommand_base {
|
|
102
|
+
/** @internal type navigation helper, not in runtime. */
|
|
103
|
+
protected static __types: {
|
|
104
|
+
api: {
|
|
105
|
+
input: CreateSubscriptionRequest;
|
|
106
|
+
output: CreateSubscriptionResponse;
|
|
107
|
+
};
|
|
108
|
+
sdk: {
|
|
109
|
+
input: CreateSubscriptionCommandInput;
|
|
110
|
+
output: CreateSubscriptionCommandOutput;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -28,7 +28,7 @@ declare const DeleteDataAccessorCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Deletes a specified data accessor. This operation permanently removes the data accessor
|
|
31
|
-
* and its associated
|
|
31
|
+
* and its associated IAM Identity Center application. Any access granted to the ISV through this data accessor will be revoked.</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const DisassociatePermissionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Removes a permission policy from a Q Business application, revoking the cross-account access that was
|
|
30
|
+
* <p>Removes a permission policy from a Amazon Q Business application, revoking the cross-account access that was
|
|
31
31
|
* previously granted to an ISV. This operation deletes the specified policy statement from the application's permission policy.</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -30,7 +30,7 @@ declare const GetDataAccessorCommand_base: {
|
|
|
30
30
|
/**
|
|
31
31
|
* <p>Retrieves information about a specified data accessor. This operation returns details about the
|
|
32
32
|
* data accessor, including its display name, unique identifier, Amazon Resource Name (ARN), the associated
|
|
33
|
-
* Q Business application and
|
|
33
|
+
* Amazon Q Business application and IAM Identity Center application, the IAM role for the ISV, the
|
|
34
34
|
* action configurations, and the timestamps for when the data accessor was created and last updated.</p>
|
|
35
35
|
* @example
|
|
36
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -27,7 +27,7 @@ declare const GetPolicyCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves the current permission policy for a Q Business application. The policy is
|
|
30
|
+
* <p>Retrieves the current permission policy for a Amazon Q Business application. The policy is
|
|
31
31
|
* returned as a JSON-formatted string and defines the IAM actions that are allowed or denied for the application's resources.</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -27,7 +27,7 @@ declare const ListDataAccessorsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Lists the data accessors for a Q Business application. This operation returns a paginated
|
|
30
|
+
* <p>Lists the data accessors for a Amazon Q Business application. This operation returns a paginated
|
|
31
31
|
* list of data accessor summaries, including the friendly name, unique identifier, ARN,
|
|
32
32
|
* associated IAM role, and creation/update timestamps for each data accessor.</p>
|
|
33
33
|
* @example
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListSubscriptionsRequest, ListSubscriptionsResponse } from "../models/models_0";
|
|
4
|
+
import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListSubscriptionsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListSubscriptionsCommandInput extends ListSubscriptionsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListSubscriptionsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListSubscriptionsCommandOutput extends ListSubscriptionsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListSubscriptionsCommand_base: {
|
|
25
|
+
new (input: ListSubscriptionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListSubscriptionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Lists all subscriptions created in an Amazon Q Business application. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { QBusinessClient, ListSubscriptionsCommand } from "@aws-sdk/client-qbusiness"; // ES Modules import
|
|
35
|
+
* // const { QBusinessClient, ListSubscriptionsCommand } = require("@aws-sdk/client-qbusiness"); // CommonJS import
|
|
36
|
+
* const client = new QBusinessClient(config);
|
|
37
|
+
* const input = { // ListSubscriptionsRequest
|
|
38
|
+
* applicationId: "STRING_VALUE", // required
|
|
39
|
+
* nextToken: "STRING_VALUE",
|
|
40
|
+
* maxResults: Number("int"),
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListSubscriptionsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListSubscriptionsResponse
|
|
45
|
+
* // nextToken: "STRING_VALUE",
|
|
46
|
+
* // subscriptions: [ // Subscriptions
|
|
47
|
+
* // { // Subscription
|
|
48
|
+
* // subscriptionId: "STRING_VALUE",
|
|
49
|
+
* // subscriptionArn: "STRING_VALUE",
|
|
50
|
+
* // principal: { // SubscriptionPrincipal Union: only one key present
|
|
51
|
+
* // user: "STRING_VALUE",
|
|
52
|
+
* // group: "STRING_VALUE",
|
|
53
|
+
* // },
|
|
54
|
+
* // currentSubscription: { // SubscriptionDetails
|
|
55
|
+
* // type: "Q_LITE" || "Q_BUSINESS",
|
|
56
|
+
* // },
|
|
57
|
+
* // nextSubscription: {
|
|
58
|
+
* // type: "Q_LITE" || "Q_BUSINESS",
|
|
59
|
+
* // },
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListSubscriptionsCommandInput - {@link ListSubscriptionsCommandInput}
|
|
67
|
+
* @returns {@link ListSubscriptionsCommandOutput}
|
|
68
|
+
* @see {@link ListSubscriptionsCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListSubscriptionsCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link QBusinessClientResolvedConfig | config} for QBusinessClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p> You don't have access to perform this action. Make sure you have the required
|
|
74
|
+
* permission policies and user accounts and try again.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ConflictException} (client fault)
|
|
77
|
+
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
78
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InternalServerException} (server fault)
|
|
81
|
+
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
82
|
+
* some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>The application or plugin resource you want to use doesn’t exist. Make sure you have
|
|
86
|
+
* provided the correct resource and try again.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
89
|
+
* <p>The request was denied due to throttling. Reduce the number of requests and try
|
|
90
|
+
* again.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ValidationException} (client fault)
|
|
93
|
+
* <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the
|
|
94
|
+
* correct input and try again.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link QBusinessServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from QBusiness service.</p>
|
|
98
|
+
*
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
export declare class ListSubscriptionsCommand extends ListSubscriptionsCommand_base {
|
|
102
|
+
/** @internal type navigation helper, not in runtime. */
|
|
103
|
+
protected static __types: {
|
|
104
|
+
api: {
|
|
105
|
+
input: ListSubscriptionsRequest;
|
|
106
|
+
output: ListSubscriptionsResponse;
|
|
107
|
+
};
|
|
108
|
+
sdk: {
|
|
109
|
+
input: ListSubscriptionsCommandInput;
|
|
110
|
+
output: ListSubscriptionsCommandOutput;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { PutGroupRequest, PutGroupResponse } from "../models/
|
|
3
|
+
import { PutGroupRequest, PutGroupResponse } from "../models/models_1";
|
|
4
4
|
import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -34,6 +34,10 @@ declare const PutGroupCommand_base: {
|
|
|
34
34
|
* include their own list of users or people who work in these teams. Only users who work
|
|
35
35
|
* in research and engineering, and therefore belong in the intellectual property group,
|
|
36
36
|
* can see top-secret company documents in their Amazon Q Business chat results.</p>
|
|
37
|
+
* <p>There are two options for creating groups, either passing group members inline or using an S3 file via the
|
|
38
|
+
* S3PathForGroupMembers field. For inline groups, there is a limit of 1000 members per group and for provided S3 files
|
|
39
|
+
* there is a limit of 100 thousand members. When creating a group using an S3 file, you provide both
|
|
40
|
+
* an S3 file and a <code>RoleArn</code> for Amazon Q Buisness to access the file.</p>
|
|
37
41
|
* @example
|
|
38
42
|
* Use a bare-bones client and the command you need to make an API call.
|
|
39
43
|
* ```javascript
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { SearchRelevantContentResponse } from "../models/
|
|
4
|
-
import { SearchRelevantContentRequest } from "../models/models_1";
|
|
3
|
+
import { SearchRelevantContentRequest, SearchRelevantContentResponse } from "../models/models_1";
|
|
5
4
|
import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
@@ -28,8 +27,8 @@ declare const SearchRelevantContentCommand_base: {
|
|
|
28
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
29
28
|
};
|
|
30
29
|
/**
|
|
31
|
-
* <p>Searches for relevant content in a Q Business application based on a query. This operation takes a
|
|
32
|
-
* search query text, the Q Business application identifier, and optional filters
|
|
30
|
+
* <p>Searches for relevant content in a Amazon Q Business application based on a query. This operation takes a
|
|
31
|
+
* search query text, the Amazon Q Business application identifier, and optional filters
|
|
33
32
|
* (such as content source and maximum results) as input. It returns a list of
|
|
34
33
|
* relevant content items, where each item includes the content text, the unique document identifier,
|
|
35
34
|
* the document title, the document URI, any relevant document attributes, and score attributes
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { StartDataSourceSyncJobRequest } from "../models/
|
|
4
|
-
import { StartDataSourceSyncJobResponse } from "../models/models_1";
|
|
3
|
+
import { StartDataSourceSyncJobRequest, StartDataSourceSyncJobResponse } from "../models/models_1";
|
|
5
4
|
import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { UpdateSubscriptionRequest, UpdateSubscriptionResponse } from "../models/models_1";
|
|
4
|
+
import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateSubscriptionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateSubscriptionCommandInput extends UpdateSubscriptionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateSubscriptionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateSubscriptionCommandOutput extends UpdateSubscriptionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateSubscriptionCommand_base: {
|
|
25
|
+
new (input: UpdateSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateSubscriptionCommandInput, UpdateSubscriptionCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateSubscriptionCommandInput, UpdateSubscriptionCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates the pricing tier for an Amazon Q Business subscription. Upgrades are instant.
|
|
31
|
+
* Downgrades apply at the start of the next month. Subscription tier determines feature
|
|
32
|
+
* access for the user. For more information on subscriptions and pricing tiers, see <a href="https://aws.amazon.com/q/business/pricing/">Amazon Q Business
|
|
33
|
+
* pricing</a>.</p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { QBusinessClient, UpdateSubscriptionCommand } from "@aws-sdk/client-qbusiness"; // ES Modules import
|
|
38
|
+
* // const { QBusinessClient, UpdateSubscriptionCommand } = require("@aws-sdk/client-qbusiness"); // CommonJS import
|
|
39
|
+
* const client = new QBusinessClient(config);
|
|
40
|
+
* const input = { // UpdateSubscriptionRequest
|
|
41
|
+
* applicationId: "STRING_VALUE", // required
|
|
42
|
+
* subscriptionId: "STRING_VALUE", // required
|
|
43
|
+
* type: "Q_LITE" || "Q_BUSINESS", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new UpdateSubscriptionCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // UpdateSubscriptionResponse
|
|
48
|
+
* // subscriptionArn: "STRING_VALUE",
|
|
49
|
+
* // currentSubscription: { // SubscriptionDetails
|
|
50
|
+
* // type: "Q_LITE" || "Q_BUSINESS",
|
|
51
|
+
* // },
|
|
52
|
+
* // nextSubscription: {
|
|
53
|
+
* // type: "Q_LITE" || "Q_BUSINESS",
|
|
54
|
+
* // },
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param UpdateSubscriptionCommandInput - {@link UpdateSubscriptionCommandInput}
|
|
60
|
+
* @returns {@link UpdateSubscriptionCommandOutput}
|
|
61
|
+
* @see {@link UpdateSubscriptionCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link UpdateSubscriptionCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link QBusinessClientResolvedConfig | config} for QBusinessClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
66
|
+
* <p> You don't have access to perform this action. Make sure you have the required
|
|
67
|
+
* permission policies and user accounts and try again.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ConflictException} (client fault)
|
|
70
|
+
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
71
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link InternalServerException} (server fault)
|
|
74
|
+
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
75
|
+
* some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The application or plugin resource you want to use doesn’t exist. Make sure you have
|
|
79
|
+
* provided the correct resource and try again.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
82
|
+
* <p>The request was denied due to throttling. Reduce the number of requests and try
|
|
83
|
+
* again.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ValidationException} (client fault)
|
|
86
|
+
* <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the
|
|
87
|
+
* correct input and try again.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link QBusinessServiceException}
|
|
90
|
+
* <p>Base exception class for all service exceptions from QBusiness service.</p>
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export declare class UpdateSubscriptionCommand extends UpdateSubscriptionCommand_base {
|
|
95
|
+
/** @internal type navigation helper, not in runtime. */
|
|
96
|
+
protected static __types: {
|
|
97
|
+
api: {
|
|
98
|
+
input: UpdateSubscriptionRequest;
|
|
99
|
+
output: UpdateSubscriptionResponse;
|
|
100
|
+
};
|
|
101
|
+
sdk: {
|
|
102
|
+
input: UpdateSubscriptionCommandInput;
|
|
103
|
+
output: UpdateSubscriptionCommandOutput;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AssociatePermissionCommand";
|
|
2
2
|
export * from "./BatchDeleteDocumentCommand";
|
|
3
3
|
export * from "./BatchPutDocumentCommand";
|
|
4
|
+
export * from "./CancelSubscriptionCommand";
|
|
4
5
|
export * from "./ChatCommand";
|
|
5
6
|
export * from "./ChatSyncCommand";
|
|
6
7
|
export * from "./CreateApplicationCommand";
|
|
@@ -9,6 +10,7 @@ export * from "./CreateDataSourceCommand";
|
|
|
9
10
|
export * from "./CreateIndexCommand";
|
|
10
11
|
export * from "./CreatePluginCommand";
|
|
11
12
|
export * from "./CreateRetrieverCommand";
|
|
13
|
+
export * from "./CreateSubscriptionCommand";
|
|
12
14
|
export * from "./CreateUserCommand";
|
|
13
15
|
export * from "./CreateWebExperienceCommand";
|
|
14
16
|
export * from "./DeleteApplicationCommand";
|
|
@@ -50,6 +52,7 @@ export * from "./ListPluginTypeActionsCommand";
|
|
|
50
52
|
export * from "./ListPluginTypeMetadataCommand";
|
|
51
53
|
export * from "./ListPluginsCommand";
|
|
52
54
|
export * from "./ListRetrieversCommand";
|
|
55
|
+
export * from "./ListSubscriptionsCommand";
|
|
53
56
|
export * from "./ListTagsForResourceCommand";
|
|
54
57
|
export * from "./ListWebExperiencesCommand";
|
|
55
58
|
export * from "./PutFeedbackCommand";
|
|
@@ -66,5 +69,6 @@ export * from "./UpdateDataSourceCommand";
|
|
|
66
69
|
export * from "./UpdateIndexCommand";
|
|
67
70
|
export * from "./UpdatePluginCommand";
|
|
68
71
|
export * from "./UpdateRetrieverCommand";
|
|
72
|
+
export * from "./UpdateSubscriptionCommand";
|
|
69
73
|
export * from "./UpdateUserCommand";
|
|
70
74
|
export * from "./UpdateWebExperienceCommand";
|