@aws-sdk/client-cloudtrail 3.261.0 → 3.264.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -12
- package/dist-cjs/CloudTrail.js +90 -0
- package/dist-cjs/commands/CreateChannelCommand.js +46 -0
- package/dist-cjs/commands/DeleteChannelCommand.js +46 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/GetResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateChannelCommand.js +46 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +181 -30
- package/dist-cjs/protocols/Aws_json1_1.js +602 -2
- package/dist-es/CloudTrail.js +90 -0
- package/dist-es/commands/CreateChannelCommand.js +42 -0
- package/dist-es/commands/DeleteChannelCommand.js +42 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +42 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +42 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +42 -0
- package/dist-es/commands/UpdateChannelCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +152 -22
- package/dist-es/protocols/Aws_json1_1.js +589 -1
- package/dist-types/CloudTrail.d.ts +238 -164
- package/dist-types/CloudTrailClient.d.ts +21 -14
- package/dist-types/commands/AddTagsCommand.d.ts +7 -9
- package/dist-types/commands/CancelQueryCommand.d.ts +6 -3
- package/dist-types/commands/CreateChannelCommand.d.ts +39 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +37 -0
- package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +10 -7
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +39 -0
- package/dist-types/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +2 -1
- package/dist-types/commands/DescribeQueryCommand.d.ts +3 -2
- package/dist-types/commands/DescribeTrailsCommand.d.ts +2 -1
- package/dist-types/commands/GetChannelCommand.d.ts +1 -3
- package/dist-types/commands/GetEventDataStoreCommand.d.ts +2 -1
- package/dist-types/commands/GetEventSelectorsCommand.d.ts +10 -11
- package/dist-types/commands/GetImportCommand.d.ts +1 -3
- package/dist-types/commands/GetInsightSelectorsCommand.d.ts +6 -6
- package/dist-types/commands/GetQueryResultsCommand.d.ts +3 -2
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/dist-types/commands/GetTrailStatusCommand.d.ts +5 -1
- package/dist-types/commands/ListChannelsCommand.d.ts +1 -3
- package/dist-types/commands/ListEventDataStoresCommand.d.ts +2 -1
- package/dist-types/commands/ListImportFailuresCommand.d.ts +1 -3
- package/dist-types/commands/ListImportsCommand.d.ts +2 -3
- package/dist-types/commands/ListPublicKeysCommand.d.ts +7 -4
- package/dist-types/commands/ListQueriesCommand.d.ts +7 -5
- package/dist-types/commands/ListTagsCommand.d.ts +1 -1
- package/dist-types/commands/LookupEventsCommand.d.ts +5 -5
- package/dist-types/commands/PutEventSelectorsCommand.d.ts +28 -31
- package/dist-types/commands/PutInsightSelectorsCommand.d.ts +5 -4
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +41 -0
- package/dist-types/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +2 -1
- package/dist-types/commands/RemoveTagsCommand.d.ts +1 -1
- package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +4 -3
- package/dist-types/commands/StartImportCommand.d.ts +17 -13
- package/dist-types/commands/StartLoggingCommand.d.ts +4 -1
- package/dist-types/commands/StartQueryCommand.d.ts +3 -1
- package/dist-types/commands/StopImportCommand.d.ts +1 -3
- package/dist-types/commands/StopLoggingCommand.d.ts +7 -7
- package/dist-types/commands/UpdateChannelCommand.d.ts +37 -0
- package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +11 -6
- package/dist-types/commands/UpdateTrailCommand.d.ts +6 -6
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +1428 -835
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +102 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +181 -22
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +72 -0
- package/package.json +4 -4
|
@@ -8,9 +8,9 @@ export interface LookupEventsCommandInput extends LookupEventsRequest {
|
|
|
8
8
|
export interface LookupEventsCommandOutput extends LookupEventsResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Looks up <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events">management events</a> or
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* <p>Looks up <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events">management events</a> or <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-insights-events">CloudTrail Insights events</a> that are captured by CloudTrail.
|
|
12
|
+
* You can look up events that occurred in a region within the last 90 days. Lookup supports
|
|
13
|
+
* the following attributes for management events:</p>
|
|
14
14
|
* <ul>
|
|
15
15
|
* <li>
|
|
16
16
|
* <p>Amazon Web Services access key</p>
|
|
@@ -53,8 +53,8 @@ export interface LookupEventsCommandOutput extends LookupEventsResponse, __Metad
|
|
|
53
53
|
* maximum of 50 possible. The response includes a token that you can use to get the next page
|
|
54
54
|
* of results.</p>
|
|
55
55
|
* <important>
|
|
56
|
-
* <p>The rate of lookup requests is limited to two per second, per account, per region. If
|
|
57
|
-
* limit is exceeded, a throttling error occurs.</p>
|
|
56
|
+
* <p>The rate of lookup requests is limited to two per second, per account, per region. If
|
|
57
|
+
* this limit is exceeded, a throttling error occurs.</p>
|
|
58
58
|
* </important>
|
|
59
59
|
* @example
|
|
60
60
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -8,52 +8,49 @@ export interface PutEventSelectorsCommandInput extends PutEventSelectorsRequest
|
|
|
8
8
|
export interface PutEventSelectorsCommandOutput extends PutEventSelectorsResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Configures an event selector or advanced event selectors for your trail.
|
|
12
|
-
*
|
|
13
|
-
* default, trails created without specific event selectors are configured to
|
|
14
|
-
* write management events, and no data events.</p>
|
|
15
|
-
* <p>When an event occurs in your account, CloudTrail
|
|
16
|
-
*
|
|
17
|
-
*
|
|
11
|
+
* <p>Configures an event selector or advanced event selectors for your trail. Use event
|
|
12
|
+
* selectors or advanced event selectors to specify management and data event settings for
|
|
13
|
+
* your trail. By default, trails created without specific event selectors are configured to
|
|
14
|
+
* log all read and write management events, and no data events.</p>
|
|
15
|
+
* <p>When an event occurs in your account, CloudTrail evaluates the event selectors or
|
|
16
|
+
* advanced event selectors in all trails. For each trail, if the event matches any event
|
|
17
|
+
* selector, the trail processes and logs the event. If the event doesn't match any event
|
|
18
18
|
* selector, the trail doesn't log the event.</p>
|
|
19
19
|
* <p>Example</p>
|
|
20
20
|
* <ol>
|
|
21
21
|
* <li>
|
|
22
|
-
* <p>You create an event selector for a trail and specify that you want
|
|
23
|
-
*
|
|
22
|
+
* <p>You create an event selector for a trail and specify that you want write-only
|
|
23
|
+
* events.</p>
|
|
24
24
|
* </li>
|
|
25
25
|
* <li>
|
|
26
|
-
* <p>The EC2 <code>GetConsoleOutput</code> and <code>RunInstances</code> API
|
|
27
|
-
*
|
|
26
|
+
* <p>The EC2 <code>GetConsoleOutput</code> and <code>RunInstances</code> API operations
|
|
27
|
+
* occur in your account.</p>
|
|
28
28
|
* </li>
|
|
29
29
|
* <li>
|
|
30
|
-
* <p>CloudTrail evaluates whether the events match your event
|
|
31
|
-
* selectors.</p>
|
|
30
|
+
* <p>CloudTrail evaluates whether the events match your event selectors.</p>
|
|
32
31
|
* </li>
|
|
33
32
|
* <li>
|
|
34
|
-
* <p>The <code>RunInstances</code> is a write-only event and it matches your
|
|
35
|
-
*
|
|
33
|
+
* <p>The <code>RunInstances</code> is a write-only event and it matches your event
|
|
34
|
+
* selector. The trail logs the event.</p>
|
|
36
35
|
* </li>
|
|
37
36
|
* <li>
|
|
38
|
-
* <p>The <code>GetConsoleOutput</code> is a read-only event that doesn't
|
|
39
|
-
*
|
|
40
|
-
* </p>
|
|
37
|
+
* <p>The <code>GetConsoleOutput</code> is a read-only event that doesn't match your
|
|
38
|
+
* event selector. The trail doesn't log the event. </p>
|
|
41
39
|
* </li>
|
|
42
40
|
* </ol>
|
|
43
|
-
* <p>The <code>PutEventSelectors</code> operation must be called from the region in which
|
|
44
|
-
*
|
|
41
|
+
* <p>The <code>PutEventSelectors</code> operation must be called from the region in which the
|
|
42
|
+
* trail was created; otherwise, an <code>InvalidHomeRegionException</code> exception is
|
|
45
43
|
* thrown.</p>
|
|
46
|
-
* <p>You can configure up to five event selectors for each trail. For more information, see
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* <p>You can add advanced event selectors, and conditions for your advanced
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging
|
|
56
|
-
* data events for trails</a> in the <i>CloudTrail User Guide</i>.</p>
|
|
44
|
+
* <p>You can configure up to five event selectors for each trail. For more information, see
|
|
45
|
+
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html">Logging management events for trails </a>, <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging
|
|
46
|
+
* data events for trails </a>, and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Quotas in CloudTrail</a> in the <i>CloudTrail User
|
|
47
|
+
* Guide</i>.</p>
|
|
48
|
+
* <p>You can add advanced event selectors, and conditions for your advanced event selectors,
|
|
49
|
+
* up to a maximum of 500 values for all conditions and selectors on a trail. You can use
|
|
50
|
+
* either <code>AdvancedEventSelectors</code> or <code>EventSelectors</code>, but not both. If
|
|
51
|
+
* you apply <code>AdvancedEventSelectors</code> to a trail, any existing
|
|
52
|
+
* <code>EventSelectors</code> are overwritten. For more information about advanced event
|
|
53
|
+
* selectors, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging data events for trails</a> in the <i>CloudTrail User Guide</i>.</p>
|
|
57
54
|
* @example
|
|
58
55
|
* Use a bare-bones client and the command you need to make an API call.
|
|
59
56
|
* ```javascript
|
|
@@ -8,10 +8,11 @@ export interface PutInsightSelectorsCommandInput extends PutInsightSelectorsRequ
|
|
|
8
8
|
export interface PutInsightSelectorsCommandOutput extends PutInsightSelectorsResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Lets you enable Insights event logging by specifying the Insights
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* <p>Lets you enable Insights event logging by specifying the Insights selectors that you
|
|
12
|
+
* want to enable on an existing trail. You also use <code>PutInsightSelectors</code> to turn
|
|
13
|
+
* off Insights event logging, by passing an empty list of insight types. The valid Insights
|
|
14
|
+
* event types in this release are <code>ApiErrorRateInsight</code> and
|
|
15
|
+
* <code>ApiCallRateInsight</code>.</p>
|
|
15
16
|
* @example
|
|
16
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
17
18
|
* ```javascript
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
|
|
6
|
+
export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>
|
|
12
|
+
* Attaches a resource-based permission policy to a CloudTrail channel that is used for an integration with an event source outside of Amazon Web Services. For more information about resource-based policies, see
|
|
13
|
+
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html">CloudTrail resource-based policy examples</a>
|
|
14
|
+
* in the <i>CloudTrail User Guide</i>.
|
|
15
|
+
* </p>
|
|
16
|
+
* @example
|
|
17
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
+
* ```javascript
|
|
19
|
+
* import { CloudTrailClient, PutResourcePolicyCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
20
|
+
* // const { CloudTrailClient, PutResourcePolicyCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
21
|
+
* const client = new CloudTrailClient(config);
|
|
22
|
+
* const command = new PutResourcePolicyCommand(input);
|
|
23
|
+
* const response = await client.send(command);
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
|
|
27
|
+
* @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
|
|
28
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare class PutResourcePolicyCommand extends $Command<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, CloudTrailClientResolvedConfig> {
|
|
32
|
+
readonly input: PutResourcePolicyCommandInput;
|
|
33
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
34
|
+
constructor(input: PutResourcePolicyCommandInput);
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput>;
|
|
39
|
+
private serialize;
|
|
40
|
+
private deserialize;
|
|
41
|
+
}
|
|
@@ -8,7 +8,8 @@ export interface RegisterOrganizationDelegatedAdminCommandInput extends Register
|
|
|
8
8
|
export interface RegisterOrganizationDelegatedAdminCommandOutput extends RegisterOrganizationDelegatedAdminResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Registers an organization’s member account as the CloudTrail delegated
|
|
11
|
+
* <p>Registers an organization’s member account as the CloudTrail delegated
|
|
12
|
+
* administrator.</p>
|
|
12
13
|
* @example
|
|
13
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
15
|
* ```javascript
|
|
@@ -8,7 +8,7 @@ export interface RemoveTagsCommandInput extends RemoveTagsRequest {
|
|
|
8
8
|
export interface RemoveTagsCommandOutput extends RemoveTagsResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Removes the specified tags from a trail
|
|
11
|
+
* <p>Removes the specified tags from a trail, event data store, or channel.</p>
|
|
12
12
|
* @example
|
|
13
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
14
|
* ```javascript
|
|
@@ -8,9 +8,10 @@ export interface RestoreEventDataStoreCommandInput extends RestoreEventDataStore
|
|
|
8
8
|
export interface RestoreEventDataStoreCommandOutput extends RestoreEventDataStoreResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Restores a deleted event data store specified by <code>EventDataStore</code>, which
|
|
12
|
-
* You can only restore a deleted event data store within the
|
|
13
|
-
*
|
|
11
|
+
* <p>Restores a deleted event data store specified by <code>EventDataStore</code>, which
|
|
12
|
+
* accepts an event data store ARN. You can only restore a deleted event data store within the
|
|
13
|
+
* seven-day wait period after deletion. Restoring an event data store can take several
|
|
14
|
+
* minutes, depending on the size of the event data store.</p>
|
|
14
15
|
* @example
|
|
15
16
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
17
|
* ```javascript
|
|
@@ -8,19 +8,23 @@ export interface StartImportCommandInput extends StartImportRequest {
|
|
|
8
8
|
export interface StartImportCommandOutput extends StartImportResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* <p>
|
|
17
|
-
* When you start a new import, the <code>Destinations</code> and
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* When you retry an import, the <code>ImportID</code> parameter is required.
|
|
23
|
-
*
|
|
11
|
+
* <p> Starts an import of logged trail events from a source S3 bucket to a destination event
|
|
12
|
+
* data store. By default, CloudTrail only imports events contained in the S3 bucket's
|
|
13
|
+
* <code>CloudTrail</code> prefix and the prefixes inside the <code>CloudTrail</code> prefix, and does not check prefixes for other Amazon Web Services
|
|
14
|
+
* services. If you want to import CloudTrail events contained in another prefix, you
|
|
15
|
+
* must include the prefix in the <code>S3LocationUri</code>. For more considerations about
|
|
16
|
+
* importing trail events, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-copy-trail-to-lake.html#cloudtrail-trail-copy-considerations">Considerations</a>. </p>
|
|
17
|
+
* <p> When you start a new import, the <code>Destinations</code> and
|
|
18
|
+
* <code>ImportSource</code> parameters are required. Before starting a new import, disable
|
|
19
|
+
* any access control lists (ACLs) attached to the source S3 bucket. For more information
|
|
20
|
+
* about disabling ACLs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling ownership of
|
|
21
|
+
* objects and disabling ACLs for your bucket</a>. </p>
|
|
22
|
+
* <p> When you retry an import, the <code>ImportID</code> parameter is required. </p>
|
|
23
|
+
* <note>
|
|
24
|
+
* <p> If the destination event data store is for an organization, you must use the
|
|
25
|
+
* management account to import trail events. You cannot use the delegated administrator
|
|
26
|
+
* account for the organization. </p>
|
|
27
|
+
* </note>
|
|
24
28
|
* @example
|
|
25
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
26
30
|
* ```javascript
|
|
@@ -8,7 +8,10 @@ export interface StartLoggingCommandInput extends StartLoggingRequest {
|
|
|
8
8
|
export interface StartLoggingCommandOutput extends StartLoggingResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Starts the recording of Amazon Web Services API calls and log file delivery for a trail.
|
|
11
|
+
* <p>Starts the recording of Amazon Web Services API calls and log file delivery for a trail.
|
|
12
|
+
* For a trail that is enabled in all regions, this operation must be called from the region
|
|
13
|
+
* in which the trail was created. This operation cannot be called on the shadow trails
|
|
14
|
+
* (replicated trails in other regions) of a trail that is enabled in all regions.</p>
|
|
12
15
|
* @example
|
|
13
16
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
17
|
* ```javascript
|
|
@@ -9,7 +9,9 @@ export interface StartQueryCommandOutput extends StartQueryResponse, __MetadataB
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Starts a CloudTrail Lake query. The required <code>QueryStatement</code>
|
|
12
|
-
* parameter provides your SQL query, enclosed in single quotation marks. Use the optional
|
|
12
|
+
* parameter provides your SQL query, enclosed in single quotation marks. Use the optional
|
|
13
|
+
* <code>DeliveryS3Uri</code> parameter to deliver the query results to an S3
|
|
14
|
+
* bucket.</p>
|
|
13
15
|
* @example
|
|
14
16
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
17
|
* ```javascript
|
|
@@ -8,9 +8,7 @@ export interface StopImportCommandInput extends StopImportRequest {
|
|
|
8
8
|
export interface StopImportCommandOutput extends StopImportResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>
|
|
12
|
-
* Stops a specified import.
|
|
13
|
-
* </p>
|
|
11
|
+
* <p> Stops a specified import. </p>
|
|
14
12
|
* @example
|
|
15
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
14
|
* ```javascript
|
|
@@ -8,13 +8,13 @@ export interface StopLoggingCommandInput extends StopLoggingRequest {
|
|
|
8
8
|
export interface StopLoggingCommandOutput extends StopLoggingResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Suspends the recording of Amazon Web Services API calls and log file delivery for the
|
|
12
|
-
* Under most circumstances, there is no need to use this action. You can
|
|
13
|
-
* without stopping it first. This action is the only way to stop recording.
|
|
14
|
-
* enabled in all regions, this operation must be called from the region in which
|
|
15
|
-
* was created, or an <code>InvalidHomeRegionException</code> will occur. This
|
|
16
|
-
* cannot be called on the shadow trails (replicated trails in other regions) of a
|
|
17
|
-
* enabled in all regions.</p>
|
|
11
|
+
* <p>Suspends the recording of Amazon Web Services API calls and log file delivery for the
|
|
12
|
+
* specified trail. Under most circumstances, there is no need to use this action. You can
|
|
13
|
+
* update a trail without stopping it first. This action is the only way to stop recording.
|
|
14
|
+
* For a trail enabled in all regions, this operation must be called from the region in which
|
|
15
|
+
* the trail was created, or an <code>InvalidHomeRegionException</code> will occur. This
|
|
16
|
+
* operation cannot be called on the shadow trails (replicated trails in other regions) of a
|
|
17
|
+
* trail enabled in all regions.</p>
|
|
18
18
|
* @example
|
|
19
19
|
* Use a bare-bones client and the command you need to make an API call.
|
|
20
20
|
* ```javascript
|
|
@@ -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 { UpdateChannelRequest, UpdateChannelResponse } from "../models/models_0";
|
|
6
|
+
export interface UpdateChannelCommandInput extends UpdateChannelRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Updates a channel specified by a required channel ARN or UUID.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { CloudTrailClient, UpdateChannelCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
16
|
+
* // const { CloudTrailClient, UpdateChannelCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
17
|
+
* const client = new CloudTrailClient(config);
|
|
18
|
+
* const command = new UpdateChannelCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link UpdateChannelCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link UpdateChannelCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class UpdateChannelCommand extends $Command<UpdateChannelCommandInput, UpdateChannelCommandOutput, CloudTrailClientResolvedConfig> {
|
|
28
|
+
readonly input: UpdateChannelCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: UpdateChannelCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateChannelCommandInput, UpdateChannelCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -8,12 +8,17 @@ export interface UpdateEventDataStoreCommandInput extends UpdateEventDataStoreRe
|
|
|
8
8
|
export interface UpdateEventDataStoreCommandOutput extends UpdateEventDataStoreResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Updates an event data store. The required <code>EventDataStore</code> value is an ARN or
|
|
12
|
-
* Other parameters are optional, but at least one optional
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* <
|
|
11
|
+
* <p>Updates an event data store. The required <code>EventDataStore</code> value is an ARN or
|
|
12
|
+
* the ID portion of the ARN. Other parameters are optional, but at least one optional
|
|
13
|
+
* parameter must be specified, or CloudTrail throws an error.
|
|
14
|
+
* <code>RetentionPeriod</code> is in days, and valid values are integers between 90 and
|
|
15
|
+
* 2557. By default, <code>TerminationProtection</code> is enabled.</p>
|
|
16
|
+
* <p>For event data stores for CloudTrail events, <code>AdvancedEventSelectors</code>
|
|
17
|
+
* includes or excludes management and data events in your event data store. For more
|
|
18
|
+
* information about <code>AdvancedEventSelectors</code>, see <a>PutEventSelectorsRequest$AdvancedEventSelectors</a>. </p>
|
|
19
|
+
* <p> For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events,
|
|
20
|
+
* <code>AdvancedEventSelectors</code> includes events of that type in your event data
|
|
21
|
+
* store.</p>
|
|
17
22
|
* @example
|
|
18
23
|
* Use a bare-bones client and the command you need to make an API call.
|
|
19
24
|
* ```javascript
|
|
@@ -8,12 +8,12 @@ export interface UpdateTrailCommandInput extends UpdateTrailRequest {
|
|
|
8
8
|
export interface UpdateTrailCommandOutput extends UpdateTrailResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Updates trail settings that control what events you are logging, and how to handle log
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
11
|
+
* <p>Updates trail settings that control what events you are logging, and how to handle log
|
|
12
|
+
* files. Changes to a trail do not require stopping the CloudTrail service. Use this
|
|
13
|
+
* action to designate an existing bucket for log delivery. If the existing bucket has
|
|
14
|
+
* previously been a target for CloudTrail log files, an IAM policy
|
|
15
|
+
* exists for the bucket. <code>UpdateTrail</code> must be called from the region in which the
|
|
16
|
+
* trail was created; otherwise, an <code>InvalidHomeRegionException</code> is thrown.</p>
|
|
17
17
|
* @example
|
|
18
18
|
* Use a bare-bones client and the command you need to make an API call.
|
|
19
19
|
* ```javascript
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from "./AddTagsCommand";
|
|
2
2
|
export * from "./CancelQueryCommand";
|
|
3
|
+
export * from "./CreateChannelCommand";
|
|
3
4
|
export * from "./CreateEventDataStoreCommand";
|
|
4
5
|
export * from "./CreateTrailCommand";
|
|
6
|
+
export * from "./DeleteChannelCommand";
|
|
5
7
|
export * from "./DeleteEventDataStoreCommand";
|
|
8
|
+
export * from "./DeleteResourcePolicyCommand";
|
|
6
9
|
export * from "./DeleteTrailCommand";
|
|
7
10
|
export * from "./DeregisterOrganizationDelegatedAdminCommand";
|
|
8
11
|
export * from "./DescribeQueryCommand";
|
|
@@ -13,6 +16,7 @@ export * from "./GetEventSelectorsCommand";
|
|
|
13
16
|
export * from "./GetImportCommand";
|
|
14
17
|
export * from "./GetInsightSelectorsCommand";
|
|
15
18
|
export * from "./GetQueryResultsCommand";
|
|
19
|
+
export * from "./GetResourcePolicyCommand";
|
|
16
20
|
export * from "./GetTrailCommand";
|
|
17
21
|
export * from "./GetTrailStatusCommand";
|
|
18
22
|
export * from "./ListChannelsCommand";
|
|
@@ -26,6 +30,7 @@ export * from "./ListTrailsCommand";
|
|
|
26
30
|
export * from "./LookupEventsCommand";
|
|
27
31
|
export * from "./PutEventSelectorsCommand";
|
|
28
32
|
export * from "./PutInsightSelectorsCommand";
|
|
33
|
+
export * from "./PutResourcePolicyCommand";
|
|
29
34
|
export * from "./RegisterOrganizationDelegatedAdminCommand";
|
|
30
35
|
export * from "./RemoveTagsCommand";
|
|
31
36
|
export * from "./RestoreEventDataStoreCommand";
|
|
@@ -34,5 +39,6 @@ export * from "./StartLoggingCommand";
|
|
|
34
39
|
export * from "./StartQueryCommand";
|
|
35
40
|
export * from "./StopImportCommand";
|
|
36
41
|
export * from "./StopLoggingCommand";
|
|
42
|
+
export * from "./UpdateChannelCommand";
|
|
37
43
|
export * from "./UpdateEventDataStoreCommand";
|
|
38
44
|
export * from "./UpdateTrailCommand";
|