@aws-sdk/client-bedrock 3.1173.0 → 3.1175.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 +175 -0
- package/dist-cjs/index.js +790 -44
- package/dist-es/Bedrock.js +54 -0
- package/dist-es/commands/ArchiveProjectCommand.js +4 -0
- package/dist-es/commands/CreateProjectCommand.js +4 -0
- package/dist-es/commands/DeleteAccountDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/DeleteOrganizationDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/DeleteProjectDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/GetAccountDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/GetOrganizationDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/GetProjectCommand.js +4 -0
- package/dist-es/commands/GetProjectDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/GetTrustedAccessProgramAccountEnrollmentCommand.js +4 -0
- package/dist-es/commands/GetTrustedAccessProgramCommand.js +4 -0
- package/dist-es/commands/GetTrustedAccessProgramOrganizationEnrollmentCommand.js +4 -0
- package/dist-es/commands/GetTrustedAccessProgramProjectEnrollmentCommand.js +4 -0
- package/dist-es/commands/ListProjectsCommand.js +4 -0
- package/dist-es/commands/ListTrustedAccessProgramsCommand.js +4 -0
- package/dist-es/commands/PutAccountDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/PutOrganizationDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/PutProjectDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/PutTrustedAccessProgramAccountEnrollmentCommand.js +4 -0
- package/dist-es/commands/PutTrustedAccessProgramOrganizationEnrollmentCommand.js +4 -0
- package/dist-es/commands/PutTrustedAccessProgramProjectEnrollmentCommand.js +4 -0
- package/dist-es/commands/StartTrustedAccessProgramAccountApplicationCommand.js +4 -0
- package/dist-es/commands/StartTrustedAccessProgramOrganizationApplicationCommand.js +4 -0
- package/dist-es/commands/StartTrustedAccessProgramProjectApplicationCommand.js +4 -0
- package/dist-es/commands/UpdateProjectCommand.js +4 -0
- package/dist-es/commands/index.js +25 -0
- package/dist-es/models/enums.js +40 -0
- package/dist-es/pagination/ListProjectsPaginator.js +4 -0
- package/dist-es/pagination/ListTrustedAccessProgramsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +526 -43
- package/dist-types/Bedrock.d.ts +191 -0
- package/dist-types/BedrockClient.d.ts +27 -2
- package/dist-types/commands/ArchiveProjectCommand.d.ts +97 -0
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +1 -2
- package/dist-types/commands/CreateProjectCommand.d.ts +109 -0
- package/dist-types/commands/DeleteAccountDataRetentionStorageCommand.d.ts +81 -0
- package/dist-types/commands/DeleteOrganizationDataRetentionStorageCommand.d.ts +81 -0
- package/dist-types/commands/DeleteProjectDataRetentionStorageCommand.d.ts +85 -0
- package/dist-types/commands/GetAccountDataRetentionStorageCommand.d.ts +96 -0
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +1 -2
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -0
- package/dist-types/commands/GetInferenceProfileCommand.d.ts +1 -0
- package/dist-types/commands/GetOrganizationDataRetentionStorageCommand.d.ts +96 -0
- package/dist-types/commands/GetProjectCommand.d.ts +94 -0
- package/dist-types/commands/GetProjectDataRetentionStorageCommand.d.ts +98 -0
- package/dist-types/commands/GetTrustedAccessProgramAccountEnrollmentCommand.d.ts +87 -0
- package/dist-types/commands/GetTrustedAccessProgramCommand.d.ts +102 -0
- package/dist-types/commands/GetTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +87 -0
- package/dist-types/commands/GetTrustedAccessProgramProjectEnrollmentCommand.d.ts +88 -0
- package/dist-types/commands/ListEvaluationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +1 -0
- package/dist-types/commands/ListInferenceProfilesCommand.d.ts +1 -0
- package/dist-types/commands/ListProjectsCommand.d.ts +98 -0
- package/dist-types/commands/ListTrustedAccessProgramsCommand.d.ts +108 -0
- package/dist-types/commands/PutAccountDataRetentionStorageCommand.d.ts +102 -0
- package/dist-types/commands/PutOrganizationDataRetentionStorageCommand.d.ts +102 -0
- package/dist-types/commands/PutProjectDataRetentionStorageCommand.d.ts +107 -0
- package/dist-types/commands/PutTrustedAccessProgramAccountEnrollmentCommand.d.ts +91 -0
- package/dist-types/commands/PutTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +91 -0
- package/dist-types/commands/PutTrustedAccessProgramProjectEnrollmentCommand.d.ts +92 -0
- package/dist-types/commands/StartTrustedAccessProgramAccountApplicationCommand.d.ts +92 -0
- package/dist-types/commands/StartTrustedAccessProgramOrganizationApplicationCommand.d.ts +92 -0
- package/dist-types/commands/StartTrustedAccessProgramProjectApplicationCommand.d.ts +93 -0
- package/dist-types/commands/StopEvaluationJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProjectCommand.d.ts +101 -0
- package/dist-types/commands/index.d.ts +25 -0
- package/dist-types/models/enums.d.ts +176 -0
- package/dist-types/models/models_0.d.ts +768 -716
- package/dist-types/models/models_1.d.ts +3216 -1969
- package/dist-types/pagination/ListProjectsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTrustedAccessProgramsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +82 -0
- package/dist-types/ts3.4/Bedrock.d.ts +438 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +147 -0
- package/dist-types/ts3.4/commands/ArchiveProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateEvaluationJobCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteAccountDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteOrganizationDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteProjectDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAccountDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetEvaluationJobCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/GetOrganizationDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetProjectDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTrustedAccessProgramAccountEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTrustedAccessProgramCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTrustedAccessProgramProjectEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListEvaluationJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTrustedAccessProgramsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutAccountDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutOrganizationDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutProjectDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutTrustedAccessProgramAccountEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutTrustedAccessProgramProjectEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartTrustedAccessProgramAccountApplicationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartTrustedAccessProgramOrganizationApplicationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartTrustedAccessProgramProjectApplicationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StopEvaluationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +25 -0
- package/dist-types/ts3.4/models/enums.d.ts +55 -0
- package/dist-types/ts3.4/models/models_0.d.ts +104 -102
- package/dist-types/ts3.4/models/models_1.d.ts +310 -5
- package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTrustedAccessProgramsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +82 -0
- package/package.json +4 -4
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutTrustedAccessProgramOrganizationEnrollmentRequest, PutTrustedAccessProgramOrganizationEnrollmentResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutTrustedAccessProgramOrganizationEnrollmentCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutTrustedAccessProgramOrganizationEnrollmentCommandInput extends PutTrustedAccessProgramOrganizationEnrollmentRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutTrustedAccessProgramOrganizationEnrollmentCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutTrustedAccessProgramOrganizationEnrollmentCommandOutput extends PutTrustedAccessProgramOrganizationEnrollmentResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutTrustedAccessProgramOrganizationEnrollmentCommand_base: {
|
|
22
|
+
new (input: PutTrustedAccessProgramOrganizationEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<PutTrustedAccessProgramOrganizationEnrollmentCommandInput, PutTrustedAccessProgramOrganizationEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutTrustedAccessProgramOrganizationEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<PutTrustedAccessProgramOrganizationEnrollmentCommandInput, PutTrustedAccessProgramOrganizationEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Sets the current organization's enrollment preference for a trusted access program. The organization and payer account are derived from the authenticated context. Every write requires operation permission and management-account or Bedrock-specific delegated-administrator authority. Enabling requires approval and no revocation for the organization, including when repeating an enabled setting; otherwise returns ConflictException and preserves the stored setting. Account approval alone is insufficient. If you have the required permissions, you can set the enrollment preference to <code>disabled</code> or <code>inherit</code> even if your organization is ineligible or its eligibility is revoked.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, PutTrustedAccessProgramOrganizationEnrollmentCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, PutTrustedAccessProgramOrganizationEnrollmentCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // PutTrustedAccessProgramOrganizationEnrollmentRequest
|
|
37
|
+
* programIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* optIn: "inherit" || "enabled" || "disabled", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new PutTrustedAccessProgramOrganizationEnrollmentCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // PutTrustedAccessProgramOrganizationEnrollmentResponse
|
|
43
|
+
* // optIn: "inherit" || "enabled" || "disabled", // required
|
|
44
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param PutTrustedAccessProgramOrganizationEnrollmentCommandInput - {@link PutTrustedAccessProgramOrganizationEnrollmentCommandInput}
|
|
50
|
+
* @returns {@link PutTrustedAccessProgramOrganizationEnrollmentCommandOutput}
|
|
51
|
+
* @see {@link PutTrustedAccessProgramOrganizationEnrollmentCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link PutTrustedAccessProgramOrganizationEnrollmentCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ConflictException} (client fault)
|
|
59
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerException} (server fault)
|
|
62
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
65
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
68
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ValidationException} (client fault)
|
|
71
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link BedrockServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class PutTrustedAccessProgramOrganizationEnrollmentCommand extends PutTrustedAccessProgramOrganizationEnrollmentCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: PutTrustedAccessProgramOrganizationEnrollmentRequest;
|
|
84
|
+
output: PutTrustedAccessProgramOrganizationEnrollmentResponse;
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: PutTrustedAccessProgramOrganizationEnrollmentCommandInput;
|
|
88
|
+
output: PutTrustedAccessProgramOrganizationEnrollmentCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutTrustedAccessProgramProjectEnrollmentRequest, PutTrustedAccessProgramProjectEnrollmentResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutTrustedAccessProgramProjectEnrollmentCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutTrustedAccessProgramProjectEnrollmentCommandInput extends PutTrustedAccessProgramProjectEnrollmentRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutTrustedAccessProgramProjectEnrollmentCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutTrustedAccessProgramProjectEnrollmentCommandOutput extends PutTrustedAccessProgramProjectEnrollmentResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutTrustedAccessProgramProjectEnrollmentCommand_base: {
|
|
22
|
+
new (input: PutTrustedAccessProgramProjectEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<PutTrustedAccessProgramProjectEnrollmentCommandInput, PutTrustedAccessProgramProjectEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutTrustedAccessProgramProjectEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<PutTrustedAccessProgramProjectEnrollmentCommandInput, PutTrustedAccessProgramProjectEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Sets a named project's enrollment preference for a trusted access program. The project must be active in this Region and owned by the calling account. Enabling requires applicable project, account, or organization approval and no applicable revocation, including when repeating an enabled setting; otherwise returns ConflictException and preserves the stored setting. Authorized disable and inherit writes are allowed while ineligible or revoked. Archived projects reject all writes with ValidationException.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, PutTrustedAccessProgramProjectEnrollmentCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, PutTrustedAccessProgramProjectEnrollmentCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // PutTrustedAccessProgramProjectEnrollmentRequest
|
|
37
|
+
* programIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* projectIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* optIn: "inherit" || "enabled" || "disabled", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new PutTrustedAccessProgramProjectEnrollmentCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // PutTrustedAccessProgramProjectEnrollmentResponse
|
|
44
|
+
* // optIn: "inherit" || "enabled" || "disabled", // required
|
|
45
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param PutTrustedAccessProgramProjectEnrollmentCommandInput - {@link PutTrustedAccessProgramProjectEnrollmentCommandInput}
|
|
51
|
+
* @returns {@link PutTrustedAccessProgramProjectEnrollmentCommandOutput}
|
|
52
|
+
* @see {@link PutTrustedAccessProgramProjectEnrollmentCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link PutTrustedAccessProgramProjectEnrollmentCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
57
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ConflictException} (client fault)
|
|
60
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InternalServerException} (server fault)
|
|
63
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
69
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ValidationException} (client fault)
|
|
72
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link BedrockServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare class PutTrustedAccessProgramProjectEnrollmentCommand extends PutTrustedAccessProgramProjectEnrollmentCommand_base {
|
|
81
|
+
/** @internal type navigation helper, not in runtime. */
|
|
82
|
+
protected static __types: {
|
|
83
|
+
api: {
|
|
84
|
+
input: PutTrustedAccessProgramProjectEnrollmentRequest;
|
|
85
|
+
output: PutTrustedAccessProgramProjectEnrollmentResponse;
|
|
86
|
+
};
|
|
87
|
+
sdk: {
|
|
88
|
+
input: PutTrustedAccessProgramProjectEnrollmentCommandInput;
|
|
89
|
+
output: PutTrustedAccessProgramProjectEnrollmentCommandOutput;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { StartTrustedAccessProgramAccountApplicationRequest, StartTrustedAccessProgramAccountApplicationResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link StartTrustedAccessProgramAccountApplicationCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface StartTrustedAccessProgramAccountApplicationCommandInput extends StartTrustedAccessProgramAccountApplicationRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link StartTrustedAccessProgramAccountApplicationCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface StartTrustedAccessProgramAccountApplicationCommandOutput extends StartTrustedAccessProgramAccountApplicationResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const StartTrustedAccessProgramAccountApplicationCommand_base: {
|
|
22
|
+
new (input: StartTrustedAccessProgramAccountApplicationCommandInput): import("@smithy/core/client").CommandImpl<StartTrustedAccessProgramAccountApplicationCommandInput, StartTrustedAccessProgramAccountApplicationCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: StartTrustedAccessProgramAccountApplicationCommandInput): import("@smithy/core/client").CommandImpl<StartTrustedAccessProgramAccountApplicationCommandInput, StartTrustedAccessProgramAccountApplicationCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Prepare a provider application handoff for the calling account. This does not submit an application, grant eligibility, or change enrollment. Programs without self-service applications return ValidationException with guidance to contact the AWS account team. Repeated calls can issue fresh tokens. Successful responses use Cache-Control: no-store.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, StartTrustedAccessProgramAccountApplicationCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, StartTrustedAccessProgramAccountApplicationCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // StartTrustedAccessProgramAccountApplicationRequest
|
|
37
|
+
* programIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new StartTrustedAccessProgramAccountApplicationCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // StartTrustedAccessProgramAccountApplicationResponse
|
|
42
|
+
* // result: { // TrustedAccessProgramApplicationResult Union: only one key present
|
|
43
|
+
* // providerHandoff: { // TrustedAccessProgramProviderHandoff
|
|
44
|
+
* // enrollmentUrl: "STRING_VALUE",
|
|
45
|
+
* // applicationToken: "STRING_VALUE", // required
|
|
46
|
+
* // applicationTokenExpiresAt: new Date("TIMESTAMP"), // required
|
|
47
|
+
* // },
|
|
48
|
+
* // },
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param StartTrustedAccessProgramAccountApplicationCommandInput - {@link StartTrustedAccessProgramAccountApplicationCommandInput}
|
|
54
|
+
* @returns {@link StartTrustedAccessProgramAccountApplicationCommandOutput}
|
|
55
|
+
* @see {@link StartTrustedAccessProgramAccountApplicationCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link StartTrustedAccessProgramAccountApplicationCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InternalServerException} (server fault)
|
|
63
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
69
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ValidationException} (client fault)
|
|
72
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link BedrockServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare class StartTrustedAccessProgramAccountApplicationCommand extends StartTrustedAccessProgramAccountApplicationCommand_base {
|
|
81
|
+
/** @internal type navigation helper, not in runtime. */
|
|
82
|
+
protected static __types: {
|
|
83
|
+
api: {
|
|
84
|
+
input: StartTrustedAccessProgramAccountApplicationRequest;
|
|
85
|
+
output: StartTrustedAccessProgramAccountApplicationResponse;
|
|
86
|
+
};
|
|
87
|
+
sdk: {
|
|
88
|
+
input: StartTrustedAccessProgramAccountApplicationCommandInput;
|
|
89
|
+
output: StartTrustedAccessProgramAccountApplicationCommandOutput;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { StartTrustedAccessProgramOrganizationApplicationRequest, StartTrustedAccessProgramOrganizationApplicationResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link StartTrustedAccessProgramOrganizationApplicationCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface StartTrustedAccessProgramOrganizationApplicationCommandInput extends StartTrustedAccessProgramOrganizationApplicationRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link StartTrustedAccessProgramOrganizationApplicationCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface StartTrustedAccessProgramOrganizationApplicationCommandOutput extends StartTrustedAccessProgramOrganizationApplicationResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const StartTrustedAccessProgramOrganizationApplicationCommand_base: {
|
|
22
|
+
new (input: StartTrustedAccessProgramOrganizationApplicationCommandInput): import("@smithy/core/client").CommandImpl<StartTrustedAccessProgramOrganizationApplicationCommandInput, StartTrustedAccessProgramOrganizationApplicationCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: StartTrustedAccessProgramOrganizationApplicationCommandInput): import("@smithy/core/client").CommandImpl<StartTrustedAccessProgramOrganizationApplicationCommandInput, StartTrustedAccessProgramOrganizationApplicationCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Prepare a provider application handoff for the calling account's current organization. Requires operation permission and management-account or Bedrock-specific delegated-administrator authority. This does not submit an application, grant eligibility, or change enrollment. Programs without self-service applications return ValidationException with guidance to contact the AWS account team. Repeated calls can issue fresh tokens. Successful responses use Cache-Control: no-store.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, StartTrustedAccessProgramOrganizationApplicationCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, StartTrustedAccessProgramOrganizationApplicationCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // StartTrustedAccessProgramOrganizationApplicationRequest
|
|
37
|
+
* programIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new StartTrustedAccessProgramOrganizationApplicationCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // StartTrustedAccessProgramOrganizationApplicationResponse
|
|
42
|
+
* // result: { // TrustedAccessProgramApplicationResult Union: only one key present
|
|
43
|
+
* // providerHandoff: { // TrustedAccessProgramProviderHandoff
|
|
44
|
+
* // enrollmentUrl: "STRING_VALUE",
|
|
45
|
+
* // applicationToken: "STRING_VALUE", // required
|
|
46
|
+
* // applicationTokenExpiresAt: new Date("TIMESTAMP"), // required
|
|
47
|
+
* // },
|
|
48
|
+
* // },
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param StartTrustedAccessProgramOrganizationApplicationCommandInput - {@link StartTrustedAccessProgramOrganizationApplicationCommandInput}
|
|
54
|
+
* @returns {@link StartTrustedAccessProgramOrganizationApplicationCommandOutput}
|
|
55
|
+
* @see {@link StartTrustedAccessProgramOrganizationApplicationCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link StartTrustedAccessProgramOrganizationApplicationCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InternalServerException} (server fault)
|
|
63
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
69
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ValidationException} (client fault)
|
|
72
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link BedrockServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare class StartTrustedAccessProgramOrganizationApplicationCommand extends StartTrustedAccessProgramOrganizationApplicationCommand_base {
|
|
81
|
+
/** @internal type navigation helper, not in runtime. */
|
|
82
|
+
protected static __types: {
|
|
83
|
+
api: {
|
|
84
|
+
input: StartTrustedAccessProgramOrganizationApplicationRequest;
|
|
85
|
+
output: StartTrustedAccessProgramOrganizationApplicationResponse;
|
|
86
|
+
};
|
|
87
|
+
sdk: {
|
|
88
|
+
input: StartTrustedAccessProgramOrganizationApplicationCommandInput;
|
|
89
|
+
output: StartTrustedAccessProgramOrganizationApplicationCommandOutput;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { StartTrustedAccessProgramProjectApplicationRequest, StartTrustedAccessProgramProjectApplicationResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link StartTrustedAccessProgramProjectApplicationCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface StartTrustedAccessProgramProjectApplicationCommandInput extends StartTrustedAccessProgramProjectApplicationRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link StartTrustedAccessProgramProjectApplicationCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface StartTrustedAccessProgramProjectApplicationCommandOutput extends StartTrustedAccessProgramProjectApplicationResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const StartTrustedAccessProgramProjectApplicationCommand_base: {
|
|
22
|
+
new (input: StartTrustedAccessProgramProjectApplicationCommandInput): import("@smithy/core/client").CommandImpl<StartTrustedAccessProgramProjectApplicationCommandInput, StartTrustedAccessProgramProjectApplicationCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: StartTrustedAccessProgramProjectApplicationCommandInput): import("@smithy/core/client").CommandImpl<StartTrustedAccessProgramProjectApplicationCommandInput, StartTrustedAccessProgramProjectApplicationCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Prepare a provider application handoff for a named project. The project must be active in this Region and owned by the calling account. Archived projects return ValidationException. This does not submit an application, grant eligibility, or change enrollment. Programs without self-service applications return ValidationException with guidance to contact the AWS account team. Repeated calls can issue fresh tokens. Successful responses use Cache-Control: no-store.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, StartTrustedAccessProgramProjectApplicationCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, StartTrustedAccessProgramProjectApplicationCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // StartTrustedAccessProgramProjectApplicationRequest
|
|
37
|
+
* programIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* projectIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new StartTrustedAccessProgramProjectApplicationCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // StartTrustedAccessProgramProjectApplicationResponse
|
|
43
|
+
* // result: { // TrustedAccessProgramApplicationResult Union: only one key present
|
|
44
|
+
* // providerHandoff: { // TrustedAccessProgramProviderHandoff
|
|
45
|
+
* // enrollmentUrl: "STRING_VALUE",
|
|
46
|
+
* // applicationToken: "STRING_VALUE", // required
|
|
47
|
+
* // applicationTokenExpiresAt: new Date("TIMESTAMP"), // required
|
|
48
|
+
* // },
|
|
49
|
+
* // },
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param StartTrustedAccessProgramProjectApplicationCommandInput - {@link StartTrustedAccessProgramProjectApplicationCommandInput}
|
|
55
|
+
* @returns {@link StartTrustedAccessProgramProjectApplicationCommandOutput}
|
|
56
|
+
* @see {@link StartTrustedAccessProgramProjectApplicationCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link StartTrustedAccessProgramProjectApplicationCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServerException} (server fault)
|
|
64
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
67
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
70
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ValidationException} (client fault)
|
|
73
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link BedrockServiceException}
|
|
76
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class StartTrustedAccessProgramProjectApplicationCommand extends StartTrustedAccessProgramProjectApplicationCommand_base {
|
|
82
|
+
/** @internal type navigation helper, not in runtime. */
|
|
83
|
+
protected static __types: {
|
|
84
|
+
api: {
|
|
85
|
+
input: StartTrustedAccessProgramProjectApplicationRequest;
|
|
86
|
+
output: StartTrustedAccessProgramProjectApplicationResponse;
|
|
87
|
+
};
|
|
88
|
+
sdk: {
|
|
89
|
+
input: StartTrustedAccessProgramProjectApplicationCommandInput;
|
|
90
|
+
output: StartTrustedAccessProgramProjectApplicationCommandOutput;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { StopEvaluationJobRequest, StopEvaluationJobResponse } from "../models/
|
|
2
|
+
import type { StopEvaluationJobRequest, StopEvaluationJobResponse } from "../models/models_1";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { UpdateProjectRequest, UpdateProjectResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link UpdateProjectCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateProjectCommandInput extends UpdateProjectRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link UpdateProjectCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateProjectCommandOutput extends UpdateProjectResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const UpdateProjectCommand_base: {
|
|
22
|
+
new (input: UpdateProjectCommandInput): import("@smithy/core/client").CommandImpl<UpdateProjectCommandInput, UpdateProjectCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdateProjectCommandInput): import("@smithy/core/client").CommandImpl<UpdateProjectCommandInput, UpdateProjectCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Updates one mutable project field per call: exactly one of <code>name</code> or <code>dataRetention</code> must be set. The default project and archived projects cannot be updated.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, UpdateProjectCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, UpdateProjectCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // UpdateProjectRequest
|
|
37
|
+
* projectIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* name: "STRING_VALUE",
|
|
39
|
+
* dataRetention: { // ProjectDataRetention
|
|
40
|
+
* mode: "default" || "none" || "aws_review" || "provider_data_share" || "inherit", // required
|
|
41
|
+
* },
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UpdateProjectCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // UpdateProjectResponse
|
|
46
|
+
* // id: "STRING_VALUE", // required
|
|
47
|
+
* // arn: "STRING_VALUE", // required
|
|
48
|
+
* // name: "STRING_VALUE", // required
|
|
49
|
+
* // status: "active" || "archived", // required
|
|
50
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // archivedAt: new Date("TIMESTAMP"),
|
|
52
|
+
* // dataRetention: { // ProjectDataRetention
|
|
53
|
+
* // mode: "default" || "none" || "aws_review" || "provider_data_share" || "inherit", // required
|
|
54
|
+
* // },
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param UpdateProjectCommandInput - {@link UpdateProjectCommandInput}
|
|
60
|
+
* @returns {@link UpdateProjectCommandOutput}
|
|
61
|
+
* @see {@link UpdateProjectCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link UpdateProjectCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
66
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ConflictException} (client fault)
|
|
69
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InternalServerException} (server fault)
|
|
72
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
75
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
78
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link BedrockServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class UpdateProjectCommand extends UpdateProjectCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: UpdateProjectRequest;
|
|
94
|
+
output: UpdateProjectResponse;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: UpdateProjectCommandInput;
|
|
98
|
+
output: UpdateProjectCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|