Skip to content

Commit a01b7d8

Browse files
CloudTrail Feature Release: Support for Enriched Events with Configurable Context for Event Data Store
1 parent f131cf1 commit a01b7d8

28 files changed

+3986
-796
lines changed

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

Lines changed: 235 additions & 200 deletions
Large diffs are not rendered by default.

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

Lines changed: 260 additions & 393 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"version": "1.0",
3-
"examples": {
4-
}
3+
"examples": {}
54
}

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

Lines changed: 275 additions & 200 deletions
Large diffs are not rendered by default.

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@
313313
<max>20</max>
314314
<pattern>\d+</pattern>
315315
</property-value-rule>
316+
<property-value-rule>
317+
<property>Amazon.CloudTrail.Model.GetEventConfigurationResponse.EventDataStoreArn</property>
318+
<min>3</min>
319+
<max>256</max>
320+
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
321+
</property-value-rule>
316322
<property-value-rule>
317323
<property>Amazon.CloudTrail.Model.GetEventDataStoreRequest.EventDataStore</property>
318324
<min>3</min>
@@ -622,6 +628,12 @@
622628
<min>1</min>
623629
<max>50</max>
624630
</property-value-rule>
631+
<property-value-rule>
632+
<property>Amazon.CloudTrail.Model.PutEventConfigurationResponse.EventDataStoreArn</property>
633+
<min>3</min>
634+
<max>256</max>
635+
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
636+
</property-value-rule>
625637
<property-value-rule>
626638
<property>Amazon.CloudTrail.Model.PutInsightSelectorsRequest.EventDataStore</property>
627639
<min>3</min>
@@ -940,7 +952,7 @@
940952
<property>Amazon.CloudTrail.Model.Destination.Location</property>
941953
<min>3</min>
942954
<max>1024</max>
943-
<pattern>^[a-zA-Z0-9._/\-:]+$</pattern>
955+
<pattern>^[a-zA-Z0-9._/\-:*]+$</pattern>
944956
</property-value-rule>
945957
<property-value-rule>
946958
<property>Amazon.CloudTrail.Model.EventDataStore.EventDataStoreArn</property>
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the cloudtrail-2013-11-01.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.CloudTrail.Model
31+
{
32+
/// <summary>
33+
/// An object that contains information types to be included in CloudTrail enriched events.
34+
/// </summary>
35+
public partial class ContextKeySelector
36+
{
37+
private List<string> _equals = AWSConfigs.InitializeCollections ? new List<string>() : null;
38+
private Type _type;
39+
40+
/// <summary>
41+
/// Gets and sets the property Equals.
42+
/// <para>
43+
/// A list of keys defined by Type to be included in CloudTrail enriched events.
44+
/// </para>
45+
/// </summary>
46+
[AWSProperty(Required=true, Min=1, Max=50)]
47+
public new List<string> Equals
48+
{
49+
get { return this._equals; }
50+
set { this._equals = value; }
51+
}
52+
53+
// Check to see if Equals property is set
54+
internal bool IsSetEquals()
55+
{
56+
return this._equals != null && (this._equals.Count > 0 || !AWSConfigs.InitializeCollections);
57+
}
58+
59+
/// <summary>
60+
/// Gets and sets the property Type.
61+
/// <para>
62+
/// Specifies the type of the event record field in ContextKeySelector. Valid values include
63+
/// RequestContext, TagContext.
64+
/// </para>
65+
/// </summary>
66+
[AWSProperty(Required=true)]
67+
public Type Type
68+
{
69+
get { return this._type; }
70+
set { this._type = value; }
71+
}
72+
73+
// Check to see if Type property is set
74+
internal bool IsSetType()
75+
{
76+
return this._type != null;
77+
}
78+
79+
}
80+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the cloudtrail-2013-11-01.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.CloudTrail.Model
31+
{
32+
/// <summary>
33+
/// Container for the parameters to the GetEventConfiguration operation.
34+
/// Retrieves the current event configuration settings for the specified event data store,
35+
/// including details about maximum event size and context key selectors configured for
36+
/// the event data store.
37+
/// </summary>
38+
public partial class GetEventConfigurationRequest : AmazonCloudTrailRequest
39+
{
40+
private string _eventDataStore;
41+
42+
/// <summary>
43+
/// Gets and sets the property EventDataStore.
44+
/// <para>
45+
/// The Amazon Resource Name (ARN) or ID suffix of the ARN of the event data store for
46+
/// which you want to retrieve event configuration settings.
47+
/// </para>
48+
/// </summary>
49+
public string EventDataStore
50+
{
51+
get { return this._eventDataStore; }
52+
set { this._eventDataStore = value; }
53+
}
54+
55+
// Check to see if EventDataStore property is set
56+
internal bool IsSetEventDataStore()
57+
{
58+
return this._eventDataStore != null;
59+
}
60+
61+
}
62+
}
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the cloudtrail-2013-11-01.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.CloudTrail.Model
31+
{
32+
/// <summary>
33+
/// This is the response object from the GetEventConfiguration operation.
34+
/// </summary>
35+
public partial class GetEventConfigurationResponse : AmazonWebServiceResponse
36+
{
37+
private List<ContextKeySelector> _contextKeySelectors = AWSConfigs.InitializeCollections ? new List<ContextKeySelector>() : null;
38+
private string _eventDataStoreArn;
39+
private MaxEventSize _maxEventSize;
40+
41+
/// <summary>
42+
/// Gets and sets the property ContextKeySelectors.
43+
/// <para>
44+
/// The list of context key selectors that are configured for the event data store.
45+
/// </para>
46+
/// </summary>
47+
[AWSProperty(Max=2)]
48+
public List<ContextKeySelector> ContextKeySelectors
49+
{
50+
get { return this._contextKeySelectors; }
51+
set { this._contextKeySelectors = value; }
52+
}
53+
54+
// Check to see if ContextKeySelectors property is set
55+
internal bool IsSetContextKeySelectors()
56+
{
57+
return this._contextKeySelectors != null && (this._contextKeySelectors.Count > 0 || !AWSConfigs.InitializeCollections);
58+
}
59+
60+
/// <summary>
61+
/// Gets and sets the property EventDataStoreArn.
62+
/// <para>
63+
/// The Amazon Resource Name (ARN) or ID suffix of the ARN of the event data store for
64+
/// which the event configuration settings are returned.
65+
/// </para>
66+
/// </summary>
67+
[AWSProperty(Min=3, Max=256)]
68+
public string EventDataStoreArn
69+
{
70+
get { return this._eventDataStoreArn; }
71+
set { this._eventDataStoreArn = value; }
72+
}
73+
74+
// Check to see if EventDataStoreArn property is set
75+
internal bool IsSetEventDataStoreArn()
76+
{
77+
return this._eventDataStoreArn != null;
78+
}
79+
80+
/// <summary>
81+
/// Gets and sets the property MaxEventSize.
82+
/// <para>
83+
/// The maximum allowed size for events stored in the specified event data store.
84+
/// </para>
85+
/// </summary>
86+
public MaxEventSize MaxEventSize
87+
{
88+
get { return this._maxEventSize; }
89+
set { this._maxEventSize = value; }
90+
}
91+
92+
// Check to see if MaxEventSize property is set
93+
internal bool IsSetMaxEventSize()
94+
{
95+
return this._maxEventSize != null;
96+
}
97+
98+
}
99+
}

0 commit comments

Comments
 (0)