Skip to content

Commit 772c52d

Browse files
This release includes fix for InvestigationGroup timestamp conversion issue.
1 parent 584675e commit 772c52d

21 files changed

+245
-276
lines changed

generator/ServiceModels/aiops/aiops-2018-05-10.api.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,7 @@
312312
},
313313
"DeleteInvestigationGroupPolicyOutput":{
314314
"type":"structure",
315-
"members":{
316-
}
315+
"members":{}
317316
},
318317
"DeleteInvestigationGroupPolicyRequest":{
319318
"type":"structure",
@@ -395,9 +394,9 @@
395394
"type":"structure",
396395
"members":{
397396
"createdBy":{"shape":"IdentifierStringWithPatternAndLengthLimits"},
398-
"createdAt":{"shape":"Timestamp"},
397+
"createdAt":{"shape":"Long"},
399398
"lastModifiedBy":{"shape":"IdentifierStringWithPatternAndLengthLimits"},
400-
"lastModifiedAt":{"shape":"Timestamp"},
399+
"lastModifiedAt":{"shape":"Long"},
401400
"name":{"shape":"StringWithPatternAndLengthLimits"},
402401
"arn":{"shape":"InvestigationGroupArn"},
403402
"roleArn":{"shape":"RoleArn"},
@@ -500,6 +499,10 @@
500499
}
501500
}
502501
},
502+
"Long":{
503+
"type":"long",
504+
"box":true
505+
},
503506
"PutInvestigationGroupPolicyRequest":{
504507
"type":"structure",
505508
"required":[
@@ -611,8 +614,7 @@
611614
},
612615
"TagResourceResponse":{
613616
"type":"structure",
614-
"members":{
615-
}
617+
"members":{}
616618
},
617619
"TagValue":{
618620
"type":"string",
@@ -636,7 +638,6 @@
636638
},
637639
"exception":true
638640
},
639-
"Timestamp":{"type":"timestamp"},
640641
"UntagResourceRequest":{
641642
"type":"structure",
642643
"required":[
@@ -658,13 +659,11 @@
658659
},
659660
"UntagResourceResponse":{
660661
"type":"structure",
661-
"members":{
662-
}
662+
"members":{}
663663
},
664664
"UpdateInvestigationGroupOutput":{
665665
"type":"structure",
666-
"members":{
667-
}
666+
"members":{}
668667
},
669668
"UpdateInvestigationGroupRequest":{
670669
"type":"structure",

generator/ServiceModels/aiops/aiops-2018-05-10.docs.json

Lines changed: 51 additions & 80 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/aiops/aiops-2018-05-10.normal.json

Lines changed: 27 additions & 28 deletions
Large diffs are not rendered by default.

sdk/src/Services/AIOps/Generated/Model/CreateInvestigationGroupRequest.cs

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,21 @@ namespace Amazon.AIOps.Model
6161
///
6262
/// <para>
6363
/// To create an investigation group and set up CloudWatch investigations, you must be
64-
/// signed in to an IAM principal that has the either the <c>AIOpsConsoleAdminPolicy</c>
65-
/// or the <c>AdministratorAccess</c> IAM policy attached, or to an account that has similar
64+
/// signed in to an IAM principal that has either the <c>AIOpsConsoleAdminPolicy</c> or
65+
/// the <c>AdministratorAccess</c> IAM policy attached, or to an account that has similar
6666
/// permissions.
6767
/// </para>
6868
/// <important>
6969
/// <para>
7070
/// You can configure CloudWatch alarms to start investigations and add events to investigations.
7171
/// If you create your investigation group with <c>CreateInvestigationGroup</c> and you
72-
/// want to enable alarms to do this, you must use <a href="https://docs.aws.amazon.com/operationalinvestigations/latest/AmazonQDeveloperOperationalInvestigationsAPIReference/API_PutInvestigationGroupPolicy.html">PutInvestigationGroupPolicy</a>
72+
/// want to enable alarms to do this, you must use <c>PutInvestigationGroupPolicy</c>
7373
/// to create a resource policy that grants this permission to CloudWatch alarms.
7474
/// </para>
7575
///
7676
/// <para>
77-
/// For more information about configuring CloudWatch alarms to work with CloudWatch investigations,
78-
/// see
77+
/// For more information about configuring CloudWatch alarms, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html">Using
78+
/// Amazon CloudWatch alarms</a>
7979
/// </para>
8080
/// </important>
8181
/// </summary>
@@ -94,11 +94,11 @@ public partial class CreateInvestigationGroupRequest : AmazonAIOpsRequest
9494
/// <summary>
9595
/// Gets and sets the property ChatbotNotificationChannel.
9696
/// <para>
97-
/// Use this structure to integrate CloudWatch investigations with Amazon Q in chat applications.
97+
/// Use this structure to integrate CloudWatch investigations with chat applications.
9898
/// This structure is a string array. For the first string, specify the ARN of an Amazon
99-
/// SNS topic. For the array of strings, specify the ARNs of one or more Amazon Q in chat
100-
/// applications configurations that you want to associate with that topic. For more information
101-
/// about these configuration ARNs, see <a href="https://docs.aws.amazon.com/chatbot/latest/adminguide/getting-started.html">Getting
99+
/// SNS topic. For the array of strings, specify the ARNs of one or more chat applications
100+
/// configurations that you want to associate with that topic. For more information about
101+
/// these configuration ARNs, see <a href="https://docs.aws.amazon.com/chatbot/latest/adminguide/getting-started.html">Getting
102102
/// started with Amazon Q in chat applications</a> and <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awschatbot.html#awschatbot-resources-for-iam-policies">Resource
103103
/// type defined by Amazon Web Services Chatbot</a>.
104104
/// </para>
@@ -118,8 +118,7 @@ internal bool IsSetChatbotNotificationChannel()
118118
/// <summary>
119119
/// Gets and sets the property CrossAccountConfigurations.
120120
/// <para>
121-
/// Number of <c>sourceAccountId</c> values that have been configured for cross-account
122-
/// access.
121+
/// List of <c>sourceRoleArn</c> values that have been configured for cross-account access.
123122
/// </para>
124123
/// </summary>
125124
[AWSProperty(Min=0, Max=25)]
@@ -228,7 +227,7 @@ internal bool IsSetRetentionInDays()
228227
///
229228
/// <para>
230229
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Investigations-Security.html#Investigations-Security-Data">How
231-
/// to control what data Amazon Q has access to during investigations</a>.
230+
/// to control what data CloudWatch investigations has access to during investigations</a>.
232231
/// </para>
233232
/// </summary>
234233
[AWSProperty(Required=true, Min=20, Max=2048)]
@@ -248,18 +247,18 @@ internal bool IsSetRoleArn()
248247
/// Gets and sets the property TagKeyBoundaries.
249248
/// <para>
250249
/// Enter the existing custom tag keys for custom applications in your system. Resource
251-
/// tags help Amazon Q narrow the search space when it is unable to discover definite
252-
/// relationships between resources. For example, to discover that an Amazon ECS service
253-
/// depends on an Amazon RDS database, Amazon Q can discover this relationship using data
254-
/// sources such as X-Ray and CloudWatch Application Signals. However, if you haven't
255-
/// deployed these features, Amazon Q will attempt to identify possible relationships.
256-
/// Tag boundaries can be used to narrow the resources that will be discovered by Amazon
257-
/// Q in these cases.
250+
/// tags help CloudWatch investigations narrow the search space when it is unable to discover
251+
/// definite relationships between resources. For example, to discover that an Amazon
252+
/// ECS service depends on an Amazon RDS database, CloudWatch investigations can discover
253+
/// this relationship using data sources such as X-Ray and CloudWatch Application Signals.
254+
/// However, if you haven't deployed these features, CloudWatch investigations will attempt
255+
/// to identify possible relationships. Tag boundaries can be used to narrow the resources
256+
/// that will be discovered by CloudWatch investigations in these cases.
258257
/// </para>
259258
///
260259
/// <para>
261260
/// You don't need to enter tags created by myApplications or CloudFormation, because
262-
/// Amazon Q can automatically detect those tags.
261+
/// CloudWatch investigations can automatically detect those tags.
263262
/// </para>
264263
/// </summary>
265264
public List<string> TagKeyBoundaries

sdk/src/Services/AIOps/Generated/Model/EncryptionConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal bool IsSetKmsKeyId()
6262
/// Gets and sets the property Type.
6363
/// <para>
6464
/// Displays whether investigation data is encrypted by a customer managed key or an Amazon
65-
/// Web Services owned kay.
65+
/// Web Services owned key.
6666
/// </para>
6767
/// </summary>
6868
public EncryptionConfigurationType Type

sdk/src/Services/AIOps/Generated/Model/GetInvestigationGroupPolicyRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ namespace Amazon.AIOps.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the GetInvestigationGroupPolicy operation.
34-
/// Returns the IAM resource policy that is associated with the specified investigation
35-
/// group.
34+
/// Returns the JSON of the IAM resource policy associated with the specified investigation
35+
/// group in a string. For example, <c>{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"aiops.alarms.cloudwatch.amazonaws.com\"},\"Action\":[\"aiops:CreateInvestigation\",\"aiops:CreateInvestigationEvent\"],\"Resource\":\"*\",\"Condition\":{\"StringEquals\":{\"aws:SourceAccount\":\"111122223333\"},\"ArnLike\":{\"aws:SourceArn\":\"arn:aws:cloudwatch:us-east-1:111122223333:alarm:*\"}}}]}</c>.
3636
/// </summary>
3737
public partial class GetInvestigationGroupPolicyRequest : AmazonAIOpsRequest
3838
{

sdk/src/Services/AIOps/Generated/Model/GetInvestigationGroupRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public partial class GetInvestigationGroupRequest : AmazonAIOpsRequest
4141
/// Gets and sets the property Identifier.
4242
/// <para>
4343
/// Specify either the name or the ARN of the investigation group that you want to view.
44+
/// This is used to set the name of the investigation group.
4445
/// </para>
4546
/// </summary>
4647
[AWSProperty(Required=true)]

sdk/src/Services/AIOps/Generated/Model/GetInvestigationGroupResponse.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public partial class GetInvestigationGroupResponse : AmazonWebServiceResponse
3636
{
3737
private string _arn;
3838
private Dictionary<string, List<string>> _chatbotNotificationChannel = AWSConfigs.InitializeCollections ? new Dictionary<string, List<string>>() : null;
39-
private DateTime? _createdAt;
39+
private long? _createdAt;
4040
private string _createdBy;
4141
private List<CrossAccountConfiguration> _crossAccountConfigurations = AWSConfigs.InitializeCollections ? new List<CrossAccountConfiguration>() : null;
4242
private EncryptionConfiguration _encryptionConfiguration;
4343
private bool? _isCloudTrailEventHistoryEnabled;
44-
private DateTime? _lastModifiedAt;
44+
private long? _lastModifiedAt;
4545
private string _lastModifiedBy;
4646
private string _name;
4747
private long? _retentionInDays;
@@ -70,9 +70,9 @@ internal bool IsSetArn()
7070
/// Gets and sets the property ChatbotNotificationChannel.
7171
/// <para>
7272
/// This structure is a string array. The first string is the ARN of a Amazon SNS topic.
73-
/// The array of strings display the ARNs of Amazon Q in chat applications configurations
74-
/// that are associated with that topic. For more information about these configuration
75-
/// ARNs, see <a href="https://docs.aws.amazon.com/chatbot/latest/adminguide/getting-started.html">Getting
73+
/// The array of strings display the ARNs of chat applications configurations that are
74+
/// associated with that topic. For more information about these configuration ARNs, see
75+
/// <a href="https://docs.aws.amazon.com/chatbot/latest/adminguide/getting-started.html">Getting
7676
/// started with Amazon Q in chat applications</a> and <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awschatbot.html#awschatbot-resources-for-iam-policies">Resource
7777
/// type defined by Amazon Web Services Chatbot</a>.
7878
/// </para>
@@ -95,7 +95,7 @@ internal bool IsSetChatbotNotificationChannel()
9595
/// The date and time that the investigation group was created.
9696
/// </para>
9797
/// </summary>
98-
public DateTime CreatedAt
98+
public long CreatedAt
9999
{
100100
get { return this._createdAt.GetValueOrDefault(); }
101101
set { this._createdAt = value; }
@@ -191,7 +191,7 @@ internal bool IsSetIsCloudTrailEventHistoryEnabled()
191191
/// The date and time that the investigation group was most recently modified.
192192
/// </para>
193193
/// </summary>
194-
public DateTime LastModifiedAt
194+
public long LastModifiedAt
195195
{
196196
get { return this._lastModifiedAt.GetValueOrDefault(); }
197197
set { this._lastModifiedAt = value; }
@@ -284,8 +284,9 @@ internal bool IsSetRoleArn()
284284
/// Gets and sets the property TagKeyBoundaries.
285285
/// <para>
286286
/// Displays the custom tag keys for custom applications in your system that you have
287-
/// specified in the investigation group. Resource tags help Amazon Q narrow the search
288-
/// space when it is unable to discover definite relationships between resources.
287+
/// specified in the investigation group. Resource tags help CloudWatch investigations
288+
/// narrow the search space when it is unable to discover definite relationships between
289+
/// resources.
289290
/// </para>
290291
/// </summary>
291292
public List<string> TagKeyBoundaries

sdk/src/Services/AIOps/Generated/Model/Internal/MarshallTransformations/GetInvestigationGroupResponseUnmarshaller.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont
6666
}
6767
if (context.TestExpression("createdAt", targetDepth))
6868
{
69-
var unmarshaller = DateTimeUnmarshaller.Instance;
69+
var unmarshaller = LongUnmarshaller.Instance;
7070
response.CreatedAt = unmarshaller.Unmarshall(context);
7171
continue;
7272
}
@@ -96,7 +96,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont
9696
}
9797
if (context.TestExpression("lastModifiedAt", targetDepth))
9898
{
99-
var unmarshaller = DateTimeUnmarshaller.Instance;
99+
var unmarshaller = LongUnmarshaller.Instance;
100100
response.LastModifiedAt = unmarshaller.Unmarshall(context);
101101
continue;
102102
}

0 commit comments

Comments
 (0)