Skip to content

Commit 3b927df

Browse files
This release introduces new APIs for creating and managing CloudTrail Lake dashboards. It also adds support for resource-based policies on CloudTrail EventDataStore and Dashboard resource.
1 parent 4461bf3 commit 3b927df

File tree

84 files changed

+11280
-669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+11280
-669
lines changed

generator/ServiceModels/cloudtrail/cloudtrail-2013-11-01.api.json

Lines changed: 384 additions & 10 deletions
Large diffs are not rendered by default.

generator/ServiceModels/cloudtrail/cloudtrail-2013-11-01.docs.json

Lines changed: 301 additions & 33 deletions
Large diffs are not rendered by default.

generator/ServiceModels/cloudtrail/cloudtrail-2013-11-01.normal.json

Lines changed: 619 additions & 29 deletions
Large diffs are not rendered by default.

sdk/code-analysis/ServiceAnalysis/CloudTrail/Generated/PropertyValueRules.xml

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,24 @@
66
<max>256</max>
77
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
88
</property-value-rule>
9+
<property-value-rule>
10+
<property>Amazon.CloudTrail.Model.CancelQueryRequest.EventDataStoreOwnerAccountId</property>
11+
<min>12</min>
12+
<max>16</max>
13+
<pattern>\d+</pattern>
14+
</property-value-rule>
915
<property-value-rule>
1016
<property>Amazon.CloudTrail.Model.CancelQueryRequest.QueryId</property>
1117
<min>36</min>
1218
<max>36</max>
1319
<pattern>^[a-f0-9\-]+$</pattern>
1420
</property-value-rule>
21+
<property-value-rule>
22+
<property>Amazon.CloudTrail.Model.CancelQueryResponse.EventDataStoreOwnerAccountId</property>
23+
<min>12</min>
24+
<max>16</max>
25+
<pattern>\d+</pattern>
26+
</property-value-rule>
1527
<property-value-rule>
1628
<property>Amazon.CloudTrail.Model.CancelQueryResponse.QueryId</property>
1729
<min>36</min>
@@ -48,6 +60,22 @@
4860
<max>256</max>
4961
<pattern>.*</pattern>
5062
</property-value-rule>
63+
<property-value-rule>
64+
<property>Amazon.CloudTrail.Model.CreateDashboardRequest.Name</property>
65+
<min>3</min>
66+
<max>128</max>
67+
<pattern>^[a-zA-Z0-9_\-]+$</pattern>
68+
</property-value-rule>
69+
<property-value-rule>
70+
<property>Amazon.CloudTrail.Model.CreateDashboardResponse.DashboardArn</property>
71+
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
72+
</property-value-rule>
73+
<property-value-rule>
74+
<property>Amazon.CloudTrail.Model.CreateDashboardResponse.Name</property>
75+
<min>3</min>
76+
<max>128</max>
77+
<pattern>^[a-zA-Z0-9_\-]+$</pattern>
78+
</property-value-rule>
5179
<property-value-rule>
5280
<property>Amazon.CloudTrail.Model.CreateEventDataStoreRequest.KmsKeyId</property>
5381
<min>1</min>
@@ -94,6 +122,10 @@
94122
<max>256</max>
95123
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
96124
</property-value-rule>
125+
<property-value-rule>
126+
<property>Amazon.CloudTrail.Model.DeleteDashboardRequest.DashboardId</property>
127+
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
128+
</property-value-rule>
97129
<property-value-rule>
98130
<property>Amazon.CloudTrail.Model.DeleteEventDataStoreRequest.EventDataStore</property>
99131
<min>3</min>
@@ -118,6 +150,12 @@
118150
<max>256</max>
119151
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
120152
</property-value-rule>
153+
<property-value-rule>
154+
<property>Amazon.CloudTrail.Model.DescribeQueryRequest.EventDataStoreOwnerAccountId</property>
155+
<min>12</min>
156+
<max>16</max>
157+
<pattern>\d+</pattern>
158+
</property-value-rule>
121159
<property-value-rule>
122160
<property>Amazon.CloudTrail.Model.DescribeQueryRequest.QueryAlias</property>
123161
<min>1</min>
@@ -130,6 +168,12 @@
130168
<max>36</max>
131169
<pattern>^[a-f0-9\-]+$</pattern>
132170
</property-value-rule>
171+
<property-value-rule>
172+
<property>Amazon.CloudTrail.Model.DescribeQueryRequest.RefreshId</property>
173+
<min>10</min>
174+
<max>20</max>
175+
<pattern>\d+</pattern>
176+
</property-value-rule>
133177
<property-value-rule>
134178
<property>Amazon.CloudTrail.Model.DescribeQueryResponse.DeliveryS3Uri</property>
135179
<max>1024</max>
@@ -141,6 +185,12 @@
141185
<max>1000</max>
142186
<pattern>.*</pattern>
143187
</property-value-rule>
188+
<property-value-rule>
189+
<property>Amazon.CloudTrail.Model.DescribeQueryResponse.EventDataStoreOwnerAccountId</property>
190+
<min>12</min>
191+
<max>16</max>
192+
<pattern>\d+</pattern>
193+
</property-value-rule>
144194
<property-value-rule>
145195
<property>Amazon.CloudTrail.Model.DescribeQueryResponse.Prompt</property>
146196
<min>3</min>
@@ -201,6 +251,12 @@
201251
<max>500</max>
202252
<pattern>^[ -~\n]*$</pattern>
203253
</property-value-rule>
254+
<property-value-rule>
255+
<property>Amazon.CloudTrail.Model.GenerateQueryResponse.EventDataStoreOwnerAccountId</property>
256+
<min>12</min>
257+
<max>16</max>
258+
<pattern>\d+</pattern>
259+
</property-value-rule>
204260
<property-value-rule>
205261
<property>Amazon.CloudTrail.Model.GenerateQueryResponse.QueryAlias</property>
206262
<min>1</min>
@@ -237,6 +293,26 @@
237293
<max>256</max>
238294
<pattern>.*</pattern>
239295
</property-value-rule>
296+
<property-value-rule>
297+
<property>Amazon.CloudTrail.Model.GetDashboardRequest.DashboardId</property>
298+
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
299+
</property-value-rule>
300+
<property-value-rule>
301+
<property>Amazon.CloudTrail.Model.GetDashboardResponse.DashboardArn</property>
302+
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
303+
</property-value-rule>
304+
<property-value-rule>
305+
<property>Amazon.CloudTrail.Model.GetDashboardResponse.LastRefreshFailureReason</property>
306+
<min>4</min>
307+
<max>1000</max>
308+
<pattern>.*</pattern>
309+
</property-value-rule>
310+
<property-value-rule>
311+
<property>Amazon.CloudTrail.Model.GetDashboardResponse.LastRefreshId</property>
312+
<min>10</min>
313+
<max>20</max>
314+
<pattern>\d+</pattern>
315+
</property-value-rule>
240316
<property-value-rule>
241317
<property>Amazon.CloudTrail.Model.GetEventDataStoreRequest.EventDataStore</property>
242318
<min>3</min>
@@ -308,6 +384,12 @@
308384
<max>256</max>
309385
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
310386
</property-value-rule>
387+
<property-value-rule>
388+
<property>Amazon.CloudTrail.Model.GetQueryResultsRequest.EventDataStoreOwnerAccountId</property>
389+
<min>12</min>
390+
<max>16</max>
391+
<pattern>\d+</pattern>
392+
</property-value-rule>
311393
<property-value-rule>
312394
<property>Amazon.CloudTrail.Model.GetQueryResultsRequest.MaxQueryResults</property>
313395
<min>1</min>
@@ -343,6 +425,11 @@
343425
<max>256</max>
344426
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
345427
</property-value-rule>
428+
<property-value-rule>
429+
<property>Amazon.CloudTrail.Model.GetResourcePolicyResponse.DelegatedAdminResourcePolicy</property>
430+
<min>1</min>
431+
<max>8192</max>
432+
</property-value-rule>
346433
<property-value-rule>
347434
<property>Amazon.CloudTrail.Model.GetResourcePolicyResponse.ResourceArn</property>
348435
<min>3</min>
@@ -371,6 +458,29 @@
371458
<max>1000</max>
372459
<pattern>.*</pattern>
373460
</property-value-rule>
461+
<property-value-rule>
462+
<property>Amazon.CloudTrail.Model.ListDashboardsRequest.MaxResults</property>
463+
<min>1</min>
464+
<max>1000</max>
465+
</property-value-rule>
466+
<property-value-rule>
467+
<property>Amazon.CloudTrail.Model.ListDashboardsRequest.NamePrefix</property>
468+
<min>3</min>
469+
<max>128</max>
470+
<pattern>^[a-zA-Z0-9_\-]+$</pattern>
471+
</property-value-rule>
472+
<property-value-rule>
473+
<property>Amazon.CloudTrail.Model.ListDashboardsRequest.NextToken</property>
474+
<min>4</min>
475+
<max>1000</max>
476+
<pattern>.*</pattern>
477+
</property-value-rule>
478+
<property-value-rule>
479+
<property>Amazon.CloudTrail.Model.ListDashboardsResponse.NextToken</property>
480+
<min>4</min>
481+
<max>1000</max>
482+
<pattern>.*</pattern>
483+
</property-value-rule>
374484
<property-value-rule>
375485
<property>Amazon.CloudTrail.Model.ListEventDataStoresRequest.MaxResults</property>
376486
<min>1</min>
@@ -547,6 +657,11 @@
547657
<min>1</min>
548658
<max>8192</max>
549659
</property-value-rule>
660+
<property-value-rule>
661+
<property>Amazon.CloudTrail.Model.PutResourcePolicyResponse.DelegatedAdminResourcePolicy</property>
662+
<min>1</min>
663+
<max>8192</max>
664+
</property-value-rule>
550665
<property-value-rule>
551666
<property>Amazon.CloudTrail.Model.PutResourcePolicyResponse.ResourceArn</property>
552667
<min>3</min>
@@ -593,6 +708,16 @@
593708
<min>7</min>
594709
<max>3653</max>
595710
</property-value-rule>
711+
<property-value-rule>
712+
<property>Amazon.CloudTrail.Model.StartDashboardRefreshRequest.DashboardId</property>
713+
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
714+
</property-value-rule>
715+
<property-value-rule>
716+
<property>Amazon.CloudTrail.Model.StartDashboardRefreshResponse.RefreshId</property>
717+
<min>10</min>
718+
<max>20</max>
719+
<pattern>\d+</pattern>
720+
</property-value-rule>
596721
<property-value-rule>
597722
<property>Amazon.CloudTrail.Model.StartEventDataStoreIngestionRequest.EventDataStore</property>
598723
<min>3</min>
@@ -616,6 +741,12 @@
616741
<max>1024</max>
617742
<pattern>s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?</pattern>
618743
</property-value-rule>
744+
<property-value-rule>
745+
<property>Amazon.CloudTrail.Model.StartQueryRequest.EventDataStoreOwnerAccountId</property>
746+
<min>12</min>
747+
<max>16</max>
748+
<pattern>\d+</pattern>
749+
</property-value-rule>
619750
<property-value-rule>
620751
<property>Amazon.CloudTrail.Model.StartQueryRequest.QueryAlias</property>
621752
<min>1</min>
@@ -628,6 +759,12 @@
628759
<max>10000</max>
629760
<pattern>(?s).*</pattern>
630761
</property-value-rule>
762+
<property-value-rule>
763+
<property>Amazon.CloudTrail.Model.StartQueryResponse.EventDataStoreOwnerAccountId</property>
764+
<min>12</min>
765+
<max>16</max>
766+
<pattern>\d+</pattern>
767+
</property-value-rule>
631768
<property-value-rule>
632769
<property>Amazon.CloudTrail.Model.StartQueryResponse.QueryId</property>
633770
<min>36</min>
@@ -682,6 +819,20 @@
682819
<max>256</max>
683820
<pattern>.*</pattern>
684821
</property-value-rule>
822+
<property-value-rule>
823+
<property>Amazon.CloudTrail.Model.UpdateDashboardRequest.DashboardId</property>
824+
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
825+
</property-value-rule>
826+
<property-value-rule>
827+
<property>Amazon.CloudTrail.Model.UpdateDashboardResponse.DashboardArn</property>
828+
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
829+
</property-value-rule>
830+
<property-value-rule>
831+
<property>Amazon.CloudTrail.Model.UpdateDashboardResponse.Name</property>
832+
<min>3</min>
833+
<max>128</max>
834+
<pattern>^[a-zA-Z0-9_\-]+$</pattern>
835+
</property-value-rule>
685836
<property-value-rule>
686837
<property>Amazon.CloudTrail.Model.UpdateEventDataStoreRequest.EventDataStore</property>
687838
<min>3</min>
@@ -758,6 +909,10 @@
758909
<max>128</max>
759910
<pattern>^[a-zA-Z0-9._\-]+$</pattern>
760911
</property-value-rule>
912+
<property-value-rule>
913+
<property>Amazon.CloudTrail.Model.DashboardDetail.DashboardArn</property>
914+
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
915+
</property-value-rule>
761916
<property-value-rule>
762917
<property>Amazon.CloudTrail.Model.Destination.Location</property>
763918
<min>3</min>
@@ -826,6 +981,16 @@
826981
<max>36</max>
827982
<pattern>^[a-f0-9\-]+$</pattern>
828983
</property-value-rule>
984+
<property-value-rule>
985+
<property>Amazon.CloudTrail.Model.RefreshSchedule.TimeOfDay</property>
986+
<pattern>^[0-9]{2}:[0-9]{2}</pattern>
987+
</property-value-rule>
988+
<property-value-rule>
989+
<property>Amazon.CloudTrail.Model.RequestWidget.QueryStatement</property>
990+
<min>1</min>
991+
<max>10000</max>
992+
<pattern>(?s).*</pattern>
993+
</property-value-rule>
829994
<property-value-rule>
830995
<property>Amazon.CloudTrail.Model.Tag.Key</property>
831996
<min>1</min>
@@ -836,4 +1001,16 @@
8361001
<min>1</min>
8371002
<max>256</max>
8381003
</property-value-rule>
1004+
<property-value-rule>
1005+
<property>Amazon.CloudTrail.Model.Widget.QueryAlias</property>
1006+
<min>1</min>
1007+
<max>256</max>
1008+
<pattern>^[a-zA-Z][a-zA-Z0-9._\-]*$</pattern>
1009+
</property-value-rule>
1010+
<property-value-rule>
1011+
<property>Amazon.CloudTrail.Model.Widget.QueryStatement</property>
1012+
<min>1</min>
1013+
<max>10000</max>
1014+
<pattern>(?s).*</pattern>
1015+
</property-value-rule>
8391016
</property-value-rules>

