Skip to content

Commit

Permalink
feat(client-cloudtrail): Merging mainline branch for service model in…
Browse files Browse the repository at this point in the history
…to mainline release branch. There are no new APIs.
  • Loading branch information
awstools committed Dec 13, 2022
1 parent 1fd4179 commit 07c2d21
Show file tree
Hide file tree
Showing 8 changed files with 443 additions and 375 deletions.
1 change: 0 additions & 1 deletion clients/client-cloudtrail/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ AWS SDK for JavaScript CloudTrail Client for Node.js, Browser and React Native.
<p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
<p>CloudTrail is a web service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket.
The recorded information includes the identity of the user, the start time of the Amazon Web Services API call, the source IP address, the request parameters, and the response elements returned by the service.</p>

<note>
<p>As an alternative to the API,
you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
Expand Down
1 change: 0 additions & 1 deletion clients/client-cloudtrail/src/CloudTrail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ import { UpdateTrailCommand, UpdateTrailCommandInput, UpdateTrailCommandOutput }
* <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
* <p>CloudTrail is a web service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket.
* The recorded information includes the identity of the user, the start time of the Amazon Web Services API call, the source IP address, the request parameters, and the response elements returned by the service.</p>
*
* <note>
* <p>As an alternative to the API,
* you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
Expand Down
1 change: 0 additions & 1 deletion clients/client-cloudtrail/src/CloudTrailClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ export interface CloudTrailClientResolvedConfig extends CloudTrailClientResolved
* <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
* <p>CloudTrail is a web service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket.
* The recorded information includes the identity of the user, the start time of the Amazon Web Services API call, the source IP address, the request parameters, and the response elements returned by the service.</p>
*
* <note>
* <p>As an alternative to the API,
* you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
};

export interface EndpointParameters extends __EndpointParameters {
Region?: string;
Region: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
Endpoint?: string;
Expand Down
19 changes: 5 additions & 14 deletions clients/client-cloudtrail/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const ruleSet: RuleSetObject = {
parameters: {
Region: {
builtIn: "AWS::Region",
required: false,
required: true,
documentation: "The AWS region used to dispatch the request.",
type: "String",
},
Expand Down Expand Up @@ -58,15 +58,6 @@ export const ruleSet: RuleSetObject = {
},
],
},
{
fn: "parseURL",
argv: [
{
ref: "Endpoint",
},
],
assign: "url",
},
],
type: "tree",
rules: [
Expand Down Expand Up @@ -241,12 +232,12 @@ export const ruleSet: RuleSetObject = {
{
ref: "Region",
},
"us-gov-west-1",
"us-gov-east-1",
],
},
],
endpoint: {
url: "https://cloudtrail.us-gov-west-1.amazonaws.com",
url: "https://cloudtrail.us-gov-east-1.amazonaws.com",
properties: {},
headers: {},
},
Expand All @@ -260,12 +251,12 @@ export const ruleSet: RuleSetObject = {
{
ref: "Region",
},
"us-gov-east-1",
"us-gov-west-1",
],
},
],
endpoint: {
url: "https://cloudtrail.us-gov-east-1.amazonaws.com",
url: "https://cloudtrail.us-gov-west-1.amazonaws.com",
properties: {},
headers: {},
},
Expand Down
104 changes: 50 additions & 54 deletions clients/client-cloudtrail/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,52 @@ export class InsufficientEncryptionPolicyException extends __BaseException {
}
}

