cdk-lambda-subminute 2.0.310 → 2.0.312
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/.jsii +3 -3
- package/lib/cdk-lambda-subminute.js +3 -3
- package/node_modules/aws-sdk/CHANGELOG.md +68 -1
- package/node_modules/aws-sdk/README.md +1 -3
- package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.min.json +429 -86
- package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/amp-2020-08-01.min.json +320 -3
- package/node_modules/aws-sdk/apis/amp-2020-08-01.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/amp-2020-08-01.waiters2.json +33 -0
- package/node_modules/aws-sdk/apis/appsync-2017-07-25.min.json +141 -6
- package/node_modules/aws-sdk/apis/b2bi-2022-06-23.examples.json +714 -0
- package/node_modules/aws-sdk/apis/b2bi-2022-06-23.min.json +1095 -0
- package/node_modules/aws-sdk/apis/b2bi-2022-06-23.paginators.json +28 -0
- package/node_modules/aws-sdk/apis/backup-2018-11-15.min.json +855 -84
- package/node_modules/aws-sdk/apis/backup-2018-11-15.paginators.json +18 -0
- package/node_modules/aws-sdk/apis/bcm-data-exports-2023-11-26.examples.json +5 -0
- package/node_modules/aws-sdk/apis/bcm-data-exports-2023-11-26.min.json +470 -0
- package/node_modules/aws-sdk/apis/bcm-data-exports-2023-11-26.paginators.json +22 -0
- package/node_modules/aws-sdk/apis/bedrock-2023-04-20.min.json +91 -71
- package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.examples.json +5 -0
- package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.min.json +2322 -0
- package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.paginators.json +52 -0
- package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.examples.json +5 -0
- package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.min.json +697 -0
- package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.paginators.json +9 -0
- package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.min.json +18 -18
- package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/cloudtrail-2013-11-01.min.json +67 -24
- package/node_modules/aws-sdk/apis/codestar-connections-2019-12-01.min.json +590 -3
- package/node_modules/aws-sdk/apis/codestar-connections-2019-12-01.paginators.json +10 -0
- package/node_modules/aws-sdk/apis/compute-optimizer-2019-11-01.min.json +243 -39
- package/node_modules/aws-sdk/apis/config-2014-11-12.min.json +204 -169
- package/node_modules/aws-sdk/apis/connect-2017-08-08.min.json +1180 -417
- package/node_modules/aws-sdk/apis/connect-2017-08-08.paginators.json +11 -0
- package/node_modules/aws-sdk/apis/controltower-2018-05-10.min.json +317 -13
- package/node_modules/aws-sdk/apis/controltower-2018-05-10.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/cost-optimization-hub-2022-07-26.examples.json +5 -0
- package/node_modules/aws-sdk/apis/cost-optimization-hub-2022-07-26.min.json +757 -0
- package/node_modules/aws-sdk/apis/cost-optimization-hub-2022-07-26.paginators.json +22 -0
- package/node_modules/aws-sdk/apis/customer-profiles-2020-08-15.min.json +129 -84
- package/node_modules/aws-sdk/apis/detective-2018-10-26.min.json +294 -0
- package/node_modules/aws-sdk/apis/ecs-2014-11-13.min.json +108 -107
- package/node_modules/aws-sdk/apis/eks-2017-11-01.min.json +211 -4
- package/node_modules/aws-sdk/apis/eks-2017-11-01.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/eks-auth-2023-11-26.examples.json +5 -0
- package/node_modules/aws-sdk/apis/eks-auth-2023-11-26.min.json +104 -0
- package/node_modules/aws-sdk/apis/eks-auth-2023-11-26.paginators.json +4 -0
- package/node_modules/aws-sdk/apis/eks-auth-2023-11-26.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/elasticache-2015-02-02.min.json +481 -132
- package/node_modules/aws-sdk/apis/elasticache-2015-02-02.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/elasticfilesystem-2015-02-01.min.json +71 -33
- package/node_modules/aws-sdk/apis/elasticfilesystem-2015-02-01.paginators.json +18 -3
- package/node_modules/aws-sdk/apis/elasticloadbalancingv2-2015-12-01.min.json +403 -75
- package/node_modules/aws-sdk/apis/elasticloadbalancingv2-2015-12-01.paginators.json +15 -0
- package/node_modules/aws-sdk/apis/fis-2020-12-01.min.json +366 -15
- package/node_modules/aws-sdk/apis/fis-2020-12-01.paginators.json +10 -0
- package/node_modules/aws-sdk/apis/freetier-2023-09-07.examples.json +5 -0
- package/node_modules/aws-sdk/apis/freetier-2023-09-07.min.json +105 -0
- package/node_modules/aws-sdk/apis/freetier-2023-09-07.paginators.json +10 -0
- package/node_modules/aws-sdk/apis/fsx-2018-03-01.min.json +259 -135
- package/node_modules/aws-sdk/apis/guardduty-2017-11-28.min.json +64 -0
- package/node_modules/aws-sdk/apis/iotfleetwise-2021-06-17.min.json +159 -33
- package/node_modules/aws-sdk/apis/lakeformation-2017-03-31.min.json +126 -35
- package/node_modules/aws-sdk/apis/logs-2014-03-28.min.json +310 -36
- package/node_modules/aws-sdk/apis/logs-2014-03-28.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/managedblockchain-2018-09-24.min.json +58 -50
- package/node_modules/aws-sdk/apis/metadata.json +39 -0
- package/node_modules/aws-sdk/apis/models.lex.v2-2020-08-07.min.json +633 -331
- package/node_modules/aws-sdk/apis/models.lex.v2-2020-08-07.paginators.json +5 -0
- package/node_modules/aws-sdk/apis/personalize-2018-05-22.min.json +85 -52
- package/node_modules/aws-sdk/apis/personalize-events-2018-03-22.min.json +97 -5
- package/node_modules/aws-sdk/apis/personalize-runtime-2018-05-22.min.json +68 -11
- package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.examples.json +5 -0
- package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.min.json +3025 -0
- package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.paginators.json +76 -0
- package/node_modules/aws-sdk/apis/qconnect-2020-10-19.examples.json +5 -0
- package/node_modules/aws-sdk/apis/qconnect-2020-10-19.min.json +2499 -0
- package/node_modules/aws-sdk/apis/qconnect-2020-10-19.paginators.json +64 -0
- package/node_modules/aws-sdk/apis/quicksight-2018-04-01.min.json +398 -268
- package/node_modules/aws-sdk/apis/redshift-2012-12-01.min.json +14 -2
- package/node_modules/aws-sdk/apis/repostspace-2022-05-13.examples.json +5 -0
- package/node_modules/aws-sdk/apis/repostspace-2022-05-13.min.json +447 -0
- package/node_modules/aws-sdk/apis/repostspace-2022-05-13.paginators.json +10 -0
- package/node_modules/aws-sdk/apis/runtime.lex.v2-2020-08-07.min.json +25 -24
- package/node_modules/aws-sdk/apis/s3-2006-03-01.examples.json +147 -147
- package/node_modules/aws-sdk/apis/s3-2006-03-01.min.json +694 -186
- package/node_modules/aws-sdk/apis/s3-2006-03-01.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/s3control-2018-08-20.min.json +1336 -314
- package/node_modules/aws-sdk/apis/s3control-2018-08-20.paginators.json +15 -0
- package/node_modules/aws-sdk/apis/secretsmanager-2017-10-17.min.json +111 -50
- package/node_modules/aws-sdk/apis/secretsmanager-2017-10-17.paginators.json +5 -0
- package/node_modules/aws-sdk/apis/securityhub-2018-10-26.examples.json +526 -10
- package/node_modules/aws-sdk/apis/securityhub-2018-10-26.min.json +1057 -352
- package/node_modules/aws-sdk/apis/securityhub-2018-10-26.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/states-2016-11-23.min.json +85 -0
- package/node_modules/aws-sdk/apis/transcribe-2017-10-26.min.json +268 -70
- package/node_modules/aws-sdk/apis/transcribe-2017-10-26.paginators.json +5 -0
- package/node_modules/aws-sdk/apis/workspaces-2015-04-08.min.json +119 -96
- package/node_modules/aws-sdk/apis/workspaces-thin-client-2023-08-22.examples.json +5 -0
- package/node_modules/aws-sdk/apis/workspaces-thin-client-2023-08-22.min.json +777 -0
- package/node_modules/aws-sdk/apis/workspaces-thin-client-2023-08-22.paginators.json +22 -0
- package/node_modules/aws-sdk/clients/accessanalyzer.d.ts +387 -7
- package/node_modules/aws-sdk/clients/all.d.ts +11 -0
- package/node_modules/aws-sdk/clients/all.js +12 -1
- package/node_modules/aws-sdk/clients/amp.d.ts +322 -0
- package/node_modules/aws-sdk/clients/appsync.d.ts +169 -0
- package/node_modules/aws-sdk/clients/b2bi.d.ts +1388 -0
- package/node_modules/aws-sdk/clients/b2bi.js +18 -0
- package/node_modules/aws-sdk/clients/backup.d.ts +848 -45
- package/node_modules/aws-sdk/clients/bcmdataexports.d.ts +589 -0
- package/node_modules/aws-sdk/clients/bcmdataexports.js +18 -0
- package/node_modules/aws-sdk/clients/bedrock.d.ts +53 -17
- package/node_modules/aws-sdk/clients/bedrockagent.d.ts +1258 -0
- package/node_modules/aws-sdk/clients/bedrockagent.js +18 -0
- package/node_modules/aws-sdk/clients/bedrockagentruntime.d.ts +439 -0
- package/node_modules/aws-sdk/clients/bedrockagentruntime.js +18 -0
- package/node_modules/aws-sdk/clients/bedrockruntime.d.ts +13 -13
- package/node_modules/aws-sdk/clients/bedrockruntime.js +1 -0
- package/node_modules/aws-sdk/clients/cloudtrail.d.ts +76 -2
- package/node_modules/aws-sdk/clients/cloudwatchlogs.d.ts +413 -1
- package/node_modules/aws-sdk/clients/codestarconnections.d.ts +727 -0
- package/node_modules/aws-sdk/clients/computeoptimizer.d.ts +307 -6
- package/node_modules/aws-sdk/clients/configservice.d.ts +60 -11
- package/node_modules/aws-sdk/clients/connect.d.ts +886 -20
- package/node_modules/aws-sdk/clients/controltower.d.ts +319 -25
- package/node_modules/aws-sdk/clients/costoptimizationhub.d.ts +1283 -0
- package/node_modules/aws-sdk/clients/costoptimizationhub.js +18 -0
- package/node_modules/aws-sdk/clients/customerprofiles.d.ts +40 -0
- package/node_modules/aws-sdk/clients/detective.d.ts +469 -0
- package/node_modules/aws-sdk/clients/ecs.d.ts +10 -5
- package/node_modules/aws-sdk/clients/efs.d.ts +75 -33
- package/node_modules/aws-sdk/clients/eks.d.ts +237 -15
- package/node_modules/aws-sdk/clients/eksauth.d.ts +124 -0
- package/node_modules/aws-sdk/clients/eksauth.js +19 -0
- package/node_modules/aws-sdk/clients/elasticache.d.ts +484 -12
- package/node_modules/aws-sdk/clients/elbv2.d.ts +433 -4
- package/node_modules/aws-sdk/clients/fis.d.ts +383 -3
- package/node_modules/aws-sdk/clients/freetier.d.ts +149 -0
- package/node_modules/aws-sdk/clients/freetier.js +18 -0
- package/node_modules/aws-sdk/clients/fsx.d.ts +194 -21
- package/node_modules/aws-sdk/clients/glue.d.ts +3 -3
- package/node_modules/aws-sdk/clients/guardduty.d.ts +82 -11
- package/node_modules/aws-sdk/clients/iotfleetwise.d.ts +198 -13
- package/node_modules/aws-sdk/clients/lakeformation.d.ts +118 -2
- package/node_modules/aws-sdk/clients/lexmodelsv2.d.ts +343 -2
- package/node_modules/aws-sdk/clients/lexruntimev2.d.ts +14 -9
- package/node_modules/aws-sdk/clients/managedblockchain.d.ts +26 -5
- package/node_modules/aws-sdk/clients/personalize.d.ts +65 -20
- package/node_modules/aws-sdk/clients/personalizeevents.d.ts +102 -12
- package/node_modules/aws-sdk/clients/personalizeruntime.d.ts +72 -2
- package/node_modules/aws-sdk/clients/qbusiness.d.ts +3231 -0
- package/node_modules/aws-sdk/clients/qbusiness.js +18 -0
- package/node_modules/aws-sdk/clients/qconnect.d.ts +2552 -0
- package/node_modules/aws-sdk/clients/qconnect.js +18 -0
- package/node_modules/aws-sdk/clients/quicksight.d.ts +124 -0
- package/node_modules/aws-sdk/clients/rds.d.ts +80 -80
- package/node_modules/aws-sdk/clients/redshift.d.ts +16 -0
- package/node_modules/aws-sdk/clients/repostspace.d.ts +458 -0
- package/node_modules/aws-sdk/clients/repostspace.js +18 -0
- package/node_modules/aws-sdk/clients/s3.d.ts +795 -666
- package/node_modules/aws-sdk/clients/s3control.d.ts +976 -138
- package/node_modules/aws-sdk/clients/secretsmanager.d.ts +94 -5
- package/node_modules/aws-sdk/clients/securityhub.d.ts +908 -15
- package/node_modules/aws-sdk/clients/stepfunctions.d.ts +153 -8
- package/node_modules/aws-sdk/clients/transcribeservice.d.ts +312 -46
- package/node_modules/aws-sdk/clients/workspaces.d.ts +43 -1
- package/node_modules/aws-sdk/clients/workspacesthinclient.d.ts +895 -0
- package/node_modules/aws-sdk/clients/workspacesthinclient.js +18 -0
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +2 -2
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +512 -91
- package/node_modules/aws-sdk/dist/aws-sdk.js +4382 -1316
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +105 -104
- package/node_modules/aws-sdk/lib/config_service_placeholders.d.ts +22 -0
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/package.json +1 -1
- package/package.json +3 -3
@@ -0,0 +1,18 @@
|
|
1
|
+
require('../lib/node_loader');
|
2
|
+
var AWS = require('../lib/core');
|
3
|
+
var Service = AWS.Service;
|
4
|
+
var apiLoader = AWS.apiLoader;
|
5
|
+
|
6
|
+
apiLoader.services['bedrockagent'] = {};
|
7
|
+
AWS.BedrockAgent = Service.defineService('bedrockagent', ['2023-06-05']);
|
8
|
+
Object.defineProperty(apiLoader.services['bedrockagent'], '2023-06-05', {
|
9
|
+
get: function get() {
|
10
|
+
var model = require('../apis/bedrock-agent-2023-06-05.min.json');
|
11
|
+
model.paginators = require('../apis/bedrock-agent-2023-06-05.paginators.json').pagination;
|
12
|
+
return model;
|
13
|
+
},
|
14
|
+
enumerable: true,
|
15
|
+
configurable: true
|
16
|
+
});
|
17
|
+
|
18
|
+
module.exports = AWS.BedrockAgent;
|
@@ -0,0 +1,439 @@
|
|
1
|
+
import {Request} from '../lib/request';
|
2
|
+
import {Response} from '../lib/response';
|
3
|
+
import {AWSError} from '../lib/error';
|
4
|
+
import {Service} from '../lib/service';
|
5
|
+
import {ServiceConfigurationOptions} from '../lib/service';
|
6
|
+
import {ConfigBase as Config} from '../lib/config-base';
|
7
|
+
import {EventStream} from '../lib/event-stream/event-stream';
|
8
|
+
interface Blob {}
|
9
|
+
declare class BedrockAgentRuntime extends Service {
|
10
|
+
/**
|
11
|
+
* Constructs a service object. This object has one method for each API operation.
|
12
|
+
*/
|
13
|
+
constructor(options?: BedrockAgentRuntime.Types.ClientConfiguration)
|
14
|
+
config: Config & BedrockAgentRuntime.Types.ClientConfiguration;
|
15
|
+
/**
|
16
|
+
* Invokes the specified Bedrock model to run inference using the input provided in the request body.
|
17
|
+
*/
|
18
|
+
invokeAgent(params: BedrockAgentRuntime.Types.InvokeAgentRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.InvokeAgentResponse) => void): Request<BedrockAgentRuntime.Types.InvokeAgentResponse, AWSError>;
|
19
|
+
/**
|
20
|
+
* Invokes the specified Bedrock model to run inference using the input provided in the request body.
|
21
|
+
*/
|
22
|
+
invokeAgent(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.InvokeAgentResponse) => void): Request<BedrockAgentRuntime.Types.InvokeAgentResponse, AWSError>;
|
23
|
+
/**
|
24
|
+
* Retrieve from knowledge base.
|
25
|
+
*/
|
26
|
+
retrieve(params: BedrockAgentRuntime.Types.RetrieveRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.RetrieveResponse) => void): Request<BedrockAgentRuntime.Types.RetrieveResponse, AWSError>;
|
27
|
+
/**
|
28
|
+
* Retrieve from knowledge base.
|
29
|
+
*/
|
30
|
+
retrieve(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.RetrieveResponse) => void): Request<BedrockAgentRuntime.Types.RetrieveResponse, AWSError>;
|
31
|
+
/**
|
32
|
+
* RetrieveAndGenerate API
|
33
|
+
*/
|
34
|
+
retrieveAndGenerate(params: BedrockAgentRuntime.Types.RetrieveAndGenerateRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.RetrieveAndGenerateResponse) => void): Request<BedrockAgentRuntime.Types.RetrieveAndGenerateResponse, AWSError>;
|
35
|
+
/**
|
36
|
+
* RetrieveAndGenerate API
|
37
|
+
*/
|
38
|
+
retrieveAndGenerate(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.RetrieveAndGenerateResponse) => void): Request<BedrockAgentRuntime.Types.RetrieveAndGenerateResponse, AWSError>;
|
39
|
+
}
|
40
|
+
declare namespace BedrockAgentRuntime {
|
41
|
+
export interface AccessDeniedException {
|
42
|
+
message?: NonBlankString;
|
43
|
+
}
|
44
|
+
export interface ActionGroupInvocationInput {
|
45
|
+
actionGroupName?: ActionGroupName;
|
46
|
+
verb?: Verb;
|
47
|
+
apiPath?: ApiPath;
|
48
|
+
parameters?: Parameters;
|
49
|
+
requestBody?: RequestBody;
|
50
|
+
}
|
51
|
+
export interface ActionGroupInvocationOutput {
|
52
|
+
text?: ActionGroupOutputString;
|
53
|
+
}
|
54
|
+
export type ActionGroupName = string;
|
55
|
+
export type ActionGroupOutputString = string;
|
56
|
+
export type AgentAliasId = string;
|
57
|
+
export type AgentId = string;
|
58
|
+
export type ApiPath = string;
|
59
|
+
export interface Attribution {
|
60
|
+
citations?: Citations;
|
61
|
+
}
|
62
|
+
export interface BadGatewayException {
|
63
|
+
message?: NonBlankString;
|
64
|
+
resourceName?: NonBlankString;
|
65
|
+
}
|
66
|
+
export type BedrockModelArn = string;
|
67
|
+
export type Boolean = boolean;
|
68
|
+
export interface Citation {
|
69
|
+
generatedResponsePart?: GeneratedResponsePart;
|
70
|
+
retrievedReferences?: RetrievedReferences;
|
71
|
+
}
|
72
|
+
export type Citations = Citation[];
|
73
|
+
export interface ConflictException {
|
74
|
+
message?: NonBlankString;
|
75
|
+
}
|
76
|
+
export type ContentMap = {[key: string]: Parameters};
|
77
|
+
export type CreationMode = "DEFAULT"|"OVERRIDDEN"|string;
|
78
|
+
export interface DependencyFailedException {
|
79
|
+
message?: NonBlankString;
|
80
|
+
resourceName?: NonBlankString;
|
81
|
+
}
|
82
|
+
export type Double = number;
|
83
|
+
export type FailureReasonString = string;
|
84
|
+
export interface FailureTrace {
|
85
|
+
traceId?: TraceId;
|
86
|
+
failureReason?: FailureReasonString;
|
87
|
+
}
|
88
|
+
export interface FinalResponse {
|
89
|
+
text?: FinalResponseString;
|
90
|
+
}
|
91
|
+
export type FinalResponseString = string;
|
92
|
+
export interface GeneratedResponsePart {
|
93
|
+
textResponsePart?: TextResponsePart;
|
94
|
+
}
|
95
|
+
export interface InferenceConfiguration {
|
96
|
+
temperature?: Temperature;
|
97
|
+
topP?: TopP;
|
98
|
+
topK?: TopK;
|
99
|
+
maximumLength?: MaximumLength;
|
100
|
+
stopSequences?: StopSequences;
|
101
|
+
}
|
102
|
+
export type InputText = string;
|
103
|
+
export interface InternalServerException {
|
104
|
+
message?: NonBlankString;
|
105
|
+
}
|
106
|
+
export interface InvocationInput {
|
107
|
+
traceId?: TraceId;
|
108
|
+
invocationType?: InvocationType;
|
109
|
+
actionGroupInvocationInput?: ActionGroupInvocationInput;
|
110
|
+
knowledgeBaseLookupInput?: KnowledgeBaseLookupInput;
|
111
|
+
}
|
112
|
+
export type InvocationType = "ACTION_GROUP"|"KNOWLEDGE_BASE"|"FINISH"|string;
|
113
|
+
export interface InvokeAgentRequest {
|
114
|
+
/**
|
115
|
+
* Session state passed by customer. Base64 encoded json string representation of SessionState.
|
116
|
+
*/
|
117
|
+
sessionState?: SessionState;
|
118
|
+
/**
|
119
|
+
* Identifier for Agent
|
120
|
+
*/
|
121
|
+
agentId: AgentId;
|
122
|
+
/**
|
123
|
+
* Identifier for Agent Alias
|
124
|
+
*/
|
125
|
+
agentAliasId: AgentAliasId;
|
126
|
+
/**
|
127
|
+
* Identifier used for the current session
|
128
|
+
*/
|
129
|
+
sessionId: SessionId;
|
130
|
+
/**
|
131
|
+
* End current session
|
132
|
+
*/
|
133
|
+
endSession?: Boolean;
|
134
|
+
/**
|
135
|
+
* Enable agent trace events for improved debugging
|
136
|
+
*/
|
137
|
+
enableTrace?: Boolean;
|
138
|
+
/**
|
139
|
+
* Input data in the format specified in the Content-Type request header.
|
140
|
+
*/
|
141
|
+
inputText: InputText;
|
142
|
+
}
|
143
|
+
export interface InvokeAgentResponse {
|
144
|
+
/**
|
145
|
+
* Inference response from the model in the format specified in the Content-Type response header.
|
146
|
+
*/
|
147
|
+
completion: ResponseStream;
|
148
|
+
/**
|
149
|
+
* streaming response mimetype of the model
|
150
|
+
*/
|
151
|
+
contentType: MimeType;
|
152
|
+
/**
|
153
|
+
* streaming response mimetype of the model
|
154
|
+
*/
|
155
|
+
sessionId: SessionId;
|
156
|
+
}
|
157
|
+
export type KmsKeyArn = string;
|
158
|
+
export type KnowledgeBaseId = string;
|
159
|
+
export interface KnowledgeBaseLookupInput {
|
160
|
+
text?: KnowledgeBaseLookupInputString;
|
161
|
+
knowledgeBaseId?: TraceKnowledgeBaseId;
|
162
|
+
}
|
163
|
+
export type KnowledgeBaseLookupInputString = string;
|
164
|
+
export interface KnowledgeBaseLookupOutput {
|
165
|
+
retrievedReferences?: RetrievedReferences;
|
166
|
+
}
|
167
|
+
export interface KnowledgeBaseQuery {
|
168
|
+
/**
|
169
|
+
* Knowledge base input query in text
|
170
|
+
*/
|
171
|
+
text: KnowledgeBaseQueryTextString;
|
172
|
+
}
|
173
|
+
export type KnowledgeBaseQueryTextString = string;
|
174
|
+
export interface KnowledgeBaseRetrievalConfiguration {
|
175
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration;
|
176
|
+
}
|
177
|
+
export interface KnowledgeBaseRetrievalResult {
|
178
|
+
content: RetrievalResultContent;
|
179
|
+
location?: RetrievalResultLocation;
|
180
|
+
/**
|
181
|
+
* The relevance score of a result.
|
182
|
+
*/
|
183
|
+
score?: Double;
|
184
|
+
}
|
185
|
+
export type KnowledgeBaseRetrievalResults = KnowledgeBaseRetrievalResult[];
|
186
|
+
export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
|
187
|
+
knowledgeBaseId: KnowledgeBaseId;
|
188
|
+
modelArn: BedrockModelArn;
|
189
|
+
}
|
190
|
+
export interface KnowledgeBaseVectorSearchConfiguration {
|
191
|
+
/**
|
192
|
+
* Top-K results to retrieve from knowledge base.
|
193
|
+
*/
|
194
|
+
numberOfResults: KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger;
|
195
|
+
}
|
196
|
+
export type KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger = number;
|
197
|
+
export type LambdaArn = string;
|
198
|
+
export type MaximumLength = number;
|
199
|
+
export type MimeType = string;
|
200
|
+
export interface ModelInvocationInput {
|
201
|
+
traceId?: TraceId;
|
202
|
+
text?: PromptText;
|
203
|
+
type?: PromptType;
|
204
|
+
inferenceConfiguration?: InferenceConfiguration;
|
205
|
+
overrideLambda?: LambdaArn;
|
206
|
+
promptCreationMode?: CreationMode;
|
207
|
+
parserMode?: CreationMode;
|
208
|
+
}
|
209
|
+
export type NextToken = string;
|
210
|
+
export type NonBlankString = string;
|
211
|
+
export interface Observation {
|
212
|
+
traceId?: TraceId;
|
213
|
+
type?: Type;
|
214
|
+
actionGroupInvocationOutput?: ActionGroupInvocationOutput;
|
215
|
+
knowledgeBaseLookupOutput?: KnowledgeBaseLookupOutput;
|
216
|
+
finalResponse?: FinalResponse;
|
217
|
+
repromptResponse?: RepromptResponse;
|
218
|
+
}
|
219
|
+
export interface OrchestrationTrace {
|
220
|
+
rationale?: Rationale;
|
221
|
+
invocationInput?: InvocationInput;
|
222
|
+
observation?: Observation;
|
223
|
+
modelInvocationInput?: ModelInvocationInput;
|
224
|
+
}
|
225
|
+
export type OutputString = string;
|
226
|
+
export interface Parameter {
|
227
|
+
/**
|
228
|
+
* Name of parameter
|
229
|
+
*/
|
230
|
+
name?: String;
|
231
|
+
/**
|
232
|
+
* Type of parameter
|
233
|
+
*/
|
234
|
+
type?: String;
|
235
|
+
/**
|
236
|
+
* Value of parameter
|
237
|
+
*/
|
238
|
+
value?: String;
|
239
|
+
}
|
240
|
+
export type Parameters = Parameter[];
|
241
|
+
export type PartBody = Buffer|Uint8Array|Blob|string;
|
242
|
+
export interface PayloadPart {
|
243
|
+
bytes?: PartBody;
|
244
|
+
attribution?: Attribution;
|
245
|
+
}
|
246
|
+
export interface PostProcessingModelInvocationOutput {
|
247
|
+
traceId?: TraceId;
|
248
|
+
parsedResponse?: PostProcessingParsedResponse;
|
249
|
+
}
|
250
|
+
export interface PostProcessingParsedResponse {
|
251
|
+
text?: OutputString;
|
252
|
+
}
|
253
|
+
export interface PostProcessingTrace {
|
254
|
+
modelInvocationInput?: ModelInvocationInput;
|
255
|
+
modelInvocationOutput?: PostProcessingModelInvocationOutput;
|
256
|
+
}
|
257
|
+
export interface PreProcessingModelInvocationOutput {
|
258
|
+
traceId?: TraceId;
|
259
|
+
parsedResponse?: PreProcessingParsedResponse;
|
260
|
+
}
|
261
|
+
export interface PreProcessingParsedResponse {
|
262
|
+
rationale?: RationaleString;
|
263
|
+
/**
|
264
|
+
* Boolean value
|
265
|
+
*/
|
266
|
+
isValid?: Boolean;
|
267
|
+
}
|
268
|
+
export interface PreProcessingTrace {
|
269
|
+
modelInvocationInput?: ModelInvocationInput;
|
270
|
+
modelInvocationOutput?: PreProcessingModelInvocationOutput;
|
271
|
+
}
|
272
|
+
export type PromptSessionAttributesMap = {[key: string]: String};
|
273
|
+
export type PromptText = string;
|
274
|
+
export type PromptType = "PRE_PROCESSING"|"ORCHESTRATION"|"KNOWLEDGE_BASE_RESPONSE_GENERATION"|"POST_PROCESSING"|string;
|
275
|
+
export interface Rationale {
|
276
|
+
traceId?: TraceId;
|
277
|
+
text?: RationaleString;
|
278
|
+
}
|
279
|
+
export type RationaleString = string;
|
280
|
+
export interface RepromptResponse {
|
281
|
+
/**
|
282
|
+
* Reprompt response text
|
283
|
+
*/
|
284
|
+
text?: String;
|
285
|
+
source?: Source;
|
286
|
+
}
|
287
|
+
export interface RequestBody {
|
288
|
+
content?: ContentMap;
|
289
|
+
}
|
290
|
+
export interface ResourceNotFoundException {
|
291
|
+
message?: NonBlankString;
|
292
|
+
}
|
293
|
+
export type ResponseStream = EventStream<{chunk?:PayloadPart,trace?:TracePart,internalServerException?:InternalServerException,validationException?:ValidationException,resourceNotFoundException?:ResourceNotFoundException,serviceQuotaExceededException?:ServiceQuotaExceededException,throttlingException?:ThrottlingException,accessDeniedException?:AccessDeniedException,conflictException?:ConflictException,dependencyFailedException?:DependencyFailedException,badGatewayException?:BadGatewayException}>;
|
294
|
+
export interface RetrievalResultContent {
|
295
|
+
/**
|
296
|
+
* Content of a retrieval result in text
|
297
|
+
*/
|
298
|
+
text: String;
|
299
|
+
}
|
300
|
+
export interface RetrievalResultLocation {
|
301
|
+
type: RetrievalResultLocationType;
|
302
|
+
s3Location?: RetrievalResultS3Location;
|
303
|
+
}
|
304
|
+
export type RetrievalResultLocationType = "S3"|string;
|
305
|
+
export interface RetrievalResultS3Location {
|
306
|
+
/**
|
307
|
+
* URI of S3 location
|
308
|
+
*/
|
309
|
+
uri?: String;
|
310
|
+
}
|
311
|
+
export interface RetrieveAndGenerateConfiguration {
|
312
|
+
type: RetrieveAndGenerateType;
|
313
|
+
knowledgeBaseConfiguration?: KnowledgeBaseRetrieveAndGenerateConfiguration;
|
314
|
+
}
|
315
|
+
export interface RetrieveAndGenerateInput {
|
316
|
+
/**
|
317
|
+
* Customer input of the turn in text
|
318
|
+
*/
|
319
|
+
text: RetrieveAndGenerateInputTextString;
|
320
|
+
}
|
321
|
+
export type RetrieveAndGenerateInputTextString = string;
|
322
|
+
export interface RetrieveAndGenerateOutput {
|
323
|
+
/**
|
324
|
+
* Service response of the turn in text
|
325
|
+
*/
|
326
|
+
text: String;
|
327
|
+
}
|
328
|
+
export interface RetrieveAndGenerateRequest {
|
329
|
+
sessionId?: SessionId;
|
330
|
+
input: RetrieveAndGenerateInput;
|
331
|
+
retrieveAndGenerateConfiguration?: RetrieveAndGenerateConfiguration;
|
332
|
+
sessionConfiguration?: RetrieveAndGenerateSessionConfiguration;
|
333
|
+
}
|
334
|
+
export interface RetrieveAndGenerateResponse {
|
335
|
+
sessionId: SessionId;
|
336
|
+
output: RetrieveAndGenerateOutput;
|
337
|
+
citations?: Citations;
|
338
|
+
}
|
339
|
+
export interface RetrieveAndGenerateSessionConfiguration {
|
340
|
+
/**
|
341
|
+
* The KMS key arn to encrypt the customer data of the session.
|
342
|
+
*/
|
343
|
+
kmsKeyArn: KmsKeyArn;
|
344
|
+
}
|
345
|
+
export type RetrieveAndGenerateType = "KNOWLEDGE_BASE"|string;
|
346
|
+
export interface RetrieveRequest {
|
347
|
+
knowledgeBaseId: KnowledgeBaseId;
|
348
|
+
retrievalQuery: KnowledgeBaseQuery;
|
349
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration;
|
350
|
+
nextToken?: NextToken;
|
351
|
+
}
|
352
|
+
export interface RetrieveResponse {
|
353
|
+
retrievalResults: KnowledgeBaseRetrievalResults;
|
354
|
+
nextToken?: NextToken;
|
355
|
+
}
|
356
|
+
export interface RetrievedReference {
|
357
|
+
content?: RetrievalResultContent;
|
358
|
+
location?: RetrievalResultLocation;
|
359
|
+
}
|
360
|
+
export type RetrievedReferences = RetrievedReference[];
|
361
|
+
export interface ServiceQuotaExceededException {
|
362
|
+
message?: NonBlankString;
|
363
|
+
}
|
364
|
+
export type SessionAttributesMap = {[key: string]: String};
|
365
|
+
export type SessionId = string;
|
366
|
+
export interface SessionState {
|
367
|
+
/**
|
368
|
+
* Session Attributes
|
369
|
+
*/
|
370
|
+
sessionAttributes?: SessionAttributesMap;
|
371
|
+
/**
|
372
|
+
* Prompt Session Attributes
|
373
|
+
*/
|
374
|
+
promptSessionAttributes?: PromptSessionAttributesMap;
|
375
|
+
}
|
376
|
+
export type Source = "ACTION_GROUP"|"KNOWLEDGE_BASE"|"PARSER"|string;
|
377
|
+
export interface Span {
|
378
|
+
/**
|
379
|
+
* Start of span
|
380
|
+
*/
|
381
|
+
start?: SpanStartInteger;
|
382
|
+
/**
|
383
|
+
* End of span
|
384
|
+
*/
|
385
|
+
end?: SpanEndInteger;
|
386
|
+
}
|
387
|
+
export type SpanEndInteger = number;
|
388
|
+
export type SpanStartInteger = number;
|
389
|
+
export type StopSequences = String[];
|
390
|
+
export type String = string;
|
391
|
+
export type Temperature = number;
|
392
|
+
export interface TextResponsePart {
|
393
|
+
/**
|
394
|
+
* Response part in text
|
395
|
+
*/
|
396
|
+
text?: String;
|
397
|
+
span?: Span;
|
398
|
+
}
|
399
|
+
export interface ThrottlingException {
|
400
|
+
message?: NonBlankString;
|
401
|
+
}
|
402
|
+
export type TopK = number;
|
403
|
+
export type TopP = number;
|
404
|
+
export interface Trace {
|
405
|
+
preProcessingTrace?: PreProcessingTrace;
|
406
|
+
orchestrationTrace?: OrchestrationTrace;
|
407
|
+
postProcessingTrace?: PostProcessingTrace;
|
408
|
+
failureTrace?: FailureTrace;
|
409
|
+
}
|
410
|
+
export type TraceId = string;
|
411
|
+
export type TraceKnowledgeBaseId = string;
|
412
|
+
export interface TracePart {
|
413
|
+
agentId?: AgentId;
|
414
|
+
agentAliasId?: AgentAliasId;
|
415
|
+
sessionId?: SessionId;
|
416
|
+
trace?: Trace;
|
417
|
+
}
|
418
|
+
export type Type = "ACTION_GROUP"|"KNOWLEDGE_BASE"|"FINISH"|"ASK_USER"|"REPROMPT"|string;
|
419
|
+
export interface ValidationException {
|
420
|
+
message?: NonBlankString;
|
421
|
+
}
|
422
|
+
export type Verb = string;
|
423
|
+
/**
|
424
|
+
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
|
425
|
+
*/
|
426
|
+
export type apiVersion = "2023-07-26"|"latest"|string;
|
427
|
+
export interface ClientApiVersions {
|
428
|
+
/**
|
429
|
+
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
|
430
|
+
*/
|
431
|
+
apiVersion?: apiVersion;
|
432
|
+
}
|
433
|
+
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
434
|
+
/**
|
435
|
+
* Contains interfaces for use with the BedrockAgentRuntime client.
|
436
|
+
*/
|
437
|
+
export import Types = BedrockAgentRuntime;
|
438
|
+
}
|
439
|
+
export = BedrockAgentRuntime;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require('../lib/node_loader');
|
2
|
+
var AWS = require('../lib/core');
|
3
|
+
var Service = AWS.Service;
|
4
|
+
var apiLoader = AWS.apiLoader;
|
5
|
+
|
6
|
+
apiLoader.services['bedrockagentruntime'] = {};
|
7
|
+
AWS.BedrockAgentRuntime = Service.defineService('bedrockagentruntime', ['2023-07-26']);
|
8
|
+
Object.defineProperty(apiLoader.services['bedrockagentruntime'], '2023-07-26', {
|
9
|
+
get: function get() {
|
10
|
+
var model = require('../apis/bedrock-agent-runtime-2023-07-26.min.json');
|
11
|
+
model.paginators = require('../apis/bedrock-agent-runtime-2023-07-26.paginators.json').pagination;
|
12
|
+
return model;
|
13
|
+
},
|
14
|
+
enumerable: true,
|
15
|
+
configurable: true
|
16
|
+
});
|
17
|
+
|
18
|
+
module.exports = AWS.BedrockAgentRuntime;
|
@@ -36,10 +36,6 @@ declare namespace BedrockRuntime {
|
|
36
36
|
}
|
37
37
|
export type InvokeModelIdentifier = string;
|
38
38
|
export interface InvokeModelRequest {
|
39
|
-
/**
|
40
|
-
* The desired MIME type of the inference body in the response. The default value is application/json.
|
41
|
-
*/
|
42
|
-
accept?: MimeType;
|
43
39
|
/**
|
44
40
|
* Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to Inference parameters.
|
45
41
|
*/
|
@@ -48,6 +44,10 @@ declare namespace BedrockRuntime {
|
|
48
44
|
* The MIME type of the input data in the request. The default value is application/json.
|
49
45
|
*/
|
50
46
|
contentType?: MimeType;
|
47
|
+
/**
|
48
|
+
* The desired MIME type of the inference body in the response. The default value is application/json.
|
49
|
+
*/
|
50
|
+
accept?: MimeType;
|
51
51
|
/**
|
52
52
|
* Identifier of the model.
|
53
53
|
*/
|
@@ -64,10 +64,6 @@ declare namespace BedrockRuntime {
|
|
64
64
|
contentType: MimeType;
|
65
65
|
}
|
66
66
|
export interface InvokeModelWithResponseStreamRequest {
|
67
|
-
/**
|
68
|
-
* The desired MIME type of the inference body in the response. The default value is application/json.
|
69
|
-
*/
|
70
|
-
accept?: MimeType;
|
71
67
|
/**
|
72
68
|
* Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to Inference parameters.
|
73
69
|
*/
|
@@ -76,6 +72,10 @@ declare namespace BedrockRuntime {
|
|
76
72
|
* The MIME type of the input data in the request. The default value is application/json.
|
77
73
|
*/
|
78
74
|
contentType?: MimeType;
|
75
|
+
/**
|
76
|
+
* The desired MIME type of the inference body in the response. The default value is application/json.
|
77
|
+
*/
|
78
|
+
accept?: MimeType;
|
79
79
|
/**
|
80
80
|
* Id of the model to invoke using the streaming request.
|
81
81
|
*/
|
@@ -94,14 +94,14 @@ declare namespace BedrockRuntime {
|
|
94
94
|
export type MimeType = string;
|
95
95
|
export interface ModelStreamErrorException {
|
96
96
|
message?: NonBlankString;
|
97
|
-
/**
|
98
|
-
* The original message.
|
99
|
-
*/
|
100
|
-
originalMessage?: NonBlankString;
|
101
97
|
/**
|
102
98
|
* The original status code.
|
103
99
|
*/
|
104
100
|
originalStatusCode?: StatusCode;
|
101
|
+
/**
|
102
|
+
* The original message.
|
103
|
+
*/
|
104
|
+
originalMessage?: NonBlankString;
|
105
105
|
}
|
106
106
|
export interface ModelTimeoutException {
|
107
107
|
message?: NonBlankString;
|
@@ -114,7 +114,7 @@ declare namespace BedrockRuntime {
|
|
114
114
|
*/
|
115
115
|
bytes?: PartBody;
|
116
116
|
}
|
117
|
-
export type ResponseStream = EventStream<{chunk?:PayloadPart,internalServerException?:InternalServerException,modelStreamErrorException?:ModelStreamErrorException,
|
117
|
+
export type ResponseStream = EventStream<{chunk?:PayloadPart,internalServerException?:InternalServerException,modelStreamErrorException?:ModelStreamErrorException,validationException?:ValidationException,throttlingException?:ThrottlingException,modelTimeoutException?:ModelTimeoutException}>;
|
118
118
|
export type StatusCode = number;
|
119
119
|
export interface ThrottlingException {
|
120
120
|
message?: NonBlankString;
|
@@ -9,6 +9,7 @@ Object.defineProperty(apiLoader.services['bedrockruntime'], '2023-09-30', {
|
|
9
9
|
get: function get() {
|
10
10
|
var model = require('../apis/bedrock-runtime-2023-09-30.min.json');
|
11
11
|
model.paginators = require('../apis/bedrock-runtime-2023-09-30.paginators.json').pagination;
|
12
|
+
model.waiters = require('../apis/bedrock-runtime-2023-09-30.waiters2.json').waiters;
|
12
13
|
return model;
|
13
14
|
},
|
14
15
|
enumerable: true,
|
@@ -60,11 +60,11 @@ declare class CloudTrail extends Service {
|
|
60
60
|
*/
|
61
61
|
deleteChannel(callback?: (err: AWSError, data: CloudTrail.Types.DeleteChannelResponse) => void): Request<CloudTrail.Types.DeleteChannelResponse, AWSError>;
|
62
62
|
/**
|
63
|
-
* Disables the event data store specified by EventDataStore, which accepts an event data store ARN. After you run DeleteEventDataStore, the event data store enters a PENDING_DELETION state, and is automatically deleted after a wait period of seven days. TerminationProtectionEnabled must be set to False on the event data store
|
63
|
+
* Disables the event data store specified by EventDataStore, which accepts an event data store ARN. After you run DeleteEventDataStore, the event data store enters a PENDING_DELETION state, and is automatically deleted after a wait period of seven days. TerminationProtectionEnabled must be set to False on the event data store and the FederationStatus must be DISABLED. You cannot delete an event data store if TerminationProtectionEnabled is True or the FederationStatus is ENABLED. After you run DeleteEventDataStore on an event data store, you cannot run ListQueries, DescribeQuery, or GetQueryResults on queries that are using an event data store in a PENDING_DELETION state. An event data store in the PENDING_DELETION state does not incur costs.
|
64
64
|
*/
|
65
65
|
deleteEventDataStore(params: CloudTrail.Types.DeleteEventDataStoreRequest, callback?: (err: AWSError, data: CloudTrail.Types.DeleteEventDataStoreResponse) => void): Request<CloudTrail.Types.DeleteEventDataStoreResponse, AWSError>;
|
66
66
|
/**
|
67
|
-
* Disables the event data store specified by EventDataStore, which accepts an event data store ARN. After you run DeleteEventDataStore, the event data store enters a PENDING_DELETION state, and is automatically deleted after a wait period of seven days. TerminationProtectionEnabled must be set to False on the event data store
|
67
|
+
* Disables the event data store specified by EventDataStore, which accepts an event data store ARN. After you run DeleteEventDataStore, the event data store enters a PENDING_DELETION state, and is automatically deleted after a wait period of seven days. TerminationProtectionEnabled must be set to False on the event data store and the FederationStatus must be DISABLED. You cannot delete an event data store if TerminationProtectionEnabled is True or the FederationStatus is ENABLED. After you run DeleteEventDataStore on an event data store, you cannot run ListQueries, DescribeQuery, or GetQueryResults on queries that are using an event data store in a PENDING_DELETION state. An event data store in the PENDING_DELETION state does not incur costs.
|
68
68
|
*/
|
69
69
|
deleteEventDataStore(callback?: (err: AWSError, data: CloudTrail.Types.DeleteEventDataStoreResponse) => void): Request<CloudTrail.Types.DeleteEventDataStoreResponse, AWSError>;
|
70
70
|
/**
|
@@ -107,6 +107,22 @@ declare class CloudTrail extends Service {
|
|
107
107
|
* Retrieves settings for one or more trails associated with the current Region for your account.
|
108
108
|
*/
|
109
109
|
describeTrails(callback?: (err: AWSError, data: CloudTrail.Types.DescribeTrailsResponse) => void): Request<CloudTrail.Types.DescribeTrailsResponse, AWSError>;
|
110
|
+
/**
|
111
|
+
* Disables Lake query federation on the specified event data store. When you disable federation, CloudTrail removes the metadata associated with the federated event data store in the Glue Data Catalog and removes registration for the federation role ARN and event data store in Lake Formation. No CloudTrail Lake data is deleted when you disable federation.
|
112
|
+
*/
|
113
|
+
disableFederation(params: CloudTrail.Types.DisableFederationRequest, callback?: (err: AWSError, data: CloudTrail.Types.DisableFederationResponse) => void): Request<CloudTrail.Types.DisableFederationResponse, AWSError>;
|
114
|
+
/**
|
115
|
+
* Disables Lake query federation on the specified event data store. When you disable federation, CloudTrail removes the metadata associated with the federated event data store in the Glue Data Catalog and removes registration for the federation role ARN and event data store in Lake Formation. No CloudTrail Lake data is deleted when you disable federation.
|
116
|
+
*/
|
117
|
+
disableFederation(callback?: (err: AWSError, data: CloudTrail.Types.DisableFederationResponse) => void): Request<CloudTrail.Types.DisableFederationResponse, AWSError>;
|
118
|
+
/**
|
119
|
+
* Enables Lake query federation on the specified event data store. Federating an event data store lets you view the metadata associated with the event data store in the Glue Data Catalog and run SQL queries against your event data using Amazon Athena. The table metadata stored in the Glue Data Catalog lets the Athena query engine know how to find, read, and process the data that you want to query. When you enable Lake query federation, CloudTrail creates a federated database named aws:cloudtrail (if the database doesn't already exist) and a federated table in the Glue Data Catalog. The event data store ID is used for the table name. CloudTrail registers the role ARN and event data store in Lake Formation, the service responsible for revoking or granting permissions to the federated resources in the Glue Data Catalog. For more information about Lake query federation, see Federate an event data store.
|
120
|
+
*/
|
121
|
+
enableFederation(params: CloudTrail.Types.EnableFederationRequest, callback?: (err: AWSError, data: CloudTrail.Types.EnableFederationResponse) => void): Request<CloudTrail.Types.EnableFederationResponse, AWSError>;
|
122
|
+
/**
|
123
|
+
* Enables Lake query federation on the specified event data store. Federating an event data store lets you view the metadata associated with the event data store in the Glue Data Catalog and run SQL queries against your event data using Amazon Athena. The table metadata stored in the Glue Data Catalog lets the Athena query engine know how to find, read, and process the data that you want to query. When you enable Lake query federation, CloudTrail creates a federated database named aws:cloudtrail (if the database doesn't already exist) and a federated table in the Glue Data Catalog. The event data store ID is used for the table name. CloudTrail registers the role ARN and event data store in Lake Formation, the service responsible for revoking or granting permissions to the federated resources in the Glue Data Catalog. For more information about Lake query federation, see Federate an event data store.
|
124
|
+
*/
|
125
|
+
enableFederation(callback?: (err: AWSError, data: CloudTrail.Types.EnableFederationResponse) => void): Request<CloudTrail.Types.EnableFederationResponse, AWSError>;
|
110
126
|
/**
|
111
127
|
* Returns information about a specific channel.
|
112
128
|
*/
|
@@ -824,6 +840,46 @@ declare namespace CloudTrail {
|
|
824
840
|
}
|
825
841
|
export type DestinationType = "EVENT_DATA_STORE"|"AWS_SERVICE"|string;
|
826
842
|
export type Destinations = Destination[];
|
843
|
+
export interface DisableFederationRequest {
|
844
|
+
/**
|
845
|
+
* The ARN (or ID suffix of the ARN) of the event data store for which you want to disable Lake query federation.
|
846
|
+
*/
|
847
|
+
EventDataStore: EventDataStoreArn;
|
848
|
+
}
|
849
|
+
export interface DisableFederationResponse {
|
850
|
+
/**
|
851
|
+
* The ARN of the event data store for which you disabled Lake query federation.
|
852
|
+
*/
|
853
|
+
EventDataStoreArn?: EventDataStoreArn;
|
854
|
+
/**
|
855
|
+
* The federation status.
|
856
|
+
*/
|
857
|
+
FederationStatus?: FederationStatus;
|
858
|
+
}
|
859
|
+
export interface EnableFederationRequest {
|
860
|
+
/**
|
861
|
+
* The ARN (or ID suffix of the ARN) of the event data store for which you want to enable Lake query federation.
|
862
|
+
*/
|
863
|
+
EventDataStore: EventDataStoreArn;
|
864
|
+
/**
|
865
|
+
* The ARN of the federation role to use for the event data store. Amazon Web Services services like Lake Formation use this federation role to access data for the federated event data store. The federation role must exist in your account and provide the required minimum permissions.
|
866
|
+
*/
|
867
|
+
FederationRoleArn: FederationRoleArn;
|
868
|
+
}
|
869
|
+
export interface EnableFederationResponse {
|
870
|
+
/**
|
871
|
+
* The ARN of the event data store for which you enabled Lake query federation.
|
872
|
+
*/
|
873
|
+
EventDataStoreArn?: EventDataStoreArn;
|
874
|
+
/**
|
875
|
+
* The federation status.
|
876
|
+
*/
|
877
|
+
FederationStatus?: FederationStatus;
|
878
|
+
/**
|
879
|
+
* The ARN of the federation role.
|
880
|
+
*/
|
881
|
+
FederationRoleArn?: FederationRoleArn;
|
882
|
+
}
|
827
883
|
export type ErrorMessage = string;
|
828
884
|
export interface Event {
|
829
885
|
/**
|
@@ -932,6 +988,8 @@ declare namespace CloudTrail {
|
|
932
988
|
export type EventSelectors = EventSelector[];
|
933
989
|
export type EventsList = Event[];
|
934
990
|
export type ExcludeManagementEventSources = String[];
|
991
|
+
export type FederationRoleArn = string;
|
992
|
+
export type FederationStatus = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|string;
|
935
993
|
export interface GetChannelRequest {
|
936
994
|
/**
|
937
995
|
* The ARN or UUID of a channel.
|
@@ -1019,6 +1077,14 @@ declare namespace CloudTrail {
|
|
1019
1077
|
* The billing mode for the event data store.
|
1020
1078
|
*/
|
1021
1079
|
BillingMode?: BillingMode;
|
1080
|
+
/**
|
1081
|
+
* Indicates the Lake query federation status. The status is ENABLED if Lake query federation is enabled, or DISABLED if Lake query federation is disabled. You cannot delete an event data store if the FederationStatus is ENABLED.
|
1082
|
+
*/
|
1083
|
+
FederationStatus?: FederationStatus;
|
1084
|
+
/**
|
1085
|
+
* If Lake query federation is enabled, provides the ARN of the federation role used to access the resources for the federated event data store.
|
1086
|
+
*/
|
1087
|
+
FederationRoleArn?: FederationRoleArn;
|
1022
1088
|
}
|
1023
1089
|
export interface GetEventSelectorsRequest {
|
1024
1090
|
/**
|
@@ -2279,6 +2345,14 @@ declare namespace CloudTrail {
|
|
2279
2345
|
* The billing mode for the event data store.
|
2280
2346
|
*/
|
2281
2347
|
BillingMode?: BillingMode;
|
2348
|
+
/**
|
2349
|
+
* Indicates the Lake query federation status. The status is ENABLED if Lake query federation is enabled, or DISABLED if Lake query federation is disabled. You cannot delete an event data store if the FederationStatus is ENABLED.
|
2350
|
+
*/
|
2351
|
+
FederationStatus?: FederationStatus;
|
2352
|
+
/**
|
2353
|
+
* If Lake query federation is enabled, provides the ARN of the federation role used to access the resources for the federated event data store.
|
2354
|
+
*/
|
2355
|
+
FederationRoleArn?: FederationRoleArn;
|
2282
2356
|
}
|
2283
2357
|
export interface UpdateTrailRequest {
|
2284
2358
|
/**
|