Skip to content

Commit 0cf07d0

Browse files
This release adds Tag support for Event Action resource, through which customers can create event actions with Tags and retrieve event actions with Tags.
1 parent a01b7d8 commit 0cf07d0

File tree

9 files changed

+102
-1
lines changed

9 files changed

+102
-1
lines changed

generator/ServiceModels/dataexchange/dataexchange-2017-07-25.api.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,8 @@
926926
],
927927
"members":{
928928
"Action":{"shape":"Action"},
929-
"Event":{"shape":"Event"}
929+
"Event":{"shape":"Event"},
930+
"Tags":{"shape":"MapOf__string"}
930931
}
931932
},
932933
"CreateEventActionResponse":{
@@ -937,6 +938,7 @@
937938
"CreatedAt":{"shape":"Timestamp"},
938939
"Event":{"shape":"Event"},
939940
"Id":{"shape":"Id"},
941+
"Tags":{"shape":"MapOf__string"},
940942
"UpdatedAt":{"shape":"Timestamp"}
941943
}
942944
},
@@ -1470,6 +1472,7 @@
14701472
"CreatedAt":{"shape":"Timestamp"},
14711473
"Event":{"shape":"Event"},
14721474
"Id":{"shape":"Id"},
1475+
"Tags":{"shape":"MapOf__string"},
14731476
"UpdatedAt":{"shape":"Timestamp"}
14741477
}
14751478
},

generator/ServiceModels/dataexchange/dataexchange-2017-07-25.docs.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,10 +1069,13 @@
10691069
"CreateDataGrantResponse$Tags": "<p>The tags associated to the data grant. A tag is a key-value pair.</p>",
10701070
"CreateDataSetRequest$Tags": "<p>A data set tag is an optional label that you can assign to a data set when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to these data sets and revisions.</p>",
10711071
"CreateDataSetResponse$Tags": "<p>The tags for the data set.</p>",
1072+
"CreateEventActionRequest$Tags": "<p>Key-value pairs that you can associate with the event action.</p>",
1073+
"CreateEventActionResponse$Tags": "<p>The tags for the event action.</p>",
10721074
"CreateRevisionRequest$Tags": "<p>A revision tag is an optional label that you can assign to a revision when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to these data sets and revisions.</p>",
10731075
"CreateRevisionResponse$Tags": "<p>The tags for the revision.</p>",
10741076
"GetDataGrantResponse$Tags": "<p>The tags associated to the data grant. A tag is a key-value pair.</p>",
10751077
"GetDataSetResponse$Tags": "<p>The tags for the data set.</p>",
1078+
"GetEventActionResponse$Tags": "<p>The tags for the event action.</p>",
10761079
"GetRevisionResponse$Tags": "<p>The tags for the revision.</p>",
10771080
"ListTagsForResourceResponse$Tags": "<p>A label that consists of a customer-defined key and an optional value.</p>",
10781081
"SendApiAssetRequest$QueryStringParameters": "<p>Attach query string parameters to the end of the URI (for example, /v1/examplePath?exampleParam=exampleValue).</p>",

generator/ServiceModels/dataexchange/dataexchange-2017-07-25.normal.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,10 @@
12451245
"Event":{
12461246
"shape":"Event",
12471247
"documentation":"<p>What occurs to start an action.</p>"
1248+
},
1249+
"Tags":{
1250+
"shape":"MapOf__string",
1251+
"documentation":"<p>Key-value pairs that you can associate with the event action.</p>"
12481252
}
12491253
}
12501254
},
@@ -1271,6 +1275,10 @@
12711275
"shape":"Id",
12721276
"documentation":"<p>The unique identifier for the event action.</p>"
12731277
},
1278+
"Tags":{
1279+
"shape":"MapOf__string",
1280+
"documentation":"<p>The tags for the event action.</p>"
1281+
},
12741282
"UpdatedAt":{
12751283
"shape":"Timestamp",
12761284
"documentation":"<p>The date and time that the event action was last updated, in ISO 8601 format.</p>"
@@ -2236,6 +2244,10 @@
22362244
"shape":"Id",
22372245
"documentation":"<p>The unique identifier for the event action.</p>"
22382246
},
2247+
"Tags":{
2248+
"shape":"MapOf__string",
2249+
"documentation":"<p>The tags for the event action.</p>"
2250+
},
22392251
"UpdatedAt":{
22402252
"shape":"Timestamp",
22412253
"documentation":"<p>The date and time that the event action was last updated, in ISO 8601 format.</p>"

sdk/src/Services/DataExchange/Generated/Model/CreateEventActionRequest.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public partial class CreateEventActionRequest : AmazonDataExchangeRequest
3737
{
3838
private Action _action;
3939
private Event _event;
40+
private Dictionary<string, string> _tags = AWSConfigs.InitializeCollections ? new Dictionary<string, string>() : null;
4041

4142
/// <summary>
4243
/// Gets and sets the property Action.
@@ -76,5 +77,23 @@ internal bool IsSetEvent()
7677
return this._event != null;
7778
}
7879

80+
/// <summary>
81+
/// Gets and sets the property Tags.
82+
/// <para>
83+
/// Key-value pairs that you can associate with the event action.
84+
/// </para>
85+
/// </summary>
86+
public Dictionary<string, string> Tags
87+
{
88+
get { return this._tags; }
89+
set { this._tags = value; }
90+
}
91+
92+
// Check to see if Tags property is set
93+
internal bool IsSetTags()
94+
{
95+
return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections);
96+
}
97+
7998
}
8099
}