/**
* <p>This exception is thrown when the <code>PutEventSelectors</code> operation is called with a number of event
* selectors, advanced event selectors, or data resources that is not valid. The combination of event selectors or advanced event selectors and
* data resources is not valid. A trail can have up to 5 event selectors. If a trail uses advanced event selectors, a maximum
* of 500 total values for all conditions in all advanced event selectors is allowed. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.</p>
* <p>You can:</p>
* <ul>
* <li>
* <p>Specify a valid number of event selectors (1 to 5) for a trail.</p>
* </li>
* <li>
* <p>Specify a valid number of data resources (1 to 250) for an event selector.
* The limit of number of resources on an individual event selector is configurable up to 250.
* However, this upper limit is allowed only if the total number of data resources does not
* exceed 250 across all event selectors for a trail.</p>
* </li>
* <li>
* <p>Specify up to 500 values for all conditions in all advanced event selectors for a trail.</p>
* </li>
* <li>
* <p>Specify a valid value for a parameter. For example, specifying the <code>ReadWriteType</code>
* parameter with a value of <code>read-only</code> is not valid.</p>
* </li>
* </ul>
*/
export class InvalidEventSelectorsException extends __BaseException {
readonly name: "InvalidEventSelectorsException" = "InvalidEventSelectorsException";
readonly $fault: "client" = "client";
/**
* <p>Brief description of the exception returned by the request.</p>
*/
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidEventSelectorsException, __BaseException>) {
super({
name: "InvalidEventSelectorsException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidEventSelectorsException.prototype);
this.Message = opts.Message;
}
}

/**
* <p>This exception is thrown when the KMS key ARN is not valid.</p>
*/
Expand Down Expand Up @@ -2279,7 +2325,6 @@ export interface DescribeTrailsRequest {
* <p>
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
* </p>
*
* <p>If an empty list is specified, information for the trail in the current region is returned.</p>
* <ul>
* <li>
Expand Down Expand Up @@ -2672,7 +2717,6 @@ export interface DataResource {
* </p>
* </li>
* </ul>
*
* <p>The following resource types are also available through <i>advanced</i> event selectors.
* Basic event selector resource types are valid in advanced event selectors, but
* advanced event selector resource types are not valid in basic event selectors.
Expand Down Expand Up @@ -2793,7 +2837,6 @@ export interface EventSelector {
* <p>Specify if you want your event selector to include management events for your trail.</p>
* <p>
* For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html">Management Events</a> in the <i>CloudTrail User Guide</i>.</p>
*
* <p>By default, the value is <code>true</code>.</p>
* <p>The first copy of management events is free. You are charged for additional copies of management
* events that you are logging on any subsequent trail in the same region. For more information about
Expand Down Expand Up @@ -3261,7 +3304,7 @@ export interface GetTrailStatusRequest {
/**
* <p>Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a
* shadow trail (a replication of the trail in another region), you must specify its ARN. The following is the format of a trail ARN.</p>
* <p>
* <p>
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
* </p>
*/
Expand Down Expand Up @@ -4205,52 +4248,6 @@ export interface LookupEventsResponse {
NextToken?: string;
}

/**
* <p>This exception is thrown when the <code>PutEventSelectors</code> operation is called with a number of event
* selectors, advanced event selectors, or data resources that is not valid. The combination of event selectors or advanced event selectors and
* data resources is not valid. A trail can have up to 5 event selectors. If a trail uses advanced event selectors, a maximum
* of 500 total values for all conditions in all advanced event selectors is allowed. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.</p>
* <p>You can:</p>
* <ul>
* <li>
* <p>Specify a valid number of event selectors (1 to 5) for a trail.</p>
* </li>
* <li>
* <p>Specify a valid number of data resources (1 to 250) for an event selector.
* The limit of number of resources on an individual event selector is configurable up to 250.
* However, this upper limit is allowed only if the total number of data resources does not
* exceed 250 across all event selectors for a trail.</p>
* </li>
* <li>
* <p>Specify up to 500 values for all conditions in all advanced event selectors for a trail.</p>
* </li>
* <li>
* <p>Specify a valid value for a parameter. For example, specifying the <code>ReadWriteType</code>
* parameter with a value of <code>read-only</code> is not valid.</p>
* </li>
* </ul>
*/
export class InvalidEventSelectorsException extends __BaseException {
readonly name: "InvalidEventSelectorsException" = "InvalidEventSelectorsException";
readonly $fault: "client" = "client";
/**
* <p>Brief description of the exception returned by the request.</p>
*/
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidEventSelectorsException, __BaseException>) {
super({
name: "InvalidEventSelectorsException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidEventSelectorsException.prototype);
this.Message = opts.Message;
}
}

export interface PutEventSelectorsRequest {
/**
* <p>Specifies the name of the trail or trail ARN. If you specify a trail name, the
Expand Down Expand Up @@ -4690,7 +4687,7 @@ export interface StartLoggingRequest {
/**
* <p>Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs Amazon Web Services API calls.
* The following is the format of a trail ARN.</p>
* <p>
* <p>
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
* </p>
*/
Expand Down Expand Up @@ -4857,7 +4854,7 @@ export interface StopLoggingRequest {
/**
* <p>Specifies the name or the CloudTrail ARN of the trail for which CloudTrail will stop logging Amazon Web Services
* API calls. The following is the format of a trail ARN.</p>
* <p>
* <p>
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
* </p>
*/
Expand Down Expand Up @@ -5032,7 +5029,7 @@ export interface UpdateTrailRequest {
* </li>
* </ul>
* <p>If <code>Name</code> is a trail ARN, it must be in the following format.</p>
* <p>
* <p>
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
* </p>
*/
Expand Down Expand Up @@ -5195,7 +5192,6 @@ export interface UpdateTrailResponse {

/**
* <p>Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.</p>
*
* <p>
* <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code>
* </p>
Expand Down
Loading

0 comments on commit 07c2d21

Please sign in to comment.