@aws-sdk/client-cloudtrail-data 3.262.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/LICENSE +201 -0
- package/README.md +210 -0
- package/dist-cjs/CloudTrailData.js +22 -0
- package/dist-cjs/CloudTrailDataClient.js +40 -0
- package/dist-cjs/commands/PutAuditEventsCommand.js +46 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/CloudTrailDataServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +102 -0
- package/dist-cjs/protocols/Aws_restJson1.js +265 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/CloudTrailData.js +18 -0
- package/dist-es/CloudTrailDataClient.js +36 -0
- package/dist-es/commands/PutAuditEventsCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/CloudTrailDataServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +88 -0
- package/dist-es/protocols/Aws_restJson1.js +260 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/CloudTrailData.d.ts +23 -0
- package/dist-types/CloudTrailDataClient.d.ts +147 -0
- package/dist-types/commands/PutAuditEventsCommand.d.ts +41 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/CloudTrailDataServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +174 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +5 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/CloudTrailData.d.ts +21 -0
- package/dist-types/ts3.4/CloudTrailDataClient.d.ts +117 -0
- package/dist-types/ts3.4/commands/PutAuditEventsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/CloudTrailDataServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +76 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +17 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +102 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PutAuditEventsCommand";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";
|
|
2
|
+
export interface ClientInputEndpointParameters {
|
|
3
|
+
region?: string | Provider<string>;
|
|
4
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
5
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
6
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
7
|
+
}
|
|
8
|
+
export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
9
|
+
defaultSigningName: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
12
|
+
defaultSigningName: string;
|
|
13
|
+
};
|
|
14
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
+
Region: string;
|
|
16
|
+
UseDualStack?: boolean;
|
|
17
|
+
UseFIPS?: boolean;
|
|
18
|
+
Endpoint?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from CloudTrailData service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CloudTrailDataServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { CloudTrailDataServiceException as __BaseException } from "./CloudTrailDataServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* <p>An event from a source outside of Amazon Web Services that you want CloudTrail
|
|
5
|
+
* to log.</p>
|
|
6
|
+
*/
|
|
7
|
+
export interface AuditEvent {
|
|
8
|
+
/**
|
|
9
|
+
* <p>The original event ID from the source event.</p>
|
|
10
|
+
*/
|
|
11
|
+
id: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* <p>The content of an audit event that comes from the event, such as <code>userIdentity</code>,
|
|
14
|
+
* <code>userAgent</code>, and <code>eventSource</code>.</p>
|
|
15
|
+
*/
|
|
16
|
+
eventData: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* <p>A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that matches
|
|
19
|
+
* with the checksum. Calculate the checksum by running a command like the following:</p>
|
|
20
|
+
* <p>
|
|
21
|
+
* <code>printf %s <i>$eventdata</i> | openssl dgst -binary -sha256 | base64</code>
|
|
22
|
+
* </p>
|
|
23
|
+
*/
|
|
24
|
+
eventDataChecksum?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* <p>A response that includes successful and failed event results.</p>
|
|
28
|
+
*/
|
|
29
|
+
export interface AuditEventResultEntry {
|
|
30
|
+
/**
|
|
31
|
+
* <p>The original event ID from the source event.</p>
|
|
32
|
+
*/
|
|
33
|
+
id: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* <p>The event ID assigned by CloudTrail.</p>
|
|
36
|
+
*/
|
|
37
|
+
eventID: string | undefined;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* <p>The caller's account ID must be the same as the channel owner's account ID.</p>
|
|
41
|
+
*/
|
|
42
|
+
export declare class ChannelInsufficientPermission extends __BaseException {
|
|
43
|
+
readonly name: "ChannelInsufficientPermission";
|
|
44
|
+
readonly $fault: "client";
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
constructor(opts: __ExceptionOptionType<ChannelInsufficientPermission, __BaseException>);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* <p>The channel could not be found.</p>
|
|
52
|
+
*/
|
|
53
|
+
export declare class ChannelNotFound extends __BaseException {
|
|
54
|
+
readonly name: "ChannelNotFound";
|
|
55
|
+
readonly $fault: "client";
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
constructor(opts: __ExceptionOptionType<ChannelNotFound, __BaseException>);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* <p>The schema type of the event is not supported.</p>
|
|
63
|
+
*/
|
|
64
|
+
export declare class ChannelUnsupportedSchema extends __BaseException {
|
|
65
|
+
readonly name: "ChannelUnsupportedSchema";
|
|
66
|
+
readonly $fault: "client";
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
constructor(opts: __ExceptionOptionType<ChannelUnsupportedSchema, __BaseException>);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* <p>Two or more entries in the request have the same event ID.</p>
|
|
74
|
+
*/
|
|
75
|
+
export declare class DuplicatedAuditEventId extends __BaseException {
|
|
76
|
+
readonly name: "DuplicatedAuditEventId";
|
|
77
|
+
readonly $fault: "client";
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
constructor(opts: __ExceptionOptionType<DuplicatedAuditEventId, __BaseException>);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* <p>The specified channel ARN is not a valid
|
|
85
|
+
* channel ARN.</p>
|
|
86
|
+
*/
|
|
87
|
+
export declare class InvalidChannelARN extends __BaseException {
|
|
88
|
+
readonly name: "InvalidChannelARN";
|
|
89
|
+
readonly $fault: "client";
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
constructor(opts: __ExceptionOptionType<InvalidChannelARN, __BaseException>);
|
|
94
|
+
}
|
|
95
|
+
export interface PutAuditEventsRequest {
|
|
96
|
+
/**
|
|
97
|
+
* <p>The JSON payload of events that you want to ingest. You can also point to the JSON event
|
|
98
|
+
* payload in a file.</p>
|
|
99
|
+
*/
|
|
100
|
+
auditEvents: AuditEvent[] | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* <p>The ARN or ID (the ARN suffix) of a channel.</p>
|
|
103
|
+
*/
|
|
104
|
+
channelArn: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* <p>A unique identifier that is conditionally required when the channel's resource policy includes an external
|
|
107
|
+
* ID. This value can be any string,
|
|
108
|
+
* such as a passphrase or account number.</p>
|
|
109
|
+
*/
|
|
110
|
+
externalId?: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* <p>Includes the error code and error message for events that could not be ingested by CloudTrail.</p>
|
|
114
|
+
*/
|
|
115
|
+
export interface ResultErrorEntry {
|
|
116
|
+
/**
|
|
117
|
+
* <p>The original event ID from the source event that could not be ingested by CloudTrail.</p>
|
|
118
|
+
*/
|
|
119
|
+
id: string | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* <p>The error code for events that could not be ingested by CloudTrail. Possible error codes include: <code>FieldTooLong</code>, <code>FieldNotFound</code>,
|
|
122
|
+
* <code>InvalidChecksum</code>, <code>InvalidData</code>, <code>InvalidRecipient</code>, <code>InvalidEventSource</code>, <code>AccountNotSubscribed</code>,
|
|
123
|
+
* <code>Throttling</code>, and <code>InternalFailure</code>.</p>
|
|
124
|
+
*/
|
|
125
|
+
errorCode: string | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* <p>The message that describes the error for events that could not be ingested by CloudTrail.</p>
|
|
128
|
+
*/
|
|
129
|
+
errorMessage: string | undefined;
|
|
130
|
+
}
|
|
131
|
+
export interface PutAuditEventsResponse {
|
|
132
|
+
/**
|
|
133
|
+
* <p>Lists events in the provided event payload that were successfully ingested
|
|
134
|
+
* into CloudTrail.</p>
|
|
135
|
+
*/
|
|
136
|
+
successful: AuditEventResultEntry[] | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* <p>Lists events in the provided event payload that could not be
|
|
139
|
+
* ingested into CloudTrail, and includes the error code and error message
|
|
140
|
+
* returned for events that could not be ingested.</p>
|
|
141
|
+
*/
|
|
142
|
+
failed: ResultErrorEntry[] | undefined;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* <p>The operation requested is not supported in this region or account.</p>
|
|
146
|
+
*/
|
|
147
|
+
export declare class UnsupportedOperationException extends __BaseException {
|
|
148
|
+
readonly name: "UnsupportedOperationException";
|
|
149
|
+
readonly $fault: "client";
|
|
150
|
+
/**
|
|
151
|
+
* @internal
|
|
152
|
+
*/
|
|
153
|
+
constructor(opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
export declare const AuditEventFilterSensitiveLog: (obj: AuditEvent) => any;
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
162
|
+
export declare const AuditEventResultEntryFilterSensitiveLog: (obj: AuditEventResultEntry) => any;
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
export declare const PutAuditEventsRequestFilterSensitiveLog: (obj: PutAuditEventsRequest) => any;
|
|
167
|
+
/**
|
|
168
|
+
* @internal
|
|
169
|
+
*/
|
|
170
|
+
export declare const ResultErrorEntryFilterSensitiveLog: (obj: ResultErrorEntry) => any;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
export declare const PutAuditEventsResponseFilterSensitiveLog: (obj: PutAuditEventsResponse) => any;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
|
+
import { PutAuditEventsCommandInput, PutAuditEventsCommandOutput } from "../commands/PutAuditEventsCommand";
|
|
4
|
+
export declare const serializeAws_restJson1PutAuditEventsCommand: (input: PutAuditEventsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
5
|
+
export declare const deserializeAws_restJson1PutAuditEventsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutAuditEventsCommandOutput>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
|
+
import { CloudTrailDataClientConfig } from "./CloudTrailDataClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: CloudTrailDataClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
13
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
16
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
18
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
|
+
apiVersion: string;
|
|
21
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
22
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
23
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
24
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
25
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
logger: import("@aws-sdk/types").Logger;
|
|
28
|
+
serviceId: string;
|
|
29
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
30
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
32
|
+
}) => import("@aws-sdk/types").EndpointV2;
|
|
33
|
+
tls?: boolean | undefined;
|
|
34
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
|
|
35
|
+
credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
|
|
36
|
+
signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
|
|
37
|
+
signingEscapePath?: boolean | undefined;
|
|
38
|
+
systemClockOffset?: number | undefined;
|
|
39
|
+
signingRegion?: string | undefined;
|
|
40
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
41
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
|
+
import { CloudTrailDataClientConfig } from "./CloudTrailDataClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: CloudTrailDataClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
13
|
+
region: string | import("@aws-sdk/types").Provider<string>;
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
16
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
18
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
|
+
apiVersion: string;
|
|
21
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
22
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
23
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
24
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
25
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
logger: import("@aws-sdk/types").Logger;
|
|
28
|
+
serviceId: string;
|
|
29
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
30
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
32
|
+
}) => import("@aws-sdk/types").EndpointV2;
|
|
33
|
+
tls?: boolean | undefined;
|
|
34
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
|
|
35
|
+
credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
|
|
36
|
+
signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
|
|
37
|
+
signingEscapePath?: boolean | undefined;
|
|
38
|
+
systemClockOffset?: number | undefined;
|
|
39
|
+
signingRegion?: string | undefined;
|
|
40
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
41
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
42
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CloudTrailDataClientConfig } from "./CloudTrailDataClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: CloudTrailDataClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
8
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
|
+
apiVersion: string;
|
|
10
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
15
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
16
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
17
|
+
disableHostPrefix: boolean;
|
|
18
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
19
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
20
|
+
logger: import("@aws-sdk/types").Logger;
|
|
21
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
|
+
serviceId: string;
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
27
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
28
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> | undefined;
|
|
29
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
30
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
31
|
+
}) => import("@aws-sdk/types").EndpointV2;
|
|
32
|
+
tls?: boolean | undefined;
|
|
33
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
|
|
34
|
+
credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
|
|
35
|
+
signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
|
|
36
|
+
signingEscapePath?: boolean | undefined;
|
|
37
|
+
systemClockOffset?: number | undefined;
|
|
38
|
+
signingRegion?: string | undefined;
|
|
39
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
40
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
41
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CloudTrailDataClientConfig } from "./CloudTrailDataClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: CloudTrailDataClientConfig) => {
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
+
disableHostPrefix: boolean;
|
|
10
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
11
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
12
|
+
}) => import("@aws-sdk/types").EndpointV2;
|
|
13
|
+
logger: import("@aws-sdk/types").Logger;
|
|
14
|
+
serviceId: string;
|
|
15
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
16
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
17
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { CloudTrailDataClient } from "./CloudTrailDataClient";
|
|
3
|
+
import {
|
|
4
|
+
PutAuditEventsCommandInput,
|
|
5
|
+
PutAuditEventsCommandOutput,
|
|
6
|
+
} from "./commands/PutAuditEventsCommand";
|
|
7
|
+
export declare class CloudTrailData extends CloudTrailDataClient {
|
|
8
|
+
putAuditEvents(
|
|
9
|
+
args: PutAuditEventsCommandInput,
|
|
10
|
+
options?: __HttpHandlerOptions
|
|
11
|
+
): Promise<PutAuditEventsCommandOutput>;
|
|
12
|
+
putAuditEvents(
|
|
13
|
+
args: PutAuditEventsCommandInput,
|
|
14
|
+
cb: (err: any, data?: PutAuditEventsCommandOutput) => void
|
|
15
|
+
): void;
|
|
16
|
+
putAuditEvents(
|
|
17
|
+
args: PutAuditEventsCommandInput,
|
|
18
|
+
options: __HttpHandlerOptions,
|
|
19
|
+
cb: (err: any, data?: PutAuditEventsCommandOutput) => void
|
|
20
|
+
): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RegionInputConfig,
|
|
3
|
+
RegionResolvedConfig,
|
|
4
|
+
} from "@aws-sdk/config-resolver";
|
|
5
|
+
import {
|
|
6
|
+
EndpointInputConfig,
|
|
7
|
+
EndpointResolvedConfig,
|
|
8
|
+
} from "@aws-sdk/middleware-endpoint";
|
|
9
|
+
import {
|
|
10
|
+
HostHeaderInputConfig,
|
|
11
|
+
HostHeaderResolvedConfig,
|
|
12
|
+
} from "@aws-sdk/middleware-host-header";
|
|
13
|
+
import {
|
|
14
|
+
RetryInputConfig,
|
|
15
|
+
RetryResolvedConfig,
|
|
16
|
+
} from "@aws-sdk/middleware-retry";
|
|
17
|
+
import {
|
|
18
|
+
AwsAuthInputConfig,
|
|
19
|
+
AwsAuthResolvedConfig,
|
|
20
|
+
} from "@aws-sdk/middleware-signing";
|
|
21
|
+
import {
|
|
22
|
+
UserAgentInputConfig,
|
|
23
|
+
UserAgentResolvedConfig,
|
|
24
|
+
} from "@aws-sdk/middleware-user-agent";
|
|
25
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
26
|
+
import {
|
|
27
|
+
Client as __Client,
|
|
28
|
+
DefaultsMode as __DefaultsMode,
|
|
29
|
+
SmithyConfiguration as __SmithyConfiguration,
|
|
30
|
+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
31
|
+
} from "@aws-sdk/smithy-client";
|
|
32
|
+
import {
|
|
33
|
+
BodyLengthCalculator as __BodyLengthCalculator,
|
|
34
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
35
|
+
Credentials as __Credentials,
|
|
36
|
+
Decoder as __Decoder,
|
|
37
|
+
Encoder as __Encoder,
|
|
38
|
+
HashConstructor as __HashConstructor,
|
|
39
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
40
|
+
Logger as __Logger,
|
|
41
|
+
Provider as __Provider,
|
|
42
|
+
Provider,
|
|
43
|
+
StreamCollector as __StreamCollector,
|
|
44
|
+
UrlParser as __UrlParser,
|
|
45
|
+
UserAgent as __UserAgent,
|
|
46
|
+
} from "@aws-sdk/types";
|
|
47
|
+
import {
|
|
48
|
+
PutAuditEventsCommandInput,
|
|
49
|
+
PutAuditEventsCommandOutput,
|
|
50
|
+
} from "./commands/PutAuditEventsCommand";
|
|
51
|
+
import {
|
|
52
|
+
ClientInputEndpointParameters,
|
|
53
|
+
ClientResolvedEndpointParameters,
|
|
54
|
+
EndpointParameters,
|
|
55
|
+
} from "./endpoint/EndpointParameters";
|
|
56
|
+
export declare type ServiceInputTypes = PutAuditEventsCommandInput;
|
|
57
|
+
export declare type ServiceOutputTypes = PutAuditEventsCommandOutput;
|
|
58
|
+
export interface ClientDefaults
|
|
59
|
+
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
60
|
+
requestHandler?: __HttpHandler;
|
|
61
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
62
|
+
urlParser?: __UrlParser;
|
|
63
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
64
|
+
streamCollector?: __StreamCollector;
|
|
65
|
+
base64Decoder?: __Decoder;
|
|
66
|
+
base64Encoder?: __Encoder;
|
|
67
|
+
utf8Decoder?: __Decoder;
|
|
68
|
+
utf8Encoder?: __Encoder;
|
|
69
|
+
runtime?: string;
|
|
70
|
+
disableHostPrefix?: boolean;
|
|
71
|
+
maxAttempts?: number | __Provider<number>;
|
|
72
|
+
retryMode?: string | __Provider<string>;
|
|
73
|
+
logger?: __Logger;
|
|
74
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
75
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
76
|
+
serviceId?: string;
|
|
77
|
+
region?: string | __Provider<string>;
|
|
78
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
79
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
80
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
81
|
+
}
|
|
82
|
+
declare type CloudTrailDataClientConfigType = Partial<
|
|
83
|
+
__SmithyConfiguration<__HttpHandlerOptions>
|
|
84
|
+
> &
|
|
85
|
+
ClientDefaults &
|
|
86
|
+
RegionInputConfig &
|
|
87
|
+
EndpointInputConfig<EndpointParameters> &
|
|
88
|
+
RetryInputConfig &
|
|
89
|
+
HostHeaderInputConfig &
|
|
90
|
+
AwsAuthInputConfig &
|
|
91
|
+
UserAgentInputConfig &
|
|
92
|
+
ClientInputEndpointParameters;
|
|
93
|
+
export interface CloudTrailDataClientConfig
|
|
94
|
+
extends CloudTrailDataClientConfigType {}
|
|
95
|
+
declare type CloudTrailDataClientResolvedConfigType =
|
|
96
|
+
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
97
|
+
Required<ClientDefaults> &
|
|
98
|
+
RegionResolvedConfig &
|
|
99
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
100
|
+
RetryResolvedConfig &
|
|
101
|
+
HostHeaderResolvedConfig &
|
|
102
|
+
AwsAuthResolvedConfig &
|
|
103
|
+
UserAgentResolvedConfig &
|
|
104
|
+
ClientResolvedEndpointParameters;
|
|
105
|
+
export interface CloudTrailDataClientResolvedConfig
|
|
106
|
+
extends CloudTrailDataClientResolvedConfigType {}
|
|
107
|
+
export declare class CloudTrailDataClient extends __Client<
|
|
108
|
+
__HttpHandlerOptions,
|
|
109
|
+
ServiceInputTypes,
|
|
110
|
+
ServiceOutputTypes,
|
|
111
|
+
CloudTrailDataClientResolvedConfig
|
|
112
|
+
> {
|
|
113
|
+
readonly config: CloudTrailDataClientResolvedConfig;
|
|
114
|
+
constructor(configuration: CloudTrailDataClientConfig);
|
|
115
|
+
destroy(): void;
|
|
116
|
+
}
|
|
117
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
CloudTrailDataClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../CloudTrailDataClient";
|
|
14
|
+
import {
|
|
15
|
+
PutAuditEventsRequest,
|
|
16
|
+
PutAuditEventsResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export interface PutAuditEventsCommandInput extends PutAuditEventsRequest {}
|
|
19
|
+
export interface PutAuditEventsCommandOutput
|
|
20
|
+
extends PutAuditEventsResponse,
|
|
21
|
+
__MetadataBearer {}
|
|
22
|
+
export declare class PutAuditEventsCommand extends $Command<
|
|
23
|
+
PutAuditEventsCommandInput,
|
|
24
|
+
PutAuditEventsCommandOutput,
|
|
25
|
+
CloudTrailDataClientResolvedConfig
|
|
26
|
+
> {
|
|
27
|
+
readonly input: PutAuditEventsCommandInput;
|
|
28
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
29
|
+
constructor(input: PutAuditEventsCommandInput);
|
|
30
|
+
resolveMiddleware(
|
|
31
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
32
|
+
configuration: CloudTrailDataClientResolvedConfig,
|
|
33
|
+
options?: __HttpHandlerOptions
|
|
34
|
+
): Handler<PutAuditEventsCommandInput, PutAuditEventsCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PutAuditEventsCommand";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Endpoint,
|
|
3
|
+
EndpointParameters as __EndpointParameters,
|
|
4
|
+
EndpointV2,
|
|
5
|
+
Provider,
|
|
6
|
+
} from "@aws-sdk/types";
|
|
7
|
+
export interface ClientInputEndpointParameters {
|
|
8
|
+
region?: string | Provider<string>;
|
|
9
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
10
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
11
|
+
endpoint?:
|
|
12
|
+
| string
|
|
13
|
+
| Provider<string>
|
|
14
|
+
| Endpoint
|
|
15
|
+
| Provider<Endpoint>
|
|
16
|
+
| EndpointV2
|
|
17
|
+
| Provider<EndpointV2>;
|
|
18
|
+
}
|
|
19
|
+
export declare type ClientResolvedEndpointParameters =
|
|
20
|
+
ClientInputEndpointParameters & {
|
|
21
|
+
defaultSigningName: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const resolveClientEndpointParameters: <T>(
|
|
24
|
+
options: T & ClientInputEndpointParameters
|
|
25
|
+
) => T &
|
|
26
|
+
ClientInputEndpointParameters & {
|
|
27
|
+
defaultSigningName: string;
|
|
28
|
+
};
|
|
29
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
+
Region: string;
|
|
31
|
+
UseDualStack?: boolean;
|
|
32
|
+
UseFIPS?: boolean;
|
|
33
|
+
Endpoint?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ServiceException as __ServiceException,
|
|
3
|
+
ServiceExceptionOptions as __ServiceExceptionOptions,
|
|
4
|
+
} from "@aws-sdk/smithy-client";
|
|
5
|
+
export declare class CloudTrailDataServiceException extends __ServiceException {
|
|
6
|
+
constructor(options: __ServiceExceptionOptions);
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|