sdk/src/Services/CloudTrail/Generated/Model/AddTagsRequest.cs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ namespace Amazon.CloudTrail.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the AddTags operation.
34-
/// Adds one or more tags to a trail, event data store, or channel, up to a limit of 50.
35-
/// Overwrites an existing tag's value when a new value is specified for an existing tag
36-
/// key. Tag key names must be unique; you cannot have two keys with the same name but
37-
/// different values. If you specify a key without a value, the tag will be created with
38-
/// the specified key and a value of null. You can tag a trail or event data store that
39-
/// applies to all Amazon Web Services Regions only from the Region in which the trail
40-
/// or event data store was created (also known as its home Region).
34+
/// Adds one or more tags to a trail, event data store, dashboard, or channel, up to a
35+
/// limit of 50. Overwrites an existing tag's value when a new value is specified for
36+
/// an existing tag key. Tag key names must be unique; you cannot have two keys with the
37+
/// same name but different values. If you specify a key without a value, the tag will
38+
/// be created with the specified key and a value of null. You can tag a trail or event
39+
/// data store that applies to all Amazon Web Services Regions only from the Region in
40+
/// which the trail or event data store was created (also known as its home Region).
4141
/// </summary>
4242
public partial class AddTagsRequest : AmazonCloudTrailRequest
4343
{
@@ -47,8 +47,8 @@ public partial class AddTagsRequest : AmazonCloudTrailRequest
4747
/// <summary>
4848
/// Gets and sets the property ResourceId.
4949
/// <para>
50-
/// Specifies the ARN of the trail, event data store, or channel to which one or more
51-
/// tags will be added.
50+
/// Specifies the ARN of the trail, event data store, dashboard, or channel to which one
51+
/// or more tags will be added.
5252
/// </para>
5353
///
5454
/// <para>
@@ -62,6 +62,11 @@ public partial class AddTagsRequest : AmazonCloudTrailRequest
6262
/// </para>
6363
///
6464
/// <para>
65+
/// The format of a dashboard ARN is: <c>arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash</c>
66+
///
67+
/// </para>
68+
///
69+
/// <para>
6570
/// The format of a channel ARN is: <c>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</c>
6671
///
6772
/// </para>

sdk/src/Services/CloudTrail/Generated/Model/CancelQueryRequest.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ namespace Amazon.CloudTrail.Model
4040
public partial class CancelQueryRequest : AmazonCloudTrailRequest
4141
{
4242
private string _eventDataStore;
43+
private string _eventDataStoreOwnerAccountId;
4344
private string _queryId;
4445

4546
/// <summary>
@@ -63,6 +64,25 @@ internal bool IsSetEventDataStore()
6364
return this._eventDataStore != null;
6465
}
6566

67+
/// <summary>
68+
/// Gets and sets the property EventDataStoreOwnerAccountId.
69+
/// <para>
70+
/// The account ID of the event data store owner.
71+
/// </para>
72+
/// </summary>
73+
[AWSProperty(Min=12, Max=16)]
74+
public string EventDataStoreOwnerAccountId
75+
{
76+
get { return this._eventDataStoreOwnerAccountId; }
77+
set { this._eventDataStoreOwnerAccountId = value; }
78+
}
79+
80+
// Check to see if EventDataStoreOwnerAccountId property is set
81+
internal bool IsSetEventDataStoreOwnerAccountId()
82+
{
83+
return this._eventDataStoreOwnerAccountId != null;
84+
}
85+
6686
/// <summary>
6787
/// Gets and sets the property QueryId.
6888
/// <para>

0 commit comments

Comments
 (0)