@aws-sdk/client-cloudtrail 3.202.0 → 3.205.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/CHANGELOG.md +22 -0
- package/dist-cjs/CloudTrail.js +30 -0
- package/dist-cjs/commands/DeregisterOrganizationDelegatedAdminCommand.js +46 -0
- package/dist-cjs/commands/RegisterOrganizationDelegatedAdminCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +174 -60
- package/dist-cjs/protocols/Aws_json1_1.js +375 -2
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/CloudTrail.js +30 -0
- package/dist-es/commands/DeregisterOrganizationDelegatedAdminCommand.js +42 -0
- package/dist-es/commands/RegisterOrganizationDelegatedAdminCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +155 -52
- package/dist-es/protocols/Aws_json1_1.js +370 -1
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/CloudTrail.d.ts +15 -1
- package/dist-types/CloudTrailClient.d.ts +4 -2
- package/dist-types/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +37 -0
- package/dist-types/commands/GetChannelCommand.d.ts +1 -1
- package/dist-types/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +334 -65
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +46 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +130 -36
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +5 -4
|
@@ -4,7 +4,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-
|
|
|
4
4
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
6
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
8
7
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
9
8
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
9
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
@@ -20,8 +19,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
20
19
|
...config,
|
|
21
20
|
runtime: "browser",
|
|
22
21
|
defaultsMode,
|
|
23
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
22
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
23
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
24
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
|
|
|
6
6
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
7
7
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
8
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
10
9
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
11
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
12
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
@@ -24,8 +23,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
24
23
|
...config,
|
|
25
24
|
runtime: "node",
|
|
26
25
|
defaultsMode,
|
|
27
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
28
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
26
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
2
3
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
3
4
|
export const getRuntimeConfig = (config) => ({
|
|
4
5
|
apiVersion: "2013-11-01",
|
|
6
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
7
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
5
8
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
9
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
7
10
|
logger: config?.logger ?? {},
|
|
@@ -6,6 +6,7 @@ import { CreateEventDataStoreCommandInput, CreateEventDataStoreCommandOutput } f
|
|
|
6
6
|
import { CreateTrailCommandInput, CreateTrailCommandOutput } from "./commands/CreateTrailCommand";
|
|
7
7
|
import { DeleteEventDataStoreCommandInput, DeleteEventDataStoreCommandOutput } from "./commands/DeleteEventDataStoreCommand";
|
|
8
8
|
import { DeleteTrailCommandInput, DeleteTrailCommandOutput } from "./commands/DeleteTrailCommand";
|
|
9
|
+
import { DeregisterOrganizationDelegatedAdminCommandInput, DeregisterOrganizationDelegatedAdminCommandOutput } from "./commands/DeregisterOrganizationDelegatedAdminCommand";
|
|
9
10
|
import { DescribeQueryCommandInput, DescribeQueryCommandOutput } from "./commands/DescribeQueryCommand";
|
|
10
11
|
import { DescribeTrailsCommandInput, DescribeTrailsCommandOutput } from "./commands/DescribeTrailsCommand";
|
|
11
12
|
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
|
|
@@ -27,6 +28,7 @@ import { ListTrailsCommandInput, ListTrailsCommandOutput } from "./commands/List
|
|
|
27
28
|
import { LookupEventsCommandInput, LookupEventsCommandOutput } from "./commands/LookupEventsCommand";
|
|
28
29
|
import { PutEventSelectorsCommandInput, PutEventSelectorsCommandOutput } from "./commands/PutEventSelectorsCommand";
|
|
29
30
|
import { PutInsightSelectorsCommandInput, PutInsightSelectorsCommandOutput } from "./commands/PutInsightSelectorsCommand";
|
|
31
|
+
import { RegisterOrganizationDelegatedAdminCommandInput, RegisterOrganizationDelegatedAdminCommandOutput } from "./commands/RegisterOrganizationDelegatedAdminCommand";
|
|
30
32
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
31
33
|
import { RestoreEventDataStoreCommandInput, RestoreEventDataStoreCommandOutput } from "./commands/RestoreEventDataStoreCommand";
|
|
32
34
|
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
|
|
@@ -110,6 +112,12 @@ export declare class CloudTrail extends CloudTrailClient {
|
|
|
110
112
|
deleteTrail(args: DeleteTrailCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTrailCommandOutput>;
|
|
111
113
|
deleteTrail(args: DeleteTrailCommandInput, cb: (err: any, data?: DeleteTrailCommandOutput) => void): void;
|
|
112
114
|
deleteTrail(args: DeleteTrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTrailCommandOutput) => void): void;
|
|
115
|
+
/**
|
|
116
|
+
* <p>Removes CloudTrail delegated administrator permissions from a member account in an organization.</p>
|
|
117
|
+
*/
|
|
118
|
+
deregisterOrganizationDelegatedAdmin(args: DeregisterOrganizationDelegatedAdminCommandInput, options?: __HttpHandlerOptions): Promise<DeregisterOrganizationDelegatedAdminCommandOutput>;
|
|
119
|
+
deregisterOrganizationDelegatedAdmin(args: DeregisterOrganizationDelegatedAdminCommandInput, cb: (err: any, data?: DeregisterOrganizationDelegatedAdminCommandOutput) => void): void;
|
|
120
|
+
deregisterOrganizationDelegatedAdmin(args: DeregisterOrganizationDelegatedAdminCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterOrganizationDelegatedAdminCommandOutput) => void): void;
|
|
113
121
|
/**
|
|
114
122
|
* <p>Returns metadata about a query, including query run time in milliseconds, number of events scanned and matched, and query
|
|
115
123
|
* status. You must specify an ARN for <code>EventDataStore</code>, and a value for <code>QueryID</code>.</p>
|
|
@@ -126,7 +134,7 @@ export declare class CloudTrail extends CloudTrailClient {
|
|
|
126
134
|
/**
|
|
127
135
|
* <p>
|
|
128
136
|
* Returns information about a specific channel. Amazon Web Services services create service-linked channels to get information about CloudTrail events on your behalf. For more information about
|
|
129
|
-
* service-linked channels, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/viewing-service-linked-channels.html">Viewing service-linked channels for CloudTrail by using the CLI
|
|
137
|
+
* service-linked channels, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/viewing-service-linked-channels.html">Viewing service-linked channels for CloudTrail by using the CLI</a>.
|
|
130
138
|
* </p>
|
|
131
139
|
*/
|
|
132
140
|
getChannel(args: GetChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetChannelCommandOutput>;
|
|
@@ -389,6 +397,12 @@ export declare class CloudTrail extends CloudTrailClient {
|
|
|
389
397
|
putInsightSelectors(args: PutInsightSelectorsCommandInput, options?: __HttpHandlerOptions): Promise<PutInsightSelectorsCommandOutput>;
|
|
390
398
|
putInsightSelectors(args: PutInsightSelectorsCommandInput, cb: (err: any, data?: PutInsightSelectorsCommandOutput) => void): void;
|
|
391
399
|
putInsightSelectors(args: PutInsightSelectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutInsightSelectorsCommandOutput) => void): void;
|
|
400
|
+
/**
|
|
401
|
+
* <p>Registers an organization’s member account as the CloudTrail delegated administrator.</p>
|
|
402
|
+
*/
|
|
403
|
+
registerOrganizationDelegatedAdmin(args: RegisterOrganizationDelegatedAdminCommandInput, options?: __HttpHandlerOptions): Promise<RegisterOrganizationDelegatedAdminCommandOutput>;
|
|
404
|
+
registerOrganizationDelegatedAdmin(args: RegisterOrganizationDelegatedAdminCommandInput, cb: (err: any, data?: RegisterOrganizationDelegatedAdminCommandOutput) => void): void;
|
|
405
|
+
registerOrganizationDelegatedAdmin(args: RegisterOrganizationDelegatedAdminCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterOrganizationDelegatedAdminCommandOutput) => void): void;
|
|
392
406
|
/**
|
|
393
407
|
* <p>Removes the specified tags from a trail or event data store.</p>
|
|
394
408
|
*/
|
|
@@ -13,6 +13,7 @@ import { CreateEventDataStoreCommandInput, CreateEventDataStoreCommandOutput } f
|
|
|
13
13
|
import { CreateTrailCommandInput, CreateTrailCommandOutput } from "./commands/CreateTrailCommand";
|
|
14
14
|
import { DeleteEventDataStoreCommandInput, DeleteEventDataStoreCommandOutput } from "./commands/DeleteEventDataStoreCommand";
|
|
15
15
|
import { DeleteTrailCommandInput, DeleteTrailCommandOutput } from "./commands/DeleteTrailCommand";
|
|
16
|
+
import { DeregisterOrganizationDelegatedAdminCommandInput, DeregisterOrganizationDelegatedAdminCommandOutput } from "./commands/DeregisterOrganizationDelegatedAdminCommand";
|
|
16
17
|
import { DescribeQueryCommandInput, DescribeQueryCommandOutput } from "./commands/DescribeQueryCommand";
|
|
17
18
|
import { DescribeTrailsCommandInput, DescribeTrailsCommandOutput } from "./commands/DescribeTrailsCommand";
|
|
18
19
|
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
|
|
@@ -34,6 +35,7 @@ import { ListTrailsCommandInput, ListTrailsCommandOutput } from "./commands/List
|
|
|
34
35
|
import { LookupEventsCommandInput, LookupEventsCommandOutput } from "./commands/LookupEventsCommand";
|
|
35
36
|
import { PutEventSelectorsCommandInput, PutEventSelectorsCommandOutput } from "./commands/PutEventSelectorsCommand";
|
|
36
37
|
import { PutInsightSelectorsCommandInput, PutInsightSelectorsCommandOutput } from "./commands/PutInsightSelectorsCommand";
|
|
38
|
+
import { RegisterOrganizationDelegatedAdminCommandInput, RegisterOrganizationDelegatedAdminCommandOutput } from "./commands/RegisterOrganizationDelegatedAdminCommand";
|
|
37
39
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
38
40
|
import { RestoreEventDataStoreCommandInput, RestoreEventDataStoreCommandOutput } from "./commands/RestoreEventDataStoreCommand";
|
|
39
41
|
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
|
|
@@ -44,8 +46,8 @@ import { StopLoggingCommandInput, StopLoggingCommandOutput } from "./commands/St
|
|
|
44
46
|
import { UpdateEventDataStoreCommandInput, UpdateEventDataStoreCommandOutput } from "./commands/UpdateEventDataStoreCommand";
|
|
45
47
|
import { UpdateTrailCommandInput, UpdateTrailCommandOutput } from "./commands/UpdateTrailCommand";
|
|
46
48
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
47
|
-
export declare type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteEventDataStoreCommandInput | DeleteTrailCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | GetChannelCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetImportCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListEventDataStoresCommandInput | ListImportFailuresCommandInput | ListImportsCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | StartImportCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopImportCommandInput | StopLoggingCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
|
|
48
|
-
export declare type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteEventDataStoreCommandOutput | DeleteTrailCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | GetChannelCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetImportCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListEventDataStoresCommandOutput | ListImportFailuresCommandOutput | ListImportsCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | StartImportCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopImportCommandOutput | StopLoggingCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
|
|
49
|
+
export declare type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteEventDataStoreCommandInput | DeleteTrailCommandInput | DeregisterOrganizationDelegatedAdminCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | GetChannelCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetImportCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListEventDataStoresCommandInput | ListImportFailuresCommandInput | ListImportsCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | RegisterOrganizationDelegatedAdminCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | StartImportCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopImportCommandInput | StopLoggingCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
|
|
50
|
+
export declare type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteEventDataStoreCommandOutput | DeleteTrailCommandOutput | DeregisterOrganizationDelegatedAdminCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | GetChannelCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetImportCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListEventDataStoresCommandOutput | ListImportFailuresCommandOutput | ListImportsCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | RegisterOrganizationDelegatedAdminCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | StartImportCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopImportCommandOutput | StopLoggingCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
|
|
49
51
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
50
52
|
/**
|
|
51
53
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
5
|
+
import { DeregisterOrganizationDelegatedAdminRequest, DeregisterOrganizationDelegatedAdminResponse } from "../models/models_0";
|
|
6
|
+
export interface DeregisterOrganizationDelegatedAdminCommandInput extends DeregisterOrganizationDelegatedAdminRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface DeregisterOrganizationDelegatedAdminCommandOutput extends DeregisterOrganizationDelegatedAdminResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Removes CloudTrail delegated administrator permissions from a member account in an organization.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { CloudTrailClient, DeregisterOrganizationDelegatedAdminCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
16
|
+
* // const { CloudTrailClient, DeregisterOrganizationDelegatedAdminCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
17
|
+
* const client = new CloudTrailClient(config);
|
|
18
|
+
* const command = new DeregisterOrganizationDelegatedAdminCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link DeregisterOrganizationDelegatedAdminCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link DeregisterOrganizationDelegatedAdminCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class DeregisterOrganizationDelegatedAdminCommand extends $Command<DeregisterOrganizationDelegatedAdminCommandInput, DeregisterOrganizationDelegatedAdminCommandOutput, CloudTrailClientResolvedConfig> {
|
|
28
|
+
readonly input: DeregisterOrganizationDelegatedAdminCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: DeregisterOrganizationDelegatedAdminCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeregisterOrganizationDelegatedAdminCommandInput, DeregisterOrganizationDelegatedAdminCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -10,7 +10,7 @@ export interface GetChannelCommandOutput extends GetChannelResponse, __MetadataB
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>
|
|
12
12
|
* Returns information about a specific channel. Amazon Web Services services create service-linked channels to get information about CloudTrail events on your behalf. For more information about
|
|
13
|
-
* service-linked channels, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/viewing-service-linked-channels.html">Viewing service-linked channels for CloudTrail by using the CLI
|
|
13
|
+
* service-linked channels, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/viewing-service-linked-channels.html">Viewing service-linked channels for CloudTrail by using the CLI</a>.
|
|
14
14
|
* </p>
|
|
15
15
|
* @example
|
|
16
16
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
5
|
+
import { RegisterOrganizationDelegatedAdminRequest, RegisterOrganizationDelegatedAdminResponse } from "../models/models_0";
|
|
6
|
+
export interface RegisterOrganizationDelegatedAdminCommandInput extends RegisterOrganizationDelegatedAdminRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface RegisterOrganizationDelegatedAdminCommandOutput extends RegisterOrganizationDelegatedAdminResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Registers an organization’s member account as the CloudTrail delegated administrator.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { CloudTrailClient, RegisterOrganizationDelegatedAdminCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
16
|
+
* // const { CloudTrailClient, RegisterOrganizationDelegatedAdminCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
17
|
+
* const client = new CloudTrailClient(config);
|
|
18
|
+
* const command = new RegisterOrganizationDelegatedAdminCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link RegisterOrganizationDelegatedAdminCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link RegisterOrganizationDelegatedAdminCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class RegisterOrganizationDelegatedAdminCommand extends $Command<RegisterOrganizationDelegatedAdminCommandInput, RegisterOrganizationDelegatedAdminCommandOutput, CloudTrailClientResolvedConfig> {
|
|
28
|
+
readonly input: RegisterOrganizationDelegatedAdminCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: RegisterOrganizationDelegatedAdminCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RegisterOrganizationDelegatedAdminCommandInput, RegisterOrganizationDelegatedAdminCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from "./CreateEventDataStoreCommand";
|
|
|
4
4
|
export * from "./CreateTrailCommand";
|
|
5
5
|
export * from "./DeleteEventDataStoreCommand";
|
|
6
6
|
export * from "./DeleteTrailCommand";
|
|
7
|
+
export * from "./DeregisterOrganizationDelegatedAdminCommand";
|
|
7
8
|
export * from "./DescribeQueryCommand";
|
|
8
9
|
export * from "./DescribeTrailsCommand";
|
|
9
10
|
export * from "./GetChannelCommand";
|
|
@@ -25,6 +26,7 @@ export * from "./ListTrailsCommand";
|
|
|
25
26
|
export * from "./LookupEventsCommand";
|
|
26
27
|
export * from "./PutEventSelectorsCommand";
|
|
27
28
|
export * from "./PutInsightSelectorsCommand";
|
|
29
|
+
export * from "./RegisterOrganizationDelegatedAdminCommand";
|
|
28
30
|
export * from "./RemoveTagsCommand";
|
|
29
31
|
export * from "./RestoreEventDataStoreCommand";
|
|
30
32
|
export * from "./StartImportCommand";
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|