sdk/src/Services/DataExchange/Generated/Model/CreateEventActionResponse.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public partial class CreateEventActionResponse : AmazonWebServiceResponse
3939
private DateTime? _createdAt;
4040
private Event _event;
4141
private string _id;
42+
private Dictionary<string, string> _tags = AWSConfigs.InitializeCollections ? new Dictionary<string, string>() : null;
4243
private DateTime? _updatedAt;
4344

4445
/// <summary>
@@ -131,6 +132,24 @@ internal bool IsSetId()
131132
return this._id != null;
132133
}
133134

135+
/// <summary>
136+
/// Gets and sets the property Tags.
137+
/// <para>
138+
/// The tags for the event action.
139+
/// </para>
140+
/// </summary>
141+
public Dictionary<string, string> Tags
142+
{
143+
get { return this._tags; }
144+
set { this._tags = value; }
145+
}
146+
147+
// Check to see if Tags property is set
148+
internal bool IsSetTags()
149+
{
150+
return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections);
151+
}
152+
134153
/// <summary>
135154
/// Gets and sets the property UpdatedAt.
136155
/// <para>

sdk/src/Services/DataExchange/Generated/Model/GetEventActionResponse.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public partial class GetEventActionResponse : AmazonWebServiceResponse
3939
private DateTime? _createdAt;
4040
private Event _event;
4141
private string _id;
42+
private Dictionary<string, string> _tags = AWSConfigs.InitializeCollections ? new Dictionary<string, string>() : null;
4243
private DateTime? _updatedAt;
4344

4445
/// <summary>
@@ -131,6 +132,24 @@ internal bool IsSetId()
131132
return this._id != null;
132133
}
133134

135+
/// <summary>
136+
/// Gets and sets the property Tags.
137+
/// <para>
138+
/// The tags for the event action.
139+
/// </para>
140+
/// </summary>
141+
public Dictionary<string, string> Tags
142+
{
143+
get { return this._tags; }
144+
set { this._tags = value; }
145+
}
146+
147+
// Check to see if Tags property is set
148+
internal bool IsSetTags()
149+
{
150+
return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections);
151+
}
152+
134153
/// <summary>
135154
/// Gets and sets the property UpdatedAt.
136155
/// <para>

sdk/src/Services/DataExchange/Generated/Model/Internal/MarshallTransformations/CreateEventActionRequestMarshaller.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,20 @@ public IRequest Marshall(CreateEventActionRequest publicRequest)
8989
context.Writer.WriteObjectEnd();
9090
}
9191

92+
if(publicRequest.IsSetTags())
93+
{
94+
context.Writer.WritePropertyName("Tags");
95+
context.Writer.WriteObjectStart();
96+
foreach (var publicRequestTagsKvp in publicRequest.Tags)
97+
{
98+
context.Writer.WritePropertyName(publicRequestTagsKvp.Key);
99+
var publicRequestTagsValue = publicRequestTagsKvp.Value;
100+
101+
context.Writer.Write(publicRequestTagsValue);
102+
}
103+
context.Writer.WriteObjectEnd();
104+
}
105+
92106
writer.WriteObjectEnd();
93107
string snippet = stringWriter.ToString();
94108
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);

sdk/src/Services/DataExchange/Generated/Model/Internal/MarshallTransformations/CreateEventActionResponseUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont
8282
response.Id = unmarshaller.Unmarshall(context);
8383
continue;
8484
}
85+
if (context.TestExpression("Tags", targetDepth))
86+
{
87+
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
88+
response.Tags = unmarshaller.Unmarshall(context);
89+
continue;
90+
}
8591
if (context.TestExpression("UpdatedAt", targetDepth))
8692
{
8793
var unmarshaller = DateTimeUnmarshaller.Instance;

sdk/src/Services/DataExchange/Generated/Model/Internal/MarshallTransformations/GetEventActionResponseUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont
8282
response.Id = unmarshaller.Unmarshall(context);
8383
continue;
8484
}
85+
if (context.TestExpression("Tags", targetDepth))
86+
{
87+
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
88+
response.Tags = unmarshaller.Unmarshall(context);
89+
continue;
90+
}
8591
if (context.TestExpression("UpdatedAt", targetDepth))
8692
{
8793
var unmarshaller = DateTimeUnmarshaller.Instance;

0 commit comments

Comments
 (0)