@aws-sdk/client-bedrock 3.1173.0 → 3.1174.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 +2 -2
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetOrganizationDataRetentionStorageRequest, GetOrganizationDataRetentionStorageResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetOrganizationDataRetentionStorageCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetOrganizationDataRetentionStorageCommandInput extends GetOrganizationDataRetentionStorageRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetOrganizationDataRetentionStorageCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetOrganizationDataRetentionStorageCommandOutput extends GetOrganizationDataRetentionStorageResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetOrganizationDataRetentionStorageCommand_base: {
|
|
22
|
+
new (input: GetOrganizationDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<GetOrganizationDataRetentionStorageCommandInput, GetOrganizationDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetOrganizationDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<GetOrganizationDataRetentionStorageCommandInput, GetOrganizationDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Returns the organization's retention storage configuration for a model provider. The caller must be the organization's management account or a delegated administrator. Returns ResourceNotFoundException when no configuration exists.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, GetOrganizationDataRetentionStorageCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, GetOrganizationDataRetentionStorageCommand } = 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 = { // GetOrganizationDataRetentionStorageRequest
|
|
37
|
+
* modelProvider: "anthropic" || "openai", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetOrganizationDataRetentionStorageCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetOrganizationDataRetentionStorageResponse
|
|
42
|
+
* // scope: "account" || "organization" || "project", // required
|
|
43
|
+
* // modelProvider: "anthropic" || "openai", // required
|
|
44
|
+
* // storageDestination: "customer_managed" || "amazon_managed", // required
|
|
45
|
+
* // storageConfiguration: { // DataRetentionStorageConfiguration
|
|
46
|
+
* // kmsKeyArn: "STRING_VALUE", // required
|
|
47
|
+
* // s3BucketArn: "STRING_VALUE", // required
|
|
48
|
+
* // s3BucketOwner: "STRING_VALUE", // required
|
|
49
|
+
* // },
|
|
50
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // kmsKeyStatus: "pending" || "active" || "access_denied",
|
|
52
|
+
* // s3BucketStatus: "pending" || "active" || "access_denied",
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param GetOrganizationDataRetentionStorageCommandInput - {@link GetOrganizationDataRetentionStorageCommandInput}
|
|
58
|
+
* @returns {@link GetOrganizationDataRetentionStorageCommandOutput}
|
|
59
|
+
* @see {@link GetOrganizationDataRetentionStorageCommandInput} for command's `input` shape.
|
|
60
|
+
* @see {@link GetOrganizationDataRetentionStorageCommandOutput} for command's `response` shape.
|
|
61
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
64
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InternalServerException} (server fault)
|
|
67
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
70
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
73
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link BedrockServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class GetOrganizationDataRetentionStorageCommand extends GetOrganizationDataRetentionStorageCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: GetOrganizationDataRetentionStorageRequest;
|
|
89
|
+
output: GetOrganizationDataRetentionStorageResponse;
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: GetOrganizationDataRetentionStorageCommandInput;
|
|
93
|
+
output: GetOrganizationDataRetentionStorageCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetProjectRequest, GetProjectResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetProjectCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetProjectCommandInput extends GetProjectRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetProjectCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetProjectCommandOutput extends GetProjectResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetProjectCommand_base: {
|
|
22
|
+
new (input: GetProjectCommandInput): import("@smithy/core/client").CommandImpl<GetProjectCommandInput, GetProjectCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetProjectCommandInput): import("@smithy/core/client").CommandImpl<GetProjectCommandInput, GetProjectCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves a project.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, GetProjectCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, GetProjectCommand } = 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 = { // GetProjectRequest
|
|
37
|
+
* projectIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetProjectCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetProjectResponse
|
|
42
|
+
* // id: "STRING_VALUE", // required
|
|
43
|
+
* // arn: "STRING_VALUE", // required
|
|
44
|
+
* // name: "STRING_VALUE", // required
|
|
45
|
+
* // status: "active" || "archived", // required
|
|
46
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
47
|
+
* // archivedAt: new Date("TIMESTAMP"),
|
|
48
|
+
* // dataRetention: { // ProjectDataRetention
|
|
49
|
+
* // mode: "default" || "none" || "aws_review" || "provider_data_share" || "inherit", // required
|
|
50
|
+
* // },
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param GetProjectCommandInput - {@link GetProjectCommandInput}
|
|
56
|
+
* @returns {@link GetProjectCommandOutput}
|
|
57
|
+
* @see {@link GetProjectCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link GetProjectCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
62
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServerException} (server fault)
|
|
65
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
71
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ValidationException} (client fault)
|
|
74
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link BedrockServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
78
|
+
*
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export declare class GetProjectCommand extends GetProjectCommand_base {
|
|
83
|
+
/** @internal type navigation helper, not in runtime. */
|
|
84
|
+
protected static __types: {
|
|
85
|
+
api: {
|
|
86
|
+
input: GetProjectRequest;
|
|
87
|
+
output: GetProjectResponse;
|
|
88
|
+
};
|
|
89
|
+
sdk: {
|
|
90
|
+
input: GetProjectCommandInput;
|
|
91
|
+
output: GetProjectCommandOutput;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetProjectDataRetentionStorageRequest, GetProjectDataRetentionStorageResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetProjectDataRetentionStorageCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetProjectDataRetentionStorageCommandInput extends GetProjectDataRetentionStorageRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetProjectDataRetentionStorageCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetProjectDataRetentionStorageCommandOutput extends GetProjectDataRetentionStorageResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetProjectDataRetentionStorageCommand_base: {
|
|
22
|
+
new (input: GetProjectDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<GetProjectDataRetentionStorageCommandInput, GetProjectDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetProjectDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<GetProjectDataRetentionStorageCommandInput, GetProjectDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Returns a project's retention storage configuration for a model provider. Returns ResourceNotFoundException when the project does not exist, is not owned by the calling account, or has no configuration.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, GetProjectDataRetentionStorageCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, GetProjectDataRetentionStorageCommand } = 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 = { // GetProjectDataRetentionStorageRequest
|
|
37
|
+
* projectIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* modelProvider: "anthropic" || "openai", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetProjectDataRetentionStorageCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetProjectDataRetentionStorageResponse
|
|
43
|
+
* // scope: "account" || "organization" || "project", // required
|
|
44
|
+
* // modelProvider: "anthropic" || "openai", // required
|
|
45
|
+
* // storageDestination: "customer_managed" || "amazon_managed", // required
|
|
46
|
+
* // storageConfiguration: { // DataRetentionStorageConfiguration
|
|
47
|
+
* // kmsKeyArn: "STRING_VALUE", // required
|
|
48
|
+
* // s3BucketArn: "STRING_VALUE", // required
|
|
49
|
+
* // s3BucketOwner: "STRING_VALUE", // required
|
|
50
|
+
* // },
|
|
51
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // kmsKeyStatus: "pending" || "active" || "access_denied",
|
|
53
|
+
* // s3BucketStatus: "pending" || "active" || "access_denied",
|
|
54
|
+
* // projectArn: "STRING_VALUE", // required
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param GetProjectDataRetentionStorageCommandInput - {@link GetProjectDataRetentionStorageCommandInput}
|
|
60
|
+
* @returns {@link GetProjectDataRetentionStorageCommandOutput}
|
|
61
|
+
* @see {@link GetProjectDataRetentionStorageCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link GetProjectDataRetentionStorageCommandOutput} 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 InternalServerException} (server fault)
|
|
69
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BedrockServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class GetProjectDataRetentionStorageCommand extends GetProjectDataRetentionStorageCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: GetProjectDataRetentionStorageRequest;
|
|
91
|
+
output: GetProjectDataRetentionStorageResponse;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: GetProjectDataRetentionStorageCommandInput;
|
|
95
|
+
output: GetProjectDataRetentionStorageCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetTrustedAccessProgramAccountEnrollmentRequest, GetTrustedAccessProgramAccountEnrollmentResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetTrustedAccessProgramAccountEnrollmentCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetTrustedAccessProgramAccountEnrollmentCommandInput extends GetTrustedAccessProgramAccountEnrollmentRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetTrustedAccessProgramAccountEnrollmentCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetTrustedAccessProgramAccountEnrollmentCommandOutput extends GetTrustedAccessProgramAccountEnrollmentResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetTrustedAccessProgramAccountEnrollmentCommand_base: {
|
|
22
|
+
new (input: GetTrustedAccessProgramAccountEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<GetTrustedAccessProgramAccountEnrollmentCommandInput, GetTrustedAccessProgramAccountEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetTrustedAccessProgramAccountEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<GetTrustedAccessProgramAccountEnrollmentCommandInput, GetTrustedAccessProgramAccountEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Gets the calling account's stored enrollment setting for a trusted access program. The account is derived from the authenticated caller. Use GetTrustedAccessProgram to retrieve the resolved participation status, including organization inheritance. If no enrollment is stored, returns inherit without timestamps.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, GetTrustedAccessProgramAccountEnrollmentCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, GetTrustedAccessProgramAccountEnrollmentCommand } = 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 = { // GetTrustedAccessProgramAccountEnrollmentRequest
|
|
37
|
+
* programIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetTrustedAccessProgramAccountEnrollmentCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetTrustedAccessProgramAccountEnrollmentResponse
|
|
42
|
+
* // optIn: "inherit" || "enabled" || "disabled", // required
|
|
43
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param GetTrustedAccessProgramAccountEnrollmentCommandInput - {@link GetTrustedAccessProgramAccountEnrollmentCommandInput}
|
|
49
|
+
* @returns {@link GetTrustedAccessProgramAccountEnrollmentCommandOutput}
|
|
50
|
+
* @see {@link GetTrustedAccessProgramAccountEnrollmentCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link GetTrustedAccessProgramAccountEnrollmentCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerException} (server fault)
|
|
58
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
64
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ValidationException} (client fault)
|
|
67
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link BedrockServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class GetTrustedAccessProgramAccountEnrollmentCommand extends GetTrustedAccessProgramAccountEnrollmentCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: GetTrustedAccessProgramAccountEnrollmentRequest;
|
|
80
|
+
output: GetTrustedAccessProgramAccountEnrollmentResponse;
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: GetTrustedAccessProgramAccountEnrollmentCommandInput;
|
|
84
|
+
output: GetTrustedAccessProgramAccountEnrollmentCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetTrustedAccessProgramRequest, GetTrustedAccessProgramResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetTrustedAccessProgramCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetTrustedAccessProgramCommandInput extends GetTrustedAccessProgramRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetTrustedAccessProgramCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetTrustedAccessProgramCommandOutput extends GetTrustedAccessProgramResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetTrustedAccessProgramCommand_base: {
|
|
22
|
+
new (input: GetTrustedAccessProgramCommandInput): import("@smithy/core/client").CommandImpl<GetTrustedAccessProgramCommandInput, GetTrustedAccessProgramCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetTrustedAccessProgramCommandInput): import("@smithy/core/client").CommandImpl<GetTrustedAccessProgramCommandInput, GetTrustedAccessProgramCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Gets trusted access program details and resolves participation for your account and its current organization. If you specify a project, Amazon Bedrock resolves participation for the project, including inheritance from the account and organization. Archived projects remain readable until they expire. Returns the same flat summary as a ListTrustedAccessPrograms item. An absent or invisible program returns ResourceNotFoundException.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, GetTrustedAccessProgramCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, GetTrustedAccessProgramCommand } = 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 = { // GetTrustedAccessProgramRequest
|
|
37
|
+
* programIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* projectIdentifier: "STRING_VALUE",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetTrustedAccessProgramCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetTrustedAccessProgramResponse
|
|
43
|
+
* // programId: "STRING_VALUE", // required
|
|
44
|
+
* // name: "STRING_VALUE", // required
|
|
45
|
+
* // description: "STRING_VALUE", // required
|
|
46
|
+
* // providerName: "STRING_VALUE", // required
|
|
47
|
+
* // detailsUrl: "STRING_VALUE", // required
|
|
48
|
+
* // enrollmentUrl: "STRING_VALUE",
|
|
49
|
+
* // status: "requestable" || "eligible" || "enabled" || "disabled" || "revoked", // required
|
|
50
|
+
* // statusReason: "STRING_VALUE",
|
|
51
|
+
* // source: "organization" || "account" || "project" || "program_default", // required
|
|
52
|
+
* // eligibilityScope: "organization" || "account" || "project" || "program_default",
|
|
53
|
+
* // resolvedFor: { // TrustedAccessResolutionContext
|
|
54
|
+
* // accountId: "STRING_VALUE", // required
|
|
55
|
+
* // projectArn: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // optIn: "inherit" || "enabled" || "disabled", // required
|
|
58
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param GetTrustedAccessProgramCommandInput - {@link GetTrustedAccessProgramCommandInput}
|
|
64
|
+
* @returns {@link GetTrustedAccessProgramCommandOutput}
|
|
65
|
+
* @see {@link GetTrustedAccessProgramCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link GetTrustedAccessProgramCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
70
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalServerException} (server fault)
|
|
73
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
76
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link BedrockServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class GetTrustedAccessProgramCommand extends GetTrustedAccessProgramCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: GetTrustedAccessProgramRequest;
|
|
95
|
+
output: GetTrustedAccessProgramResponse;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: GetTrustedAccessProgramCommandInput;
|
|
99
|
+
output: GetTrustedAccessProgramCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetTrustedAccessProgramOrganizationEnrollmentRequest, GetTrustedAccessProgramOrganizationEnrollmentResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetTrustedAccessProgramOrganizationEnrollmentCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetTrustedAccessProgramOrganizationEnrollmentCommandInput extends GetTrustedAccessProgramOrganizationEnrollmentRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetTrustedAccessProgramOrganizationEnrollmentCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetTrustedAccessProgramOrganizationEnrollmentCommandOutput extends GetTrustedAccessProgramOrganizationEnrollmentResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetTrustedAccessProgramOrganizationEnrollmentCommand_base: {
|
|
22
|
+
new (input: GetTrustedAccessProgramOrganizationEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<GetTrustedAccessProgramOrganizationEnrollmentCommandInput, GetTrustedAccessProgramOrganizationEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetTrustedAccessProgramOrganizationEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<GetTrustedAccessProgramOrganizationEnrollmentCommandInput, GetTrustedAccessProgramOrganizationEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Gets the current organization's stored enrollment setting for a trusted access program. The organization and payer account are derived from the authenticated context. Requires operation permission and management-account or Bedrock-specific delegated-administrator authority. The setting can differ from the caller's resolved status returned by GetTrustedAccessProgram. If no enrollment is stored, returns inherit without timestamps.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, GetTrustedAccessProgramOrganizationEnrollmentCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, GetTrustedAccessProgramOrganizationEnrollmentCommand } = 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 = { // GetTrustedAccessProgramOrganizationEnrollmentRequest
|
|
37
|
+
* programIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetTrustedAccessProgramOrganizationEnrollmentCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetTrustedAccessProgramOrganizationEnrollmentResponse
|
|
42
|
+
* // optIn: "inherit" || "enabled" || "disabled", // required
|
|
43
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param GetTrustedAccessProgramOrganizationEnrollmentCommandInput - {@link GetTrustedAccessProgramOrganizationEnrollmentCommandInput}
|
|
49
|
+
* @returns {@link GetTrustedAccessProgramOrganizationEnrollmentCommandOutput}
|
|
50
|
+
* @see {@link GetTrustedAccessProgramOrganizationEnrollmentCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link GetTrustedAccessProgramOrganizationEnrollmentCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerException} (server fault)
|
|
58
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
64
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ValidationException} (client fault)
|
|
67
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link BedrockServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class GetTrustedAccessProgramOrganizationEnrollmentCommand extends GetTrustedAccessProgramOrganizationEnrollmentCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: GetTrustedAccessProgramOrganizationEnrollmentRequest;
|
|
80
|
+
output: GetTrustedAccessProgramOrganizationEnrollmentResponse;
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: GetTrustedAccessProgramOrganizationEnrollmentCommandInput;
|
|
84
|
+
output: GetTrustedAccessProgramOrganizationEnrollmentCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetTrustedAccessProgramProjectEnrollmentRequest, GetTrustedAccessProgramProjectEnrollmentResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetTrustedAccessProgramProjectEnrollmentCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetTrustedAccessProgramProjectEnrollmentCommandInput extends GetTrustedAccessProgramProjectEnrollmentRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetTrustedAccessProgramProjectEnrollmentCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetTrustedAccessProgramProjectEnrollmentCommandOutput extends GetTrustedAccessProgramProjectEnrollmentResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetTrustedAccessProgramProjectEnrollmentCommand_base: {
|
|
22
|
+
new (input: GetTrustedAccessProgramProjectEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<GetTrustedAccessProgramProjectEnrollmentCommandInput, GetTrustedAccessProgramProjectEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetTrustedAccessProgramProjectEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<GetTrustedAccessProgramProjectEnrollmentCommandInput, GetTrustedAccessProgramProjectEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Gets a named project's stored enrollment setting for a trusted access program. The project must exist in this Region and be owned by the calling account. Archived projects remain readable until they expire. Use GetTrustedAccessProgram with projectIdentifier to retrieve resolved participation, including account and organization inheritance. If no enrollment is stored, returns inherit without timestamps.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, GetTrustedAccessProgramProjectEnrollmentCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, GetTrustedAccessProgramProjectEnrollmentCommand } = 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 = { // GetTrustedAccessProgramProjectEnrollmentRequest
|
|
37
|
+
* programIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* projectIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetTrustedAccessProgramProjectEnrollmentCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetTrustedAccessProgramProjectEnrollmentResponse
|
|
43
|
+
* // optIn: "inherit" || "enabled" || "disabled", // required
|
|
44
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param GetTrustedAccessProgramProjectEnrollmentCommandInput - {@link GetTrustedAccessProgramProjectEnrollmentCommandInput}
|
|
50
|
+
* @returns {@link GetTrustedAccessProgramProjectEnrollmentCommandOutput}
|
|
51
|
+
* @see {@link GetTrustedAccessProgramProjectEnrollmentCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link GetTrustedAccessProgramProjectEnrollmentCommandOutput} 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 InternalServerException} (server fault)
|
|
59
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
62
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
65
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link BedrockServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class GetTrustedAccessProgramProjectEnrollmentCommand extends GetTrustedAccessProgramProjectEnrollmentCommand_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: GetTrustedAccessProgramProjectEnrollmentRequest;
|
|
81
|
+
output: GetTrustedAccessProgramProjectEnrollmentResponse;
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: GetTrustedAccessProgramProjectEnrollmentCommandInput;
|
|
85
|
+
output: GetTrustedAccessProgramProjectEnrollmentCommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|