diff --git a/models/protocol_tests/generate.go b/models/protocol_tests/generate.go
index 0ee823feabc..d648fcdd01a 100644
--- a/models/protocol_tests/generate.go
+++ b/models/protocol_tests/generate.go
@@ -310,7 +310,7 @@ func (i *testCase) TestCase(idx int) string {
case "rest-xml":
i.InputTest.Body = util.SortXML(bytes.NewReader([]byte(i.InputTest.Body)))
case "json", "rest-json":
- i.InputTest.Body = strings.Replace(i.InputTest.Body, " ", "", -1)
+ // Nothing to do
}
jsonValues := buildJSONValues(i.Given.InputRef.Shape)
diff --git a/models/protocol_tests/input/ec2.json b/models/protocol_tests/input/ec2.json
index bbab2400def..9fa445a3312 100644
--- a/models/protocol_tests/input/ec2.json
+++ b/models/protocol_tests/input/ec2.json
@@ -383,9 +383,20 @@
"members": {
"TimeArg": {
"shape": "TimestampType"
+ },
+ "TimeCustom": {
+ "timestampFormat": "unixTimestamp",
+ "shape": "TimestampType"
+ },
+ "TimeFormat": {
+ "shape": "TimestampFormatType"
}
}
},
+ "TimestampFormatType": {
+ "timestampFormat": "unixTimestamp",
+ "type": "timestamp"
+ },
"TimestampType": {
"type": "timestamp"
}
@@ -399,11 +410,13 @@
"name": "OperationName"
},
"params": {
- "TimeArg": 1422172800
+ "TimeArg": 1422172800,
+ "TimeCustom": 1422172800,
+ "TimeFormat": 1422172800
},
"serialized": {
"uri": "/",
- "body": "Action=OperationName&Version=2014-01-01&TimeArg=2015-01-25T08%3A00%3A00Z"
+ "body": "Action=OperationName&Version=2014-01-01&TimeArg=2015-01-25T08%3A00%3A00Z&TimeCustom=1422172800&TimeFormat=1422172800"
}
}
]
diff --git a/models/protocol_tests/input/json.json b/models/protocol_tests/input/json.json
index 422897cc6f9..c5a35a0167e 100644
--- a/models/protocol_tests/input/json.json
+++ b/models/protocol_tests/input/json.json
@@ -57,9 +57,20 @@
"members": {
"TimeArg": {
"shape": "TimestampType"
+ },
+ "TimeCustom": {
+ "timestampFormat": "rfc822",
+ "shape": "TimestampType"
+ },
+ "TimeFormat": {
+ "shape": "TimestampFormatType"
}
}
},
+ "TimestampFormatType": {
+ "timestampFormat": "rfc822",
+ "type": "timestamp"
+ },
"TimestampType": {
"type": "timestamp"
}
@@ -73,10 +84,12 @@
"name": "OperationName"
},
"params": {
- "TimeArg": 1422172800
+ "TimeArg": 1422172800,
+ "TimeCustom": 1422172800,
+ "TimeFormat": 1422172800
},
"serialized": {
- "body": "{\"TimeArg\": 1422172800}",
+ "body": "{\"TimeArg\": 1422172800, \"TimeCustom\": \"Sun, 25 Jan 2015 08:00:00 GMT\", \"TimeFormat\": \"Sun, 25 Jan 2015 08:00:00 GMT\"}",
"headers": {
"X-Amz-Target": "com.amazonaws.foo.OperationName",
"Content-Type": "application/x-amz-json-1.1"
diff --git a/models/protocol_tests/input/query.json b/models/protocol_tests/input/query.json
index 0d530af99c1..bc2c0133b34 100644
--- a/models/protocol_tests/input/query.json
+++ b/models/protocol_tests/input/query.json
@@ -609,9 +609,20 @@
"members": {
"TimeArg": {
"shape": "TimestampType"
+ },
+ "TimeCustom": {
+ "timestampFormat": "unixTimestamp",
+ "shape": "TimestampType"
+ },
+ "TimeFormat": {
+ "shape": "TimestampFormatType"
}
}
},
+ "TimestampFormatType": {
+ "timestampFormat": "unixTimestamp",
+ "type": "timestamp"
+ },
"TimestampType": {
"type": "timestamp"
}
@@ -625,11 +636,13 @@
"name": "OperationName"
},
"params": {
- "TimeArg": 1422172800
+ "TimeArg": 1422172800,
+ "TimeCustom": 1422172800,
+ "TimeFormat": 1422172800
},
"serialized": {
"uri": "/",
- "body": "Action=OperationName&Version=2014-01-01&TimeArg=2015-01-25T08%3A00%3A00Z"
+ "body": "Action=OperationName&Version=2014-01-01&TimeArg=2015-01-25T08%3A00%3A00Z&TimeCustom=1422172800&TimeFormat=1422172800"
}
}
]
diff --git a/models/protocol_tests/input/rest-json.json b/models/protocol_tests/input/rest-json.json
index 86f48c57987..8f520d63d22 100644
--- a/models/protocol_tests/input/rest-json.json
+++ b/models/protocol_tests/input/rest-json.json
@@ -1103,9 +1103,51 @@
"shape": "TimestampType",
"location": "header",
"locationName": "x-amz-timearg"
+ },
+ "TimeArgInQuery": {
+ "shape": "TimestampType",
+ "location": "querystring",
+ "locationName": "TimeQuery"
+ },
+ "TimeCustom": {
+ "timestampFormat": "iso8601",
+ "shape": "TimestampType"
+ },
+ "TimeCustomInHeader": {
+ "timestampFormat": "unixTimestamp",
+ "shape": "TimestampType",
+ "location": "header",
+ "locationName": "x-amz-timecustom-header"
+ },
+ "TimeCustomInQuery": {
+ "timestampFormat": "unixTimestamp",
+ "shape": "TimestampType",
+ "location": "querystring",
+ "locationName": "TimeCustomQuery"
+ },
+ "TimeFormat": {
+ "shape": "TimestampFormatRfcType"
+ },
+ "TimeFormatInHeader": {
+ "shape": "TimestampFormatUnixType",
+ "location": "header",
+ "locationName": "x-amz-timeformat-header"
+ },
+ "TimeFormatInQuery": {
+ "shape": "TimestampFormatUnixType",
+ "location": "querystring",
+ "locationName": "TimeFormatQuery"
}
}
},
+ "TimestampFormatRfcType": {
+ "timestampFormat": "rfc822",
+ "type": "timestamp"
+ },
+ "TimestampFormatUnixType": {
+ "timestampFormat": "unixTimestamp",
+ "type": "timestamp"
+ },
"TimestampType": {
"type": "timestamp"
}
@@ -1123,32 +1165,25 @@
"name": "OperationName"
},
"params": {
- "TimeArg": 1422172800
+ "TimeArg": 1422172800,
+ "TimeArgInQuery": 1422172800,
+ "TimeArgInHeader": 1422172800,
+ "TimeCustom": 1422172800,
+ "TimeCustomInQuery": 1422172800,
+ "TimeCustomInHeader": 1422172800,
+ "TimeFormat": 1422172800,
+ "TimeFormatInQuery": 1422172800,
+ "TimeFormatInHeader": 1422172800
},
"serialized": {
- "uri": "/path",
- "headers": {},
- "body": "{\"TimeArg\": 1422172800}"
- }
- },
- {
- "given": {
- "input": {
- "shape": "InputShape"
- },
- "http": {
- "method": "POST",
- "requestUri": "/path"
+ "uri": "/path?TimeQuery=2015-01-25T08%3A00%3A00Z&TimeCustomQuery=1422172800&TimeFormatQuery=1422172800",
+ "headers": {
+ "x-amz-timearg": "Sun, 25 Jan 2015 08:00:00 GMT",
+ "x-amz-timecustom-header": "1422172800",
+ "x-amz-timeformat-header": "1422172800",
+ "Content-Type": "application/json"
},
- "name": "OperationName"
- },
- "params": {
- "TimeArgInHeader": 1422172800
- },
- "serialized": {
- "uri": "/path",
- "headers": {"x-amz-timearg": "Sun, 25 Jan 2015 08:00:00 GMT"},
- "body": ""
+ "body": "{\"TimeArg\": 1422172800, \"TimeCustom\": \"2015-01-25T08:00:00Z\", \"TimeFormat\": \"Sun, 25 Jan 2015 08:00:00 GMT\"}"
}
}
]
diff --git a/models/protocol_tests/input/rest-xml.json b/models/protocol_tests/input/rest-xml.json
index 94761ab5279..f8ab0e6b96f 100644
--- a/models/protocol_tests/input/rest-xml.json
+++ b/models/protocol_tests/input/rest-xml.json
@@ -599,7 +599,7 @@
]
},
{
- "description": "Blob and timestamp shapes",
+ "description": "Blob shapes",
"metadata": {
"protocol": "rest-xml",
"apiVersion": "2014-01-01"
@@ -616,17 +616,11 @@
"StructureShape": {
"type": "structure",
"members": {
- "t": {
- "shape": "TShape"
- },
"b": {
"shape": "BShape"
}
}
},
- "TShape": {
- "type": "timestamp"
- },
"BShape": {
"type": "blob"
}
@@ -647,19 +641,122 @@
},
"params": {
"StructureParam": {
- "t": 1422172800,
"b": "foo"
}
},
"serialized": {
"method": "POST",
- "body": "2015-01-25T08:00:00ZZm9v",
+ "body": "Zm9v",
"uri": "/2014-01-01/hostedzone",
"headers": {}
}
}
]
},
+ {
+ "description": "Timestamp shapes",
+ "metadata": {
+ "protocol": "rest-xml",
+ "apiVersion": "2014-01-01"
+ },
+ "shapes": {
+ "InputShape": {
+ "type": "structure",
+ "members": {
+ "TimeArg": {
+ "shape": "TimestampType"
+ },
+ "TimeArgInHeader": {
+ "shape": "TimestampType",
+ "location": "header",
+ "locationName": "x-amz-timearg"
+ },
+ "TimeArgInQuery": {
+ "shape": "TimestampType",
+ "location": "querystring",
+ "locationName": "TimeQuery"
+ },
+ "TimeCustom": {
+ "timestampFormat": "rfc822",
+ "shape": "TimestampType"
+ },
+ "TimeCustomInHeader": {
+ "timestampFormat": "unixTimestamp",
+ "shape": "TimestampType",
+ "location": "header",
+ "locationName": "x-amz-timecustom-header"
+ },
+ "TimeCustomInQuery": {
+ "timestampFormat": "unixTimestamp",
+ "shape": "TimestampType",
+ "location": "querystring",
+ "locationName": "TimeCustomQuery"
+ },
+ "TimeFormat": {
+ "shape": "TimestampFormatRfcType"
+ },
+ "TimeFormatInHeader": {
+ "shape": "TimestampFormatUnixType",
+ "location": "header",
+ "locationName": "x-amz-timeformat-header"
+ },
+ "TimeFormatInQuery": {
+ "shape": "TimestampFormatUnixType",
+ "location": "querystring",
+ "locationName": "TimeFormatQuery"
+ }
+ }
+ },
+ "TimestampFormatRfcType": {
+ "timestampFormat": "rfc822",
+ "type": "timestamp"
+ },
+ "TimestampFormatUnixType": {
+ "timestampFormat": "unixTimestamp",
+ "type": "timestamp"
+ },
+ "TimestampType": {
+ "type": "timestamp"
+ }
+ },
+ "cases": [
+ {
+ "given": {
+ "http": {
+ "method": "POST",
+ "requestUri": "/2014-01-01/hostedzone"
+ },
+ "input": {
+ "shape": "InputShape",
+ "locationName": "TimestampStructure",
+ "xmlNamespace": {"uri": "https://foo/"}
+ },
+ "name": "OperationName"
+ },
+ "params": {
+ "TimeArg": 1422172800,
+ "TimeArgInQuery": 1422172800,
+ "TimeArgInHeader": 1422172800,
+ "TimeCustom": 1422172800,
+ "TimeCustomInQuery": 1422172800,
+ "TimeCustomInHeader": 1422172800,
+ "TimeFormat": 1422172800,
+ "TimeFormatInQuery": 1422172800,
+ "TimeFormatInHeader": 1422172800
+ },
+ "serialized": {
+ "method": "POST",
+ "body": "2015-01-25T08:00:00ZSun, 25 Jan 2015 08:00:00 GMTSun, 25 Jan 2015 08:00:00 GMT",
+ "uri": "/2014-01-01/hostedzone?TimeQuery=2015-01-25T08%3A00%3A00Z&TimeCustomQuery=1422172800&TimeFormatQuery=1422172800",
+ "headers": {
+ "x-amz-timearg": "Sun, 25 Jan 2015 08:00:00 GMT",
+ "x-amz-timecustom-header": "1422172800",
+ "x-amz-timeformat-header": "1422172800"
+ }
+ }
+ }
+ ]
+ },
{
"description": "Header maps",
"metadata": {
@@ -1586,51 +1683,6 @@
}
]
},
- {
- "description": "Timestamp in header",
- "metadata": {
- "protocol": "rest-xml",
- "apiVersion": "2014-01-01"
- },
- "shapes": {
- "InputShape": {
- "type": "structure",
- "members": {
- "TimeArgInHeader": {
- "shape": "TimestampType",
- "location": "header",
- "locationName": "x-amz-timearg"
- }
- }
- },
- "TimestampType": {
- "type": "timestamp"
- }
- },
- "cases": [
- {
- "given": {
- "input": {
- "shape": "InputShape"
- },
- "http": {
- "method": "POST",
- "requestUri": "/path"
- },
- "name": "OperationName"
- },
- "params": {
- "TimeArgInHeader": 1422172800
- },
- "serialized": {
- "method": "POST",
- "body": "",
- "uri": "/path",
- "headers": {"x-amz-timearg": "Sun, 25 Jan 2015 08:00:00 GMT"}
- }
- }
- ]
- },
{
"description": "Idempotency token auto fill",
"metadata": {
diff --git a/models/protocol_tests/output/ec2.json b/models/protocol_tests/output/ec2.json
index 2b60c3b789a..f2a25dc3e32 100644
--- a/models/protocol_tests/output/ec2.json
+++ b/models/protocol_tests/output/ec2.json
@@ -451,6 +451,74 @@
}
]
},
+ {
+ "description": "Timestamp members",
+ "metadata": {
+ "protocol": "ec2"
+ },
+ "shapes": {
+ "OutputShape": {
+ "type": "structure",
+ "members": {
+ "TimeArg": {
+ "shape": "TimestampType"
+ },
+ "TimeCustom": {
+ "timestampFormat": "rfc822",
+ "shape": "TimestampType"
+ },
+ "TimeFormat": {
+ "shape": "TimestampFormatType"
+ },
+ "StructMember": {
+ "shape": "TimeContainer"
+ }
+ }
+ },
+ "TimeContainer": {
+ "type": "structure",
+ "members": {
+ "foo": {
+ "shape": "TimestampType"
+ },
+ "bar": {
+ "shape": "TimestampFormatType"
+ }
+ }
+ },
+ "TimestampFormatType": {
+ "timestampFormat": "unixTimestamp",
+ "type": "timestamp"
+ },
+ "TimestampType": {
+ "type": "timestamp"
+ }
+ },
+ "cases": [
+ {
+ "given": {
+ "output": {
+ "shape": "OutputShape"
+ },
+ "name": "OperationName"
+ },
+ "result": {
+ "TimeArg": 1398796238,
+ "TimeCustom": 1398796238,
+ "TimeFormat": 1398796238,
+ "StructMember": {
+ "foo": 1398796238,
+ "bar": 1398796238
+ }
+ },
+ "response": {
+ "status_code": 200,
+ "headers": {},
+ "body": "2014-04-29T18:30:38Z13987962382014-04-29T18:30:38ZTue, 29 Apr 2014 18:30:38 GMT1398796238requestid"
+ }
+ }
+ ]
+ },
{
"description": "Enum output",
"metadata": {
diff --git a/models/protocol_tests/output/json.json b/models/protocol_tests/output/json.json
index a9e84daae29..9b70b80e480 100644
--- a/models/protocol_tests/output/json.json
+++ b/models/protocol_tests/output/json.json
@@ -142,24 +142,38 @@
"OutputShape": {
"type": "structure",
"members": {
- "TimeMember": {
- "shape": "TimeType"
+ "TimeArg": {
+ "shape": "TimestampType"
+ },
+ "TimeCustom": {
+ "timestampFormat": "rfc822",
+ "shape": "TimestampType"
+ },
+ "TimeFormat": {
+ "shape": "TimestampFormatType"
},
"StructMember": {
"shape": "TimeContainer"
}
}
},
- "TimeType": {
- "type": "timestamp"
- },
"TimeContainer": {
"type": "structure",
"members": {
"foo": {
- "shape": "TimeType"
+ "shape": "TimestampType"
+ },
+ "bar": {
+ "shape": "TimestampFormatType"
}
}
+ },
+ "TimestampFormatType": {
+ "timestampFormat": "iso8601",
+ "type": "timestamp"
+ },
+ "TimestampType": {
+ "type": "timestamp"
}
},
"cases": [
@@ -171,15 +185,18 @@
"name": "OperationName"
},
"result": {
- "TimeMember": 1398796238,
+ "TimeArg": 1398796238,
+ "TimeCustom": 1398796238,
+ "TimeFormat": 1398796238,
"StructMember": {
- "foo": 1398796238
+ "foo": 1398796238,
+ "bar": 1398796238
}
},
"response": {
"status_code": 200,
"headers": {},
- "body": "{\"TimeMember\": 1398796238, \"StructMember\": {\"foo\": 1398796238}}"
+ "body": "{\"TimeArg\": 1398796238, \"TimeCustom\": \"Tue, 29 Apr 2014 18:30:38 GMT\", \"TimeFormat\": \"2014-04-29T18:30:38Z\", \"StructMember\": {\"foo\": 1398796238, \"bar\": \"2014-04-29T18:30:38Z\"}}"
}
}
]
diff --git a/models/protocol_tests/output/query.json b/models/protocol_tests/output/query.json
index 6ac08f6b9ac..a2fd3a52ed7 100644
--- a/models/protocol_tests/output/query.json
+++ b/models/protocol_tests/output/query.json
@@ -773,6 +773,74 @@
}
]
},
+ {
+ "description": "Timestamp members",
+ "metadata": {
+ "protocol": "query"
+ },
+ "shapes": {
+ "OutputShape": {
+ "type": "structure",
+ "members": {
+ "TimeArg": {
+ "shape": "TimestampType"
+ },
+ "TimeCustom": {
+ "timestampFormat": "rfc822",
+ "shape": "TimestampType"
+ },
+ "TimeFormat": {
+ "shape": "TimestampFormatType"
+ },
+ "StructMember": {
+ "shape": "TimeContainer"
+ }
+ }
+ },
+ "TimeContainer": {
+ "type": "structure",
+ "members": {
+ "foo": {
+ "shape": "TimestampType"
+ },
+ "bar": {
+ "shape": "TimestampFormatType"
+ }
+ }
+ },
+ "TimestampFormatType": {
+ "timestampFormat": "unixTimestamp",
+ "type": "timestamp"
+ },
+ "TimestampType": {
+ "type": "timestamp"
+ }
+ },
+ "cases": [
+ {
+ "given": {
+ "output": {
+ "shape": "OutputShape"
+ },
+ "name": "OperationName"
+ },
+ "result": {
+ "TimeArg": 1398796238,
+ "TimeCustom": 1398796238,
+ "TimeFormat": 1398796238,
+ "StructMember": {
+ "foo": 1398796238,
+ "bar": 1398796238
+ }
+ },
+ "response": {
+ "status_code": 200,
+ "headers": {},
+ "body": "2014-04-29T18:30:38Z13987962382014-04-29T18:30:38ZTue, 29 Apr 2014 18:30:38 GMT1398796238requestid"
+ }
+ }
+ ]
+ },
{
"description": "Enum output",
"metadata": {
diff --git a/models/protocol_tests/output/rest-json.json b/models/protocol_tests/output/rest-json.json
index 39109c9714f..f57b095a2f1 100644
--- a/models/protocol_tests/output/rest-json.json
+++ b/models/protocol_tests/output/rest-json.json
@@ -166,24 +166,54 @@
"OutputShape": {
"type": "structure",
"members": {
- "TimeMember": {
- "shape": "TimeType"
+ "TimeArg": {
+ "shape": "TimestampType"
+ },
+ "TimeArgInHeader": {
+ "shape": "TimestampType",
+ "location": "header",
+ "locationName": "x-amz-timearg"
+ },
+ "TimeCustom": {
+ "timestampFormat": "rfc822",
+ "shape": "TimestampType"
+ },
+ "TimeCustomInHeader": {
+ "timestampFormat": "unixTimestamp",
+ "shape": "TimestampType",
+ "location": "header",
+ "locationName": "x-amz-timecustom"
+ },
+ "TimeFormat": {
+ "shape": "TimestampFormatType"
+ },
+ "TimeFormatInHeader": {
+ "shape": "TimestampFormatType",
+ "location": "header",
+ "locationName": "x-amz-timeformat"
},
"StructMember": {
"shape": "TimeContainer"
}
}
},
- "TimeType": {
- "type": "timestamp"
- },
"TimeContainer": {
"type": "structure",
"members": {
"foo": {
- "shape": "TimeType"
+ "shape": "TimestampType"
+ },
+ "bar": {
+ "shape": "TimestampFormatType"
}
}
+ },
+ "TimestampFormatType": {
+ "timestampFormat": "iso8601",
+ "type": "timestamp"
+ },
+ "TimestampType": {
+ "type": "timestamp"
}
},
"cases": [
@@ -195,15 +225,25 @@
"name": "OperationName"
},
"result": {
- "TimeMember": 1398796238,
+ "TimeArg": 1398796238,
+ "TimeArgInHeader": 1398796238,
+ "TimeCustom": 1398796238,
+ "TimeCustomInHeader": 1398796238,
+ "TimeFormat": 1398796238,
+ "TimeFormatInHeader": 1398796238,
"StructMember": {
- "foo": 1398796238
+ "foo": 1398796238,
+ "bar": 1398796238
}
},
"response": {
"status_code": 200,
- "headers": {},
- "body": "{\"TimeMember\": 1398796238, \"StructMember\": {\"foo\": 1398796238}}"
+ "headers": {
+ "x-amz-timearg": "Tue, 29 Apr 2014 18:30:38 GMT",
+ "x-amz-timecustom": "1398796238",
+ "x-amz-timeformat": "2014-04-29T18:30:38Z"
+ },
+ "body": "{\"TimeArg\": 1398796238, \"TimeCustom\": \"Tue, 29 Apr 2014 18:30:38 GMT\", \"TimeFormat\": \"2014-04-29T18:30:38Z\", \"StructMember\": {\"foo\": 1398796238, \"bar\": \"2014-04-29T18:30:38Z\"}}"
}
}
]
@@ -673,21 +713,6 @@
"headers": {},
"body": "{\"BodyListField\":[\"{\\\"Foo\\\":\\\"Bar\\\"}\"]}"
}
- },
- {
- "given": {
- "output": {
- "shape": "OutputShape"
- },
- "name": "OperationName"
- },
- "result": {
- },
- "response": {
- "status_code": 200,
- "headers": {},
- "body": ""
- }
}
]
},
diff --git a/models/protocol_tests/output/rest-xml.json b/models/protocol_tests/output/rest-xml.json
index ade7c2224e2..5847855929e 100644
--- a/models/protocol_tests/output/rest-xml.json
+++ b/models/protocol_tests/output/rest-xml.json
@@ -43,12 +43,6 @@
"Timestamp": {
"shape": "TimestampType"
},
- "Blobs": {
- "shape": "Blobs"
- },
- "Timestamps": {
- "shape": "Timestamps"
- },
"Float64s": {
"shape": "Float64s"
}
@@ -86,17 +80,6 @@
"TimestampType": {
"type": "timestamp"
},
- "BlobType": {
- "type": "blob"
- },
- "Blobs": {
- "type":"list",
- "member":{"shape":"BlobType"}
- },
- "Timestamps":{
- "type":"list",
- "member":{"shape":"TimestampType"}
- },
"Float64s": {
"type":"list",
"member":{"shape":"FloatType"}
@@ -160,24 +143,6 @@
},
"body": "123falsetrue1.21.3200a2015-01-25T08:00:00Z"
}
- },
- {
- "given": {
- "output": {
- "shape": "OutputShape"
- },
- "name": "OperationName"
- },
- "result": {
- "Float64s": [0.1, 0.2],
- "Blobs": ["value", "value2"],
- "Timestamps": [1422172800, 1422172801]
- },
- "response": {
- "status_code": 200,
- "headers": {},
- "body": "0.10.2dmFsdWU=dmFsdWUy2015-01-25T08:00:00Z2015-01-25T08:00:01Z"
- }
}
]
},
@@ -759,6 +724,97 @@
}
]
},
+ {
+ "description": "Timestamp members",
+ "metadata": {
+ "protocol": "rest-xml"
+ },
+ "shapes": {
+ "OutputShape": {
+ "type": "structure",
+ "members": {
+ "TimeArg": {
+ "shape": "TimestampType"
+ },
+ "TimeArgInHeader": {
+ "shape": "TimestampType",
+ "location": "header",
+ "locationName": "x-amz-timearg"
+ },
+ "TimeCustom": {
+ "timestampFormat": "rfc822",
+ "shape": "TimestampType"
+ },
+ "TimeCustomInHeader": {
+ "timestampFormat": "unixTimestamp",
+ "shape": "TimestampType",
+ "location": "header",
+ "locationName": "x-amz-timecustom"
+ },
+ "TimeFormat": {
+ "shape": "TimestampFormatType"
+ },
+ "TimeFormatInHeader": {
+ "shape": "TimestampFormatType",
+ "location": "header",
+ "locationName": "x-amz-timeformat"
+ },
+ "StructMember": {
+ "shape": "TimeContainer"
+ }
+ }
+ },
+ "TimeContainer": {
+ "type": "structure",
+ "members": {
+ "foo": {
+ "shape": "TimestampType"
+ },
+ "bar": {
+ "shape": "TimestampFormatType"
+ }
+ }
+ },
+ "TimestampFormatType": {
+ "timestampFormat": "unixTimestamp",
+ "type": "timestamp"
+ },
+ "TimestampType": {
+ "type": "timestamp"
+ }
+ },
+ "cases": [
+ {
+ "given": {
+ "output": {
+ "shape": "OutputShape"
+ },
+ "name": "OperationName"
+ },
+ "result": {
+ "TimeArg": 1398796238,
+ "TimeArgInHeader": 1398796238,
+ "TimeCustom": 1398796238,
+ "TimeCustomInHeader": 1398796238,
+ "TimeFormat": 1398796238,
+ "TimeFormatInHeader": 1398796238,
+ "StructMember": {
+ "foo": 1398796238,
+ "bar": 1398796238
+ }
+ },
+ "response": {
+ "status_code": 200,
+ "headers": {
+ "x-amz-timearg": "Tue, 29 Apr 2014 18:30:38 GMT",
+ "x-amz-timecustom": "1398796238",
+ "x-amz-timeformat": "1398796238"
+ },
+ "body": "2014-04-29T18:30:38Z13987962382014-04-29T18:30:38ZTue, 29 Apr 2014 18:30:38 GMT1398796238requestid"
+ }
+ }
+ ]
+ },
{
"description": "Enum",
"metadata": {
diff --git a/private/model/api/shape.go b/private/model/api/shape.go
index 72e89b3f330..fb20130e669 100644
--- a/private/model/api/shape.go
+++ b/private/model/api/shape.go
@@ -10,6 +10,8 @@ import (
"sort"
"strings"
"text/template"
+
+ "github.com/aws/aws-sdk-go-v2/private/protocol"
)
// A ShapeRef defines the usage of a shape within the API.
@@ -29,6 +31,7 @@ type ShapeRef struct {
XMLNamespace XMLInfo
Payload string
IdempotencyToken bool `json:"idempotencyToken"`
+ TimestampFormat string `json:"timestampFormat"`
JSONValue bool `json:"jsonvalue"`
Deprecated bool `json:"deprecated"`
HostLabel bool `json:"hostLabel"`
@@ -82,6 +85,7 @@ type Shape struct {
Location string
LocationName string
IdempotencyToken bool `json:"idempotencyToken"`
+ TimestampFormat string `json:"timestampFormat"`
XMLNamespace XMLInfo
Min float64 // optional Minimum length (string, list) or value (number)
@@ -206,6 +210,32 @@ func (s *ShapeRef) UseIndirection() bool {
return true
}
+func (s Shape) GetTimestampFormat() string {
+ format := s.TimestampFormat
+
+ if len(format) > 0 && !protocol.IsKnownTimestampFormat(format) {
+ panic(fmt.Sprintf("Unknown timestampFormat %s, for %s",
+ format, s.ShapeName))
+ }
+
+ return format
+}
+
+func (ref ShapeRef) GetTimestampFormat() string {
+ format := ref.TimestampFormat
+
+ if len(format) == 0 {
+ format = ref.Shape.TimestampFormat
+ }
+
+ if len(format) > 0 && !protocol.IsKnownTimestampFormat(format) {
+ panic(fmt.Sprintf("Unknown timestampFormat %s, for %s",
+ format, ref.ShapeName))
+ }
+
+ return format
+}
+
// GoStructValueType returns the Shape's Go type value instead of a pointer
// for the type.
func (s *Shape) GoStructValueType(name string, ref *ShapeRef) string {
@@ -436,18 +466,12 @@ func (ref *ShapeRef) GoTags(toplevel bool, isRequired bool) string {
// embed the timestamp type for easier lookups
if ref.Shape.Type == "timestamp" {
- t := ShapeTag{Key: "timestampFormat"}
- if ref.Location == "header" {
- t.Val = "rfc822"
- } else {
- switch ref.API.Metadata.Protocol {
- case "json", "rest-json":
- t.Val = "unix"
- case "rest-xml", "ec2", "query":
- t.Val = "iso8601"
- }
+ if format := ref.GetTimestampFormat(); len(format) > 0 {
+ tags = append(tags, ShapeTag{
+ Key: "timestampFormat",
+ Val: format,
+ })
}
- tags = append(tags, t)
}
if ref.Shape.Flattened || ref.Flattened {
diff --git a/private/model/api/shape_marshal.go b/private/model/api/shape_marshal.go
index bbeedd26ad2..4f92b50af3d 100644
--- a/private/model/api/shape_marshal.go
+++ b/private/model/api/shape_marshal.go
@@ -72,12 +72,17 @@ func isStreaming(s *Shape) bool {
return false
}
-func jsonVersion(s *Shape) string {
+func getContentType(s *Shape) string {
if isStreaming(s) {
return ""
}
-
- return s.API.Metadata.JSONVersion
+ if s.API.Metadata.JSONVersion != "" && s.API.Metadata.Protocol == "json" {
+ return fmt.Sprintf("application/x-amz-json-%s", s.API.Metadata.JSONVersion)
+ }
+ if s.API.Metadata.Protocol == "json" || s.API.Metadata.Protocol == "rest-json" {
+ return "application/json"
+ }
+ return ""
}
var marshalShapeTmpl = template.Must(template.New("marshalShapeTmpl").Funcs(
@@ -85,7 +90,8 @@ var marshalShapeTmpl = template.Must(template.New("marshalShapeTmpl").Funcs(
"MarshalShapeRefGoCode": MarshalShapeRefGoCode,
"nestedRefsByLocation": nestedRefsByLocation,
"isShapeFieldsNested": isShapeFieldsNested,
- "jsonVersion": jsonVersion,
+ "getContentType": getContentType,
+
},
).Parse(`
{{ define "encode shape" -}}
@@ -94,10 +100,11 @@ var marshalShapeTmpl = template.Must(template.New("marshalShapeTmpl").Funcs(
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s {{ $shapeName }}) MarshalFields(e protocol.FieldEncoder) error {
{{- if $.UsedAsInput -}}
- {{- $version := (jsonVersion $) -}}
- {{ if (ne $version "") -}}
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-{{ $version }}"), protocol.Metadata{})
- {{- end }}
+
+ {{- $contentType := (getContentType $)}}
+ {{ if $contentType -}}
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("{{ $contentType }}"), protocol.Metadata{})
+ {{- end }}
{{ end }}
{{ $refMap := nestedRefsByLocation $ -}}
{{ range $loc, $refs := $refMap -}}
@@ -200,8 +207,16 @@ func isShapeFieldsNested(loc string, s *Shape) bool {
return loc == "Body" && len(s.LocationName) != 0 && s.API.Metadata.Protocol == "rest-xml"
}
+func QuotedFormatTime(s marshalShapeRef) string {
+ if s.Ref.API.Metadata.Protocol == "json" || s.Ref.API.Metadata.Protocol == "rest-json" && s.Location() == "Body" {
+ return "true"
+ }
+ return "false"
+}
+
var marshalShapeRefTmpl = template.Must(template.New("marshalShapeRefTmpl").Funcs(template.FuncMap{
"Collection": Collection,
+ "quotedFormatTime": QuotedFormatTime,
}).Parse(`
{{ define "encode field" -}}
{{ if $.IsIdempotencyToken -}}
@@ -236,7 +251,8 @@ var marshalShapeRefTmpl = template.Must(template.New("marshalShapeRefTmpl").Func
{{- else if $.IsShapeType "structure" -}}
v
{{- else if $.IsShapeType "timestamp" -}}
- protocol.TimeValue{V: v, Format: {{ $.TimeFormat }} }
+ {{- $quotes := (quotedFormatTime $)}}
+ protocol.TimeValue{V: v, Format: {{ $.TimeFormat }}, QuotedFormatTime: {{ $quotes }},}
{{- else if $.IsShapeType "jsonvalue" -}}
{{ if eq $.Location "Header" -}}
protocol.JSONValue{V: v , EscapeMode: protocol.Base64Escape}
@@ -706,17 +722,29 @@ func (r marshalShapeRef) IsIdempotencyToken() bool {
return r.Ref.IdempotencyToken || r.Ref.Shape.IdempotencyToken
}
func (r marshalShapeRef) TimeFormat() string {
+
+ if r.Ref.TimestampFormat!="" {
+ return fmt.Sprintf("%q",r.Ref.TimestampFormat)
+ }
+ if r.Ref.Shape.TimestampFormat!= "" {
+ return fmt.Sprintf("%q",r.Ref.Shape.TimestampFormat)
+ }
+
switch r.Location() {
case "Header", "Headers":
- return "protocol.RFC822TimeFromat"
+ return "protocol.RFC822TimeFormatName"
case "Query":
- return "protocol.RFC822TimeFromat"
+ switch r.Context.API.Metadata.Protocol {
+ case "rest-json", "rest-xml":
+ return "protocol.ISO8601TimeFormatName"
+ }
+ return "protocol.RFC822TimeFormatName"
default:
switch r.Context.API.Metadata.Protocol {
case "json", "rest-json":
- return "protocol.UnixTimeFormat"
+ return "protocol.UnixTimeFormatName"
case "rest-xml", "ec2", "query":
- return "protocol.ISO8601TimeFormat"
+ return "protocol.ISO8601TimeFormatName"
default:
panic(fmt.Sprintf("unable to determine time format for %s ref", r.Name))
}
diff --git a/private/protocol/ec2query/build_test.go b/private/protocol/ec2query/build_test.go
index 242ff635ecf..d5cea498fdc 100644
--- a/private/protocol/ec2query/build_test.go
+++ b/private/protocol/ec2query/build_test.go
@@ -980,7 +980,11 @@ func (c *InputService8ProtocolTest) newRequest(op *aws.Operation, params, data i
type InputService8TestShapeInputService8TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
- TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ TimeArg *time.Time `type:"timestamp"`
+
+ TimeCustom *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ TimeFormat *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
}
type InputService8TestShapeInputService8TestCaseOperation1Output struct {
@@ -1968,7 +1972,9 @@ func TestInputService8ProtocolTestTimestampValuesCase1(t *testing.T) {
svc := NewInputService8ProtocolTest(cfg)
input := &InputService8TestShapeInputService8TestCaseOperation1Input{
- TimeArg: aws.Time(time.Unix(1422172800, 0)),
+ TimeArg: aws.Time(time.Unix(1422172800, 0)),
+ TimeCustom: aws.Time(time.Unix(1422172800, 0)),
+ TimeFormat: aws.Time(time.Unix(1422172800, 0)),
}
req := svc.InputService8TestCaseOperation1Request(input)
@@ -1985,7 +1991,7 @@ func TestInputService8ProtocolTestTimestampValuesCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertQuery(t, `Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&Version=2014-01-01`, util.Trim(string(body)))
+ awstesting.AssertQuery(t, `Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&TimeCustom=1422172800&TimeFormat=1422172800&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
diff --git a/private/protocol/ec2query/unmarshal_test.go b/private/protocol/ec2query/unmarshal_test.go
index 788317466f4..e9863fa5ef6 100644
--- a/private/protocol/ec2query/unmarshal_test.go
+++ b/private/protocol/ec2query/unmarshal_test.go
@@ -1216,9 +1216,13 @@ type OutputService10TestShapeOutputService10TestCaseOperation1Input struct {
type OutputService10TestShapeOutputService10TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
- FooEnum OutputService10TestShapeEC2EnumType `type:"string" enum:"true"`
+ StructMember *OutputService10TestShapeTimeContainer `type:"structure"`
- ListEnums []OutputService10TestShapeEC2EnumType `type:"list"`
+ TimeArg *time.Time `type:"timestamp"`
+
+ TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
+
+ TimeFormat *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
}
const opOutputService10TestCaseOperation1 = "OperationName"
@@ -1285,19 +1289,151 @@ func (r *OutputService10TestCaseOperation1Response) SDKResponseMetdata() *aws.Re
return r.response
}
-type OutputService10TestShapeEC2EnumType string
+type OutputService10TestShapeTimeContainer struct {
+ _ struct{} `type:"structure"`
+
+ Bar *time.Time `locationName:"bar" type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ Foo *time.Time `locationName:"foo" type:"timestamp"`
+}
+
+// OutputService11ProtocolTest provides the API operation methods for making requests to
+// OutputService11ProtocolTest. See this package's package overview docs
+// for details on the service.
+//
+// The client's methods are safe to use concurrently. It is not safe to
+// modify mutate any of the struct's properties though.
+type OutputService11ProtocolTest struct {
+ *aws.Client
+}
+
+// New creates a new instance of the client from the provided Config.
+//
+// Example:
+// // Create a client from just a config.
+// svc := outputservice11protocoltest.New(myConfig)
+func NewOutputService11ProtocolTest(config aws.Config) *OutputService11ProtocolTest {
+ svc := &OutputService11ProtocolTest{
+ Client: aws.NewClient(
+ config,
+ aws.Metadata{
+ ServiceName: "OutputService11ProtocolTest",
+ ServiceID: "OutputService11ProtocolTest",
+ EndpointsID: "outputservice11protocoltest",
+ SigningName: "outputservice11protocoltest",
+ SigningRegion: config.Region,
+ APIVersion: "",
+ },
+ ),
+ }
+
+ // Handlers
+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
+ svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler)
+ svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler)
+ svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler)
+ svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler)
+
+ return svc
+}
+
+// newRequest creates a new request for a client operation and runs any
+// custom request initialization.
+func (c *OutputService11ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
+ req := c.NewRequest(op, params, data)
+
+ return req
+}
+
+type OutputService11TestShapeOutputService11TestCaseOperation1Input struct {
+ _ struct{} `type:"structure"`
+}
+
+type OutputService11TestShapeOutputService11TestCaseOperation1Output struct {
+ _ struct{} `type:"structure"`
+
+ FooEnum OutputService11TestShapeEC2EnumType `type:"string" enum:"true"`
+
+ ListEnums []OutputService11TestShapeEC2EnumType `type:"list"`
+}
+
+const opOutputService11TestCaseOperation1 = "OperationName"
+
+// OutputService11TestCaseOperation1Request returns a request value for making API operation for
+// .
+//
+// // Example sending a request using OutputService11TestCaseOperation1Request.
+// req := client.OutputService11TestCaseOperation1Request(params)
+// resp, err := req.Send(context.TODO())
+// if err == nil {
+// fmt.Println(resp)
+// }
+func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) OutputService11TestCaseOperation1Request {
+ op := &aws.Operation{
+ Name: opOutputService11TestCaseOperation1,
+
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &OutputService11TestShapeOutputService11TestCaseOperation1Input{}
+ }
+
+ req := c.newRequest(op, input, &OutputService11TestShapeOutputService11TestCaseOperation1Output{})
+ return OutputService11TestCaseOperation1Request{Request: req, Input: input, Copy: c.OutputService11TestCaseOperation1Request}
+}
+
+// OutputService11TestCaseOperation1Request is the request type for the
+// OutputService11TestCaseOperation1 API operation.
+type OutputService11TestCaseOperation1Request struct {
+ *aws.Request
+ Input *OutputService11TestShapeOutputService11TestCaseOperation1Input
+ Copy func(*OutputService11TestShapeOutputService11TestCaseOperation1Input) OutputService11TestCaseOperation1Request
+}
+
+// Send marshals and sends the OutputService11TestCaseOperation1 API request.
+func (r OutputService11TestCaseOperation1Request) Send(ctx context.Context) (*OutputService11TestCaseOperation1Response, error) {
+ r.Request.SetContext(ctx)
+ err := r.Request.Send()
+ if err != nil {
+ return nil, err
+ }
+
+ resp := &OutputService11TestCaseOperation1Response{
+ OutputService11TestShapeOutputService11TestCaseOperation1Output: r.Request.Data.(*OutputService11TestShapeOutputService11TestCaseOperation1Output),
+ response: &aws.Response{Request: r.Request},
+ }
+
+ return resp, nil
+}
+
+// OutputService11TestCaseOperation1Response is the response type for the
+// OutputService11TestCaseOperation1 API operation.
+type OutputService11TestCaseOperation1Response struct {
+ *OutputService11TestShapeOutputService11TestCaseOperation1Output
+
+ response *aws.Response
+}
+
+// SDKResponseMetdata returns the response metadata for the
+// OutputService11TestCaseOperation1 request.
+func (r *OutputService11TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
+ return r.response
+}
+
+type OutputService11TestShapeEC2EnumType string
-// Enum values for OutputService10TestShapeEC2EnumType
+// Enum values for OutputService11TestShapeEC2EnumType
const (
- EC2EnumTypeFoo OutputService10TestShapeEC2EnumType = "foo"
- EC2EnumTypeBar OutputService10TestShapeEC2EnumType = "bar"
+ EC2EnumTypeFoo OutputService11TestShapeEC2EnumType = "foo"
+ EC2EnumTypeBar OutputService11TestShapeEC2EnumType = "bar"
)
-func (enum OutputService10TestShapeEC2EnumType) MarshalValue() (string, error) {
+func (enum OutputService11TestShapeEC2EnumType) MarshalValue() (string, error) {
return string(enum), nil
}
-func (enum OutputService10TestShapeEC2EnumType) MarshalValueBuf(b []byte) ([]byte, error) {
+func (enum OutputService11TestShapeEC2EnumType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
@@ -1615,13 +1751,13 @@ func TestOutputService9ProtocolTestEmptyStringCase1(t *testing.T) {
}
-func TestOutputService10ProtocolTestEnumOutputCase1(t *testing.T) {
+func TestOutputService10ProtocolTestTimestampMembersCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
svc := NewOutputService10ProtocolTest(cfg)
- buf := bytes.NewReader([]byte("foofoobar"))
+ buf := bytes.NewReader([]byte("2014-04-29T18:30:38Z13987962382014-04-29T18:30:38ZTue, 29 Apr 2014 18:30:38 GMT1398796238requestid"))
req := svc.OutputService10TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
@@ -1639,13 +1775,55 @@ func TestOutputService10ProtocolTestEnumOutputCase1(t *testing.T) {
if out == nil {
t.Errorf("expect not to be nil")
}
- if e, a := OutputService10TestShapeEC2EnumType("foo"), out.FooEnum; e != a {
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Bar.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArg.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustom.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormat.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+
+}
+
+func TestOutputService11ProtocolTestEnumOutputCase1(t *testing.T) {
+ cfg := unit.Config()
+ cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
+
+ svc := NewOutputService11ProtocolTest(cfg)
+
+ buf := bytes.NewReader([]byte("foofoobar"))
+ req := svc.OutputService11TestCaseOperation1Request(nil)
+ req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
+
+ // set headers
+
+ // unmarshal response
+ ec2query.UnmarshalMeta(req.Request)
+ ec2query.Unmarshal(req.Request)
+ if req.Error != nil {
+ t.Errorf("expect not error, got %v", req.Error)
+ }
+
+ out := req.Data.(*OutputService11TestShapeOutputService11TestCaseOperation1Output)
+ // assert response
+ if out == nil {
+ t.Errorf("expect not to be nil")
+ }
+ if e, a := OutputService11TestShapeEC2EnumType("foo"), out.FooEnum; e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := OutputService10TestShapeEC2EnumType("foo"), out.ListEnums[0]; e != a {
+ if e, a := OutputService11TestShapeEC2EnumType("foo"), out.ListEnums[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := OutputService10TestShapeEC2EnumType("bar"), out.ListEnums[1]; e != a {
+ if e, a := OutputService11TestShapeEC2EnumType("bar"), out.ListEnums[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
diff --git a/private/protocol/fields.go b/private/protocol/fields.go
index b131e2249f4..f933872e2ad 100644
--- a/private/protocol/fields.go
+++ b/private/protocol/fields.go
@@ -3,6 +3,7 @@ package protocol
import (
"bytes"
"encoding/base64"
+ "fmt"
"io"
"strconv"
"strings"
@@ -133,26 +134,39 @@ func (v JSONValue) MarshalValueBuf(b []byte) ([]byte, error) {
}
// Time formats for protocol time fields.
-const (
- ISO8601TimeFormat = "2006-01-02T15:04:05Z" // ISO 8601 formated time.
- RFC822TimeFromat = "Mon, 2 Jan 2006 15:04:05 GMT" // RFC822 formatted time.
- UnixTimeFormat = "unix time format" // Special case for Unix time
-)
+// const (
+// ISO8601TimeFormat = "2006-01-02T15:04:05Z" // ISO 8601 formated time.
+// RFC822TimeFormat = "Mon, 2 Jan 2006 15:04:05 GMT" // RFC822 formatted time.
+// UnixTimeFormat = "unix time format" // Special case for Unix time
+// )
// TimeValue provies encoding of time.Time for AWS protocols.
type TimeValue struct {
V time.Time
Format string
+ QuotedFormatTime bool
}
-// MarshalValue formats the value into a string givin a format for encoding.
+// MarshalValue formats the value into a string given a format for encoding.
func (v TimeValue) MarshalValue() (string, error) {
- t := time.Time(v.V)
- if v.Format == UnixTimeFormat {
- return strconv.FormatInt(t.UTC().Unix(), 10), nil
+
+ // if v.Format == UnixTimeFormat {
+ // return strconv.FormatInt(t.UTC().Unix(), 10), nil
+ // }
+ // return t.UTC().Format(v.Format), nil
+
+ if v.Format == UnixTimeFormatName {
+ return FormatTime(v.Format, v.V)
}
- return t.UTC().Format(v.Format), nil
+
+ if v.QuotedFormatTime {
+ format, err := FormatTime(v.Format, v.V)
+ return fmt.Sprintf("%q",format),err
+ }
+
+ return FormatTime(v.Format, v.V)
+
}
// MarshalValueBuf formats the value into a byte slice for encoding.
diff --git a/private/protocol/json/encode_test.go b/private/protocol/json/encode_test.go
index a81537e419e..f4d89f428cc 100644
--- a/private/protocol/json/encode_test.go
+++ b/private/protocol/json/encode_test.go
@@ -177,7 +177,7 @@ func (s *payloadShape) MarshalFields(e protocol.FieldEncoder) error {
}
if s.TimeVal != nil {
e.SetValue(protocol.BodyTarget, "timeval", protocol.TimeValue{
- V: *s.TimeVal, Format: protocol.UnixTimeFormat,
+ V: *s.TimeVal, Format: protocol.UnixTimeFormatName,
}, protocol.Metadata{})
}
if s.Nested != nil {
diff --git a/private/protocol/json/jsonutil/build.go b/private/protocol/json/jsonutil/build.go
index 029be321604..40d1823a8da 100644
--- a/private/protocol/json/jsonutil/build.go
+++ b/private/protocol/json/jsonutil/build.go
@@ -223,7 +223,17 @@ func buildScalar(v reflect.Value, buf *bytes.Buffer, tag reflect.StructTag, pare
default:
switch converted := value.Interface().(type) {
case time.Time:
- buf.Write(strconv.AppendInt(scratch[:0], converted.UTC().Unix(), 10))
+ format := tag.Get("timestampFormat")
+ if len(format) == 0 {
+ format = protocol.UnixTimeFormatName
+ }
+
+ ts, _ := protocol.FormatTime(format, converted)
+ if format != protocol.UnixTimeFormatName {
+ ts = `"` + ts + `"`
+ }
+
+ buf.WriteString(ts)
case []byte:
if !value.IsNil() {
buf.WriteByte('"')
diff --git a/private/protocol/json/jsonutil/unmarshal.go b/private/protocol/json/jsonutil/unmarshal.go
index f65bca26782..0bb9a8819a3 100644
--- a/private/protocol/json/jsonutil/unmarshal.go
+++ b/private/protocol/json/jsonutil/unmarshal.go
@@ -197,6 +197,28 @@ func unmarshalScalar(value reflect.Value, data interface{}, tag reflect.StructTa
return err
}
value.Set(reflect.ValueOf(b))
+ case time.Time:
+ format := tag.Get("timestampFormat")
+ if len(format) == 0 {
+ format = protocol.ISO8601TimeFormatName
+ }
+
+ t, err := protocol.ParseTime(format, d)
+ if err != nil {
+ return err
+ }
+ value.Set(reflect.ValueOf(t))
+ case *time.Time:
+ format := tag.Get("timestampFormat")
+ if len(format) == 0 {
+ format = protocol.ISO8601TimeFormatName
+ }
+
+ t, err := protocol.ParseTime(format, d)
+ if err != nil {
+ return err
+ }
+ value.Set(reflect.ValueOf(&t))
case aws.JSONValue:
// No need to use escaping as the value is a non-quoted string.
v, err := protocol.DecodeJSONValue(d, protocol.NoEscape)
@@ -220,6 +242,7 @@ func unmarshalScalar(value reflect.Value, data interface{}, tag reflect.StructTa
case float64:
value.Set(reflect.ValueOf(d))
case *time.Time:
+ // Time unmarshaled from a float64 can only be epoch seconds
t := time.Unix(int64(d), 0).UTC()
value.Set(reflect.ValueOf(&t))
case time.Time:
diff --git a/private/protocol/jsonrpc/build_test.go b/private/protocol/jsonrpc/build_test.go
index c397a53e067..98daa1684ee 100644
--- a/private/protocol/jsonrpc/build_test.go
+++ b/private/protocol/jsonrpc/build_test.go
@@ -221,7 +221,11 @@ func (c *InputService2ProtocolTest) newRequest(op *aws.Operation, params, data i
type InputService2TestShapeInputService2TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
- TimeArg *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TimeArg *time.Time `type:"timestamp"`
+
+ TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
+
+ TimeFormat *time.Time `type:"timestamp" timestampFormat:"rfc822"`
}
type InputService2TestShapeInputService2TestCaseOperation1Output struct {
@@ -1950,7 +1954,7 @@ func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Name":"myname"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -1971,7 +1975,9 @@ func TestInputService2ProtocolTestTimestampValuesCase1(t *testing.T) {
svc := NewInputService2ProtocolTest(cfg)
input := &InputService2TestShapeInputService2TestCaseOperation1Input{
- TimeArg: aws.Time(time.Unix(1422172800, 0)),
+ TimeArg: aws.Time(time.Unix(1422172800, 0)),
+ TimeCustom: aws.Time(time.Unix(1422172800, 0)),
+ TimeFormat: aws.Time(time.Unix(1422172800, 0)),
}
req := svc.InputService2TestCaseOperation1Request(input)
@@ -1988,7 +1994,7 @@ func TestInputService2ProtocolTestTimestampValuesCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"TimeArg":1422172800}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"TimeArg": 1422172800, "TimeCustom": "Sun, 25 Jan 2015 08:00:00 GMT", "TimeFormat": "Sun, 25 Jan 2015 08:00:00 GMT"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2026,7 +2032,7 @@ func TestInputService3ProtocolTestBase64EncodedBlobsCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"BlobArg":"Zm9v"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"BlobArg": "Zm9v"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2067,7 +2073,7 @@ func TestInputService3ProtocolTestBase64EncodedBlobsCase2(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"BlobMap":{"key1":"Zm9v","key2":"YmFy"}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"BlobMap": {"key1": "Zm9v", "key2": "YmFy"}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2108,7 +2114,7 @@ func TestInputService4ProtocolTestNestedBlobsCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"ListParam":["Zm9v","YmFy"]}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"ListParam": ["Zm9v", "YmFy"]}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2148,7 +2154,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"NoRecurse":"foo"}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"NoRecurse": "foo"}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2190,7 +2196,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase2(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveStruct": {"NoRecurse": "foo"}}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2236,7 +2242,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase3(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveStruct": {"RecursiveStruct": {"RecursiveStruct": {"NoRecurse": "foo"}}}}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2283,7 +2289,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase4(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"NoRecurse":"bar"}]}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveList": [{"NoRecurse": "foo"}, {"NoRecurse": "bar"}]}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2332,7 +2338,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase5(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"RecursiveStruct":{"NoRecurse":"bar"}}]}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveList": [{"NoRecurse": "foo"}, {"RecursiveStruct": {"NoRecurse": "bar"}}]}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2379,7 +2385,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase6(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveMap":{"foo":{"NoRecurse":"foo"},"bar":{"NoRecurse":"bar"}}}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveMap": {"foo": {"NoRecurse": "foo"}, "bar": {"NoRecurse": "bar"}}}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2417,7 +2423,7 @@ func TestInputService6ProtocolTestEmptyMapsCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Map":{}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Map": {}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2455,7 +2461,7 @@ func TestInputService7ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Token":"abc123"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Token": "abc123"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2485,7 +2491,7 @@ func TestInputService7ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Token":"00000000-0000-4000-8000-000000000000"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Token": "00000000-0000-4000-8000-000000000000"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2522,7 +2528,7 @@ func TestInputService8ProtocolTestEnumCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"FooEnum":"foo","ListEnums":["foo","","bar"]}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"FooEnum": "foo", "ListEnums": ["foo", "", "bar"]}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -2577,7 +2583,7 @@ func TestInputService9ProtocolTestEndpointHostTraitStaticPrefixCase1(t *testing.
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Name":"myname"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/", r.URL.String())
@@ -2615,7 +2621,7 @@ func TestInputService9ProtocolTestEndpointHostTraitStaticPrefixCase2(t *testing.
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Name":"myname"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/", r.URL.String())
diff --git a/private/protocol/jsonrpc/unmarshal_test.go b/private/protocol/jsonrpc/unmarshal_test.go
index 6cd65877cb9..30c0797c081 100644
--- a/private/protocol/jsonrpc/unmarshal_test.go
+++ b/private/protocol/jsonrpc/unmarshal_test.go
@@ -367,7 +367,11 @@ type OutputService3TestShapeOutputService3TestCaseOperation1Output struct {
StructMember *OutputService3TestShapeTimeContainer `type:"structure"`
- TimeMember *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TimeArg *time.Time `type:"timestamp"`
+
+ TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
+
+ TimeFormat *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}
const opOutputService3TestCaseOperation1 = "OperationName"
@@ -437,7 +441,9 @@ func (r *OutputService3TestCaseOperation1Response) SDKResponseMetdata() *aws.Res
type OutputService3TestShapeTimeContainer struct {
_ struct{} `type:"structure"`
- Foo *time.Time `locationName:"foo" type:"timestamp" timestampFormat:"unix"`
+ Bar *time.Time `locationName:"bar" type:"timestamp" timestampFormat:"iso8601"`
+
+ Foo *time.Time `locationName:"foo" type:"timestamp"`
}
// OutputService4ProtocolTest provides the API operation methods for making requests to
@@ -1127,7 +1133,7 @@ func TestOutputService3ProtocolTestTimestampMembersCase1(t *testing.T) {
svc := NewOutputService3ProtocolTest(cfg)
- buf := bytes.NewReader([]byte("{\"TimeMember\": 1398796238, \"StructMember\": {\"foo\": 1398796238}}"))
+ buf := bytes.NewReader([]byte("{\"TimeArg\": 1398796238, \"TimeCustom\": \"Tue, 29 Apr 2014 18:30:38 GMT\", \"TimeFormat\": \"2014-04-29T18:30:38Z\", \"StructMember\": {\"foo\": 1398796238, \"bar\": \"2014-04-29T18:30:38Z\"}}"))
req := svc.OutputService3TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
@@ -1145,10 +1151,19 @@ func TestOutputService3ProtocolTestTimestampMembersCase1(t *testing.T) {
if out == nil {
t.Errorf("expect not to be nil")
}
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Bar.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeMember.String(); e != a {
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArg.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustom.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormat.String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
diff --git a/private/protocol/query/build_test.go b/private/protocol/query/build_test.go
index 70d0050486c..c7b397e4c1e 100644
--- a/private/protocol/query/build_test.go
+++ b/private/protocol/query/build_test.go
@@ -1790,7 +1790,11 @@ func (c *InputService12ProtocolTest) newRequest(op *aws.Operation, params, data
type InputService12TestShapeInputService12TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
- TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ TimeArg *time.Time `type:"timestamp"`
+
+ TimeCustom *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ TimeFormat *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
}
type InputService12TestShapeInputService12TestCaseOperation1Output struct {
@@ -3630,7 +3634,9 @@ func TestInputService12ProtocolTestTimestampValuesCase1(t *testing.T) {
svc := NewInputService12ProtocolTest(cfg)
input := &InputService12TestShapeInputService12TestCaseOperation1Input{
- TimeArg: aws.Time(time.Unix(1422172800, 0)),
+ TimeArg: aws.Time(time.Unix(1422172800, 0)),
+ TimeCustom: aws.Time(time.Unix(1422172800, 0)),
+ TimeFormat: aws.Time(time.Unix(1422172800, 0)),
}
req := svc.InputService12TestCaseOperation1Request(input)
@@ -3647,7 +3653,7 @@ func TestInputService12ProtocolTestTimestampValuesCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertQuery(t, `Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&Version=2014-01-01`, util.Trim(string(body)))
+ awstesting.AssertQuery(t, `Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&TimeCustom=1422172800&TimeFormat=1422172800&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
diff --git a/private/protocol/query/queryutil/queryutil.go b/private/protocol/query/queryutil/queryutil.go
index 01de5ca945b..78e4d222b12 100644
--- a/private/protocol/query/queryutil/queryutil.go
+++ b/private/protocol/query/queryutil/queryutil.go
@@ -252,8 +252,15 @@ func (q *queryParser) parseScalar(v url.Values, r reflect.Value, name string, ta
case float32:
v.Set(name, strconv.FormatFloat(float64(value), 'f', -1, 32))
case time.Time:
- const ISO8601UTC = "2006-01-02T15:04:05Z"
- v.Set(name, value.UTC().Format(ISO8601UTC))
+ // const ISO8601UTC = "2006-01-02T15:04:05Z"
+ // v.Set(name, value.UTC().Format(ISO8601UTC))
+ format := tag.Get("timestampFormat")
+ if len(format) == 0 {
+ format = protocol.ISO8601TimeFormatName
+ }
+
+ t,_ := protocol.FormatTime(format, value)
+ v.Set(name,t)
default:
return fmt.Errorf("unsupported value for param %s: %v (%s)", name, r.Interface(), r.Type().Name())
}
diff --git a/private/protocol/query/unmarshal_test.go b/private/protocol/query/unmarshal_test.go
index 2dc82ce4955..0fac56e9899 100644
--- a/private/protocol/query/unmarshal_test.go
+++ b/private/protocol/query/unmarshal_test.go
@@ -111,7 +111,7 @@ type OutputService1TestShapeOutputService1TestCaseOperation1Output struct {
Str *string `type:"string"`
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `type:"timestamp"`
TrueBool *bool `type:"boolean"`
}
@@ -1972,9 +1972,13 @@ type OutputService16TestShapeOutputService16TestCaseOperation1Input struct {
type OutputService16TestShapeOutputService16TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
- FooEnum OutputService16TestShapeEC2EnumType `type:"string" enum:"true"`
+ StructMember *OutputService16TestShapeTimeContainer `type:"structure"`
- ListEnums []OutputService16TestShapeEC2EnumType `type:"list"`
+ TimeArg *time.Time `type:"timestamp"`
+
+ TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
+
+ TimeFormat *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
}
const opOutputService16TestCaseOperation1 = "OperationName"
@@ -2041,19 +2045,151 @@ func (r *OutputService16TestCaseOperation1Response) SDKResponseMetdata() *aws.Re
return r.response
}
-type OutputService16TestShapeEC2EnumType string
+type OutputService16TestShapeTimeContainer struct {
+ _ struct{} `type:"structure"`
+
+ Bar *time.Time `locationName:"bar" type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ Foo *time.Time `locationName:"foo" type:"timestamp"`
+}
+
+// OutputService17ProtocolTest provides the API operation methods for making requests to
+// OutputService17ProtocolTest. See this package's package overview docs
+// for details on the service.
+//
+// The client's methods are safe to use concurrently. It is not safe to
+// modify mutate any of the struct's properties though.
+type OutputService17ProtocolTest struct {
+ *aws.Client
+}
+
+// New creates a new instance of the client from the provided Config.
+//
+// Example:
+// // Create a client from just a config.
+// svc := outputservice17protocoltest.New(myConfig)
+func NewOutputService17ProtocolTest(config aws.Config) *OutputService17ProtocolTest {
+ svc := &OutputService17ProtocolTest{
+ Client: aws.NewClient(
+ config,
+ aws.Metadata{
+ ServiceName: "OutputService17ProtocolTest",
+ ServiceID: "OutputService17ProtocolTest",
+ EndpointsID: "outputservice17protocoltest",
+ SigningName: "outputservice17protocoltest",
+ SigningRegion: config.Region,
+ APIVersion: "",
+ },
+ ),
+ }
+
+ // Handlers
+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
+ svc.Handlers.Build.PushBackNamed(query.BuildHandler)
+ svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
+ svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
+ svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
+
+ return svc
+}
+
+// newRequest creates a new request for a client operation and runs any
+// custom request initialization.
+func (c *OutputService17ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
+ req := c.NewRequest(op, params, data)
+
+ return req
+}
+
+type OutputService17TestShapeOutputService17TestCaseOperation1Input struct {
+ _ struct{} `type:"structure"`
+}
+
+type OutputService17TestShapeOutputService17TestCaseOperation1Output struct {
+ _ struct{} `type:"structure"`
+
+ FooEnum OutputService17TestShapeEC2EnumType `type:"string" enum:"true"`
+
+ ListEnums []OutputService17TestShapeEC2EnumType `type:"list"`
+}
+
+const opOutputService17TestCaseOperation1 = "OperationName"
+
+// OutputService17TestCaseOperation1Request returns a request value for making API operation for
+// .
+//
+// // Example sending a request using OutputService17TestCaseOperation1Request.
+// req := client.OutputService17TestCaseOperation1Request(params)
+// resp, err := req.Send(context.TODO())
+// if err == nil {
+// fmt.Println(resp)
+// }
+func (c *OutputService17ProtocolTest) OutputService17TestCaseOperation1Request(input *OutputService17TestShapeOutputService17TestCaseOperation1Input) OutputService17TestCaseOperation1Request {
+ op := &aws.Operation{
+ Name: opOutputService17TestCaseOperation1,
+
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &OutputService17TestShapeOutputService17TestCaseOperation1Input{}
+ }
+
+ req := c.newRequest(op, input, &OutputService17TestShapeOutputService17TestCaseOperation1Output{})
+ return OutputService17TestCaseOperation1Request{Request: req, Input: input, Copy: c.OutputService17TestCaseOperation1Request}
+}
+
+// OutputService17TestCaseOperation1Request is the request type for the
+// OutputService17TestCaseOperation1 API operation.
+type OutputService17TestCaseOperation1Request struct {
+ *aws.Request
+ Input *OutputService17TestShapeOutputService17TestCaseOperation1Input
+ Copy func(*OutputService17TestShapeOutputService17TestCaseOperation1Input) OutputService17TestCaseOperation1Request
+}
+
+// Send marshals and sends the OutputService17TestCaseOperation1 API request.
+func (r OutputService17TestCaseOperation1Request) Send(ctx context.Context) (*OutputService17TestCaseOperation1Response, error) {
+ r.Request.SetContext(ctx)
+ err := r.Request.Send()
+ if err != nil {
+ return nil, err
+ }
+
+ resp := &OutputService17TestCaseOperation1Response{
+ OutputService17TestShapeOutputService17TestCaseOperation1Output: r.Request.Data.(*OutputService17TestShapeOutputService17TestCaseOperation1Output),
+ response: &aws.Response{Request: r.Request},
+ }
+
+ return resp, nil
+}
+
+// OutputService17TestCaseOperation1Response is the response type for the
+// OutputService17TestCaseOperation1 API operation.
+type OutputService17TestCaseOperation1Response struct {
+ *OutputService17TestShapeOutputService17TestCaseOperation1Output
+
+ response *aws.Response
+}
+
+// SDKResponseMetdata returns the response metadata for the
+// OutputService17TestCaseOperation1 request.
+func (r *OutputService17TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
+ return r.response
+}
+
+type OutputService17TestShapeEC2EnumType string
-// Enum values for OutputService16TestShapeEC2EnumType
+// Enum values for OutputService17TestShapeEC2EnumType
const (
- EC2EnumTypeFoo OutputService16TestShapeEC2EnumType = "foo"
- EC2EnumTypeBar OutputService16TestShapeEC2EnumType = "bar"
+ EC2EnumTypeFoo OutputService17TestShapeEC2EnumType = "foo"
+ EC2EnumTypeBar OutputService17TestShapeEC2EnumType = "bar"
)
-func (enum OutputService16TestShapeEC2EnumType) MarshalValue() (string, error) {
+func (enum OutputService17TestShapeEC2EnumType) MarshalValue() (string, error) {
return string(enum), nil
}
-func (enum OutputService16TestShapeEC2EnumType) MarshalValueBuf(b []byte) ([]byte, error) {
+func (enum OutputService17TestShapeEC2EnumType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
@@ -2587,13 +2723,13 @@ func TestOutputService15ProtocolTestEmptyStringCase1(t *testing.T) {
}
-func TestOutputService16ProtocolTestEnumOutputCase1(t *testing.T) {
+func TestOutputService16ProtocolTestTimestampMembersCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
svc := NewOutputService16ProtocolTest(cfg)
- buf := bytes.NewReader([]byte("foofoobar"))
+ buf := bytes.NewReader([]byte("2014-04-29T18:30:38Z13987962382014-04-29T18:30:38ZTue, 29 Apr 2014 18:30:38 GMT1398796238requestid"))
req := svc.OutputService16TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
@@ -2611,13 +2747,55 @@ func TestOutputService16ProtocolTestEnumOutputCase1(t *testing.T) {
if out == nil {
t.Errorf("expect not to be nil")
}
- if e, a := OutputService16TestShapeEC2EnumType("foo"), out.FooEnum; e != a {
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Bar.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArg.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustom.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormat.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+
+}
+
+func TestOutputService17ProtocolTestEnumOutputCase1(t *testing.T) {
+ cfg := unit.Config()
+ cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
+
+ svc := NewOutputService17ProtocolTest(cfg)
+
+ buf := bytes.NewReader([]byte("foofoobar"))
+ req := svc.OutputService17TestCaseOperation1Request(nil)
+ req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
+
+ // set headers
+
+ // unmarshal response
+ query.UnmarshalMeta(req.Request)
+ query.Unmarshal(req.Request)
+ if req.Error != nil {
+ t.Errorf("expect not error, got %v", req.Error)
+ }
+
+ out := req.Data.(*OutputService17TestShapeOutputService17TestCaseOperation1Output)
+ // assert response
+ if out == nil {
+ t.Errorf("expect not to be nil")
+ }
+ if e, a := OutputService17TestShapeEC2EnumType("foo"), out.FooEnum; e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := OutputService16TestShapeEC2EnumType("foo"), out.ListEnums[0]; e != a {
+ if e, a := OutputService17TestShapeEC2EnumType("foo"), out.ListEnums[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := OutputService16TestShapeEC2EnumType("bar"), out.ListEnums[1]; e != a {
+ if e, a := OutputService17TestShapeEC2EnumType("bar"), out.ListEnums[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
diff --git a/private/protocol/rest/build.go b/private/protocol/rest/build.go
index cc0faa7ff29..f4305e9dab4 100644
--- a/private/protocol/rest/build.go
+++ b/private/protocol/rest/build.go
@@ -322,7 +322,14 @@ func convertType(v reflect.Value, tag reflect.StructTag) (str string, err error)
case float64:
str = strconv.FormatFloat(value, 'f', -1, 64)
case time.Time:
- str = value.UTC().Format(RFC822)
+ format := tag.Get("timestampFormat")
+ if len(format) == 0 {
+ format = protocol.RFC822TimeFormatName
+ if tag.Get("location") == "querystring" {
+ format = protocol.ISO8601TimeFormatName
+ }
+ }
+ str,_ = protocol.FormatTime(format, value)
case aws.JSONValue:
if len(value) == 0 {
return "", &protocol.ErrValueNotSet{}
diff --git a/private/protocol/rest/unmarshal.go b/private/protocol/rest/unmarshal.go
index a9f14154645..2d25c5c634e 100644
--- a/private/protocol/rest/unmarshal.go
+++ b/private/protocol/rest/unmarshal.go
@@ -222,13 +222,24 @@ func unmarshalHeader(v reflect.Value, header string, tag reflect.StructTag) erro
}
v.Set(reflect.ValueOf(f))
case *time.Time:
- t, err := time.Parse(RFC822, header)
+ format := tag.Get("timestampFormat")
+ if len(format) == 0 {
+ format = protocol.RFC822TimeFormatName
+ if tag.Get("location") == "querystring" {
+ format = protocol.ISO8601TimeFormatName
+ }
+ }
+ t, err := protocol.ParseTime(format, header)
if err != nil {
return err
}
v.Set(reflect.ValueOf(&t))
case time.Time:
- t, err := time.Parse(RFC822, header)
+ format := tag.Get("timestampFormat")
+ if len(format) == 0 {
+ format = protocol.RFC822TimeFormatName
+ }
+ t, err := protocol.ParseTime(format, header)
if err != nil {
return err
}
@@ -244,7 +255,7 @@ func unmarshalHeader(v reflect.Value, header string, tag reflect.StructTag) erro
}
v.Set(reflect.ValueOf(m))
default:
- err := fmt.Errorf("Unsupported value for param %v (%s)", v.Interface(), v.Type())
+ err := fmt.Errorf("unsupported value for param %v (%s)", v.Interface(), v.Type())
return err
}
return nil
diff --git a/private/protocol/restjson/build_test.go b/private/protocol/restjson/build_test.go
index 1416a820ce0..8474448eb9d 100644
--- a/private/protocol/restjson/build_test.go
+++ b/private/protocol/restjson/build_test.go
@@ -96,6 +96,7 @@ type InputService1TestShapeInputService1TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService1TestShapeInputService1TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -231,6 +232,7 @@ type InputService2TestShapeInputService2TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService2TestShapeInputService2TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PipelineId != nil {
v := *s.PipelineId
@@ -372,6 +374,7 @@ type InputService3TestShapeInputService3TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService3TestShapeInputService3TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Foo != nil {
v := *s.Foo
@@ -513,6 +516,7 @@ type InputService4TestShapeInputService4TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService4TestShapeInputService4TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Items != nil {
v := s.Items
@@ -662,6 +666,7 @@ type InputService5TestShapeInputService5TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService5TestShapeInputService5TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PipelineId != nil {
v := *s.PipelineId
@@ -817,6 +822,7 @@ type InputService6TestShapeInputService6TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService6TestShapeInputService6TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PipelineId != nil {
v := *s.PipelineId
@@ -975,6 +981,7 @@ type InputService7TestShapeInputService7TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService7TestShapeInputService7TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BoolQuery != nil {
v := *s.BoolQuery
@@ -1068,6 +1075,7 @@ type InputService7TestShapeInputService7TestCaseOperation2Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService7TestShapeInputService7TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BoolQuery != nil {
v := *s.BoolQuery
@@ -1213,6 +1221,7 @@ type InputService8TestShapeInputService8TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService8TestShapeInputService8TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PipelineId != nil {
v := *s.PipelineId
@@ -1372,6 +1381,7 @@ type InputService9TestShapeInputService9TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService9TestShapeInputService9TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Config != nil {
v := s.Config
@@ -1564,6 +1574,7 @@ type InputService10TestShapeInputService10TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService10TestShapeInputService10TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Config != nil {
v := s.Config
@@ -1944,6 +1955,7 @@ func (s *InputService12TestShapeInputService12TestCaseOperation1Input) Validate(
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService12TestShapeInputService12TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Bar != nil {
v := s.Bar
@@ -2325,6 +2337,7 @@ type InputService14TestShapeInputService14TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService14TestShapeInputService14TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Foo != nil {
v := s.Foo
@@ -2418,6 +2431,7 @@ type InputService14TestShapeInputService14TestCaseOperation2Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService14TestShapeInputService14TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Foo != nil {
v := s.Foo
@@ -2576,6 +2590,7 @@ type InputService15TestShapeInputService15TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService15TestShapeInputService15TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Foo != nil {
v := *s.Foo
@@ -2669,6 +2684,7 @@ type InputService15TestShapeInputService15TestCaseOperation2Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService15TestShapeInputService15TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Foo != nil {
v := *s.Foo
@@ -2810,6 +2826,7 @@ type InputService16TestShapeInputService16TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService16TestShapeInputService16TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RecursiveStruct != nil {
v := s.RecursiveStruct
@@ -2903,6 +2920,7 @@ type InputService16TestShapeInputService16TestCaseOperation2Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService16TestShapeInputService16TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RecursiveStruct != nil {
v := s.RecursiveStruct
@@ -2996,6 +3014,7 @@ type InputService16TestShapeInputService16TestCaseOperation3Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService16TestShapeInputService16TestCaseOperation3Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RecursiveStruct != nil {
v := s.RecursiveStruct
@@ -3089,6 +3108,7 @@ type InputService16TestShapeInputService16TestCaseOperation4Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService16TestShapeInputService16TestCaseOperation4Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RecursiveStruct != nil {
v := s.RecursiveStruct
@@ -3182,6 +3202,7 @@ type InputService16TestShapeInputService16TestCaseOperation5Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService16TestShapeInputService16TestCaseOperation5Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RecursiveStruct != nil {
v := s.RecursiveStruct
@@ -3275,6 +3296,7 @@ type InputService16TestShapeInputService16TestCaseOperation6Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService16TestShapeInputService16TestCaseOperation6Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RecursiveStruct != nil {
v := s.RecursiveStruct
@@ -3464,25 +3486,91 @@ func (c *InputService17ProtocolTest) newRequest(op *aws.Operation, params, data
type InputService17TestShapeInputService17TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
- TimeArg *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TimeArg *time.Time `type:"timestamp"`
- TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"`
+ TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp"`
+
+ TimeArgInQuery *time.Time `location:"querystring" locationName:"TimeQuery" type:"timestamp"`
+
+ TimeCustom *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+
+ TimeCustomInHeader *time.Time `location:"header" locationName:"x-amz-timecustom-header" type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ TimeCustomInQuery *time.Time `location:"querystring" locationName:"TimeCustomQuery" type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ TimeFormat *time.Time `type:"timestamp" timestampFormat:"rfc822"`
+
+ TimeFormatInHeader *time.Time `location:"header" locationName:"x-amz-timeformat-header" type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ TimeFormatInQuery *time.Time `location:"querystring" locationName:"TimeFormatQuery" type:"timestamp" timestampFormat:"unixTimestamp"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService17TestShapeInputService17TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TimeArg != nil {
v := *s.TimeArg
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "TimeArg", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "TimeArg",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
+ }
+ if s.TimeCustom != nil {
+ v := *s.TimeCustom
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "TimeCustom",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
+ }
+ if s.TimeFormat != nil {
+ v := *s.TimeFormat
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "TimeFormat",
+ protocol.TimeValue{V: v, Format: "rfc822", QuotedFormatTime: true}, metadata)
}
if s.TimeArgInHeader != nil {
v := *s.TimeArgInHeader
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-timearg", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-timearg",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeCustomInHeader != nil {
+ v := *s.TimeCustomInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timecustom-header",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeFormatInHeader != nil {
+ v := *s.TimeFormatInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timeformat-header",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeArgInQuery != nil {
+ v := *s.TimeArgInQuery
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.QueryTarget, "TimeQuery",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeCustomInQuery != nil {
+ v := *s.TimeCustomInQuery
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.QueryTarget, "TimeCustomQuery",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeFormatInQuery != nil {
+ v := *s.TimeFormatInQuery
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.QueryTarget, "TimeFormatQuery",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -3562,107 +3650,6 @@ func (r *InputService17TestCaseOperation1Response) SDKResponseMetdata() *aws.Res
return r.response
}
-type InputService17TestShapeInputService17TestCaseOperation2Input struct {
- _ struct{} `type:"structure"`
-
- TimeArg *time.Time `type:"timestamp" timestampFormat:"unix"`
-
- TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService17TestShapeInputService17TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
-
- if s.TimeArg != nil {
- v := *s.TimeArg
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "TimeArg", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
- }
- if s.TimeArgInHeader != nil {
- v := *s.TimeArgInHeader
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-timearg", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
- }
- return nil
-}
-
-type InputService17TestShapeInputService17TestCaseOperation2Output struct {
- _ struct{} `type:"structure"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService17TestShapeInputService17TestCaseOperation2Output) MarshalFields(e protocol.FieldEncoder) error {
- return nil
-}
-
-const opInputService17TestCaseOperation2 = "OperationName"
-
-// InputService17TestCaseOperation2Request returns a request value for making API operation for
-// .
-//
-// // Example sending a request using InputService17TestCaseOperation2Request.
-// req := client.InputService17TestCaseOperation2Request(params)
-// resp, err := req.Send(context.TODO())
-// if err == nil {
-// fmt.Println(resp)
-// }
-func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(input *InputService17TestShapeInputService17TestCaseOperation2Input) InputService17TestCaseOperation2Request {
- op := &aws.Operation{
- Name: opInputService17TestCaseOperation2,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
-
- if input == nil {
- input = &InputService17TestShapeInputService17TestCaseOperation2Input{}
- }
-
- req := c.newRequest(op, input, &InputService17TestShapeInputService17TestCaseOperation2Output{})
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService17TestCaseOperation2Request{Request: req, Input: input, Copy: c.InputService17TestCaseOperation2Request}
-}
-
-// InputService17TestCaseOperation2Request is the request type for the
-// InputService17TestCaseOperation2 API operation.
-type InputService17TestCaseOperation2Request struct {
- *aws.Request
- Input *InputService17TestShapeInputService17TestCaseOperation2Input
- Copy func(*InputService17TestShapeInputService17TestCaseOperation2Input) InputService17TestCaseOperation2Request
-}
-
-// Send marshals and sends the InputService17TestCaseOperation2 API request.
-func (r InputService17TestCaseOperation2Request) Send(ctx context.Context) (*InputService17TestCaseOperation2Response, error) {
- r.Request.SetContext(ctx)
- err := r.Request.Send()
- if err != nil {
- return nil, err
- }
-
- resp := &InputService17TestCaseOperation2Response{
- InputService17TestShapeInputService17TestCaseOperation2Output: r.Request.Data.(*InputService17TestShapeInputService17TestCaseOperation2Output),
- response: &aws.Response{Request: r.Request},
- }
-
- return resp, nil
-}
-
-// InputService17TestCaseOperation2Response is the response type for the
-// InputService17TestCaseOperation2 API operation.
-type InputService17TestCaseOperation2Response struct {
- *InputService17TestShapeInputService17TestCaseOperation2Output
-
- response *aws.Response
-}
-
-// SDKResponseMetdata returns the response metadata for the
-// InputService17TestCaseOperation2 request.
-func (r *InputService17TestCaseOperation2Response) SDKResponseMetdata() *aws.Response {
- return r.response
-}
-
// InputService18ProtocolTest provides the API operation methods for making requests to
// InputService18ProtocolTest. See this package's package overview docs
// for details on the service.
@@ -3714,17 +3701,19 @@ func (c *InputService18ProtocolTest) newRequest(op *aws.Operation, params, data
type InputService18TestShapeInputService18TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
- TimeArg *time.Time `locationName:"timestamp_location" type:"timestamp" timestampFormat:"unix"`
+ TimeArg *time.Time `locationName:"timestamp_location" type:"timestamp"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService18TestShapeInputService18TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TimeArg != nil {
v := *s.TimeArg
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "timestamp_location", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "timestamp_location",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -3860,6 +3849,7 @@ type InputService19TestShapeInputService19TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService19TestShapeInputService19TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Foo != nil {
v := *s.Foo
@@ -4001,6 +3991,7 @@ type InputService20TestShapeInputService20TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService20TestShapeInputService20TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var Token string
if s.Token != nil {
@@ -4100,6 +4091,7 @@ type InputService20TestShapeInputService20TestCaseOperation2Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService20TestShapeInputService20TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var Token string
if s.Token != nil {
@@ -4251,6 +4243,7 @@ type InputService21TestShapeInputService21TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService21TestShapeInputService21TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HeaderField != nil {
v := s.HeaderField
@@ -4360,6 +4353,7 @@ type InputService21TestShapeInputService21TestCaseOperation2Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService21TestShapeInputService21TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HeaderField != nil {
v := s.HeaderField
@@ -4469,6 +4463,7 @@ type InputService21TestShapeInputService21TestCaseOperation3Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService21TestShapeInputService21TestCaseOperation3Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HeaderField != nil {
v := s.HeaderField
@@ -4661,6 +4656,7 @@ type InputService22TestShapeInputService22TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService22TestShapeInputService22TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.FooEnum) > 0 {
v := s.FooEnum
@@ -4798,6 +4794,7 @@ type InputService22TestShapeInputService22TestCaseOperation2Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService22TestShapeInputService22TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.FooEnum) > 0 {
v := s.FooEnum
@@ -4994,6 +4991,7 @@ type InputService23TestShapeInputService23TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService23TestShapeInputService23TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
@@ -5107,6 +5105,7 @@ func (s *InputService23TestShapeInputService23TestCaseOperation2Input) Validate(
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService23TestShapeInputService23TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
@@ -5258,6 +5257,7 @@ type InputService24TestShapeInputService24TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService24TestShapeInputService24TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Header1 != nil {
v := *s.Header1
@@ -5415,6 +5415,7 @@ type InputService25TestShapeInputService25TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService25TestShapeInputService25TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MapDefaults != nil {
v := s.MapDefaults
@@ -5804,7 +5805,7 @@ func TestInputService9ProtocolTestURIParameterQuerystringParamsAndJSONBodyCase1(
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Config":{"A":"one","B":"two"}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Config": {"A": "one", "B": "two"}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String())
@@ -5843,7 +5844,7 @@ func TestInputService10ProtocolTestURIParameterQuerystringParamsHeadersAndJSONBo
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Config":{"A":"one","B":"two"}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Config": {"A": "one", "B": "two"}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String())
@@ -5918,7 +5919,7 @@ func TestInputService12ProtocolTestSerializeBlobsInBodyCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Bar":"QmxvYiBwYXJhbQ=="}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Bar": "QmxvYiBwYXJhbQ=="}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/foo_name", r.URL.String())
@@ -6009,7 +6010,7 @@ func TestInputService14ProtocolTestStructurePayloadCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"baz":"bar"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"baz": "bar"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -6114,7 +6115,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"NoRecurse":"foo"}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"NoRecurse": "foo"}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -6150,7 +6151,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase2(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveStruct": {"NoRecurse": "foo"}}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -6190,7 +6191,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase3(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveStruct": {"RecursiveStruct": {"RecursiveStruct": {"NoRecurse": "foo"}}}}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -6231,7 +6232,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase4(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"NoRecurse":"bar"}]}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveList": [{"NoRecurse": "foo"}, {"NoRecurse": "bar"}]}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -6274,7 +6275,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase5(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"RecursiveStruct":{"NoRecurse":"bar"}}]}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveList": [{"NoRecurse": "foo"}, {"RecursiveStruct": {"NoRecurse": "bar"}}]}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -6315,7 +6316,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase6(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveMap":{"foo":{"NoRecurse":"foo"},"bar":{"NoRecurse":"bar"}}}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveMap": {"foo": {"NoRecurse": "foo"}, "bar": {"NoRecurse": "bar"}}}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -6330,7 +6331,15 @@ func TestInputService17ProtocolTestTimestampValuesCase1(t *testing.T) {
svc := NewInputService17ProtocolTest(cfg)
input := &InputService17TestShapeInputService17TestCaseOperation1Input{
- TimeArg: aws.Time(time.Unix(1422172800, 0)),
+ TimeArg: aws.Time(time.Unix(1422172800, 0)),
+ TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)),
+ TimeArgInQuery: aws.Time(time.Unix(1422172800, 0)),
+ TimeCustom: aws.Time(time.Unix(1422172800, 0)),
+ TimeCustomInHeader: aws.Time(time.Unix(1422172800, 0)),
+ TimeCustomInQuery: aws.Time(time.Unix(1422172800, 0)),
+ TimeFormat: aws.Time(time.Unix(1422172800, 0)),
+ TimeFormatInHeader: aws.Time(time.Unix(1422172800, 0)),
+ TimeFormatInQuery: aws.Time(time.Unix(1422172800, 0)),
}
req := svc.InputService17TestCaseOperation1Request(input)
@@ -6347,40 +6356,24 @@ func TestInputService17ProtocolTestTimestampValuesCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"TimeArg":1422172800}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"TimeArg": 1422172800, "TimeCustom": "2015-01-25T08:00:00Z", "TimeFormat": "Sun, 25 Jan 2015 08:00:00 GMT"}`, util.Trim(string(body)))
// assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
+ awstesting.AssertURL(t, "https://test/path?TimeQuery=2015-01-25T08%3A00%3A00Z&TimeCustomQuery=1422172800&TimeFormatQuery=1422172800", r.URL.String())
// assert headers
-
-}
-
-func TestInputService17ProtocolTestTimestampValuesCase2(t *testing.T) {
- cfg := unit.Config()
- cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
-
- svc := NewInputService17ProtocolTest(cfg)
- input := &InputService17TestShapeInputService17TestCaseOperation2Input{
- TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)),
- }
-
- req := svc.InputService17TestCaseOperation2Request(input)
- r := req.HTTPRequest
-
- // build request
- req.Build()
- if req.Error != nil {
- t.Errorf("expect no error, got %v", req.Error)
+ if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
+ t.Errorf("expect %v, got %v", e, a)
}
-
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
-
- // assert headers
if e, a := "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
+ if e, a := "1422172800", r.Header.Get("x-amz-timecustom-header"); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := "1422172800", r.Header.Get("x-amz-timeformat-header"); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
}
@@ -6407,7 +6400,7 @@ func TestInputService18ProtocolTestNamedLocationsInJSONBodyCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"timestamp_location":1422172800}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"timestamp_location": 1422172800}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -6473,7 +6466,7 @@ func TestInputService20ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Token":"abc123"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Token": "abc123"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -6503,7 +6496,7 @@ func TestInputService20ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Token":"00000000-0000-4000-8000-000000000000"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Token": "00000000-0000-4000-8000-000000000000"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -6657,7 +6650,7 @@ func TestInputService22ProtocolTestEnumCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"FooEnum":"foo","ListEnums":["foo","","bar"]}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"FooEnum": "foo", "ListEnums": ["foo", "", "bar"]}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path?Enum=bar&List=0&List=1&List=", r.URL.String())
@@ -6715,7 +6708,7 @@ func TestInputService23ProtocolTestEndpointHostTraitCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Name":"myname"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/path", r.URL.String())
@@ -6747,7 +6740,7 @@ func TestInputService23ProtocolTestEndpointHostTraitCase2(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"Name":"myname"}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/path", r.URL.String())
@@ -6834,7 +6827,7 @@ func TestInputService25ProtocolTestEmptyOrUnsetMapsInPayloadCase1(t *testing.T)
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
- awstesting.AssertJSON(t, `{"MapDefaults":{"test_key_1":"test_value_1","test_key_2":"test_value_2","test_key_3":"test_value_3"},"MapEmpty":{}}`, util.Trim(string(body)))
+ awstesting.AssertJSON(t, `{"MapDefaults": {"test_key_1":"test_value_1", "test_key_2":"test_value_2", "test_key_3":"test_value_3"}, "MapEmpty":{}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
diff --git a/private/protocol/restjson/restjson.go b/private/protocol/restjson/restjson.go
index 2e7aff23674..90755cee219 100644
--- a/private/protocol/restjson/restjson.go
+++ b/private/protocol/restjson/restjson.go
@@ -7,13 +7,13 @@ package restjson
import (
"encoding/json"
+ "github.com/aws/aws-sdk-go-v2/private/protocol"
"io"
"io/ioutil"
"strings"
request "github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
- "github.com/aws/aws-sdk-go-v2/private/protocol"
"github.com/aws/aws-sdk-go-v2/private/protocol/jsonrpc"
"github.com/aws/aws-sdk-go-v2/private/protocol/rest"
)
diff --git a/private/protocol/restjson/unmarshal_test.go b/private/protocol/restjson/unmarshal_test.go
index 4110ca5bd8d..aedf18b161b 100644
--- a/private/protocol/restjson/unmarshal_test.go
+++ b/private/protocol/restjson/unmarshal_test.go
@@ -96,6 +96,7 @@ type OutputService1TestShapeOutputService1TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService1TestShapeOutputService1TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -310,6 +311,7 @@ type OutputService2TestShapeOutputService2TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService2TestShapeOutputService2TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -476,6 +478,7 @@ type OutputService3TestShapeOutputService3TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService3TestShapeOutputService3TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -485,7 +488,17 @@ type OutputService3TestShapeOutputService3TestCaseOperation1Output struct {
StructMember *OutputService3TestShapeTimeContainer `type:"structure"`
- TimeMember *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TimeArg *time.Time `type:"timestamp"`
+
+ TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp"`
+
+ TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
+
+ TimeCustomInHeader *time.Time `location:"header" locationName:"x-amz-timecustom" type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ TimeFormat *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+
+ TimeFormatInHeader *time.Time `location:"header" locationName:"x-amz-timeformat" type:"timestamp" timestampFormat:"iso8601"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
@@ -496,11 +509,47 @@ func (s OutputService3TestShapeOutputService3TestCaseOperation1Output) MarshalFi
metadata := protocol.Metadata{}
e.SetFields(protocol.BodyTarget, "StructMember", v, metadata)
}
- if s.TimeMember != nil {
- v := *s.TimeMember
+ if s.TimeArg != nil {
+ v := *s.TimeArg
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "TimeMember", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "TimeArg",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
+ }
+ if s.TimeCustom != nil {
+ v := *s.TimeCustom
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "TimeCustom",
+ protocol.TimeValue{V: v, Format: "rfc822", QuotedFormatTime: true}, metadata)
+ }
+ if s.TimeFormat != nil {
+ v := *s.TimeFormat
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "TimeFormat",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
+ }
+ if s.TimeArgInHeader != nil {
+ v := *s.TimeArgInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timearg",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeCustomInHeader != nil {
+ v := *s.TimeCustomInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timecustom",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeFormatInHeader != nil {
+ v := *s.TimeFormatInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timeformat",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -572,16 +621,26 @@ func (r *OutputService3TestCaseOperation1Response) SDKResponseMetdata() *aws.Res
type OutputService3TestShapeTimeContainer struct {
_ struct{} `type:"structure"`
- Foo *time.Time `locationName:"foo" type:"timestamp" timestampFormat:"unix"`
+ Bar *time.Time `locationName:"bar" type:"timestamp" timestampFormat:"iso8601"`
+
+ Foo *time.Time `locationName:"foo" type:"timestamp"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService3TestShapeTimeContainer) MarshalFields(e protocol.FieldEncoder) error {
+ if s.Bar != nil {
+ v := *s.Bar
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "bar",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
+ }
if s.Foo != nil {
v := *s.Foo
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "foo", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "foo",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -640,6 +699,7 @@ type OutputService4TestShapeOutputService4TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService4TestShapeOutputService4TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -785,6 +845,7 @@ type OutputService5TestShapeOutputService5TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService5TestShapeOutputService5TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -947,6 +1008,7 @@ type OutputService6TestShapeOutputService6TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService6TestShapeOutputService6TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -1097,6 +1159,7 @@ type OutputService7TestShapeOutputService7TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService7TestShapeOutputService7TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -1242,6 +1305,7 @@ type OutputService8TestShapeOutputService8TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService8TestShapeOutputService8TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -1381,6 +1445,7 @@ type OutputService9TestShapeOutputService9TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService9TestShapeOutputService9TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -1540,6 +1605,7 @@ type OutputService10TestShapeOutputService10TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService10TestShapeOutputService10TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -1704,6 +1770,7 @@ type OutputService11TestShapeOutputService11TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService11TestShapeOutputService11TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -1843,6 +1910,7 @@ type OutputService12TestShapeOutputService12TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService12TestShapeOutputService12TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -1956,6 +2024,7 @@ type OutputService12TestShapeOutputService12TestCaseOperation2Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService12TestShapeOutputService12TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -2063,119 +2132,6 @@ func (r *OutputService12TestCaseOperation2Response) SDKResponseMetdata() *aws.Re
return r.response
}
-type OutputService12TestShapeOutputService12TestCaseOperation3Input struct {
- _ struct{} `type:"structure"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s OutputService12TestShapeOutputService12TestCaseOperation3Input) MarshalFields(e protocol.FieldEncoder) error {
-
- return nil
-}
-
-type OutputService12TestShapeOutputService12TestCaseOperation3Output struct {
- _ struct{} `type:"structure"`
-
- BodyField aws.JSONValue `type:"jsonvalue"`
-
- BodyListField []aws.JSONValue `type:"list"`
-
- HeaderField aws.JSONValue `location:"header" locationName:"X-Amz-Foo" type:"jsonvalue"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s OutputService12TestShapeOutputService12TestCaseOperation3Output) MarshalFields(e protocol.FieldEncoder) error {
- if s.BodyField != nil {
- v := s.BodyField
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "BodyField", protocol.JSONValue{V: v, EscapeMode: protocol.QuotedEscape}, metadata)
- }
- if s.BodyListField != nil {
- v := s.BodyListField
-
- metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "BodyListField", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.JSONValue{V: v1, EscapeMode: protocol.QuotedEscape})
- }
- ls0.End()
-
- }
- if s.HeaderField != nil {
- v := s.HeaderField
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "X-Amz-Foo", protocol.JSONValue{V: v, EscapeMode: protocol.Base64Escape}, metadata)
- }
- return nil
-}
-
-const opOutputService12TestCaseOperation3 = "OperationName"
-
-// OutputService12TestCaseOperation3Request returns a request value for making API operation for
-// .
-//
-// // Example sending a request using OutputService12TestCaseOperation3Request.
-// req := client.OutputService12TestCaseOperation3Request(params)
-// resp, err := req.Send(context.TODO())
-// if err == nil {
-// fmt.Println(resp)
-// }
-func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation3Request(input *OutputService12TestShapeOutputService12TestCaseOperation3Input) OutputService12TestCaseOperation3Request {
- op := &aws.Operation{
- Name: opOutputService12TestCaseOperation3,
-
- HTTPPath: "/",
- }
-
- if input == nil {
- input = &OutputService12TestShapeOutputService12TestCaseOperation3Input{}
- }
-
- req := c.newRequest(op, input, &OutputService12TestShapeOutputService12TestCaseOperation3Output{})
- return OutputService12TestCaseOperation3Request{Request: req, Input: input, Copy: c.OutputService12TestCaseOperation3Request}
-}
-
-// OutputService12TestCaseOperation3Request is the request type for the
-// OutputService12TestCaseOperation3 API operation.
-type OutputService12TestCaseOperation3Request struct {
- *aws.Request
- Input *OutputService12TestShapeOutputService12TestCaseOperation3Input
- Copy func(*OutputService12TestShapeOutputService12TestCaseOperation3Input) OutputService12TestCaseOperation3Request
-}
-
-// Send marshals and sends the OutputService12TestCaseOperation3 API request.
-func (r OutputService12TestCaseOperation3Request) Send(ctx context.Context) (*OutputService12TestCaseOperation3Response, error) {
- r.Request.SetContext(ctx)
- err := r.Request.Send()
- if err != nil {
- return nil, err
- }
-
- resp := &OutputService12TestCaseOperation3Response{
- OutputService12TestShapeOutputService12TestCaseOperation3Output: r.Request.Data.(*OutputService12TestShapeOutputService12TestCaseOperation3Output),
- response: &aws.Response{Request: r.Request},
- }
-
- return resp, nil
-}
-
-// OutputService12TestCaseOperation3Response is the response type for the
-// OutputService12TestCaseOperation3 API operation.
-type OutputService12TestCaseOperation3Response struct {
- *OutputService12TestShapeOutputService12TestCaseOperation3Output
-
- response *aws.Response
-}
-
-// SDKResponseMetdata returns the response metadata for the
-// OutputService12TestCaseOperation3 request.
-func (r *OutputService12TestCaseOperation3Response) SDKResponseMetdata() *aws.Response {
- return r.response
-}
-
// OutputService13ProtocolTest provides the API operation methods for making requests to
// OutputService13ProtocolTest. See this package's package overview docs
// for details on the service.
@@ -2230,6 +2186,7 @@ type OutputService13TestShapeOutputService13TestCaseOperation1Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService13TestShapeOutputService13TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -2349,6 +2306,7 @@ type OutputService13TestShapeOutputService13TestCaseOperation2Input struct {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService13TestShapeOutputService13TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.FooEnum) > 0 {
v := s.FooEnum
@@ -2576,11 +2534,14 @@ func TestOutputService3ProtocolTestTimestampMembersCase1(t *testing.T) {
svc := NewOutputService3ProtocolTest(cfg)
- buf := bytes.NewReader([]byte("{\"TimeMember\": 1398796238, \"StructMember\": {\"foo\": 1398796238}}"))
+ buf := bytes.NewReader([]byte("{\"TimeArg\": 1398796238, \"TimeCustom\": \"Tue, 29 Apr 2014 18:30:38 GMT\", \"TimeFormat\": \"2014-04-29T18:30:38Z\", \"StructMember\": {\"foo\": 1398796238, \"bar\": \"2014-04-29T18:30:38Z\"}}"))
req := svc.OutputService3TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
+ req.HTTPResponse.Header.Set("x-amz-timearg", "Tue, 29 Apr 2014 18:30:38 GMT")
+ req.HTTPResponse.Header.Set("x-amz-timecustom", "1398796238")
+ req.HTTPResponse.Header.Set("x-amz-timeformat", "2014-04-29T18:30:38Z")
// unmarshal response
restjson.UnmarshalMeta(req.Request)
@@ -2594,10 +2555,28 @@ func TestOutputService3ProtocolTestTimestampMembersCase1(t *testing.T) {
if out == nil {
t.Errorf("expect not to be nil")
}
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Bar.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeMember.String(); e != a {
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArg.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArgInHeader.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustom.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustomInHeader.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormat.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormatInHeader.String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
@@ -2935,33 +2914,6 @@ func TestOutputService12ProtocolTestJSONValueTraitCase2(t *testing.T) {
}
-func TestOutputService12ProtocolTestJSONValueTraitCase3(t *testing.T) {
- cfg := unit.Config()
- cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
-
- svc := NewOutputService12ProtocolTest(cfg)
-
- buf := bytes.NewReader([]byte(""))
- req := svc.OutputService12TestCaseOperation3Request(nil)
- req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
-
- // set headers
-
- // unmarshal response
- restjson.UnmarshalMeta(req.Request)
- restjson.Unmarshal(req.Request)
- if req.Error != nil {
- t.Errorf("expect not error, got %v", req.Error)
- }
-
- out := req.Data.(*OutputService12TestShapeOutputService12TestCaseOperation3Output)
- // assert response
- if out == nil {
- t.Errorf("expect not to be nil")
- }
-
-}
-
func TestOutputService13ProtocolTestEnumCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
diff --git a/private/protocol/restxml/build_test.go b/private/protocol/restxml/build_test.go
index 08b4a341832..3c540d2d0f0 100644
--- a/private/protocol/restxml/build_test.go
+++ b/private/protocol/restxml/build_test.go
@@ -1925,8 +1925,6 @@ type InputService10TestShapeStructureShape struct {
// B is automatically base64 encoded/decoded by the SDK.
B []byte `locationName:"b" type:"blob"`
-
- T *time.Time `locationName:"t" type:"timestamp" timestampFormat:"iso8601"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
@@ -1937,12 +1935,6 @@ func (s InputService10TestShapeStructureShape) MarshalFields(e protocol.FieldEnc
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "b", protocol.BytesValue(v), metadata)
}
- if s.T != nil {
- v := *s.T
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "t", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
- }
return nil
}
@@ -1995,25 +1987,95 @@ func (c *InputService11ProtocolTest) newRequest(op *aws.Operation, params, data
}
type InputService11TestShapeInputService11TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
+ _ struct{} `locationName:"TimestampStructure" type:"structure" xmlURI:"https://foo/"`
- Foo map[string]string `location:"headers" locationName:"x-foo-" type:"map"`
+ TimeArg *time.Time `type:"timestamp"`
+
+ TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp"`
+
+ TimeArgInQuery *time.Time `location:"querystring" locationName:"TimeQuery" type:"timestamp"`
+
+ TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
+
+ TimeCustomInHeader *time.Time `location:"header" locationName:"x-amz-timecustom-header" type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ TimeCustomInQuery *time.Time `location:"querystring" locationName:"TimeCustomQuery" type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ TimeFormat *time.Time `type:"timestamp" timestampFormat:"rfc822"`
+
+ TimeFormatInHeader *time.Time `location:"header" locationName:"x-amz-timeformat-header" type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ TimeFormatInQuery *time.Time `location:"querystring" locationName:"TimeFormatQuery" type:"timestamp" timestampFormat:"unixTimestamp"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService11TestShapeInputService11TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
- if s.Foo != nil {
- v := s.Foo
+ e.SetFields(protocol.BodyTarget, "TimestampStructure", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
+ if s.TimeArg != nil {
+ v := *s.TimeArg
- metadata := protocol.Metadata{}
- ms0 := e.Map(protocol.HeadersTarget, "x-foo-", metadata)
- ms0.Start()
- for k1, v1 := range v {
- ms0.MapSetValue(k1, protocol.StringValue(v1))
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "TimeArg",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
- ms0.End()
+ if s.TimeCustom != nil {
+ v := *s.TimeCustom
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "TimeCustom",
+ protocol.TimeValue{V: v, Format: "rfc822", QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeFormat != nil {
+ v := *s.TimeFormat
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "TimeFormat",
+ protocol.TimeValue{V: v, Format: "rfc822", QuotedFormatTime: false}, metadata)
+ }
+ return nil
+ }), protocol.Metadata{XMLNamespaceURI: "https://foo/"})
+ if s.TimeArgInHeader != nil {
+ v := *s.TimeArgInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timearg",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeCustomInHeader != nil {
+ v := *s.TimeCustomInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timecustom-header",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeFormatInHeader != nil {
+ v := *s.TimeFormatInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timeformat-header",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeArgInQuery != nil {
+ v := *s.TimeArgInQuery
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.QueryTarget, "TimeQuery",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeCustomInQuery != nil {
+ v := *s.TimeCustomInQuery
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.QueryTarget, "TimeCustomQuery",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeFormatInQuery != nil {
+ v := *s.TimeFormatInQuery
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.QueryTarget, "TimeFormatQuery",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -2042,7 +2104,7 @@ func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(inp
op := &aws.Operation{
Name: opInputService11TestCaseOperation1,
HTTPMethod: "POST",
- HTTPPath: "/",
+ HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
@@ -2142,24 +2204,24 @@ func (c *InputService12ProtocolTest) newRequest(op *aws.Operation, params, data
}
type InputService12TestShapeInputService12TestCaseOperation1Input struct {
- _ struct{} `type:"structure"`
+ _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- Items []string `location:"querystring" locationName:"item" type:"list"`
+ Foo map[string]string `location:"headers" locationName:"x-foo-" type:"map"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService12TestShapeInputService12TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
- if s.Items != nil {
- v := s.Items
+ if s.Foo != nil {
+ v := s.Foo
metadata := protocol.Metadata{}
- ls0 := e.List(protocol.QueryTarget, "item", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.StringValue(v1))
+ ms0 := e.Map(protocol.HeadersTarget, "x-foo-", metadata)
+ ms0.Start()
+ for k1, v1 := range v {
+ ms0.MapSetValue(k1, protocol.StringValue(v1))
}
- ls0.End()
+ ms0.End()
}
return nil
@@ -2188,8 +2250,8 @@ const opInputService12TestCaseOperation1 = "OperationName"
func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) InputService12TestCaseOperation1Request {
op := &aws.Operation{
Name: opInputService12TestCaseOperation1,
- HTTPMethod: "GET",
- HTTPPath: "/path",
+ HTTPMethod: "POST",
+ HTTPPath: "/",
}
if input == nil {
@@ -2291,30 +2353,22 @@ func (c *InputService13ProtocolTest) newRequest(op *aws.Operation, params, data
type InputService13TestShapeInputService13TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
- PipelineId *string `location:"uri" type:"string"`
-
- QueryDoc map[string]string `location:"querystring" type:"map"`
+ Items []string `location:"querystring" locationName:"item" type:"list"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService13TestShapeInputService13TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
- if s.PipelineId != nil {
- v := *s.PipelineId
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.PathTarget, "PipelineId", protocol.StringValue(v), metadata)
- }
- if s.QueryDoc != nil {
- v := s.QueryDoc
+ if s.Items != nil {
+ v := s.Items
metadata := protocol.Metadata{}
- ms0 := e.Map(protocol.QueryTarget, "QueryDoc", metadata)
- ms0.Start()
- for k1, v1 := range v {
- ms0.MapSetValue(k1, protocol.StringValue(v1))
+ ls0 := e.List(protocol.QueryTarget, "item", metadata)
+ ls0.Start()
+ for _, v1 := range v {
+ ls0.ListAddValue(protocol.StringValue(v1))
}
- ms0.End()
+ ls0.End()
}
return nil
@@ -2344,7 +2398,7 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(inp
op := &aws.Operation{
Name: opInputService13TestCaseOperation1,
HTTPMethod: "GET",
- HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
+ HTTPPath: "/path",
}
if input == nil {
@@ -2448,7 +2502,7 @@ type InputService14TestShapeInputService14TestCaseOperation1Input struct {
PipelineId *string `location:"uri" type:"string"`
- QueryDoc map[string][]string `location:"querystring" type:"map"`
+ QueryDoc map[string]string `location:"querystring" type:"map"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
@@ -2467,12 +2521,7 @@ func (s InputService14TestShapeInputService14TestCaseOperation1Input) MarshalFie
ms0 := e.Map(protocol.QueryTarget, "QueryDoc", metadata)
ms0.Start()
for k1, v1 := range v {
- ls1 := ms0.List(k1)
- ls1.Start()
- for _, v2 := range v1 {
- ls1.ListAddValue(protocol.StringValue(v2))
- }
- ls1.End()
+ ms0.MapSetValue(k1, protocol.StringValue(v1))
}
ms0.End()
@@ -2606,17 +2655,36 @@ func (c *InputService15ProtocolTest) newRequest(op *aws.Operation, params, data
type InputService15TestShapeInputService15TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
- BoolQuery *bool `location:"querystring" locationName:"bool-query" type:"boolean"`
+ PipelineId *string `location:"uri" type:"string"`
+
+ QueryDoc map[string][]string `location:"querystring" type:"map"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService15TestShapeInputService15TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
- if s.BoolQuery != nil {
- v := *s.BoolQuery
+ if s.PipelineId != nil {
+ v := *s.PipelineId
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "bool-query", protocol.BoolValue(v), metadata)
+ e.SetValue(protocol.PathTarget, "PipelineId", protocol.StringValue(v), metadata)
+ }
+ if s.QueryDoc != nil {
+ v := s.QueryDoc
+
+ metadata := protocol.Metadata{}
+ ms0 := e.Map(protocol.QueryTarget, "QueryDoc", metadata)
+ ms0.Start()
+ for k1, v1 := range v {
+ ls1 := ms0.List(k1)
+ ls1.Start()
+ for _, v2 := range v1 {
+ ls1.ListAddValue(protocol.StringValue(v2))
+ }
+ ls1.End()
+ }
+ ms0.End()
+
}
return nil
}
@@ -2645,7 +2713,7 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(inp
op := &aws.Operation{
Name: opInputService15TestCaseOperation1,
HTTPMethod: "GET",
- HTTPPath: "/path",
+ HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
}
if input == nil {
@@ -2696,99 +2764,6 @@ func (r *InputService15TestCaseOperation1Response) SDKResponseMetdata() *aws.Res
return r.response
}
-type InputService15TestShapeInputService15TestCaseOperation2Input struct {
- _ struct{} `type:"structure"`
-
- BoolQuery *bool `location:"querystring" locationName:"bool-query" type:"boolean"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService15TestShapeInputService15TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
-
- if s.BoolQuery != nil {
- v := *s.BoolQuery
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "bool-query", protocol.BoolValue(v), metadata)
- }
- return nil
-}
-
-type InputService15TestShapeInputService15TestCaseOperation2Output struct {
- _ struct{} `type:"structure"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService15TestShapeInputService15TestCaseOperation2Output) MarshalFields(e protocol.FieldEncoder) error {
- return nil
-}
-
-const opInputService15TestCaseOperation2 = "OperationName"
-
-// InputService15TestCaseOperation2Request returns a request value for making API operation for
-// .
-//
-// // Example sending a request using InputService15TestCaseOperation2Request.
-// req := client.InputService15TestCaseOperation2Request(params)
-// resp, err := req.Send(context.TODO())
-// if err == nil {
-// fmt.Println(resp)
-// }
-func (c *InputService15ProtocolTest) InputService15TestCaseOperation2Request(input *InputService15TestShapeInputService15TestCaseOperation2Input) InputService15TestCaseOperation2Request {
- op := &aws.Operation{
- Name: opInputService15TestCaseOperation2,
- HTTPMethod: "GET",
- HTTPPath: "/path",
- }
-
- if input == nil {
- input = &InputService15TestShapeInputService15TestCaseOperation2Input{}
- }
-
- req := c.newRequest(op, input, &InputService15TestShapeInputService15TestCaseOperation2Output{})
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService15TestCaseOperation2Request{Request: req, Input: input, Copy: c.InputService15TestCaseOperation2Request}
-}
-
-// InputService15TestCaseOperation2Request is the request type for the
-// InputService15TestCaseOperation2 API operation.
-type InputService15TestCaseOperation2Request struct {
- *aws.Request
- Input *InputService15TestShapeInputService15TestCaseOperation2Input
- Copy func(*InputService15TestShapeInputService15TestCaseOperation2Input) InputService15TestCaseOperation2Request
-}
-
-// Send marshals and sends the InputService15TestCaseOperation2 API request.
-func (r InputService15TestCaseOperation2Request) Send(ctx context.Context) (*InputService15TestCaseOperation2Response, error) {
- r.Request.SetContext(ctx)
- err := r.Request.Send()
- if err != nil {
- return nil, err
- }
-
- resp := &InputService15TestCaseOperation2Response{
- InputService15TestShapeInputService15TestCaseOperation2Output: r.Request.Data.(*InputService15TestShapeInputService15TestCaseOperation2Output),
- response: &aws.Response{Request: r.Request},
- }
-
- return resp, nil
-}
-
-// InputService15TestCaseOperation2Response is the response type for the
-// InputService15TestCaseOperation2 API operation.
-type InputService15TestCaseOperation2Response struct {
- *InputService15TestShapeInputService15TestCaseOperation2Output
-
- response *aws.Response
-}
-
-// SDKResponseMetdata returns the response metadata for the
-// InputService15TestCaseOperation2 request.
-func (r *InputService15TestCaseOperation2Response) SDKResponseMetdata() *aws.Response {
- return r.response
-}
-
// InputService16ProtocolTest provides the API operation methods for making requests to
// InputService16ProtocolTest. See this package's package overview docs
// for details on the service.
@@ -2838,19 +2813,19 @@ func (c *InputService16ProtocolTest) newRequest(op *aws.Operation, params, data
}
type InputService16TestShapeInputService16TestCaseOperation1Input struct {
- _ struct{} `type:"structure" payload:"Foo"`
+ _ struct{} `type:"structure"`
- Foo *string `locationName:"foo" type:"string"`
+ BoolQuery *bool `location:"querystring" locationName:"bool-query" type:"boolean"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService16TestShapeInputService16TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
- if s.Foo != nil {
- v := *s.Foo
+ if s.BoolQuery != nil {
+ v := *s.BoolQuery
metadata := protocol.Metadata{}
- e.SetStream(protocol.PayloadTarget, "foo", protocol.StringStream(v), metadata)
+ e.SetValue(protocol.QueryTarget, "bool-query", protocol.BoolValue(v), metadata)
}
return nil
}
@@ -2878,8 +2853,8 @@ const opInputService16TestCaseOperation1 = "OperationName"
func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputService16TestCaseOperation1Input) InputService16TestCaseOperation1Request {
op := &aws.Operation{
Name: opInputService16TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/",
+ HTTPMethod: "GET",
+ HTTPPath: "/path",
}
if input == nil {
@@ -2930,237 +2905,237 @@ func (r *InputService16TestCaseOperation1Response) SDKResponseMetdata() *aws.Res
return r.response
}
-// InputService17ProtocolTest provides the API operation methods for making requests to
-// InputService17ProtocolTest. See this package's package overview docs
-// for details on the service.
-//
-// The client's methods are safe to use concurrently. It is not safe to
-// modify mutate any of the struct's properties though.
-type InputService17ProtocolTest struct {
- *aws.Client
+type InputService16TestShapeInputService16TestCaseOperation2Input struct {
+ _ struct{} `type:"structure"`
+
+ BoolQuery *bool `location:"querystring" locationName:"bool-query" type:"boolean"`
}
-// New creates a new instance of the client from the provided Config.
-//
-// Example:
-// // Create a client from just a config.
-// svc := inputservice17protocoltest.New(myConfig)
-func NewInputService17ProtocolTest(config aws.Config) *InputService17ProtocolTest {
- svc := &InputService17ProtocolTest{
- Client: aws.NewClient(
- config,
- aws.Metadata{
- ServiceName: "InputService17ProtocolTest",
- ServiceID: "InputService17ProtocolTest",
- EndpointsID: "inputservice17protocoltest",
- SigningName: "inputservice17protocoltest",
- SigningRegion: config.Region,
- APIVersion: "2014-01-01",
- },
- ),
- }
+// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
+func (s InputService16TestShapeInputService16TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
-
- return svc
-}
-
-// newRequest creates a new request for a client operation and runs any
-// custom request initialization.
-func (c *InputService17ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
- req := c.NewRequest(op, params, data)
-
- return req
-}
-
-type InputService17TestShapeInputService17TestCaseOperation1Input struct {
- _ struct{} `type:"structure" payload:"Foo"`
-
- Foo []byte `locationName:"foo" type:"blob"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService17TestShapeInputService17TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
-
- if s.Foo != nil {
- v := s.Foo
+ if s.BoolQuery != nil {
+ v := *s.BoolQuery
metadata := protocol.Metadata{}
- e.SetStream(protocol.PayloadTarget, "foo", protocol.BytesStream(v), metadata)
+ e.SetValue(protocol.QueryTarget, "bool-query", protocol.BoolValue(v), metadata)
}
return nil
}
-type InputService17TestShapeInputService17TestCaseOperation1Output struct {
+type InputService16TestShapeInputService16TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService17TestShapeInputService17TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService16TestShapeInputService16TestCaseOperation2Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService17TestCaseOperation1 = "OperationName"
+const opInputService16TestCaseOperation2 = "OperationName"
-// InputService17TestCaseOperation1Request returns a request value for making API operation for
+// InputService16TestCaseOperation2Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService17TestCaseOperation1Request.
-// req := client.InputService17TestCaseOperation1Request(params)
+// // Example sending a request using InputService16TestCaseOperation2Request.
+// req := client.InputService16TestCaseOperation2Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputService17TestCaseOperation1Input) InputService17TestCaseOperation1Request {
+func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputService16TestCaseOperation2Input) InputService16TestCaseOperation2Request {
op := &aws.Operation{
- Name: opInputService17TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/",
+ Name: opInputService16TestCaseOperation2,
+ HTTPMethod: "GET",
+ HTTPPath: "/path",
}
if input == nil {
- input = &InputService17TestShapeInputService17TestCaseOperation1Input{}
+ input = &InputService16TestShapeInputService16TestCaseOperation2Input{}
}
- req := c.newRequest(op, input, &InputService17TestShapeInputService17TestCaseOperation1Output{})
+ req := c.newRequest(op, input, &InputService16TestShapeInputService16TestCaseOperation2Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService17TestCaseOperation1Request{Request: req, Input: input, Copy: c.InputService17TestCaseOperation1Request}
+ return InputService16TestCaseOperation2Request{Request: req, Input: input, Copy: c.InputService16TestCaseOperation2Request}
}
-// InputService17TestCaseOperation1Request is the request type for the
-// InputService17TestCaseOperation1 API operation.
-type InputService17TestCaseOperation1Request struct {
+// InputService16TestCaseOperation2Request is the request type for the
+// InputService16TestCaseOperation2 API operation.
+type InputService16TestCaseOperation2Request struct {
*aws.Request
- Input *InputService17TestShapeInputService17TestCaseOperation1Input
- Copy func(*InputService17TestShapeInputService17TestCaseOperation1Input) InputService17TestCaseOperation1Request
+ Input *InputService16TestShapeInputService16TestCaseOperation2Input
+ Copy func(*InputService16TestShapeInputService16TestCaseOperation2Input) InputService16TestCaseOperation2Request
}
-// Send marshals and sends the InputService17TestCaseOperation1 API request.
-func (r InputService17TestCaseOperation1Request) Send(ctx context.Context) (*InputService17TestCaseOperation1Response, error) {
+// Send marshals and sends the InputService16TestCaseOperation2 API request.
+func (r InputService16TestCaseOperation2Request) Send(ctx context.Context) (*InputService16TestCaseOperation2Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService17TestCaseOperation1Response{
- InputService17TestShapeInputService17TestCaseOperation1Output: r.Request.Data.(*InputService17TestShapeInputService17TestCaseOperation1Output),
+ resp := &InputService16TestCaseOperation2Response{
+ InputService16TestShapeInputService16TestCaseOperation2Output: r.Request.Data.(*InputService16TestShapeInputService16TestCaseOperation2Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService17TestCaseOperation1Response is the response type for the
-// InputService17TestCaseOperation1 API operation.
-type InputService17TestCaseOperation1Response struct {
- *InputService17TestShapeInputService17TestCaseOperation1Output
+// InputService16TestCaseOperation2Response is the response type for the
+// InputService16TestCaseOperation2 API operation.
+type InputService16TestCaseOperation2Response struct {
+ *InputService16TestShapeInputService16TestCaseOperation2Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService17TestCaseOperation1 request.
-func (r *InputService17TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
+// InputService16TestCaseOperation2 request.
+func (r *InputService16TestCaseOperation2Response) SDKResponseMetdata() *aws.Response {
return r.response
}
-type InputService17TestShapeInputService17TestCaseOperation2Input struct {
+// InputService17ProtocolTest provides the API operation methods for making requests to
+// InputService17ProtocolTest. See this package's package overview docs
+// for details on the service.
+//
+// The client's methods are safe to use concurrently. It is not safe to
+// modify mutate any of the struct's properties though.
+type InputService17ProtocolTest struct {
+ *aws.Client
+}
+
+// New creates a new instance of the client from the provided Config.
+//
+// Example:
+// // Create a client from just a config.
+// svc := inputservice17protocoltest.New(myConfig)
+func NewInputService17ProtocolTest(config aws.Config) *InputService17ProtocolTest {
+ svc := &InputService17ProtocolTest{
+ Client: aws.NewClient(
+ config,
+ aws.Metadata{
+ ServiceName: "InputService17ProtocolTest",
+ ServiceID: "InputService17ProtocolTest",
+ EndpointsID: "inputservice17protocoltest",
+ SigningName: "inputservice17protocoltest",
+ SigningRegion: config.Region,
+ APIVersion: "2014-01-01",
+ },
+ ),
+ }
+
+ // Handlers
+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
+ svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
+ svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
+ svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
+ svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
+
+ return svc
+}
+
+// newRequest creates a new request for a client operation and runs any
+// custom request initialization.
+func (c *InputService17ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
+ req := c.NewRequest(op, params, data)
+
+ return req
+}
+
+type InputService17TestShapeInputService17TestCaseOperation1Input struct {
_ struct{} `type:"structure" payload:"Foo"`
- Foo []byte `locationName:"foo" type:"blob"`
+ Foo *string `locationName:"foo" type:"string"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService17TestShapeInputService17TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService17TestShapeInputService17TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
if s.Foo != nil {
- v := s.Foo
+ v := *s.Foo
metadata := protocol.Metadata{}
- e.SetStream(protocol.PayloadTarget, "foo", protocol.BytesStream(v), metadata)
+ e.SetStream(protocol.PayloadTarget, "foo", protocol.StringStream(v), metadata)
}
return nil
}
-type InputService17TestShapeInputService17TestCaseOperation2Output struct {
+type InputService17TestShapeInputService17TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService17TestShapeInputService17TestCaseOperation2Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService17TestShapeInputService17TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService17TestCaseOperation2 = "OperationName"
+const opInputService17TestCaseOperation1 = "OperationName"
-// InputService17TestCaseOperation2Request returns a request value for making API operation for
+// InputService17TestCaseOperation1Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService17TestCaseOperation2Request.
-// req := client.InputService17TestCaseOperation2Request(params)
+// // Example sending a request using InputService17TestCaseOperation1Request.
+// req := client.InputService17TestCaseOperation1Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(input *InputService17TestShapeInputService17TestCaseOperation2Input) InputService17TestCaseOperation2Request {
+func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputService17TestCaseOperation1Input) InputService17TestCaseOperation1Request {
op := &aws.Operation{
- Name: opInputService17TestCaseOperation2,
+ Name: opInputService17TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &InputService17TestShapeInputService17TestCaseOperation2Input{}
+ input = &InputService17TestShapeInputService17TestCaseOperation1Input{}
}
- req := c.newRequest(op, input, &InputService17TestShapeInputService17TestCaseOperation2Output{})
+ req := c.newRequest(op, input, &InputService17TestShapeInputService17TestCaseOperation1Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService17TestCaseOperation2Request{Request: req, Input: input, Copy: c.InputService17TestCaseOperation2Request}
+ return InputService17TestCaseOperation1Request{Request: req, Input: input, Copy: c.InputService17TestCaseOperation1Request}
}
-// InputService17TestCaseOperation2Request is the request type for the
-// InputService17TestCaseOperation2 API operation.
-type InputService17TestCaseOperation2Request struct {
+// InputService17TestCaseOperation1Request is the request type for the
+// InputService17TestCaseOperation1 API operation.
+type InputService17TestCaseOperation1Request struct {
*aws.Request
- Input *InputService17TestShapeInputService17TestCaseOperation2Input
- Copy func(*InputService17TestShapeInputService17TestCaseOperation2Input) InputService17TestCaseOperation2Request
+ Input *InputService17TestShapeInputService17TestCaseOperation1Input
+ Copy func(*InputService17TestShapeInputService17TestCaseOperation1Input) InputService17TestCaseOperation1Request
}
-// Send marshals and sends the InputService17TestCaseOperation2 API request.
-func (r InputService17TestCaseOperation2Request) Send(ctx context.Context) (*InputService17TestCaseOperation2Response, error) {
+// Send marshals and sends the InputService17TestCaseOperation1 API request.
+func (r InputService17TestCaseOperation1Request) Send(ctx context.Context) (*InputService17TestCaseOperation1Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService17TestCaseOperation2Response{
- InputService17TestShapeInputService17TestCaseOperation2Output: r.Request.Data.(*InputService17TestShapeInputService17TestCaseOperation2Output),
+ resp := &InputService17TestCaseOperation1Response{
+ InputService17TestShapeInputService17TestCaseOperation1Output: r.Request.Data.(*InputService17TestShapeInputService17TestCaseOperation1Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService17TestCaseOperation2Response is the response type for the
-// InputService17TestCaseOperation2 API operation.
-type InputService17TestCaseOperation2Response struct {
- *InputService17TestShapeInputService17TestCaseOperation2Output
+// InputService17TestCaseOperation1Response is the response type for the
+// InputService17TestCaseOperation1 API operation.
+type InputService17TestCaseOperation1Response struct {
+ *InputService17TestShapeInputService17TestCaseOperation1Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService17TestCaseOperation2 request.
-func (r *InputService17TestCaseOperation2Response) SDKResponseMetdata() *aws.Response {
+// InputService17TestCaseOperation1 request.
+func (r *InputService17TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
return r.response
}
@@ -3215,7 +3190,7 @@ func (c *InputService18ProtocolTest) newRequest(op *aws.Operation, params, data
type InputService18TestShapeInputService18TestCaseOperation1Input struct {
_ struct{} `type:"structure" payload:"Foo"`
- Foo *InputService18TestShapeFooShape `locationName:"foo" type:"structure"`
+ Foo []byte `locationName:"foo" type:"blob"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
@@ -3225,7 +3200,7 @@ func (s InputService18TestShapeInputService18TestCaseOperation1Input) MarshalFie
v := s.Foo
metadata := protocol.Metadata{}
- e.SetFields(protocol.PayloadTarget, "foo", v, metadata)
+ e.SetStream(protocol.PayloadTarget, "foo", protocol.BytesStream(v), metadata)
}
return nil
}
@@ -3308,7 +3283,7 @@ func (r *InputService18TestCaseOperation1Response) SDKResponseMetdata() *aws.Res
type InputService18TestShapeInputService18TestCaseOperation2Input struct {
_ struct{} `type:"structure" payload:"Foo"`
- Foo *InputService18TestShapeFooShape `locationName:"foo" type:"structure"`
+ Foo []byte `locationName:"foo" type:"blob"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
@@ -3318,7 +3293,7 @@ func (s InputService18TestShapeInputService18TestCaseOperation2Input) MarshalFie
v := s.Foo
metadata := protocol.Metadata{}
- e.SetFields(protocol.PayloadTarget, "foo", v, metadata)
+ e.SetStream(protocol.PayloadTarget, "foo", protocol.BytesStream(v), metadata)
}
return nil
}
@@ -3398,14 +3373,62 @@ func (r *InputService18TestCaseOperation2Response) SDKResponseMetdata() *aws.Res
return r.response
}
-type InputService18TestShapeInputService18TestCaseOperation3Input struct {
+// InputService19ProtocolTest provides the API operation methods for making requests to
+// InputService19ProtocolTest. See this package's package overview docs
+// for details on the service.
+//
+// The client's methods are safe to use concurrently. It is not safe to
+// modify mutate any of the struct's properties though.
+type InputService19ProtocolTest struct {
+ *aws.Client
+}
+
+// New creates a new instance of the client from the provided Config.
+//
+// Example:
+// // Create a client from just a config.
+// svc := inputservice19protocoltest.New(myConfig)
+func NewInputService19ProtocolTest(config aws.Config) *InputService19ProtocolTest {
+ svc := &InputService19ProtocolTest{
+ Client: aws.NewClient(
+ config,
+ aws.Metadata{
+ ServiceName: "InputService19ProtocolTest",
+ ServiceID: "InputService19ProtocolTest",
+ EndpointsID: "inputservice19protocoltest",
+ SigningName: "inputservice19protocoltest",
+ SigningRegion: config.Region,
+ APIVersion: "2014-01-01",
+ },
+ ),
+ }
+
+ // Handlers
+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
+ svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
+ svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
+ svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
+ svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
+
+ return svc
+}
+
+// newRequest creates a new request for a client operation and runs any
+// custom request initialization.
+func (c *InputService19ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
+ req := c.NewRequest(op, params, data)
+
+ return req
+}
+
+type InputService19TestShapeInputService19TestCaseOperation1Input struct {
_ struct{} `type:"structure" payload:"Foo"`
- Foo *InputService18TestShapeFooShape `locationName:"foo" type:"structure"`
+ Foo *InputService19TestShapeFooShape `locationName:"foo" type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService18TestShapeInputService18TestCaseOperation3Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService19TestShapeInputService19TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
if s.Foo != nil {
v := s.Foo
@@ -3416,89 +3439,89 @@ func (s InputService18TestShapeInputService18TestCaseOperation3Input) MarshalFie
return nil
}
-type InputService18TestShapeInputService18TestCaseOperation3Output struct {
+type InputService19TestShapeInputService19TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService18TestShapeInputService18TestCaseOperation3Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService19TestShapeInputService19TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService18TestCaseOperation3 = "OperationName"
+const opInputService19TestCaseOperation1 = "OperationName"
-// InputService18TestCaseOperation3Request returns a request value for making API operation for
+// InputService19TestCaseOperation1Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService18TestCaseOperation3Request.
-// req := client.InputService18TestCaseOperation3Request(params)
+// // Example sending a request using InputService19TestCaseOperation1Request.
+// req := client.InputService19TestCaseOperation1Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService18ProtocolTest) InputService18TestCaseOperation3Request(input *InputService18TestShapeInputService18TestCaseOperation3Input) InputService18TestCaseOperation3Request {
+func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) InputService19TestCaseOperation1Request {
op := &aws.Operation{
- Name: opInputService18TestCaseOperation3,
+ Name: opInputService19TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &InputService18TestShapeInputService18TestCaseOperation3Input{}
+ input = &InputService19TestShapeInputService19TestCaseOperation1Input{}
}
- req := c.newRequest(op, input, &InputService18TestShapeInputService18TestCaseOperation3Output{})
+ req := c.newRequest(op, input, &InputService19TestShapeInputService19TestCaseOperation1Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService18TestCaseOperation3Request{Request: req, Input: input, Copy: c.InputService18TestCaseOperation3Request}
+ return InputService19TestCaseOperation1Request{Request: req, Input: input, Copy: c.InputService19TestCaseOperation1Request}
}
-// InputService18TestCaseOperation3Request is the request type for the
-// InputService18TestCaseOperation3 API operation.
-type InputService18TestCaseOperation3Request struct {
+// InputService19TestCaseOperation1Request is the request type for the
+// InputService19TestCaseOperation1 API operation.
+type InputService19TestCaseOperation1Request struct {
*aws.Request
- Input *InputService18TestShapeInputService18TestCaseOperation3Input
- Copy func(*InputService18TestShapeInputService18TestCaseOperation3Input) InputService18TestCaseOperation3Request
+ Input *InputService19TestShapeInputService19TestCaseOperation1Input
+ Copy func(*InputService19TestShapeInputService19TestCaseOperation1Input) InputService19TestCaseOperation1Request
}
-// Send marshals and sends the InputService18TestCaseOperation3 API request.
-func (r InputService18TestCaseOperation3Request) Send(ctx context.Context) (*InputService18TestCaseOperation3Response, error) {
+// Send marshals and sends the InputService19TestCaseOperation1 API request.
+func (r InputService19TestCaseOperation1Request) Send(ctx context.Context) (*InputService19TestCaseOperation1Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService18TestCaseOperation3Response{
- InputService18TestShapeInputService18TestCaseOperation3Output: r.Request.Data.(*InputService18TestShapeInputService18TestCaseOperation3Output),
+ resp := &InputService19TestCaseOperation1Response{
+ InputService19TestShapeInputService19TestCaseOperation1Output: r.Request.Data.(*InputService19TestShapeInputService19TestCaseOperation1Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService18TestCaseOperation3Response is the response type for the
-// InputService18TestCaseOperation3 API operation.
-type InputService18TestCaseOperation3Response struct {
- *InputService18TestShapeInputService18TestCaseOperation3Output
+// InputService19TestCaseOperation1Response is the response type for the
+// InputService19TestCaseOperation1 API operation.
+type InputService19TestCaseOperation1Response struct {
+ *InputService19TestShapeInputService19TestCaseOperation1Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService18TestCaseOperation3 request.
-func (r *InputService18TestCaseOperation3Response) SDKResponseMetdata() *aws.Response {
+// InputService19TestCaseOperation1 request.
+func (r *InputService19TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
return r.response
}
-type InputService18TestShapeInputService18TestCaseOperation4Input struct {
+type InputService19TestShapeInputService19TestCaseOperation2Input struct {
_ struct{} `type:"structure" payload:"Foo"`
- Foo *InputService18TestShapeFooShape `locationName:"foo" type:"structure"`
+ Foo *InputService19TestShapeFooShape `locationName:"foo" type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService18TestShapeInputService18TestCaseOperation4Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService19TestShapeInputService19TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
if s.Foo != nil {
v := s.Foo
@@ -3509,287 +3532,287 @@ func (s InputService18TestShapeInputService18TestCaseOperation4Input) MarshalFie
return nil
}
-type InputService18TestShapeInputService18TestCaseOperation4Output struct {
+type InputService19TestShapeInputService19TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService18TestShapeInputService18TestCaseOperation4Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService19TestShapeInputService19TestCaseOperation2Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService18TestCaseOperation4 = "OperationName"
+const opInputService19TestCaseOperation2 = "OperationName"
-// InputService18TestCaseOperation4Request returns a request value for making API operation for
+// InputService19TestCaseOperation2Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService18TestCaseOperation4Request.
-// req := client.InputService18TestCaseOperation4Request(params)
+// // Example sending a request using InputService19TestCaseOperation2Request.
+// req := client.InputService19TestCaseOperation2Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService18ProtocolTest) InputService18TestCaseOperation4Request(input *InputService18TestShapeInputService18TestCaseOperation4Input) InputService18TestCaseOperation4Request {
+func (c *InputService19ProtocolTest) InputService19TestCaseOperation2Request(input *InputService19TestShapeInputService19TestCaseOperation2Input) InputService19TestCaseOperation2Request {
op := &aws.Operation{
- Name: opInputService18TestCaseOperation4,
+ Name: opInputService19TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &InputService18TestShapeInputService18TestCaseOperation4Input{}
+ input = &InputService19TestShapeInputService19TestCaseOperation2Input{}
}
- req := c.newRequest(op, input, &InputService18TestShapeInputService18TestCaseOperation4Output{})
+ req := c.newRequest(op, input, &InputService19TestShapeInputService19TestCaseOperation2Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService18TestCaseOperation4Request{Request: req, Input: input, Copy: c.InputService18TestCaseOperation4Request}
+ return InputService19TestCaseOperation2Request{Request: req, Input: input, Copy: c.InputService19TestCaseOperation2Request}
}
-// InputService18TestCaseOperation4Request is the request type for the
-// InputService18TestCaseOperation4 API operation.
-type InputService18TestCaseOperation4Request struct {
+// InputService19TestCaseOperation2Request is the request type for the
+// InputService19TestCaseOperation2 API operation.
+type InputService19TestCaseOperation2Request struct {
*aws.Request
- Input *InputService18TestShapeInputService18TestCaseOperation4Input
- Copy func(*InputService18TestShapeInputService18TestCaseOperation4Input) InputService18TestCaseOperation4Request
+ Input *InputService19TestShapeInputService19TestCaseOperation2Input
+ Copy func(*InputService19TestShapeInputService19TestCaseOperation2Input) InputService19TestCaseOperation2Request
}
-// Send marshals and sends the InputService18TestCaseOperation4 API request.
-func (r InputService18TestCaseOperation4Request) Send(ctx context.Context) (*InputService18TestCaseOperation4Response, error) {
+// Send marshals and sends the InputService19TestCaseOperation2 API request.
+func (r InputService19TestCaseOperation2Request) Send(ctx context.Context) (*InputService19TestCaseOperation2Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService18TestCaseOperation4Response{
- InputService18TestShapeInputService18TestCaseOperation4Output: r.Request.Data.(*InputService18TestShapeInputService18TestCaseOperation4Output),
+ resp := &InputService19TestCaseOperation2Response{
+ InputService19TestShapeInputService19TestCaseOperation2Output: r.Request.Data.(*InputService19TestShapeInputService19TestCaseOperation2Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService18TestCaseOperation4Response is the response type for the
-// InputService18TestCaseOperation4 API operation.
-type InputService18TestCaseOperation4Response struct {
- *InputService18TestShapeInputService18TestCaseOperation4Output
+// InputService19TestCaseOperation2Response is the response type for the
+// InputService19TestCaseOperation2 API operation.
+type InputService19TestCaseOperation2Response struct {
+ *InputService19TestShapeInputService19TestCaseOperation2Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService18TestCaseOperation4 request.
-func (r *InputService18TestCaseOperation4Response) SDKResponseMetdata() *aws.Response {
+// InputService19TestCaseOperation2 request.
+func (r *InputService19TestCaseOperation2Response) SDKResponseMetdata() *aws.Response {
return r.response
}
-type InputService18TestShapeFooShape struct {
- _ struct{} `locationName:"foo" type:"structure"`
+type InputService19TestShapeInputService19TestCaseOperation3Input struct {
+ _ struct{} `type:"structure" payload:"Foo"`
- Baz *string `locationName:"baz" type:"string"`
+ Foo *InputService19TestShapeFooShape `locationName:"foo" type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService18TestShapeFooShape) MarshalFields(e protocol.FieldEncoder) error {
- e.SetFields(protocol.BodyTarget, "foo", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
- if s.Baz != nil {
- v := *s.Baz
+func (s InputService19TestShapeInputService19TestCaseOperation3Input) MarshalFields(e protocol.FieldEncoder) error {
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "baz", protocol.StringValue(v), metadata)
- }
- return nil
- }), protocol.Metadata{})
+ if s.Foo != nil {
+ v := s.Foo
+
+ metadata := protocol.Metadata{}
+ e.SetFields(protocol.PayloadTarget, "foo", v, metadata)
+ }
return nil
}
-// InputService19ProtocolTest provides the API operation methods for making requests to
-// InputService19ProtocolTest. See this package's package overview docs
-// for details on the service.
-//
-// The client's methods are safe to use concurrently. It is not safe to
-// modify mutate any of the struct's properties though.
-type InputService19ProtocolTest struct {
- *aws.Client
+type InputService19TestShapeInputService19TestCaseOperation3Output struct {
+ _ struct{} `type:"structure"`
}
-// New creates a new instance of the client from the provided Config.
+// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
+func (s InputService19TestShapeInputService19TestCaseOperation3Output) MarshalFields(e protocol.FieldEncoder) error {
+ return nil
+}
+
+const opInputService19TestCaseOperation3 = "OperationName"
+
+// InputService19TestCaseOperation3Request returns a request value for making API operation for
+// .
//
-// Example:
-// // Create a client from just a config.
-// svc := inputservice19protocoltest.New(myConfig)
-func NewInputService19ProtocolTest(config aws.Config) *InputService19ProtocolTest {
- svc := &InputService19ProtocolTest{
- Client: aws.NewClient(
- config,
- aws.Metadata{
- ServiceName: "InputService19ProtocolTest",
- ServiceID: "InputService19ProtocolTest",
- EndpointsID: "inputservice19protocoltest",
- SigningName: "inputservice19protocoltest",
- SigningRegion: config.Region,
- APIVersion: "2014-01-01",
- },
- ),
+// // Example sending a request using InputService19TestCaseOperation3Request.
+// req := client.InputService19TestCaseOperation3Request(params)
+// resp, err := req.Send(context.TODO())
+// if err == nil {
+// fmt.Println(resp)
+// }
+func (c *InputService19ProtocolTest) InputService19TestCaseOperation3Request(input *InputService19TestShapeInputService19TestCaseOperation3Input) InputService19TestCaseOperation3Request {
+ op := &aws.Operation{
+ Name: opInputService19TestCaseOperation3,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
}
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
+ if input == nil {
+ input = &InputService19TestShapeInputService19TestCaseOperation3Input{}
+ }
- return svc
+ req := c.newRequest(op, input, &InputService19TestShapeInputService19TestCaseOperation3Output{})
+ req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
+ req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
+ return InputService19TestCaseOperation3Request{Request: req, Input: input, Copy: c.InputService19TestCaseOperation3Request}
}
-// newRequest creates a new request for a client operation and runs any
-// custom request initialization.
-func (c *InputService19ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
- req := c.NewRequest(op, params, data)
+// InputService19TestCaseOperation3Request is the request type for the
+// InputService19TestCaseOperation3 API operation.
+type InputService19TestCaseOperation3Request struct {
+ *aws.Request
+ Input *InputService19TestShapeInputService19TestCaseOperation3Input
+ Copy func(*InputService19TestShapeInputService19TestCaseOperation3Input) InputService19TestCaseOperation3Request
+}
- return req
+// Send marshals and sends the InputService19TestCaseOperation3 API request.
+func (r InputService19TestCaseOperation3Request) Send(ctx context.Context) (*InputService19TestCaseOperation3Response, error) {
+ r.Request.SetContext(ctx)
+ err := r.Request.Send()
+ if err != nil {
+ return nil, err
+ }
+
+ resp := &InputService19TestCaseOperation3Response{
+ InputService19TestShapeInputService19TestCaseOperation3Output: r.Request.Data.(*InputService19TestShapeInputService19TestCaseOperation3Output),
+ response: &aws.Response{Request: r.Request},
+ }
+
+ return resp, nil
}
-type InputService19TestShapeInputService19TestCaseOperation1Input struct {
- _ struct{} `type:"structure" payload:"Grant"`
+// InputService19TestCaseOperation3Response is the response type for the
+// InputService19TestCaseOperation3 API operation.
+type InputService19TestCaseOperation3Response struct {
+ *InputService19TestShapeInputService19TestCaseOperation3Output
- Grant *InputService19TestShapeGrant `locationName:"Grant" type:"structure"`
+ response *aws.Response
+}
+
+// SDKResponseMetdata returns the response metadata for the
+// InputService19TestCaseOperation3 request.
+func (r *InputService19TestCaseOperation3Response) SDKResponseMetdata() *aws.Response {
+ return r.response
+}
+
+type InputService19TestShapeInputService19TestCaseOperation4Input struct {
+ _ struct{} `type:"structure" payload:"Foo"`
+
+ Foo *InputService19TestShapeFooShape `locationName:"foo" type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService19TestShapeInputService19TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService19TestShapeInputService19TestCaseOperation4Input) MarshalFields(e protocol.FieldEncoder) error {
- if s.Grant != nil {
- v := s.Grant
+ if s.Foo != nil {
+ v := s.Foo
metadata := protocol.Metadata{}
- e.SetFields(protocol.PayloadTarget, "Grant", v, metadata)
+ e.SetFields(protocol.PayloadTarget, "foo", v, metadata)
}
return nil
}
-type InputService19TestShapeInputService19TestCaseOperation1Output struct {
+type InputService19TestShapeInputService19TestCaseOperation4Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService19TestShapeInputService19TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService19TestShapeInputService19TestCaseOperation4Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService19TestCaseOperation1 = "OperationName"
+const opInputService19TestCaseOperation4 = "OperationName"
-// InputService19TestCaseOperation1Request returns a request value for making API operation for
+// InputService19TestCaseOperation4Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService19TestCaseOperation1Request.
-// req := client.InputService19TestCaseOperation1Request(params)
+// // Example sending a request using InputService19TestCaseOperation4Request.
+// req := client.InputService19TestCaseOperation4Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) InputService19TestCaseOperation1Request {
+func (c *InputService19ProtocolTest) InputService19TestCaseOperation4Request(input *InputService19TestShapeInputService19TestCaseOperation4Input) InputService19TestCaseOperation4Request {
op := &aws.Operation{
- Name: opInputService19TestCaseOperation1,
+ Name: opInputService19TestCaseOperation4,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &InputService19TestShapeInputService19TestCaseOperation1Input{}
+ input = &InputService19TestShapeInputService19TestCaseOperation4Input{}
}
- req := c.newRequest(op, input, &InputService19TestShapeInputService19TestCaseOperation1Output{})
+ req := c.newRequest(op, input, &InputService19TestShapeInputService19TestCaseOperation4Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService19TestCaseOperation1Request{Request: req, Input: input, Copy: c.InputService19TestCaseOperation1Request}
+ return InputService19TestCaseOperation4Request{Request: req, Input: input, Copy: c.InputService19TestCaseOperation4Request}
}
-// InputService19TestCaseOperation1Request is the request type for the
-// InputService19TestCaseOperation1 API operation.
-type InputService19TestCaseOperation1Request struct {
+// InputService19TestCaseOperation4Request is the request type for the
+// InputService19TestCaseOperation4 API operation.
+type InputService19TestCaseOperation4Request struct {
*aws.Request
- Input *InputService19TestShapeInputService19TestCaseOperation1Input
- Copy func(*InputService19TestShapeInputService19TestCaseOperation1Input) InputService19TestCaseOperation1Request
+ Input *InputService19TestShapeInputService19TestCaseOperation4Input
+ Copy func(*InputService19TestShapeInputService19TestCaseOperation4Input) InputService19TestCaseOperation4Request
}
-// Send marshals and sends the InputService19TestCaseOperation1 API request.
-func (r InputService19TestCaseOperation1Request) Send(ctx context.Context) (*InputService19TestCaseOperation1Response, error) {
+// Send marshals and sends the InputService19TestCaseOperation4 API request.
+func (r InputService19TestCaseOperation4Request) Send(ctx context.Context) (*InputService19TestCaseOperation4Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService19TestCaseOperation1Response{
- InputService19TestShapeInputService19TestCaseOperation1Output: r.Request.Data.(*InputService19TestShapeInputService19TestCaseOperation1Output),
+ resp := &InputService19TestCaseOperation4Response{
+ InputService19TestShapeInputService19TestCaseOperation4Output: r.Request.Data.(*InputService19TestShapeInputService19TestCaseOperation4Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService19TestCaseOperation1Response is the response type for the
-// InputService19TestCaseOperation1 API operation.
-type InputService19TestCaseOperation1Response struct {
- *InputService19TestShapeInputService19TestCaseOperation1Output
+// InputService19TestCaseOperation4Response is the response type for the
+// InputService19TestCaseOperation4 API operation.
+type InputService19TestCaseOperation4Response struct {
+ *InputService19TestShapeInputService19TestCaseOperation4Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService19TestCaseOperation1 request.
-func (r *InputService19TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
+// InputService19TestCaseOperation4 request.
+func (r *InputService19TestCaseOperation4Response) SDKResponseMetdata() *aws.Response {
return r.response
}
-type InputService19TestShapeGrant struct {
- _ struct{} `locationName:"Grant" type:"structure"`
+type InputService19TestShapeFooShape struct {
+ _ struct{} `locationName:"foo" type:"structure"`
- Grantee *InputService19TestShapeGrantee `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
+ Baz *string `locationName:"baz" type:"string"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService19TestShapeGrant) MarshalFields(e protocol.FieldEncoder) error {
- e.SetFields(protocol.BodyTarget, "Grant", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
- if s.Grantee != nil {
- v := s.Grantee
- attrs := make([]protocol.Attribute, 0, 1)
+func (s InputService19TestShapeFooShape) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetFields(protocol.BodyTarget, "foo", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
+ if s.Baz != nil {
+ v := *s.Baz
- if s.Grantee.Type != nil {
- v := *s.Grantee.Type
- attrs = append(attrs, protocol.Attribute{Name: "xsi:type", Value: protocol.StringValue(v), Meta: protocol.Metadata{}})
- }
- metadata := protocol.Metadata{Attributes: attrs, XMLNamespacePrefix: "xsi", XMLNamespaceURI: "http://www.w3.org/2001/XMLSchema-instance"}
- e.SetFields(protocol.BodyTarget, "Grantee", v, metadata)
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "baz", protocol.StringValue(v), metadata)
}
return nil
}), protocol.Metadata{})
return nil
}
-type InputService19TestShapeGrantee struct {
- _ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
-
- EmailAddress *string `type:"string"`
-
- Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService19TestShapeGrantee) MarshalFields(e protocol.FieldEncoder) error {
- if s.EmailAddress != nil {
- v := *s.EmailAddress
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "EmailAddress", protocol.StringValue(v), metadata)
- }
- // Skipping Type XML Attribute.
- return nil
-}
-
// InputService20ProtocolTest provides the API operation methods for making requests to
// InputService20ProtocolTest. See this package's package overview docs
// for details on the service.
@@ -3839,27 +3862,19 @@ func (c *InputService20ProtocolTest) newRequest(op *aws.Operation, params, data
}
type InputService20TestShapeInputService20TestCaseOperation1Input struct {
- _ struct{} `type:"structure"`
-
- Bucket *string `location:"uri" type:"string"`
+ _ struct{} `type:"structure" payload:"Grant"`
- Key *string `location:"uri" type:"string"`
+ Grant *InputService20TestShapeGrant `locationName:"Grant" type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService20TestShapeInputService20TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
- if s.Bucket != nil {
- v := *s.Bucket
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.PathTarget, "Bucket", protocol.StringValue(v), metadata)
- }
- if s.Key != nil {
- v := *s.Key
+ if s.Grant != nil {
+ v := s.Grant
metadata := protocol.Metadata{}
- e.SetValue(protocol.PathTarget, "Key", protocol.StringValue(v), metadata)
+ e.SetFields(protocol.PayloadTarget, "Grant", v, metadata)
}
return nil
}
@@ -3887,8 +3902,8 @@ const opInputService20TestCaseOperation1 = "OperationName"
func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(input *InputService20TestShapeInputService20TestCaseOperation1Input) InputService20TestCaseOperation1Request {
op := &aws.Operation{
Name: opInputService20TestCaseOperation1,
- HTTPMethod: "GET",
- HTTPPath: "/{Bucket}/{Key+}",
+ HTTPMethod: "POST",
+ HTTPPath: "/",
}
if input == nil {
@@ -3939,6 +3954,51 @@ func (r *InputService20TestCaseOperation1Response) SDKResponseMetdata() *aws.Res
return r.response
}
+type InputService20TestShapeGrant struct {
+ _ struct{} `locationName:"Grant" type:"structure"`
+
+ Grantee *InputService20TestShapeGrantee `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
+}
+
+// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
+func (s InputService20TestShapeGrant) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetFields(protocol.BodyTarget, "Grant", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
+ if s.Grantee != nil {
+ v := s.Grantee
+ attrs := make([]protocol.Attribute, 0, 1)
+
+ if s.Grantee.Type != nil {
+ v := *s.Grantee.Type
+ attrs = append(attrs, protocol.Attribute{Name: "xsi:type", Value: protocol.StringValue(v), Meta: protocol.Metadata{}})
+ }
+ metadata := protocol.Metadata{Attributes: attrs, XMLNamespacePrefix: "xsi", XMLNamespaceURI: "http://www.w3.org/2001/XMLSchema-instance"}
+ e.SetFields(protocol.BodyTarget, "Grantee", v, metadata)
+ }
+ return nil
+ }), protocol.Metadata{})
+ return nil
+}
+
+type InputService20TestShapeGrantee struct {
+ _ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
+
+ EmailAddress *string `type:"string"`
+
+ Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true"`
+}
+
+// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
+func (s InputService20TestShapeGrantee) MarshalFields(e protocol.FieldEncoder) error {
+ if s.EmailAddress != nil {
+ v := *s.EmailAddress
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "EmailAddress", protocol.StringValue(v), metadata)
+ }
+ // Skipping Type XML Attribute.
+ return nil
+}
+
// InputService21ProtocolTest provides the API operation methods for making requests to
// InputService21ProtocolTest. See this package's package overview docs
// for details on the service.
@@ -3990,186 +4050,101 @@ func (c *InputService21ProtocolTest) newRequest(op *aws.Operation, params, data
type InputService21TestShapeInputService21TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
- Foo *string `location:"querystring" locationName:"param-name" type:"string"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService21TestShapeInputService21TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
-
- if s.Foo != nil {
- v := *s.Foo
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "param-name", protocol.StringValue(v), metadata)
- }
- return nil
-}
-
-type InputService21TestShapeInputService21TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService21TestShapeInputService21TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
- return nil
-}
-
-const opInputService21TestCaseOperation1 = "OperationName"
-
-// InputService21TestCaseOperation1Request returns a request value for making API operation for
-// .
-//
-// // Example sending a request using InputService21TestCaseOperation1Request.
-// req := client.InputService21TestCaseOperation1Request(params)
-// resp, err := req.Send(context.TODO())
-// if err == nil {
-// fmt.Println(resp)
-// }
-func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(input *InputService21TestShapeInputService21TestCaseOperation1Input) InputService21TestCaseOperation1Request {
- op := &aws.Operation{
- Name: opInputService21TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
-
- if input == nil {
- input = &InputService21TestShapeInputService21TestCaseOperation1Input{}
- }
-
- req := c.newRequest(op, input, &InputService21TestShapeInputService21TestCaseOperation1Output{})
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService21TestCaseOperation1Request{Request: req, Input: input, Copy: c.InputService21TestCaseOperation1Request}
-}
-
-// InputService21TestCaseOperation1Request is the request type for the
-// InputService21TestCaseOperation1 API operation.
-type InputService21TestCaseOperation1Request struct {
- *aws.Request
- Input *InputService21TestShapeInputService21TestCaseOperation1Input
- Copy func(*InputService21TestShapeInputService21TestCaseOperation1Input) InputService21TestCaseOperation1Request
-}
-
-// Send marshals and sends the InputService21TestCaseOperation1 API request.
-func (r InputService21TestCaseOperation1Request) Send(ctx context.Context) (*InputService21TestCaseOperation1Response, error) {
- r.Request.SetContext(ctx)
- err := r.Request.Send()
- if err != nil {
- return nil, err
- }
-
- resp := &InputService21TestCaseOperation1Response{
- InputService21TestShapeInputService21TestCaseOperation1Output: r.Request.Data.(*InputService21TestShapeInputService21TestCaseOperation1Output),
- response: &aws.Response{Request: r.Request},
- }
-
- return resp, nil
-}
-
-// InputService21TestCaseOperation1Response is the response type for the
-// InputService21TestCaseOperation1 API operation.
-type InputService21TestCaseOperation1Response struct {
- *InputService21TestShapeInputService21TestCaseOperation1Output
-
- response *aws.Response
-}
-
-// SDKResponseMetdata returns the response metadata for the
-// InputService21TestCaseOperation1 request.
-func (r *InputService21TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
- return r.response
-}
-
-type InputService21TestShapeInputService21TestCaseOperation2Input struct {
- _ struct{} `type:"structure"`
+ Bucket *string `location:"uri" type:"string"`
- Foo *string `location:"querystring" locationName:"param-name" type:"string"`
+ Key *string `location:"uri" type:"string"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService21TestShapeInputService21TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService21TestShapeInputService21TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
- if s.Foo != nil {
- v := *s.Foo
+ if s.Bucket != nil {
+ v := *s.Bucket
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "param-name", protocol.StringValue(v), metadata)
+ e.SetValue(protocol.PathTarget, "Bucket", protocol.StringValue(v), metadata)
+ }
+ if s.Key != nil {
+ v := *s.Key
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.PathTarget, "Key", protocol.StringValue(v), metadata)
}
return nil
}
-type InputService21TestShapeInputService21TestCaseOperation2Output struct {
+type InputService21TestShapeInputService21TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService21TestShapeInputService21TestCaseOperation2Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService21TestShapeInputService21TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService21TestCaseOperation2 = "OperationName"
+const opInputService21TestCaseOperation1 = "OperationName"
-// InputService21TestCaseOperation2Request returns a request value for making API operation for
+// InputService21TestCaseOperation1Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService21TestCaseOperation2Request.
-// req := client.InputService21TestCaseOperation2Request(params)
+// // Example sending a request using InputService21TestCaseOperation1Request.
+// req := client.InputService21TestCaseOperation1Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService21ProtocolTest) InputService21TestCaseOperation2Request(input *InputService21TestShapeInputService21TestCaseOperation2Input) InputService21TestCaseOperation2Request {
+func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(input *InputService21TestShapeInputService21TestCaseOperation1Input) InputService21TestCaseOperation1Request {
op := &aws.Operation{
- Name: opInputService21TestCaseOperation2,
- HTTPMethod: "POST",
- HTTPPath: "/path?abc=mno",
+ Name: opInputService21TestCaseOperation1,
+ HTTPMethod: "GET",
+ HTTPPath: "/{Bucket}/{Key+}",
}
if input == nil {
- input = &InputService21TestShapeInputService21TestCaseOperation2Input{}
+ input = &InputService21TestShapeInputService21TestCaseOperation1Input{}
}
- req := c.newRequest(op, input, &InputService21TestShapeInputService21TestCaseOperation2Output{})
+ req := c.newRequest(op, input, &InputService21TestShapeInputService21TestCaseOperation1Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService21TestCaseOperation2Request{Request: req, Input: input, Copy: c.InputService21TestCaseOperation2Request}
+ return InputService21TestCaseOperation1Request{Request: req, Input: input, Copy: c.InputService21TestCaseOperation1Request}
}
-// InputService21TestCaseOperation2Request is the request type for the
-// InputService21TestCaseOperation2 API operation.
-type InputService21TestCaseOperation2Request struct {
+// InputService21TestCaseOperation1Request is the request type for the
+// InputService21TestCaseOperation1 API operation.
+type InputService21TestCaseOperation1Request struct {
*aws.Request
- Input *InputService21TestShapeInputService21TestCaseOperation2Input
- Copy func(*InputService21TestShapeInputService21TestCaseOperation2Input) InputService21TestCaseOperation2Request
+ Input *InputService21TestShapeInputService21TestCaseOperation1Input
+ Copy func(*InputService21TestShapeInputService21TestCaseOperation1Input) InputService21TestCaseOperation1Request
}
-// Send marshals and sends the InputService21TestCaseOperation2 API request.
-func (r InputService21TestCaseOperation2Request) Send(ctx context.Context) (*InputService21TestCaseOperation2Response, error) {
+// Send marshals and sends the InputService21TestCaseOperation1 API request.
+func (r InputService21TestCaseOperation1Request) Send(ctx context.Context) (*InputService21TestCaseOperation1Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService21TestCaseOperation2Response{
- InputService21TestShapeInputService21TestCaseOperation2Output: r.Request.Data.(*InputService21TestShapeInputService21TestCaseOperation2Output),
+ resp := &InputService21TestCaseOperation1Response{
+ InputService21TestShapeInputService21TestCaseOperation1Output: r.Request.Data.(*InputService21TestShapeInputService21TestCaseOperation1Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService21TestCaseOperation2Response is the response type for the
-// InputService21TestCaseOperation2 API operation.
-type InputService21TestCaseOperation2Response struct {
- *InputService21TestShapeInputService21TestCaseOperation2Output
+// InputService21TestCaseOperation1Response is the response type for the
+// InputService21TestCaseOperation1 API operation.
+type InputService21TestCaseOperation1Response struct {
+ *InputService21TestShapeInputService21TestCaseOperation1Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService21TestCaseOperation2 request.
-func (r *InputService21TestCaseOperation2Response) SDKResponseMetdata() *aws.Response {
+// InputService21TestCaseOperation1 request.
+func (r *InputService21TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
return r.response
}
@@ -4222,23 +4197,20 @@ func (c *InputService22ProtocolTest) newRequest(op *aws.Operation, params, data
}
type InputService22TestShapeInputService22TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
+ _ struct{} `type:"structure"`
- RecursiveStruct *InputService22TestShapeRecursiveStructType `type:"structure"`
+ Foo *string `location:"querystring" locationName:"param-name" type:"string"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService22TestShapeInputService22TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
- e.SetFields(protocol.BodyTarget, "OperationRequest", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
- if s.RecursiveStruct != nil {
- v := s.RecursiveStruct
+ if s.Foo != nil {
+ v := *s.Foo
- metadata := protocol.Metadata{}
- e.SetFields(protocol.BodyTarget, "RecursiveStruct", v, metadata)
- }
- return nil
- }), protocol.Metadata{XMLNamespaceURI: "https://foo/"})
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.QueryTarget, "param-name", protocol.StringValue(v), metadata)
+ }
return nil
}
@@ -4318,23 +4290,20 @@ func (r *InputService22TestCaseOperation1Response) SDKResponseMetdata() *aws.Res
}
type InputService22TestShapeInputService22TestCaseOperation2Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
+ _ struct{} `type:"structure"`
- RecursiveStruct *InputService22TestShapeRecursiveStructType `type:"structure"`
+ Foo *string `location:"querystring" locationName:"param-name" type:"string"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InputService22TestShapeInputService22TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
- e.SetFields(protocol.BodyTarget, "OperationRequest", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
- if s.RecursiveStruct != nil {
- v := s.RecursiveStruct
+ if s.Foo != nil {
+ v := *s.Foo
- metadata := protocol.Metadata{}
- e.SetFields(protocol.BodyTarget, "RecursiveStruct", v, metadata)
- }
- return nil
- }), protocol.Metadata{XMLNamespaceURI: "https://foo/"})
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.QueryTarget, "param-name", protocol.StringValue(v), metadata)
+ }
return nil
}
@@ -4362,7 +4331,7 @@ func (c *InputService22ProtocolTest) InputService22TestCaseOperation2Request(inp
op := &aws.Operation{
Name: opInputService22TestCaseOperation2,
HTTPMethod: "POST",
- HTTPPath: "/path",
+ HTTPPath: "/path?abc=mno",
}
if input == nil {
@@ -4413,14 +4382,62 @@ func (r *InputService22TestCaseOperation2Response) SDKResponseMetdata() *aws.Res
return r.response
}
-type InputService22TestShapeInputService22TestCaseOperation3Input struct {
+// InputService23ProtocolTest provides the API operation methods for making requests to
+// InputService23ProtocolTest. See this package's package overview docs
+// for details on the service.
+//
+// The client's methods are safe to use concurrently. It is not safe to
+// modify mutate any of the struct's properties though.
+type InputService23ProtocolTest struct {
+ *aws.Client
+}
+
+// New creates a new instance of the client from the provided Config.
+//
+// Example:
+// // Create a client from just a config.
+// svc := inputservice23protocoltest.New(myConfig)
+func NewInputService23ProtocolTest(config aws.Config) *InputService23ProtocolTest {
+ svc := &InputService23ProtocolTest{
+ Client: aws.NewClient(
+ config,
+ aws.Metadata{
+ ServiceName: "InputService23ProtocolTest",
+ ServiceID: "InputService23ProtocolTest",
+ EndpointsID: "inputservice23protocoltest",
+ SigningName: "inputservice23protocoltest",
+ SigningRegion: config.Region,
+ APIVersion: "2014-01-01",
+ },
+ ),
+ }
+
+ // Handlers
+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
+ svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
+ svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
+ svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
+ svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
+
+ return svc
+}
+
+// newRequest creates a new request for a client operation and runs any
+// custom request initialization.
+func (c *InputService23ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
+ req := c.NewRequest(op, params, data)
+
+ return req
+}
+
+type InputService23TestShapeInputService23TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- RecursiveStruct *InputService22TestShapeRecursiveStructType `type:"structure"`
+ RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService22TestShapeInputService22TestCaseOperation3Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService23TestShapeInputService23TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
e.SetFields(protocol.BodyTarget, "OperationRequest", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
if s.RecursiveStruct != nil {
@@ -4434,89 +4451,89 @@ func (s InputService22TestShapeInputService22TestCaseOperation3Input) MarshalFie
return nil
}
-type InputService22TestShapeInputService22TestCaseOperation3Output struct {
+type InputService23TestShapeInputService23TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService22TestShapeInputService22TestCaseOperation3Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService23TestShapeInputService23TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService22TestCaseOperation3 = "OperationName"
+const opInputService23TestCaseOperation1 = "OperationName"
-// InputService22TestCaseOperation3Request returns a request value for making API operation for
+// InputService23TestCaseOperation1Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService22TestCaseOperation3Request.
-// req := client.InputService22TestCaseOperation3Request(params)
+// // Example sending a request using InputService23TestCaseOperation1Request.
+// req := client.InputService23TestCaseOperation1Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService22ProtocolTest) InputService22TestCaseOperation3Request(input *InputService22TestShapeInputService22TestCaseOperation3Input) InputService22TestCaseOperation3Request {
+func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(input *InputService23TestShapeInputService23TestCaseOperation1Input) InputService23TestCaseOperation1Request {
op := &aws.Operation{
- Name: opInputService22TestCaseOperation3,
+ Name: opInputService23TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
- input = &InputService22TestShapeInputService22TestCaseOperation3Input{}
+ input = &InputService23TestShapeInputService23TestCaseOperation1Input{}
}
- req := c.newRequest(op, input, &InputService22TestShapeInputService22TestCaseOperation3Output{})
+ req := c.newRequest(op, input, &InputService23TestShapeInputService23TestCaseOperation1Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService22TestCaseOperation3Request{Request: req, Input: input, Copy: c.InputService22TestCaseOperation3Request}
+ return InputService23TestCaseOperation1Request{Request: req, Input: input, Copy: c.InputService23TestCaseOperation1Request}
}
-// InputService22TestCaseOperation3Request is the request type for the
-// InputService22TestCaseOperation3 API operation.
-type InputService22TestCaseOperation3Request struct {
+// InputService23TestCaseOperation1Request is the request type for the
+// InputService23TestCaseOperation1 API operation.
+type InputService23TestCaseOperation1Request struct {
*aws.Request
- Input *InputService22TestShapeInputService22TestCaseOperation3Input
- Copy func(*InputService22TestShapeInputService22TestCaseOperation3Input) InputService22TestCaseOperation3Request
+ Input *InputService23TestShapeInputService23TestCaseOperation1Input
+ Copy func(*InputService23TestShapeInputService23TestCaseOperation1Input) InputService23TestCaseOperation1Request
}
-// Send marshals and sends the InputService22TestCaseOperation3 API request.
-func (r InputService22TestCaseOperation3Request) Send(ctx context.Context) (*InputService22TestCaseOperation3Response, error) {
+// Send marshals and sends the InputService23TestCaseOperation1 API request.
+func (r InputService23TestCaseOperation1Request) Send(ctx context.Context) (*InputService23TestCaseOperation1Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService22TestCaseOperation3Response{
- InputService22TestShapeInputService22TestCaseOperation3Output: r.Request.Data.(*InputService22TestShapeInputService22TestCaseOperation3Output),
+ resp := &InputService23TestCaseOperation1Response{
+ InputService23TestShapeInputService23TestCaseOperation1Output: r.Request.Data.(*InputService23TestShapeInputService23TestCaseOperation1Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService22TestCaseOperation3Response is the response type for the
-// InputService22TestCaseOperation3 API operation.
-type InputService22TestCaseOperation3Response struct {
- *InputService22TestShapeInputService22TestCaseOperation3Output
+// InputService23TestCaseOperation1Response is the response type for the
+// InputService23TestCaseOperation1 API operation.
+type InputService23TestCaseOperation1Response struct {
+ *InputService23TestShapeInputService23TestCaseOperation1Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService22TestCaseOperation3 request.
-func (r *InputService22TestCaseOperation3Response) SDKResponseMetdata() *aws.Response {
+// InputService23TestCaseOperation1 request.
+func (r *InputService23TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
return r.response
}
-type InputService22TestShapeInputService22TestCaseOperation4Input struct {
+type InputService23TestShapeInputService23TestCaseOperation2Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- RecursiveStruct *InputService22TestShapeRecursiveStructType `type:"structure"`
+ RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService22TestShapeInputService22TestCaseOperation4Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService23TestShapeInputService23TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
e.SetFields(protocol.BodyTarget, "OperationRequest", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
if s.RecursiveStruct != nil {
@@ -4530,89 +4547,89 @@ func (s InputService22TestShapeInputService22TestCaseOperation4Input) MarshalFie
return nil
}
-type InputService22TestShapeInputService22TestCaseOperation4Output struct {
+type InputService23TestShapeInputService23TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService22TestShapeInputService22TestCaseOperation4Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService23TestShapeInputService23TestCaseOperation2Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService22TestCaseOperation4 = "OperationName"
+const opInputService23TestCaseOperation2 = "OperationName"
-// InputService22TestCaseOperation4Request returns a request value for making API operation for
+// InputService23TestCaseOperation2Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService22TestCaseOperation4Request.
-// req := client.InputService22TestCaseOperation4Request(params)
+// // Example sending a request using InputService23TestCaseOperation2Request.
+// req := client.InputService23TestCaseOperation2Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService22ProtocolTest) InputService22TestCaseOperation4Request(input *InputService22TestShapeInputService22TestCaseOperation4Input) InputService22TestCaseOperation4Request {
+func (c *InputService23ProtocolTest) InputService23TestCaseOperation2Request(input *InputService23TestShapeInputService23TestCaseOperation2Input) InputService23TestCaseOperation2Request {
op := &aws.Operation{
- Name: opInputService22TestCaseOperation4,
+ Name: opInputService23TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
- input = &InputService22TestShapeInputService22TestCaseOperation4Input{}
+ input = &InputService23TestShapeInputService23TestCaseOperation2Input{}
}
- req := c.newRequest(op, input, &InputService22TestShapeInputService22TestCaseOperation4Output{})
+ req := c.newRequest(op, input, &InputService23TestShapeInputService23TestCaseOperation2Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService22TestCaseOperation4Request{Request: req, Input: input, Copy: c.InputService22TestCaseOperation4Request}
+ return InputService23TestCaseOperation2Request{Request: req, Input: input, Copy: c.InputService23TestCaseOperation2Request}
}
-// InputService22TestCaseOperation4Request is the request type for the
-// InputService22TestCaseOperation4 API operation.
-type InputService22TestCaseOperation4Request struct {
+// InputService23TestCaseOperation2Request is the request type for the
+// InputService23TestCaseOperation2 API operation.
+type InputService23TestCaseOperation2Request struct {
*aws.Request
- Input *InputService22TestShapeInputService22TestCaseOperation4Input
- Copy func(*InputService22TestShapeInputService22TestCaseOperation4Input) InputService22TestCaseOperation4Request
+ Input *InputService23TestShapeInputService23TestCaseOperation2Input
+ Copy func(*InputService23TestShapeInputService23TestCaseOperation2Input) InputService23TestCaseOperation2Request
}
-// Send marshals and sends the InputService22TestCaseOperation4 API request.
-func (r InputService22TestCaseOperation4Request) Send(ctx context.Context) (*InputService22TestCaseOperation4Response, error) {
+// Send marshals and sends the InputService23TestCaseOperation2 API request.
+func (r InputService23TestCaseOperation2Request) Send(ctx context.Context) (*InputService23TestCaseOperation2Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService22TestCaseOperation4Response{
- InputService22TestShapeInputService22TestCaseOperation4Output: r.Request.Data.(*InputService22TestShapeInputService22TestCaseOperation4Output),
+ resp := &InputService23TestCaseOperation2Response{
+ InputService23TestShapeInputService23TestCaseOperation2Output: r.Request.Data.(*InputService23TestShapeInputService23TestCaseOperation2Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService22TestCaseOperation4Response is the response type for the
-// InputService22TestCaseOperation4 API operation.
-type InputService22TestCaseOperation4Response struct {
- *InputService22TestShapeInputService22TestCaseOperation4Output
+// InputService23TestCaseOperation2Response is the response type for the
+// InputService23TestCaseOperation2 API operation.
+type InputService23TestCaseOperation2Response struct {
+ *InputService23TestShapeInputService23TestCaseOperation2Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService22TestCaseOperation4 request.
-func (r *InputService22TestCaseOperation4Response) SDKResponseMetdata() *aws.Response {
+// InputService23TestCaseOperation2 request.
+func (r *InputService23TestCaseOperation2Response) SDKResponseMetdata() *aws.Response {
return r.response
}
-type InputService22TestShapeInputService22TestCaseOperation5Input struct {
+type InputService23TestShapeInputService23TestCaseOperation3Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- RecursiveStruct *InputService22TestShapeRecursiveStructType `type:"structure"`
+ RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService22TestShapeInputService22TestCaseOperation5Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService23TestShapeInputService23TestCaseOperation3Input) MarshalFields(e protocol.FieldEncoder) error {
e.SetFields(protocol.BodyTarget, "OperationRequest", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
if s.RecursiveStruct != nil {
@@ -4626,89 +4643,89 @@ func (s InputService22TestShapeInputService22TestCaseOperation5Input) MarshalFie
return nil
}
-type InputService22TestShapeInputService22TestCaseOperation5Output struct {
+type InputService23TestShapeInputService23TestCaseOperation3Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService22TestShapeInputService22TestCaseOperation5Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService23TestShapeInputService23TestCaseOperation3Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService22TestCaseOperation5 = "OperationName"
+const opInputService23TestCaseOperation3 = "OperationName"
-// InputService22TestCaseOperation5Request returns a request value for making API operation for
+// InputService23TestCaseOperation3Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService22TestCaseOperation5Request.
-// req := client.InputService22TestCaseOperation5Request(params)
+// // Example sending a request using InputService23TestCaseOperation3Request.
+// req := client.InputService23TestCaseOperation3Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService22ProtocolTest) InputService22TestCaseOperation5Request(input *InputService22TestShapeInputService22TestCaseOperation5Input) InputService22TestCaseOperation5Request {
+func (c *InputService23ProtocolTest) InputService23TestCaseOperation3Request(input *InputService23TestShapeInputService23TestCaseOperation3Input) InputService23TestCaseOperation3Request {
op := &aws.Operation{
- Name: opInputService22TestCaseOperation5,
+ Name: opInputService23TestCaseOperation3,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
- input = &InputService22TestShapeInputService22TestCaseOperation5Input{}
+ input = &InputService23TestShapeInputService23TestCaseOperation3Input{}
}
- req := c.newRequest(op, input, &InputService22TestShapeInputService22TestCaseOperation5Output{})
+ req := c.newRequest(op, input, &InputService23TestShapeInputService23TestCaseOperation3Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService22TestCaseOperation5Request{Request: req, Input: input, Copy: c.InputService22TestCaseOperation5Request}
+ return InputService23TestCaseOperation3Request{Request: req, Input: input, Copy: c.InputService23TestCaseOperation3Request}
}
-// InputService22TestCaseOperation5Request is the request type for the
-// InputService22TestCaseOperation5 API operation.
-type InputService22TestCaseOperation5Request struct {
+// InputService23TestCaseOperation3Request is the request type for the
+// InputService23TestCaseOperation3 API operation.
+type InputService23TestCaseOperation3Request struct {
*aws.Request
- Input *InputService22TestShapeInputService22TestCaseOperation5Input
- Copy func(*InputService22TestShapeInputService22TestCaseOperation5Input) InputService22TestCaseOperation5Request
+ Input *InputService23TestShapeInputService23TestCaseOperation3Input
+ Copy func(*InputService23TestShapeInputService23TestCaseOperation3Input) InputService23TestCaseOperation3Request
}
-// Send marshals and sends the InputService22TestCaseOperation5 API request.
-func (r InputService22TestCaseOperation5Request) Send(ctx context.Context) (*InputService22TestCaseOperation5Response, error) {
+// Send marshals and sends the InputService23TestCaseOperation3 API request.
+func (r InputService23TestCaseOperation3Request) Send(ctx context.Context) (*InputService23TestCaseOperation3Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService22TestCaseOperation5Response{
- InputService22TestShapeInputService22TestCaseOperation5Output: r.Request.Data.(*InputService22TestShapeInputService22TestCaseOperation5Output),
+ resp := &InputService23TestCaseOperation3Response{
+ InputService23TestShapeInputService23TestCaseOperation3Output: r.Request.Data.(*InputService23TestShapeInputService23TestCaseOperation3Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService22TestCaseOperation5Response is the response type for the
-// InputService22TestCaseOperation5 API operation.
-type InputService22TestCaseOperation5Response struct {
- *InputService22TestShapeInputService22TestCaseOperation5Output
+// InputService23TestCaseOperation3Response is the response type for the
+// InputService23TestCaseOperation3 API operation.
+type InputService23TestCaseOperation3Response struct {
+ *InputService23TestShapeInputService23TestCaseOperation3Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService22TestCaseOperation5 request.
-func (r *InputService22TestCaseOperation5Response) SDKResponseMetdata() *aws.Response {
+// InputService23TestCaseOperation3 request.
+func (r *InputService23TestCaseOperation3Response) SDKResponseMetdata() *aws.Response {
return r.response
}
-type InputService22TestShapeInputService22TestCaseOperation6Input struct {
+type InputService23TestShapeInputService23TestCaseOperation4Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- RecursiveStruct *InputService22TestShapeRecursiveStructType `type:"structure"`
+ RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService22TestShapeInputService22TestCaseOperation6Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService23TestShapeInputService23TestCaseOperation4Input) MarshalFields(e protocol.FieldEncoder) error {
e.SetFields(protocol.BodyTarget, "OperationRequest", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
if s.RecursiveStruct != nil {
@@ -4722,275 +4739,326 @@ func (s InputService22TestShapeInputService22TestCaseOperation6Input) MarshalFie
return nil
}
-type InputService22TestShapeInputService22TestCaseOperation6Output struct {
+type InputService23TestShapeInputService23TestCaseOperation4Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService22TestShapeInputService22TestCaseOperation6Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService23TestShapeInputService23TestCaseOperation4Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService22TestCaseOperation6 = "OperationName"
+const opInputService23TestCaseOperation4 = "OperationName"
-// InputService22TestCaseOperation6Request returns a request value for making API operation for
+// InputService23TestCaseOperation4Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService22TestCaseOperation6Request.
-// req := client.InputService22TestCaseOperation6Request(params)
+// // Example sending a request using InputService23TestCaseOperation4Request.
+// req := client.InputService23TestCaseOperation4Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService22ProtocolTest) InputService22TestCaseOperation6Request(input *InputService22TestShapeInputService22TestCaseOperation6Input) InputService22TestCaseOperation6Request {
+func (c *InputService23ProtocolTest) InputService23TestCaseOperation4Request(input *InputService23TestShapeInputService23TestCaseOperation4Input) InputService23TestCaseOperation4Request {
op := &aws.Operation{
- Name: opInputService22TestCaseOperation6,
+ Name: opInputService23TestCaseOperation4,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
- input = &InputService22TestShapeInputService22TestCaseOperation6Input{}
+ input = &InputService23TestShapeInputService23TestCaseOperation4Input{}
}
- req := c.newRequest(op, input, &InputService22TestShapeInputService22TestCaseOperation6Output{})
+ req := c.newRequest(op, input, &InputService23TestShapeInputService23TestCaseOperation4Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService22TestCaseOperation6Request{Request: req, Input: input, Copy: c.InputService22TestCaseOperation6Request}
+ return InputService23TestCaseOperation4Request{Request: req, Input: input, Copy: c.InputService23TestCaseOperation4Request}
}
-// InputService22TestCaseOperation6Request is the request type for the
-// InputService22TestCaseOperation6 API operation.
-type InputService22TestCaseOperation6Request struct {
+// InputService23TestCaseOperation4Request is the request type for the
+// InputService23TestCaseOperation4 API operation.
+type InputService23TestCaseOperation4Request struct {
*aws.Request
- Input *InputService22TestShapeInputService22TestCaseOperation6Input
- Copy func(*InputService22TestShapeInputService22TestCaseOperation6Input) InputService22TestCaseOperation6Request
+ Input *InputService23TestShapeInputService23TestCaseOperation4Input
+ Copy func(*InputService23TestShapeInputService23TestCaseOperation4Input) InputService23TestCaseOperation4Request
}
-// Send marshals and sends the InputService22TestCaseOperation6 API request.
-func (r InputService22TestCaseOperation6Request) Send(ctx context.Context) (*InputService22TestCaseOperation6Response, error) {
+// Send marshals and sends the InputService23TestCaseOperation4 API request.
+func (r InputService23TestCaseOperation4Request) Send(ctx context.Context) (*InputService23TestCaseOperation4Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService22TestCaseOperation6Response{
- InputService22TestShapeInputService22TestCaseOperation6Output: r.Request.Data.(*InputService22TestShapeInputService22TestCaseOperation6Output),
+ resp := &InputService23TestCaseOperation4Response{
+ InputService23TestShapeInputService23TestCaseOperation4Output: r.Request.Data.(*InputService23TestShapeInputService23TestCaseOperation4Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService22TestCaseOperation6Response is the response type for the
-// InputService22TestCaseOperation6 API operation.
-type InputService22TestCaseOperation6Response struct {
- *InputService22TestShapeInputService22TestCaseOperation6Output
+// InputService23TestCaseOperation4Response is the response type for the
+// InputService23TestCaseOperation4 API operation.
+type InputService23TestCaseOperation4Response struct {
+ *InputService23TestShapeInputService23TestCaseOperation4Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService22TestCaseOperation6 request.
-func (r *InputService22TestCaseOperation6Response) SDKResponseMetdata() *aws.Response {
+// InputService23TestCaseOperation4 request.
+func (r *InputService23TestCaseOperation4Response) SDKResponseMetdata() *aws.Response {
return r.response
}
-type InputService22TestShapeRecursiveStructType struct {
- _ struct{} `type:"structure"`
-
- NoRecurse *string `type:"string"`
-
- RecursiveList []InputService22TestShapeRecursiveStructType `type:"list"`
-
- RecursiveMap map[string]InputService22TestShapeRecursiveStructType `type:"map"`
+type InputService23TestShapeInputService23TestCaseOperation5Input struct {
+ _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- RecursiveStruct *InputService22TestShapeRecursiveStructType `type:"structure"`
+ RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService22TestShapeRecursiveStructType) MarshalFields(e protocol.FieldEncoder) error {
- if s.NoRecurse != nil {
- v := *s.NoRecurse
+func (s InputService23TestShapeInputService23TestCaseOperation5Input) MarshalFields(e protocol.FieldEncoder) error {
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "NoRecurse", protocol.StringValue(v), metadata)
- }
- if s.RecursiveList != nil {
- v := s.RecursiveList
+ e.SetFields(protocol.BodyTarget, "OperationRequest", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
+ if s.RecursiveStruct != nil {
+ v := s.RecursiveStruct
- metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "RecursiveList", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddFields(v1)
+ metadata := protocol.Metadata{}
+ e.SetFields(protocol.BodyTarget, "RecursiveStruct", v, metadata)
}
- ls0.End()
+ return nil
+ }), protocol.Metadata{XMLNamespaceURI: "https://foo/"})
+ return nil
+}
- }
- if s.RecursiveMap != nil {
- v := s.RecursiveMap
+type InputService23TestShapeInputService23TestCaseOperation5Output struct {
+ _ struct{} `type:"structure"`
+}
- metadata := protocol.Metadata{}
- ms0 := e.Map(protocol.BodyTarget, "RecursiveMap", metadata)
- ms0.Start()
- for k1, v1 := range v {
- ms0.MapSetFields(k1, v1)
- }
- ms0.End()
+// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
+func (s InputService23TestShapeInputService23TestCaseOperation5Output) MarshalFields(e protocol.FieldEncoder) error {
+ return nil
+}
+
+const opInputService23TestCaseOperation5 = "OperationName"
+// InputService23TestCaseOperation5Request returns a request value for making API operation for
+// .
+//
+// // Example sending a request using InputService23TestCaseOperation5Request.
+// req := client.InputService23TestCaseOperation5Request(params)
+// resp, err := req.Send(context.TODO())
+// if err == nil {
+// fmt.Println(resp)
+// }
+func (c *InputService23ProtocolTest) InputService23TestCaseOperation5Request(input *InputService23TestShapeInputService23TestCaseOperation5Input) InputService23TestCaseOperation5Request {
+ op := &aws.Operation{
+ Name: opInputService23TestCaseOperation5,
+ HTTPMethod: "POST",
+ HTTPPath: "/path",
}
- if s.RecursiveStruct != nil {
- v := s.RecursiveStruct
- metadata := protocol.Metadata{}
- e.SetFields(protocol.BodyTarget, "RecursiveStruct", v, metadata)
+ if input == nil {
+ input = &InputService23TestShapeInputService23TestCaseOperation5Input{}
}
- return nil
+
+ req := c.newRequest(op, input, &InputService23TestShapeInputService23TestCaseOperation5Output{})
+ req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
+ req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
+ return InputService23TestCaseOperation5Request{Request: req, Input: input, Copy: c.InputService23TestCaseOperation5Request}
}
-// InputService23ProtocolTest provides the API operation methods for making requests to
-// InputService23ProtocolTest. See this package's package overview docs
-// for details on the service.
-//
-// The client's methods are safe to use concurrently. It is not safe to
-// modify mutate any of the struct's properties though.
-type InputService23ProtocolTest struct {
- *aws.Client
+// InputService23TestCaseOperation5Request is the request type for the
+// InputService23TestCaseOperation5 API operation.
+type InputService23TestCaseOperation5Request struct {
+ *aws.Request
+ Input *InputService23TestShapeInputService23TestCaseOperation5Input
+ Copy func(*InputService23TestShapeInputService23TestCaseOperation5Input) InputService23TestCaseOperation5Request
}
-// New creates a new instance of the client from the provided Config.
-//
-// Example:
-// // Create a client from just a config.
-// svc := inputservice23protocoltest.New(myConfig)
-func NewInputService23ProtocolTest(config aws.Config) *InputService23ProtocolTest {
- svc := &InputService23ProtocolTest{
- Client: aws.NewClient(
- config,
- aws.Metadata{
- ServiceName: "InputService23ProtocolTest",
- ServiceID: "InputService23ProtocolTest",
- EndpointsID: "inputservice23protocoltest",
- SigningName: "inputservice23protocoltest",
- SigningRegion: config.Region,
- APIVersion: "2014-01-01",
- },
- ),
+// Send marshals and sends the InputService23TestCaseOperation5 API request.
+func (r InputService23TestCaseOperation5Request) Send(ctx context.Context) (*InputService23TestCaseOperation5Response, error) {
+ r.Request.SetContext(ctx)
+ err := r.Request.Send()
+ if err != nil {
+ return nil, err
}
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
+ resp := &InputService23TestCaseOperation5Response{
+ InputService23TestShapeInputService23TestCaseOperation5Output: r.Request.Data.(*InputService23TestShapeInputService23TestCaseOperation5Output),
+ response: &aws.Response{Request: r.Request},
+ }
- return svc
+ return resp, nil
}
-// newRequest creates a new request for a client operation and runs any
-// custom request initialization.
-func (c *InputService23ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
- req := c.NewRequest(op, params, data)
+// InputService23TestCaseOperation5Response is the response type for the
+// InputService23TestCaseOperation5 API operation.
+type InputService23TestCaseOperation5Response struct {
+ *InputService23TestShapeInputService23TestCaseOperation5Output
- return req
+ response *aws.Response
}
-type InputService23TestShapeInputService23TestCaseOperation1Input struct {
- _ struct{} `type:"structure"`
+// SDKResponseMetdata returns the response metadata for the
+// InputService23TestCaseOperation5 request.
+func (r *InputService23TestCaseOperation5Response) SDKResponseMetdata() *aws.Response {
+ return r.response
+}
- TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"`
+type InputService23TestShapeInputService23TestCaseOperation6Input struct {
+ _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
+
+ RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService23TestShapeInputService23TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService23TestShapeInputService23TestCaseOperation6Input) MarshalFields(e protocol.FieldEncoder) error {
- if s.TimeArgInHeader != nil {
- v := *s.TimeArgInHeader
+ e.SetFields(protocol.BodyTarget, "OperationRequest", protocol.FieldMarshalerFunc(func(e protocol.FieldEncoder) error {
+ if s.RecursiveStruct != nil {
+ v := s.RecursiveStruct
- metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-timearg", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
- }
+ metadata := protocol.Metadata{}
+ e.SetFields(protocol.BodyTarget, "RecursiveStruct", v, metadata)
+ }
+ return nil
+ }), protocol.Metadata{XMLNamespaceURI: "https://foo/"})
return nil
}
-type InputService23TestShapeInputService23TestCaseOperation1Output struct {
+type InputService23TestShapeInputService23TestCaseOperation6Output struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s InputService23TestShapeInputService23TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s InputService23TestShapeInputService23TestCaseOperation6Output) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-const opInputService23TestCaseOperation1 = "OperationName"
+const opInputService23TestCaseOperation6 = "OperationName"
-// InputService23TestCaseOperation1Request returns a request value for making API operation for
+// InputService23TestCaseOperation6Request returns a request value for making API operation for
// .
//
-// // Example sending a request using InputService23TestCaseOperation1Request.
-// req := client.InputService23TestCaseOperation1Request(params)
+// // Example sending a request using InputService23TestCaseOperation6Request.
+// req := client.InputService23TestCaseOperation6Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(input *InputService23TestShapeInputService23TestCaseOperation1Input) InputService23TestCaseOperation1Request {
+func (c *InputService23ProtocolTest) InputService23TestCaseOperation6Request(input *InputService23TestShapeInputService23TestCaseOperation6Input) InputService23TestCaseOperation6Request {
op := &aws.Operation{
- Name: opInputService23TestCaseOperation1,
+ Name: opInputService23TestCaseOperation6,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
- input = &InputService23TestShapeInputService23TestCaseOperation1Input{}
+ input = &InputService23TestShapeInputService23TestCaseOperation6Input{}
}
- req := c.newRequest(op, input, &InputService23TestShapeInputService23TestCaseOperation1Output{})
+ req := c.newRequest(op, input, &InputService23TestShapeInputService23TestCaseOperation6Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return InputService23TestCaseOperation1Request{Request: req, Input: input, Copy: c.InputService23TestCaseOperation1Request}
+ return InputService23TestCaseOperation6Request{Request: req, Input: input, Copy: c.InputService23TestCaseOperation6Request}
}
-// InputService23TestCaseOperation1Request is the request type for the
-// InputService23TestCaseOperation1 API operation.
-type InputService23TestCaseOperation1Request struct {
+// InputService23TestCaseOperation6Request is the request type for the
+// InputService23TestCaseOperation6 API operation.
+type InputService23TestCaseOperation6Request struct {
*aws.Request
- Input *InputService23TestShapeInputService23TestCaseOperation1Input
- Copy func(*InputService23TestShapeInputService23TestCaseOperation1Input) InputService23TestCaseOperation1Request
+ Input *InputService23TestShapeInputService23TestCaseOperation6Input
+ Copy func(*InputService23TestShapeInputService23TestCaseOperation6Input) InputService23TestCaseOperation6Request
}
-// Send marshals and sends the InputService23TestCaseOperation1 API request.
-func (r InputService23TestCaseOperation1Request) Send(ctx context.Context) (*InputService23TestCaseOperation1Response, error) {
+// Send marshals and sends the InputService23TestCaseOperation6 API request.
+func (r InputService23TestCaseOperation6Request) Send(ctx context.Context) (*InputService23TestCaseOperation6Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &InputService23TestCaseOperation1Response{
- InputService23TestShapeInputService23TestCaseOperation1Output: r.Request.Data.(*InputService23TestShapeInputService23TestCaseOperation1Output),
+ resp := &InputService23TestCaseOperation6Response{
+ InputService23TestShapeInputService23TestCaseOperation6Output: r.Request.Data.(*InputService23TestShapeInputService23TestCaseOperation6Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// InputService23TestCaseOperation1Response is the response type for the
-// InputService23TestCaseOperation1 API operation.
-type InputService23TestCaseOperation1Response struct {
- *InputService23TestShapeInputService23TestCaseOperation1Output
+// InputService23TestCaseOperation6Response is the response type for the
+// InputService23TestCaseOperation6 API operation.
+type InputService23TestCaseOperation6Response struct {
+ *InputService23TestShapeInputService23TestCaseOperation6Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// InputService23TestCaseOperation1 request.
-func (r *InputService23TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
+// InputService23TestCaseOperation6 request.
+func (r *InputService23TestCaseOperation6Response) SDKResponseMetdata() *aws.Response {
return r.response
}
+type InputService23TestShapeRecursiveStructType struct {
+ _ struct{} `type:"structure"`
+
+ NoRecurse *string `type:"string"`
+
+ RecursiveList []InputService23TestShapeRecursiveStructType `type:"list"`
+
+ RecursiveMap map[string]InputService23TestShapeRecursiveStructType `type:"map"`
+
+ RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
+}
+
+// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
+func (s InputService23TestShapeRecursiveStructType) MarshalFields(e protocol.FieldEncoder) error {
+ if s.NoRecurse != nil {
+ v := *s.NoRecurse
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "NoRecurse", protocol.StringValue(v), metadata)
+ }
+ if s.RecursiveList != nil {
+ v := s.RecursiveList
+
+ metadata := protocol.Metadata{}
+ ls0 := e.List(protocol.BodyTarget, "RecursiveList", metadata)
+ ls0.Start()
+ for _, v1 := range v {
+ ls0.ListAddFields(v1)
+ }
+ ls0.End()
+
+ }
+ if s.RecursiveMap != nil {
+ v := s.RecursiveMap
+
+ metadata := protocol.Metadata{}
+ ms0 := e.Map(protocol.BodyTarget, "RecursiveMap", metadata)
+ ms0.Start()
+ for k1, v1 := range v {
+ ms0.MapSetFields(k1, v1)
+ }
+ ms0.End()
+
+ }
+ if s.RecursiveStruct != nil {
+ v := s.RecursiveStruct
+
+ metadata := protocol.Metadata{}
+ e.SetFields(protocol.BodyTarget, "RecursiveStruct", v, metadata)
+ }
+ return nil
+}
+
// InputService24ProtocolTest provides the API operation methods for making requests to
// InputService24ProtocolTest. See this package's package overview docs
// for details on the service.
@@ -6419,7 +6487,7 @@ func TestInputService9ProtocolTestListOfStructuresCase1(t *testing.T) {
}
-func TestInputService10ProtocolTestBlobAndTimestampShapesCase1(t *testing.T) {
+func TestInputService10ProtocolTestBlobShapesCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
@@ -6427,7 +6495,6 @@ func TestInputService10ProtocolTestBlobAndTimestampShapesCase1(t *testing.T) {
input := &InputService10TestShapeInputService10TestCaseOperation1Input{
StructureParam: &InputService10TestShapeStructureShape{
B: []byte("foo"),
- T: aws.Time(time.Unix(1422172800, 0)),
},
}
@@ -6445,7 +6512,7 @@ func TestInputService10ProtocolTestBlobAndTimestampShapesCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `Zm9v2015-01-25T08:00:00Z`, util.Trim(string(body)), InputService10TestShapeInputService10TestCaseOperation1Input{})
+ awstesting.AssertXML(t, `Zm9v`, util.Trim(string(body)), InputService10TestShapeInputService10TestCaseOperation1Input{})
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
@@ -6454,19 +6521,68 @@ func TestInputService10ProtocolTestBlobAndTimestampShapesCase1(t *testing.T) {
}
-func TestInputService11ProtocolTestHeaderMapsCase1(t *testing.T) {
+func TestInputService11ProtocolTestTimestampShapesCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
svc := NewInputService11ProtocolTest(cfg)
input := &InputService11TestShapeInputService11TestCaseOperation1Input{
+ TimeArg: aws.Time(time.Unix(1422172800, 0)),
+ TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)),
+ TimeArgInQuery: aws.Time(time.Unix(1422172800, 0)),
+ TimeCustom: aws.Time(time.Unix(1422172800, 0)),
+ TimeCustomInHeader: aws.Time(time.Unix(1422172800, 0)),
+ TimeCustomInQuery: aws.Time(time.Unix(1422172800, 0)),
+ TimeFormat: aws.Time(time.Unix(1422172800, 0)),
+ TimeFormatInHeader: aws.Time(time.Unix(1422172800, 0)),
+ TimeFormatInQuery: aws.Time(time.Unix(1422172800, 0)),
+ }
+
+ req := svc.InputService11TestCaseOperation1Request(input)
+ r := req.HTTPRequest
+
+ // build request
+ req.Build()
+ if req.Error != nil {
+ t.Errorf("expect no error, got %v", req.Error)
+ }
+
+ // assert body
+ if r.Body == nil {
+ t.Errorf("expect body not to be nil")
+ }
+ body := util.SortXML(r.Body)
+ awstesting.AssertXML(t, `2015-01-25T08:00:00ZSun, 25 Jan 2015 08:00:00 GMTSun, 25 Jan 2015 08:00:00 GMT`, util.Trim(string(body)), InputService11TestShapeInputService11TestCaseOperation1Input{})
+
+ // assert URL
+ awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone?TimeQuery=2015-01-25T08%3A00%3A00Z&TimeCustomQuery=1422172800&TimeFormatQuery=1422172800", r.URL.String())
+
+ // assert headers
+ if e, a := "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg"); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := "1422172800", r.Header.Get("x-amz-timecustom-header"); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := "1422172800", r.Header.Get("x-amz-timeformat-header"); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+
+}
+
+func TestInputService12ProtocolTestHeaderMapsCase1(t *testing.T) {
+ cfg := unit.Config()
+ cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
+
+ svc := NewInputService12ProtocolTest(cfg)
+ input := &InputService12TestShapeInputService12TestCaseOperation1Input{
Foo: map[string]string{
"a": "b",
"c": "d",
},
}
- req := svc.InputService11TestCaseOperation1Request(input)
+ req := svc.InputService12TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6488,19 +6604,19 @@ func TestInputService11ProtocolTestHeaderMapsCase1(t *testing.T) {
}
-func TestInputService12ProtocolTestQuerystringListOfStringsCase1(t *testing.T) {
+func TestInputService13ProtocolTestQuerystringListOfStringsCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService12ProtocolTest(cfg)
- input := &InputService12TestShapeInputService12TestCaseOperation1Input{
+ svc := NewInputService13ProtocolTest(cfg)
+ input := &InputService13TestShapeInputService13TestCaseOperation1Input{
Items: []string{
"value1",
"value2",
},
}
- req := svc.InputService12TestCaseOperation1Request(input)
+ req := svc.InputService13TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6516,12 +6632,12 @@ func TestInputService12ProtocolTestQuerystringListOfStringsCase1(t *testing.T) {
}
-func TestInputService13ProtocolTestStringToStringMapsInQuerystringCase1(t *testing.T) {
+func TestInputService14ProtocolTestStringToStringMapsInQuerystringCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService13ProtocolTest(cfg)
- input := &InputService13TestShapeInputService13TestCaseOperation1Input{
+ svc := NewInputService14ProtocolTest(cfg)
+ input := &InputService14TestShapeInputService14TestCaseOperation1Input{
PipelineId: aws.String("foo"),
QueryDoc: map[string]string{
"bar": "baz",
@@ -6529,7 +6645,7 @@ func TestInputService13ProtocolTestStringToStringMapsInQuerystringCase1(t *testi
},
}
- req := svc.InputService13TestCaseOperation1Request(input)
+ req := svc.InputService14TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6545,12 +6661,12 @@ func TestInputService13ProtocolTestStringToStringMapsInQuerystringCase1(t *testi
}
-func TestInputService14ProtocolTestStringToStringListMapsInQuerystringCase1(t *testing.T) {
+func TestInputService15ProtocolTestStringToStringListMapsInQuerystringCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService14ProtocolTest(cfg)
- input := &InputService14TestShapeInputService14TestCaseOperation1Input{
+ svc := NewInputService15ProtocolTest(cfg)
+ input := &InputService15TestShapeInputService15TestCaseOperation1Input{
PipelineId: aws.String("id"),
QueryDoc: map[string][]string{
"fizz": {
@@ -6564,7 +6680,7 @@ func TestInputService14ProtocolTestStringToStringListMapsInQuerystringCase1(t *t
},
}
- req := svc.InputService14TestCaseOperation1Request(input)
+ req := svc.InputService15TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6580,16 +6696,16 @@ func TestInputService14ProtocolTestStringToStringListMapsInQuerystringCase1(t *t
}
-func TestInputService15ProtocolTestBooleanInQuerystringCase1(t *testing.T) {
+func TestInputService16ProtocolTestBooleanInQuerystringCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService15ProtocolTest(cfg)
- input := &InputService15TestShapeInputService15TestCaseOperation1Input{
+ svc := NewInputService16ProtocolTest(cfg)
+ input := &InputService16TestShapeInputService16TestCaseOperation1Input{
BoolQuery: aws.Bool(true),
}
- req := svc.InputService15TestCaseOperation1Request(input)
+ req := svc.InputService16TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6605,16 +6721,16 @@ func TestInputService15ProtocolTestBooleanInQuerystringCase1(t *testing.T) {
}
-func TestInputService15ProtocolTestBooleanInQuerystringCase2(t *testing.T) {
+func TestInputService16ProtocolTestBooleanInQuerystringCase2(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService15ProtocolTest(cfg)
- input := &InputService15TestShapeInputService15TestCaseOperation2Input{
+ svc := NewInputService16ProtocolTest(cfg)
+ input := &InputService16TestShapeInputService16TestCaseOperation2Input{
BoolQuery: aws.Bool(false),
}
- req := svc.InputService15TestCaseOperation2Request(input)
+ req := svc.InputService16TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
@@ -6630,16 +6746,16 @@ func TestInputService15ProtocolTestBooleanInQuerystringCase2(t *testing.T) {
}
-func TestInputService16ProtocolTestStringPayloadCase1(t *testing.T) {
+func TestInputService17ProtocolTestStringPayloadCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService16ProtocolTest(cfg)
- input := &InputService16TestShapeInputService16TestCaseOperation1Input{
+ svc := NewInputService17ProtocolTest(cfg)
+ input := &InputService17TestShapeInputService17TestCaseOperation1Input{
Foo: aws.String("bar"),
}
- req := svc.InputService16TestCaseOperation1Request(input)
+ req := svc.InputService17TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6664,16 +6780,16 @@ func TestInputService16ProtocolTestStringPayloadCase1(t *testing.T) {
}
-func TestInputService17ProtocolTestBlobPayloadCase1(t *testing.T) {
+func TestInputService18ProtocolTestBlobPayloadCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService17ProtocolTest(cfg)
- input := &InputService17TestShapeInputService17TestCaseOperation1Input{
+ svc := NewInputService18ProtocolTest(cfg)
+ input := &InputService18TestShapeInputService18TestCaseOperation1Input{
Foo: []byte("bar"),
}
- req := svc.InputService17TestCaseOperation1Request(input)
+ req := svc.InputService18TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6698,14 +6814,14 @@ func TestInputService17ProtocolTestBlobPayloadCase1(t *testing.T) {
}
-func TestInputService17ProtocolTestBlobPayloadCase2(t *testing.T) {
+func TestInputService18ProtocolTestBlobPayloadCase2(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService17ProtocolTest(cfg)
- input := &InputService17TestShapeInputService17TestCaseOperation2Input{}
+ svc := NewInputService18ProtocolTest(cfg)
+ input := &InputService18TestShapeInputService18TestCaseOperation2Input{}
- req := svc.InputService17TestCaseOperation2Request(input)
+ req := svc.InputService18TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
@@ -6721,18 +6837,18 @@ func TestInputService17ProtocolTestBlobPayloadCase2(t *testing.T) {
}
-func TestInputService18ProtocolTestStructurePayloadCase1(t *testing.T) {
+func TestInputService19ProtocolTestStructurePayloadCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService18ProtocolTest(cfg)
- input := &InputService18TestShapeInputService18TestCaseOperation1Input{
- Foo: &InputService18TestShapeFooShape{
+ svc := NewInputService19ProtocolTest(cfg)
+ input := &InputService19TestShapeInputService19TestCaseOperation1Input{
+ Foo: &InputService19TestShapeFooShape{
Baz: aws.String("bar"),
},
}
- req := svc.InputService18TestCaseOperation1Request(input)
+ req := svc.InputService19TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6746,7 +6862,7 @@ func TestInputService18ProtocolTestStructurePayloadCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `bar`, util.Trim(string(body)), InputService18TestShapeInputService18TestCaseOperation1Input{})
+ awstesting.AssertXML(t, `bar`, util.Trim(string(body)), InputService19TestShapeInputService19TestCaseOperation1Input{})
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -6755,14 +6871,14 @@ func TestInputService18ProtocolTestStructurePayloadCase1(t *testing.T) {
}
-func TestInputService18ProtocolTestStructurePayloadCase2(t *testing.T) {
+func TestInputService19ProtocolTestStructurePayloadCase2(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService18ProtocolTest(cfg)
- input := &InputService18TestShapeInputService18TestCaseOperation2Input{}
+ svc := NewInputService19ProtocolTest(cfg)
+ input := &InputService19TestShapeInputService19TestCaseOperation2Input{}
- req := svc.InputService18TestCaseOperation2Request(input)
+ req := svc.InputService19TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
@@ -6778,16 +6894,16 @@ func TestInputService18ProtocolTestStructurePayloadCase2(t *testing.T) {
}
-func TestInputService18ProtocolTestStructurePayloadCase3(t *testing.T) {
+func TestInputService19ProtocolTestStructurePayloadCase3(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService18ProtocolTest(cfg)
- input := &InputService18TestShapeInputService18TestCaseOperation3Input{
- Foo: &InputService18TestShapeFooShape{},
+ svc := NewInputService19ProtocolTest(cfg)
+ input := &InputService19TestShapeInputService19TestCaseOperation3Input{
+ Foo: &InputService19TestShapeFooShape{},
}
- req := svc.InputService18TestCaseOperation3Request(input)
+ req := svc.InputService19TestCaseOperation3Request(input)
r := req.HTTPRequest
// build request
@@ -6801,7 +6917,7 @@ func TestInputService18ProtocolTestStructurePayloadCase3(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body := util.SortXML(r.Body)
- awstesting.AssertXML(t, ``, util.Trim(string(body)), InputService18TestShapeInputService18TestCaseOperation3Input{})
+ awstesting.AssertXML(t, ``, util.Trim(string(body)), InputService19TestShapeInputService19TestCaseOperation3Input{})
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -6810,14 +6926,14 @@ func TestInputService18ProtocolTestStructurePayloadCase3(t *testing.T) {
}
-func TestInputService18ProtocolTestStructurePayloadCase4(t *testing.T) {
+func TestInputService19ProtocolTestStructurePayloadCase4(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService18ProtocolTest(cfg)
- input := &InputService18TestShapeInputService18TestCaseOperation4Input{}
+ svc := NewInputService19ProtocolTest(cfg)
+ input := &InputService19TestShapeInputService19TestCaseOperation4Input{}
- req := svc.InputService18TestCaseOperation4Request(input)
+ req := svc.InputService19TestCaseOperation4Request(input)
r := req.HTTPRequest
// build request
@@ -6833,21 +6949,21 @@ func TestInputService18ProtocolTestStructurePayloadCase4(t *testing.T) {
}
-func TestInputService19ProtocolTestXMLAttributeCase1(t *testing.T) {
+func TestInputService20ProtocolTestXMLAttributeCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService19ProtocolTest(cfg)
- input := &InputService19TestShapeInputService19TestCaseOperation1Input{
- Grant: &InputService19TestShapeGrant{
- Grantee: &InputService19TestShapeGrantee{
+ svc := NewInputService20ProtocolTest(cfg)
+ input := &InputService20TestShapeInputService20TestCaseOperation1Input{
+ Grant: &InputService20TestShapeGrant{
+ Grantee: &InputService20TestShapeGrantee{
EmailAddress: aws.String("foo@example.com"),
Type: aws.String("CanonicalUser"),
},
},
}
- req := svc.InputService19TestCaseOperation1Request(input)
+ req := svc.InputService20TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6861,7 +6977,7 @@ func TestInputService19ProtocolTestXMLAttributeCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `foo@example.com`, util.Trim(string(body)), InputService19TestShapeInputService19TestCaseOperation1Input{})
+ awstesting.AssertXML(t, `foo@example.com`, util.Trim(string(body)), InputService20TestShapeInputService20TestCaseOperation1Input{})
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
@@ -6870,17 +6986,17 @@ func TestInputService19ProtocolTestXMLAttributeCase1(t *testing.T) {
}
-func TestInputService20ProtocolTestGreedyKeysCase1(t *testing.T) {
+func TestInputService21ProtocolTestGreedyKeysCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService20ProtocolTest(cfg)
- input := &InputService20TestShapeInputService20TestCaseOperation1Input{
+ svc := NewInputService21ProtocolTest(cfg)
+ input := &InputService21TestShapeInputService21TestCaseOperation1Input{
Bucket: aws.String("my/bucket"),
Key: aws.String("testing /123"),
}
- req := svc.InputService20TestCaseOperation1Request(input)
+ req := svc.InputService21TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6896,14 +7012,14 @@ func TestInputService20ProtocolTestGreedyKeysCase1(t *testing.T) {
}
-func TestInputService21ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) {
+func TestInputService22ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService21ProtocolTest(cfg)
- input := &InputService21TestShapeInputService21TestCaseOperation1Input{}
+ svc := NewInputService22ProtocolTest(cfg)
+ input := &InputService22TestShapeInputService22TestCaseOperation1Input{}
- req := svc.InputService21TestCaseOperation1Request(input)
+ req := svc.InputService22TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6919,16 +7035,16 @@ func TestInputService21ProtocolTestOmitsNullQueryParamsButSerializesEmptyStrings
}
-func TestInputService21ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) {
+func TestInputService22ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService21ProtocolTest(cfg)
- input := &InputService21TestShapeInputService21TestCaseOperation2Input{
+ svc := NewInputService22ProtocolTest(cfg)
+ input := &InputService22TestShapeInputService22TestCaseOperation2Input{
Foo: aws.String(""),
}
- req := svc.InputService21TestCaseOperation2Request(input)
+ req := svc.InputService22TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
@@ -6944,18 +7060,18 @@ func TestInputService21ProtocolTestOmitsNullQueryParamsButSerializesEmptyStrings
}
-func TestInputService22ProtocolTestRecursiveShapesCase1(t *testing.T) {
+func TestInputService23ProtocolTestRecursiveShapesCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService22ProtocolTest(cfg)
- input := &InputService22TestShapeInputService22TestCaseOperation1Input{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
+ svc := NewInputService23ProtocolTest(cfg)
+ input := &InputService23TestShapeInputService23TestCaseOperation1Input{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
}
- req := svc.InputService22TestCaseOperation1Request(input)
+ req := svc.InputService23TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
@@ -6969,7 +7085,7 @@ func TestInputService22ProtocolTestRecursiveShapesCase1(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService22TestShapeInputService22TestCaseOperation1Input{})
+ awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService23TestShapeInputService23TestCaseOperation1Input{})
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -6978,20 +7094,20 @@ func TestInputService22ProtocolTestRecursiveShapesCase1(t *testing.T) {
}
-func TestInputService22ProtocolTestRecursiveShapesCase2(t *testing.T) {
+func TestInputService23ProtocolTestRecursiveShapesCase2(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService22ProtocolTest(cfg)
- input := &InputService22TestShapeInputService22TestCaseOperation2Input{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
+ svc := NewInputService23ProtocolTest(cfg)
+ input := &InputService23TestShapeInputService23TestCaseOperation2Input{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
},
}
- req := svc.InputService22TestCaseOperation2Request(input)
+ req := svc.InputService23TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
@@ -7005,7 +7121,7 @@ func TestInputService22ProtocolTestRecursiveShapesCase2(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService22TestShapeInputService22TestCaseOperation2Input{})
+ awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService23TestShapeInputService23TestCaseOperation2Input{})
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -7014,16 +7130,16 @@ func TestInputService22ProtocolTestRecursiveShapesCase2(t *testing.T) {
}
-func TestInputService22ProtocolTestRecursiveShapesCase3(t *testing.T) {
+func TestInputService23ProtocolTestRecursiveShapesCase3(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService22ProtocolTest(cfg)
- input := &InputService22TestShapeInputService22TestCaseOperation3Input{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
+ svc := NewInputService23ProtocolTest(cfg)
+ input := &InputService23TestShapeInputService23TestCaseOperation3Input{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
},
@@ -7031,7 +7147,7 @@ func TestInputService22ProtocolTestRecursiveShapesCase3(t *testing.T) {
},
}
- req := svc.InputService22TestCaseOperation3Request(input)
+ req := svc.InputService23TestCaseOperation3Request(input)
r := req.HTTPRequest
// build request
@@ -7045,7 +7161,7 @@ func TestInputService22ProtocolTestRecursiveShapesCase3(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService22TestShapeInputService22TestCaseOperation3Input{})
+ awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService23TestShapeInputService23TestCaseOperation3Input{})
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -7054,14 +7170,14 @@ func TestInputService22ProtocolTestRecursiveShapesCase3(t *testing.T) {
}
-func TestInputService22ProtocolTestRecursiveShapesCase4(t *testing.T) {
+func TestInputService23ProtocolTestRecursiveShapesCase4(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService22ProtocolTest(cfg)
- input := &InputService22TestShapeInputService22TestCaseOperation4Input{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
- RecursiveList: []InputService22TestShapeRecursiveStructType{
+ svc := NewInputService23ProtocolTest(cfg)
+ input := &InputService23TestShapeInputService23TestCaseOperation4Input{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
+ RecursiveList: []InputService23TestShapeRecursiveStructType{
{
NoRecurse: aws.String("foo"),
},
@@ -7072,7 +7188,7 @@ func TestInputService22ProtocolTestRecursiveShapesCase4(t *testing.T) {
},
}
- req := svc.InputService22TestCaseOperation4Request(input)
+ req := svc.InputService23TestCaseOperation4Request(input)
r := req.HTTPRequest
// build request
@@ -7086,7 +7202,7 @@ func TestInputService22ProtocolTestRecursiveShapesCase4(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `foobar`, util.Trim(string(body)), InputService22TestShapeInputService22TestCaseOperation4Input{})
+ awstesting.AssertXML(t, `foobar`, util.Trim(string(body)), InputService23TestShapeInputService23TestCaseOperation4Input{})
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -7095,19 +7211,19 @@ func TestInputService22ProtocolTestRecursiveShapesCase4(t *testing.T) {
}
-func TestInputService22ProtocolTestRecursiveShapesCase5(t *testing.T) {
+func TestInputService23ProtocolTestRecursiveShapesCase5(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService22ProtocolTest(cfg)
- input := &InputService22TestShapeInputService22TestCaseOperation5Input{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
- RecursiveList: []InputService22TestShapeRecursiveStructType{
+ svc := NewInputService23ProtocolTest(cfg)
+ input := &InputService23TestShapeInputService23TestCaseOperation5Input{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
+ RecursiveList: []InputService23TestShapeRecursiveStructType{
{
NoRecurse: aws.String("foo"),
},
{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
NoRecurse: aws.String("bar"),
},
},
@@ -7115,7 +7231,7 @@ func TestInputService22ProtocolTestRecursiveShapesCase5(t *testing.T) {
},
}
- req := svc.InputService22TestCaseOperation5Request(input)
+ req := svc.InputService23TestCaseOperation5Request(input)
r := req.HTTPRequest
// build request
@@ -7129,7 +7245,7 @@ func TestInputService22ProtocolTestRecursiveShapesCase5(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `foobar`, util.Trim(string(body)), InputService22TestShapeInputService22TestCaseOperation5Input{})
+ awstesting.AssertXML(t, `foobar`, util.Trim(string(body)), InputService23TestShapeInputService23TestCaseOperation5Input{})
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
@@ -7138,14 +7254,14 @@ func TestInputService22ProtocolTestRecursiveShapesCase5(t *testing.T) {
}
-func TestInputService22ProtocolTestRecursiveShapesCase6(t *testing.T) {
+func TestInputService23ProtocolTestRecursiveShapesCase6(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewInputService22ProtocolTest(cfg)
- input := &InputService22TestShapeInputService22TestCaseOperation6Input{
- RecursiveStruct: &InputService22TestShapeRecursiveStructType{
- RecursiveMap: map[string]InputService22TestShapeRecursiveStructType{
+ svc := NewInputService23ProtocolTest(cfg)
+ input := &InputService23TestShapeInputService23TestCaseOperation6Input{
+ RecursiveStruct: &InputService23TestShapeRecursiveStructType{
+ RecursiveMap: map[string]InputService23TestShapeRecursiveStructType{
"bar": {
NoRecurse: aws.String("bar"),
},
@@ -7156,7 +7272,7 @@ func TestInputService22ProtocolTestRecursiveShapesCase6(t *testing.T) {
},
}
- req := svc.InputService22TestCaseOperation6Request(input)
+ req := svc.InputService23TestCaseOperation6Request(input)
r := req.HTTPRequest
// build request
@@ -7170,40 +7286,12 @@ func TestInputService22ProtocolTestRecursiveShapesCase6(t *testing.T) {
t.Errorf("expect body not to be nil")
}
body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `foofoobarbar`, util.Trim(string(body)), InputService22TestShapeInputService22TestCaseOperation6Input{})
-
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
-
- // assert headers
-
-}
-
-func TestInputService23ProtocolTestTimestampInHeaderCase1(t *testing.T) {
- cfg := unit.Config()
- cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
-
- svc := NewInputService23ProtocolTest(cfg)
- input := &InputService23TestShapeInputService23TestCaseOperation1Input{
- TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)),
- }
-
- req := svc.InputService23TestCaseOperation1Request(input)
- r := req.HTTPRequest
-
- // build request
- req.Build()
- if req.Error != nil {
- t.Errorf("expect no error, got %v", req.Error)
- }
+ awstesting.AssertXML(t, `foofoobarbar`, util.Trim(string(body)), InputService23TestShapeInputService23TestCaseOperation6Input{})
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
- if e, a := "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg"); e != a {
- t.Errorf("expect %v, got %v", e, a)
- }
}
diff --git a/private/protocol/restxml/unmarshal_test.go b/private/protocol/restxml/unmarshal_test.go
index f51006b7c5e..8c935aa8ab3 100644
--- a/private/protocol/restxml/unmarshal_test.go
+++ b/private/protocol/restxml/unmarshal_test.go
@@ -103,8 +103,6 @@ func (s OutputService1TestShapeOutputService1TestCaseOperation1Input) MarshalFie
type OutputService1TestShapeOutputService1TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
- Blobs [][]byte `type:"list"`
-
Char *string `type:"character"`
Double *float64 `type:"double"`
@@ -125,27 +123,13 @@ type OutputService1TestShapeOutputService1TestCaseOperation1Output struct {
Str *string `type:"string"`
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
-
- Timestamps []time.Time `type:"list"`
+ Timestamp *time.Time `type:"timestamp"`
TrueBool *bool `type:"boolean"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService1TestShapeOutputService1TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
- if s.Blobs != nil {
- v := s.Blobs
-
- metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "Blobs", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.BytesValue(v1))
- }
- ls0.End()
-
- }
if s.Char != nil {
v := *s.Char
@@ -204,19 +188,8 @@ func (s OutputService1TestShapeOutputService1TestCaseOperation1Output) MarshalFi
v := *s.Timestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Timestamp", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
- }
- if s.Timestamps != nil {
- v := s.Timestamps
-
- metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "Timestamps", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.TimeValue{V: v1})
- }
- ls0.End()
-
+ e.SetValue(protocol.BodyTarget, "Timestamp",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.TrueBool != nil {
v := *s.TrueBool
@@ -316,8 +289,6 @@ func (s OutputService1TestShapeOutputService1TestCaseOperation2Input) MarshalFie
type OutputService1TestShapeOutputService1TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
- Blobs [][]byte `type:"list"`
-
Char *string `type:"character"`
Double *float64 `type:"double"`
@@ -338,27 +309,13 @@ type OutputService1TestShapeOutputService1TestCaseOperation2Output struct {
Str *string `type:"string"`
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
-
- Timestamps []time.Time `type:"list"`
+ Timestamp *time.Time `type:"timestamp"`
TrueBool *bool `type:"boolean"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService1TestShapeOutputService1TestCaseOperation2Output) MarshalFields(e protocol.FieldEncoder) error {
- if s.Blobs != nil {
- v := s.Blobs
-
- metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "Blobs", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.BytesValue(v1))
- }
- ls0.End()
-
- }
if s.Char != nil {
v := *s.Char
@@ -417,19 +374,8 @@ func (s OutputService1TestShapeOutputService1TestCaseOperation2Output) MarshalFi
v := *s.Timestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Timestamp", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
- }
- if s.Timestamps != nil {
- v := s.Timestamps
-
- metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "Timestamps", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.TimeValue{V: v1})
- }
- ls0.End()
-
+ e.SetValue(protocol.BodyTarget, "Timestamp",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.TrueBool != nil {
v := *s.TrueBool
@@ -516,219 +462,6 @@ func (r *OutputService1TestCaseOperation2Response) SDKResponseMetdata() *aws.Res
return r.response
}
-type OutputService1TestShapeOutputService1TestCaseOperation3Input struct {
- _ struct{} `type:"structure"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s OutputService1TestShapeOutputService1TestCaseOperation3Input) MarshalFields(e protocol.FieldEncoder) error {
-
- return nil
-}
-
-type OutputService1TestShapeOutputService1TestCaseOperation3Output struct {
- _ struct{} `type:"structure"`
-
- Blobs [][]byte `type:"list"`
-
- Char *string `type:"character"`
-
- Double *float64 `type:"double"`
-
- FalseBool *bool `type:"boolean"`
-
- Float *float64 `type:"float"`
-
- Float64s []float64 `type:"list"`
-
- ImaHeader *string `location:"header" type:"string"`
-
- ImaHeaderLocation *string `location:"header" locationName:"X-Foo" type:"string"`
-
- Long *int64 `type:"long"`
-
- Num *int64 `locationName:"FooNum" type:"integer"`
-
- Str *string `type:"string"`
-
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
-
- Timestamps []time.Time `type:"list"`
-
- TrueBool *bool `type:"boolean"`
-}
-
-// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s OutputService1TestShapeOutputService1TestCaseOperation3Output) MarshalFields(e protocol.FieldEncoder) error {
- if s.Blobs != nil {
- v := s.Blobs
-
- metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "Blobs", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.BytesValue(v1))
- }
- ls0.End()
-
- }
- if s.Char != nil {
- v := *s.Char
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Char", protocol.StringValue(v), metadata)
- }
- if s.Double != nil {
- v := *s.Double
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Double", protocol.Float64Value(v), metadata)
- }
- if s.FalseBool != nil {
- v := *s.FalseBool
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "FalseBool", protocol.BoolValue(v), metadata)
- }
- if s.Float != nil {
- v := *s.Float
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Float", protocol.Float64Value(v), metadata)
- }
- if s.Float64s != nil {
- v := s.Float64s
-
- metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "Float64s", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.Float64Value(v1))
- }
- ls0.End()
-
- }
- if s.Long != nil {
- v := *s.Long
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Long", protocol.Int64Value(v), metadata)
- }
- if s.Num != nil {
- v := *s.Num
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "FooNum", protocol.Int64Value(v), metadata)
- }
- if s.Str != nil {
- v := *s.Str
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Str", protocol.StringValue(v), metadata)
- }
- if s.Timestamp != nil {
- v := *s.Timestamp
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Timestamp", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
- }
- if s.Timestamps != nil {
- v := s.Timestamps
-
- metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "Timestamps", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.TimeValue{V: v1})
- }
- ls0.End()
-
- }
- if s.TrueBool != nil {
- v := *s.TrueBool
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "TrueBool", protocol.BoolValue(v), metadata)
- }
- if s.ImaHeader != nil {
- v := *s.ImaHeader
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "ImaHeader", protocol.StringValue(v), metadata)
- }
- if s.ImaHeaderLocation != nil {
- v := *s.ImaHeaderLocation
-
- metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "X-Foo", protocol.StringValue(v), metadata)
- }
- return nil
-}
-
-const opOutputService1TestCaseOperation3 = "OperationName"
-
-// OutputService1TestCaseOperation3Request returns a request value for making API operation for
-// .
-//
-// // Example sending a request using OutputService1TestCaseOperation3Request.
-// req := client.OutputService1TestCaseOperation3Request(params)
-// resp, err := req.Send(context.TODO())
-// if err == nil {
-// fmt.Println(resp)
-// }
-func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation3Request(input *OutputService1TestShapeOutputService1TestCaseOperation3Input) OutputService1TestCaseOperation3Request {
- op := &aws.Operation{
- Name: opOutputService1TestCaseOperation3,
-
- HTTPPath: "/",
- }
-
- if input == nil {
- input = &OutputService1TestShapeOutputService1TestCaseOperation3Input{}
- }
-
- req := c.newRequest(op, input, &OutputService1TestShapeOutputService1TestCaseOperation3Output{})
- return OutputService1TestCaseOperation3Request{Request: req, Input: input, Copy: c.OutputService1TestCaseOperation3Request}
-}
-
-// OutputService1TestCaseOperation3Request is the request type for the
-// OutputService1TestCaseOperation3 API operation.
-type OutputService1TestCaseOperation3Request struct {
- *aws.Request
- Input *OutputService1TestShapeOutputService1TestCaseOperation3Input
- Copy func(*OutputService1TestShapeOutputService1TestCaseOperation3Input) OutputService1TestCaseOperation3Request
-}
-
-// Send marshals and sends the OutputService1TestCaseOperation3 API request.
-func (r OutputService1TestCaseOperation3Request) Send(ctx context.Context) (*OutputService1TestCaseOperation3Response, error) {
- r.Request.SetContext(ctx)
- err := r.Request.Send()
- if err != nil {
- return nil, err
- }
-
- resp := &OutputService1TestCaseOperation3Response{
- OutputService1TestShapeOutputService1TestCaseOperation3Output: r.Request.Data.(*OutputService1TestShapeOutputService1TestCaseOperation3Output),
- response: &aws.Response{Request: r.Request},
- }
-
- return resp, nil
-}
-
-// OutputService1TestCaseOperation3Response is the response type for the
-// OutputService1TestCaseOperation3 API operation.
-type OutputService1TestCaseOperation3Response struct {
- *OutputService1TestShapeOutputService1TestCaseOperation3Output
-
- response *aws.Response
-}
-
-// SDKResponseMetdata returns the response metadata for the
-// OutputService1TestCaseOperation3 request.
-func (r *OutputService1TestCaseOperation3Response) SDKResponseMetdata() *aws.Response {
- return r.response
-}
-
// OutputService2ProtocolTest provides the API operation methods for making requests to
// OutputService2ProtocolTest. See this package's package overview docs
// for details on the service.
@@ -2134,7 +1867,7 @@ type OutputService11TestShapeOutputService11TestCaseOperation1Output struct {
Str *string `location:"header" locationName:"x-str" type:"string"`
- Timestamp *time.Time `location:"header" locationName:"x-timestamp" type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `location:"header" locationName:"x-timestamp" type:"timestamp"`
TrueBool *bool `location:"header" locationName:"x-true-bool" type:"boolean"`
}
@@ -2187,7 +1920,8 @@ func (s OutputService11TestShapeOutputService11TestCaseOperation1Output) Marshal
v := *s.Timestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-timestamp", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-timestamp",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.TrueBool != nil {
v := *s.TrueBool
@@ -2462,38 +2196,70 @@ func (s OutputService13TestShapeOutputService13TestCaseOperation1Input) MarshalF
type OutputService13TestShapeOutputService13TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
- FooEnum OutputService13TestShapeRESTJSONEnumType `type:"string" enum:"true"`
+ StructMember *OutputService13TestShapeTimeContainer `type:"structure"`
+
+ TimeArg *time.Time `type:"timestamp"`
+
+ TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp"`
+
+ TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
- HeaderEnum OutputService13TestShapeRESTJSONEnumType `location:"header" locationName:"x-amz-enum" type:"string" enum:"true"`
+ TimeCustomInHeader *time.Time `location:"header" locationName:"x-amz-timecustom" type:"timestamp" timestampFormat:"unixTimestamp"`
- ListEnums []OutputService13TestShapeRESTJSONEnumType `type:"list"`
+ TimeFormat *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
+
+ TimeFormatInHeader *time.Time `location:"header" locationName:"x-amz-timeformat" type:"timestamp" timestampFormat:"unixTimestamp"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s OutputService13TestShapeOutputService13TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
- if len(s.FooEnum) > 0 {
- v := s.FooEnum
+ if s.StructMember != nil {
+ v := s.StructMember
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "FooEnum", v, metadata)
+ e.SetFields(protocol.BodyTarget, "StructMember", v, metadata)
}
- if s.ListEnums != nil {
- v := s.ListEnums
+ if s.TimeArg != nil {
+ v := *s.TimeArg
metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "ListEnums", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.StringValue(v1))
- }
- ls0.End()
+ e.SetValue(protocol.BodyTarget, "TimeArg",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeCustom != nil {
+ v := *s.TimeCustom
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "TimeCustom",
+ protocol.TimeValue{V: v, Format: "rfc822", QuotedFormatTime: false}, metadata)
}
- if len(s.HeaderEnum) > 0 {
- v := s.HeaderEnum
+ if s.TimeFormat != nil {
+ v := *s.TimeFormat
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-enum", v, metadata)
+ e.SetValue(protocol.BodyTarget, "TimeFormat",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeArgInHeader != nil {
+ v := *s.TimeArgInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timearg",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeCustomInHeader != nil {
+ v := *s.TimeCustomInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timecustom",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
+ }
+ if s.TimeFormatInHeader != nil {
+ v := *s.TimeFormatInHeader
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-timeformat",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -2511,9 +2277,9 @@ const opOutputService13TestCaseOperation1 = "OperationName"
// }
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1Request(input *OutputService13TestShapeOutputService13TestCaseOperation1Input) OutputService13TestCaseOperation1Request {
op := &aws.Operation{
- Name: opOutputService13TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/path",
+ Name: opOutputService13TestCaseOperation1,
+
+ HTTPPath: "/",
}
if input == nil {
@@ -2562,34 +2328,118 @@ func (r *OutputService13TestCaseOperation1Response) SDKResponseMetdata() *aws.Re
return r.response
}
-type OutputService13TestShapeOutputService13TestCaseOperation2Input struct {
+type OutputService13TestShapeTimeContainer struct {
_ struct{} `type:"structure"`
- FooEnum OutputService13TestShapeRESTJSONEnumType `type:"string" enum:"true"`
+ Bar *time.Time `locationName:"bar" type:"timestamp" timestampFormat:"unixTimestamp"`
- HeaderEnum OutputService13TestShapeRESTJSONEnumType `location:"header" locationName:"x-amz-enum" type:"string" enum:"true"`
-
- ListEnums []OutputService13TestShapeRESTJSONEnumType `type:"list"`
+ Foo *time.Time `locationName:"foo" type:"timestamp"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s OutputService13TestShapeOutputService13TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
-
- if len(s.FooEnum) > 0 {
- v := s.FooEnum
+func (s OutputService13TestShapeTimeContainer) MarshalFields(e protocol.FieldEncoder) error {
+ if s.Bar != nil {
+ v := *s.Bar
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "FooEnum", v, metadata)
+ e.SetValue(protocol.BodyTarget, "bar",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: false}, metadata)
}
- if s.ListEnums != nil {
- v := s.ListEnums
+ if s.Foo != nil {
+ v := *s.Foo
metadata := protocol.Metadata{}
- ls0 := e.List(protocol.BodyTarget, "ListEnums", metadata)
- ls0.Start()
- for _, v1 := range v {
- ls0.ListAddValue(protocol.StringValue(v1))
- }
+ e.SetValue(protocol.BodyTarget, "foo",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
+ }
+ return nil
+}
+
+// OutputService14ProtocolTest provides the API operation methods for making requests to
+// OutputService14ProtocolTest. See this package's package overview docs
+// for details on the service.
+//
+// The client's methods are safe to use concurrently. It is not safe to
+// modify mutate any of the struct's properties though.
+type OutputService14ProtocolTest struct {
+ *aws.Client
+}
+
+// New creates a new instance of the client from the provided Config.
+//
+// Example:
+// // Create a client from just a config.
+// svc := outputservice14protocoltest.New(myConfig)
+func NewOutputService14ProtocolTest(config aws.Config) *OutputService14ProtocolTest {
+ svc := &OutputService14ProtocolTest{
+ Client: aws.NewClient(
+ config,
+ aws.Metadata{
+ ServiceName: "OutputService14ProtocolTest",
+ ServiceID: "OutputService14ProtocolTest",
+ EndpointsID: "outputservice14protocoltest",
+ SigningName: "outputservice14protocoltest",
+ SigningRegion: config.Region,
+ APIVersion: "",
+ },
+ ),
+ }
+
+ // Handlers
+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
+ svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
+ svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
+ svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
+ svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
+
+ return svc
+}
+
+// newRequest creates a new request for a client operation and runs any
+// custom request initialization.
+func (c *OutputService14ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
+ req := c.NewRequest(op, params, data)
+
+ return req
+}
+
+type OutputService14TestShapeOutputService14TestCaseOperation1Input struct {
+ _ struct{} `type:"structure"`
+}
+
+// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
+func (s OutputService14TestShapeOutputService14TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+
+ return nil
+}
+
+type OutputService14TestShapeOutputService14TestCaseOperation1Output struct {
+ _ struct{} `type:"structure"`
+
+ FooEnum OutputService14TestShapeRESTJSONEnumType `type:"string" enum:"true"`
+
+ HeaderEnum OutputService14TestShapeRESTJSONEnumType `location:"header" locationName:"x-amz-enum" type:"string" enum:"true"`
+
+ ListEnums []OutputService14TestShapeRESTJSONEnumType `type:"list"`
+}
+
+// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
+func (s OutputService14TestShapeOutputService14TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
+ if len(s.FooEnum) > 0 {
+ v := s.FooEnum
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "FooEnum", v, metadata)
+ }
+ if s.ListEnums != nil {
+ v := s.ListEnums
+
+ metadata := protocol.Metadata{}
+ ls0 := e.List(protocol.BodyTarget, "ListEnums", metadata)
+ ls0.Start()
+ for _, v1 := range v {
+ ls0.ListAddValue(protocol.StringValue(v1))
+ }
ls0.End()
}
@@ -2602,107 +2452,211 @@ func (s OutputService13TestShapeOutputService13TestCaseOperation2Input) MarshalF
return nil
}
-type OutputService13TestShapeOutputService13TestCaseOperation2Output struct {
+const opOutputService14TestCaseOperation1 = "OperationName"
+
+// OutputService14TestCaseOperation1Request returns a request value for making API operation for
+// .
+//
+// // Example sending a request using OutputService14TestCaseOperation1Request.
+// req := client.OutputService14TestCaseOperation1Request(params)
+// resp, err := req.Send(context.TODO())
+// if err == nil {
+// fmt.Println(resp)
+// }
+func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1Request(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) OutputService14TestCaseOperation1Request {
+ op := &aws.Operation{
+ Name: opOutputService14TestCaseOperation1,
+ HTTPMethod: "POST",
+ HTTPPath: "/path",
+ }
+
+ if input == nil {
+ input = &OutputService14TestShapeOutputService14TestCaseOperation1Input{}
+ }
+
+ req := c.newRequest(op, input, &OutputService14TestShapeOutputService14TestCaseOperation1Output{})
+ return OutputService14TestCaseOperation1Request{Request: req, Input: input, Copy: c.OutputService14TestCaseOperation1Request}
+}
+
+// OutputService14TestCaseOperation1Request is the request type for the
+// OutputService14TestCaseOperation1 API operation.
+type OutputService14TestCaseOperation1Request struct {
+ *aws.Request
+ Input *OutputService14TestShapeOutputService14TestCaseOperation1Input
+ Copy func(*OutputService14TestShapeOutputService14TestCaseOperation1Input) OutputService14TestCaseOperation1Request
+}
+
+// Send marshals and sends the OutputService14TestCaseOperation1 API request.
+func (r OutputService14TestCaseOperation1Request) Send(ctx context.Context) (*OutputService14TestCaseOperation1Response, error) {
+ r.Request.SetContext(ctx)
+ err := r.Request.Send()
+ if err != nil {
+ return nil, err
+ }
+
+ resp := &OutputService14TestCaseOperation1Response{
+ OutputService14TestShapeOutputService14TestCaseOperation1Output: r.Request.Data.(*OutputService14TestShapeOutputService14TestCaseOperation1Output),
+ response: &aws.Response{Request: r.Request},
+ }
+
+ return resp, nil
+}
+
+// OutputService14TestCaseOperation1Response is the response type for the
+// OutputService14TestCaseOperation1 API operation.
+type OutputService14TestCaseOperation1Response struct {
+ *OutputService14TestShapeOutputService14TestCaseOperation1Output
+
+ response *aws.Response
+}
+
+// SDKResponseMetdata returns the response metadata for the
+// OutputService14TestCaseOperation1 request.
+func (r *OutputService14TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
+ return r.response
+}
+
+type OutputService14TestShapeOutputService14TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
+
+ FooEnum OutputService14TestShapeRESTJSONEnumType `type:"string" enum:"true"`
+
+ HeaderEnum OutputService14TestShapeRESTJSONEnumType `location:"header" locationName:"x-amz-enum" type:"string" enum:"true"`
+
+ ListEnums []OutputService14TestShapeRESTJSONEnumType `type:"list"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s OutputService13TestShapeOutputService13TestCaseOperation2Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s OutputService14TestShapeOutputService14TestCaseOperation2Input) MarshalFields(e protocol.FieldEncoder) error {
+
+ if len(s.FooEnum) > 0 {
+ v := s.FooEnum
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.BodyTarget, "FooEnum", v, metadata)
+ }
+ if s.ListEnums != nil {
+ v := s.ListEnums
+
+ metadata := protocol.Metadata{}
+ ls0 := e.List(protocol.BodyTarget, "ListEnums", metadata)
+ ls0.Start()
+ for _, v1 := range v {
+ ls0.ListAddValue(protocol.StringValue(v1))
+ }
+ ls0.End()
+
+ }
+ if len(s.HeaderEnum) > 0 {
+ v := s.HeaderEnum
+
+ metadata := protocol.Metadata{}
+ e.SetValue(protocol.HeaderTarget, "x-amz-enum", v, metadata)
+ }
return nil
}
-const opOutputService13TestCaseOperation2 = "OperationName"
+type OutputService14TestShapeOutputService14TestCaseOperation2Output struct {
+ _ struct{} `type:"structure"`
+}
-// OutputService13TestCaseOperation2Request returns a request value for making API operation for
+// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
+func (s OutputService14TestShapeOutputService14TestCaseOperation2Output) MarshalFields(e protocol.FieldEncoder) error {
+ return nil
+}
+
+const opOutputService14TestCaseOperation2 = "OperationName"
+
+// OutputService14TestCaseOperation2Request returns a request value for making API operation for
// .
//
-// // Example sending a request using OutputService13TestCaseOperation2Request.
-// req := client.OutputService13TestCaseOperation2Request(params)
+// // Example sending a request using OutputService14TestCaseOperation2Request.
+// req := client.OutputService14TestCaseOperation2Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation2Request(input *OutputService13TestShapeOutputService13TestCaseOperation2Input) OutputService13TestCaseOperation2Request {
+func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation2Request(input *OutputService14TestShapeOutputService14TestCaseOperation2Input) OutputService14TestCaseOperation2Request {
op := &aws.Operation{
- Name: opOutputService13TestCaseOperation2,
+ Name: opOutputService14TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
- input = &OutputService13TestShapeOutputService13TestCaseOperation2Input{}
+ input = &OutputService14TestShapeOutputService14TestCaseOperation2Input{}
}
- req := c.newRequest(op, input, &OutputService13TestShapeOutputService13TestCaseOperation2Output{})
+ req := c.newRequest(op, input, &OutputService14TestShapeOutputService14TestCaseOperation2Output{})
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- return OutputService13TestCaseOperation2Request{Request: req, Input: input, Copy: c.OutputService13TestCaseOperation2Request}
+ return OutputService14TestCaseOperation2Request{Request: req, Input: input, Copy: c.OutputService14TestCaseOperation2Request}
}
-// OutputService13TestCaseOperation2Request is the request type for the
-// OutputService13TestCaseOperation2 API operation.
-type OutputService13TestCaseOperation2Request struct {
+// OutputService14TestCaseOperation2Request is the request type for the
+// OutputService14TestCaseOperation2 API operation.
+type OutputService14TestCaseOperation2Request struct {
*aws.Request
- Input *OutputService13TestShapeOutputService13TestCaseOperation2Input
- Copy func(*OutputService13TestShapeOutputService13TestCaseOperation2Input) OutputService13TestCaseOperation2Request
+ Input *OutputService14TestShapeOutputService14TestCaseOperation2Input
+ Copy func(*OutputService14TestShapeOutputService14TestCaseOperation2Input) OutputService14TestCaseOperation2Request
}
-// Send marshals and sends the OutputService13TestCaseOperation2 API request.
-func (r OutputService13TestCaseOperation2Request) Send(ctx context.Context) (*OutputService13TestCaseOperation2Response, error) {
+// Send marshals and sends the OutputService14TestCaseOperation2 API request.
+func (r OutputService14TestCaseOperation2Request) Send(ctx context.Context) (*OutputService14TestCaseOperation2Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &OutputService13TestCaseOperation2Response{
- OutputService13TestShapeOutputService13TestCaseOperation2Output: r.Request.Data.(*OutputService13TestShapeOutputService13TestCaseOperation2Output),
+ resp := &OutputService14TestCaseOperation2Response{
+ OutputService14TestShapeOutputService14TestCaseOperation2Output: r.Request.Data.(*OutputService14TestShapeOutputService14TestCaseOperation2Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// OutputService13TestCaseOperation2Response is the response type for the
-// OutputService13TestCaseOperation2 API operation.
-type OutputService13TestCaseOperation2Response struct {
- *OutputService13TestShapeOutputService13TestCaseOperation2Output
+// OutputService14TestCaseOperation2Response is the response type for the
+// OutputService14TestCaseOperation2 API operation.
+type OutputService14TestCaseOperation2Response struct {
+ *OutputService14TestShapeOutputService14TestCaseOperation2Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// OutputService13TestCaseOperation2 request.
-func (r *OutputService13TestCaseOperation2Response) SDKResponseMetdata() *aws.Response {
+// OutputService14TestCaseOperation2 request.
+func (r *OutputService14TestCaseOperation2Response) SDKResponseMetdata() *aws.Response {
return r.response
}
-type OutputService13TestShapeRESTJSONEnumType string
+type OutputService14TestShapeRESTJSONEnumType string
-// Enum values for OutputService13TestShapeRESTJSONEnumType
+// Enum values for OutputService14TestShapeRESTJSONEnumType
const (
- RESTJSONEnumTypeFoo OutputService13TestShapeRESTJSONEnumType = "foo"
- RESTJSONEnumTypeBar OutputService13TestShapeRESTJSONEnumType = "bar"
- RESTJSONEnumType0 OutputService13TestShapeRESTJSONEnumType = "0"
- RESTJSONEnumType1 OutputService13TestShapeRESTJSONEnumType = "1"
+ RESTJSONEnumTypeFoo OutputService14TestShapeRESTJSONEnumType = "foo"
+ RESTJSONEnumTypeBar OutputService14TestShapeRESTJSONEnumType = "bar"
+ RESTJSONEnumType0 OutputService14TestShapeRESTJSONEnumType = "0"
+ RESTJSONEnumType1 OutputService14TestShapeRESTJSONEnumType = "1"
)
-func (enum OutputService13TestShapeRESTJSONEnumType) MarshalValue() (string, error) {
+func (enum OutputService14TestShapeRESTJSONEnumType) MarshalValue() (string, error) {
return string(enum), nil
}
-func (enum OutputService13TestShapeRESTJSONEnumType) MarshalValueBuf(b []byte) ([]byte, error) {
+func (enum OutputService14TestShapeRESTJSONEnumType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
-// OutputService14ProtocolTest provides the API operation methods for making requests to
-// OutputService14ProtocolTest. See this package's package overview docs
+// OutputService15ProtocolTest provides the API operation methods for making requests to
+// OutputService15ProtocolTest. See this package's package overview docs
// for details on the service.
//
// The client's methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
-type OutputService14ProtocolTest struct {
+type OutputService15ProtocolTest struct {
*aws.Client
}
@@ -2710,16 +2664,16 @@ type OutputService14ProtocolTest struct {
//
// Example:
// // Create a client from just a config.
-// svc := outputservice14protocoltest.New(myConfig)
-func NewOutputService14ProtocolTest(config aws.Config) *OutputService14ProtocolTest {
- svc := &OutputService14ProtocolTest{
+// svc := outputservice15protocoltest.New(myConfig)
+func NewOutputService15ProtocolTest(config aws.Config) *OutputService15ProtocolTest {
+ svc := &OutputService15ProtocolTest{
Client: aws.NewClient(
config,
aws.Metadata{
- ServiceName: "OutputService14ProtocolTest",
- ServiceID: "OutputService14ProtocolTest",
- EndpointsID: "outputservice14protocoltest",
- SigningName: "outputservice14protocoltest",
+ ServiceName: "OutputService15ProtocolTest",
+ ServiceID: "OutputService15ProtocolTest",
+ EndpointsID: "outputservice15protocoltest",
+ SigningName: "outputservice15protocoltest",
SigningRegion: config.Region,
APIVersion: "",
},
@@ -2738,30 +2692,30 @@ func NewOutputService14ProtocolTest(config aws.Config) *OutputService14ProtocolT
// newRequest creates a new request for a client operation and runs any
// custom request initialization.
-func (c *OutputService14ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
+func (c *OutputService15ProtocolTest) newRequest(op *aws.Operation, params, data interface{}) *aws.Request {
req := c.NewRequest(op, params, data)
return req
}
-type OutputService14TestShapeOutputService14TestCaseOperation1Input struct {
+type OutputService15TestShapeOutputService15TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s OutputService14TestShapeOutputService14TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
+func (s OutputService15TestShapeOutputService15TestCaseOperation1Input) MarshalFields(e protocol.FieldEncoder) error {
return nil
}
-type OutputService14TestShapeOutputService14TestCaseOperation1Output struct {
+type OutputService15TestShapeOutputService15TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
- ListItems []OutputService14TestShapeItemShape `locationName:"ItemsList" locationNameList:"Item" type:"list"`
+ ListItems []OutputService15TestShapeItemShape `locationName:"ItemsList" locationNameList:"Item" type:"list"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s OutputService14TestShapeOutputService14TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
+func (s OutputService15TestShapeOutputService15TestCaseOperation1Output) MarshalFields(e protocol.FieldEncoder) error {
if s.ListItems != nil {
v := s.ListItems
@@ -2777,81 +2731,81 @@ func (s OutputService14TestShapeOutputService14TestCaseOperation1Output) Marshal
return nil
}
-const opOutputService14TestCaseOperation1 = "OperationName"
+const opOutputService15TestCaseOperation1 = "OperationName"
-// OutputService14TestCaseOperation1Request returns a request value for making API operation for
+// OutputService15TestCaseOperation1Request returns a request value for making API operation for
// .
//
-// // Example sending a request using OutputService14TestCaseOperation1Request.
-// req := client.OutputService14TestCaseOperation1Request(params)
+// // Example sending a request using OutputService15TestCaseOperation1Request.
+// req := client.OutputService15TestCaseOperation1Request(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
-func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1Request(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) OutputService14TestCaseOperation1Request {
+func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1Request(input *OutputService15TestShapeOutputService15TestCaseOperation1Input) OutputService15TestCaseOperation1Request {
op := &aws.Operation{
- Name: opOutputService14TestCaseOperation1,
+ Name: opOutputService15TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/path",
}
if input == nil {
- input = &OutputService14TestShapeOutputService14TestCaseOperation1Input{}
+ input = &OutputService15TestShapeOutputService15TestCaseOperation1Input{}
}
- req := c.newRequest(op, input, &OutputService14TestShapeOutputService14TestCaseOperation1Output{})
- return OutputService14TestCaseOperation1Request{Request: req, Input: input, Copy: c.OutputService14TestCaseOperation1Request}
+ req := c.newRequest(op, input, &OutputService15TestShapeOutputService15TestCaseOperation1Output{})
+ return OutputService15TestCaseOperation1Request{Request: req, Input: input, Copy: c.OutputService15TestCaseOperation1Request}
}
-// OutputService14TestCaseOperation1Request is the request type for the
-// OutputService14TestCaseOperation1 API operation.
-type OutputService14TestCaseOperation1Request struct {
+// OutputService15TestCaseOperation1Request is the request type for the
+// OutputService15TestCaseOperation1 API operation.
+type OutputService15TestCaseOperation1Request struct {
*aws.Request
- Input *OutputService14TestShapeOutputService14TestCaseOperation1Input
- Copy func(*OutputService14TestShapeOutputService14TestCaseOperation1Input) OutputService14TestCaseOperation1Request
+ Input *OutputService15TestShapeOutputService15TestCaseOperation1Input
+ Copy func(*OutputService15TestShapeOutputService15TestCaseOperation1Input) OutputService15TestCaseOperation1Request
}
-// Send marshals and sends the OutputService14TestCaseOperation1 API request.
-func (r OutputService14TestCaseOperation1Request) Send(ctx context.Context) (*OutputService14TestCaseOperation1Response, error) {
+// Send marshals and sends the OutputService15TestCaseOperation1 API request.
+func (r OutputService15TestCaseOperation1Request) Send(ctx context.Context) (*OutputService15TestCaseOperation1Response, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
- resp := &OutputService14TestCaseOperation1Response{
- OutputService14TestShapeOutputService14TestCaseOperation1Output: r.Request.Data.(*OutputService14TestShapeOutputService14TestCaseOperation1Output),
+ resp := &OutputService15TestCaseOperation1Response{
+ OutputService15TestShapeOutputService15TestCaseOperation1Output: r.Request.Data.(*OutputService15TestShapeOutputService15TestCaseOperation1Output),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
-// OutputService14TestCaseOperation1Response is the response type for the
-// OutputService14TestCaseOperation1 API operation.
-type OutputService14TestCaseOperation1Response struct {
- *OutputService14TestShapeOutputService14TestCaseOperation1Output
+// OutputService15TestCaseOperation1Response is the response type for the
+// OutputService15TestCaseOperation1 API operation.
+type OutputService15TestCaseOperation1Response struct {
+ *OutputService15TestShapeOutputService15TestCaseOperation1Output
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
-// OutputService14TestCaseOperation1 request.
-func (r *OutputService14TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
+// OutputService15TestCaseOperation1 request.
+func (r *OutputService15TestCaseOperation1Response) SDKResponseMetdata() *aws.Response {
return r.response
}
-type OutputService14TestShapeItemDetailShape struct {
+type OutputService15TestShapeItemDetailShape struct {
_ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
ID *string `type:"string"`
// Type is a required field
- Type OutputService14TestShapeItemType `locationName:"xsi:type" type:"string" xmlAttribute:"true" required:"true" enum:"true"`
+ Type OutputService15TestShapeItemType `locationName:"xsi:type" type:"string" xmlAttribute:"true" required:"true" enum:"true"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s OutputService14TestShapeItemDetailShape) MarshalFields(e protocol.FieldEncoder) error {
+func (s OutputService15TestShapeItemDetailShape) MarshalFields(e protocol.FieldEncoder) error {
if s.ID != nil {
v := *s.ID
@@ -2862,14 +2816,14 @@ func (s OutputService14TestShapeItemDetailShape) MarshalFields(e protocol.FieldE
return nil
}
-type OutputService14TestShapeItemShape struct {
+type OutputService15TestShapeItemShape struct {
_ struct{} `type:"structure"`
- ItemDetail *OutputService14TestShapeItemDetailShape `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
+ ItemDetail *OutputService15TestShapeItemDetailShape `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
-func (s OutputService14TestShapeItemShape) MarshalFields(e protocol.FieldEncoder) error {
+func (s OutputService15TestShapeItemShape) MarshalFields(e protocol.FieldEncoder) error {
if s.ItemDetail != nil {
v := s.ItemDetail
attrs := make([]protocol.Attribute, 0, 1)
@@ -2885,20 +2839,20 @@ func (s OutputService14TestShapeItemShape) MarshalFields(e protocol.FieldEncoder
return nil
}
-type OutputService14TestShapeItemType string
+type OutputService15TestShapeItemType string
-// Enum values for OutputService14TestShapeItemType
+// Enum values for OutputService15TestShapeItemType
const (
- ItemTypeType1 OutputService14TestShapeItemType = "Type1"
- ItemTypeType2 OutputService14TestShapeItemType = "Type2"
- ItemTypeType3 OutputService14TestShapeItemType = "Type3"
+ ItemTypeType1 OutputService15TestShapeItemType = "Type1"
+ ItemTypeType2 OutputService15TestShapeItemType = "Type2"
+ ItemTypeType3 OutputService15TestShapeItemType = "Type3"
)
-func (enum OutputService14TestShapeItemType) MarshalValue() (string, error) {
+func (enum OutputService15TestShapeItemType) MarshalValue() (string, error) {
return string(enum), nil
}
-func (enum OutputService14TestShapeItemType) MarshalValueBuf(b []byte) ([]byte, error) {
+func (enum OutputService15TestShapeItemType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
@@ -3031,45 +2985,6 @@ func TestOutputService1ProtocolTestScalarMembersCase2(t *testing.T) {
}
-func TestOutputService1ProtocolTestScalarMembersCase3(t *testing.T) {
- cfg := unit.Config()
- cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
-
- svc := NewOutputService1ProtocolTest(cfg)
-
- buf := bytes.NewReader([]byte("0.10.2dmFsdWU=dmFsdWUy2015-01-25T08:00:00Z2015-01-25T08:00:01Z"))
- req := svc.OutputService1TestCaseOperation3Request(nil)
- req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
-
- // set headers
-
- // unmarshal response
- restxml.UnmarshalMeta(req.Request)
- restxml.Unmarshal(req.Request)
- if req.Error != nil {
- t.Errorf("expect not error, got %v", req.Error)
- }
-
- out := req.Data.(*OutputService1TestShapeOutputService1TestCaseOperation3Output)
- // assert response
- if out == nil {
- t.Errorf("expect not to be nil")
- }
- if e, a := "value", string(out.Blobs[0]); e != a {
- t.Errorf("expect %v, got %v", e, a)
- }
- if e, a := "value2", string(out.Blobs[1]); e != a {
- t.Errorf("expect %v, got %v", e, a)
- }
- if e, a := time.Unix(1.4221728e+09, 0).UTC().String(), out.Timestamps[0].String(); e != a {
- t.Errorf("expect %v, got %v", e, a)
- }
- if e, a := time.Unix(1.422172801e+09, 0).UTC().String(), out.Timestamps[1].String(); e != a {
- t.Errorf("expect %v, got %v", e, a)
- }
-
-}
-
func TestOutputService2ProtocolTestBlobCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
@@ -3455,18 +3370,20 @@ func TestOutputService12ProtocolTestEmptyStringCase1(t *testing.T) {
}
-func TestOutputService13ProtocolTestEnumCase1(t *testing.T) {
+func TestOutputService13ProtocolTestTimestampMembersCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
svc := NewOutputService13ProtocolTest(cfg)
- buf := bytes.NewReader([]byte("foo01"))
+ buf := bytes.NewReader([]byte("2014-04-29T18:30:38Z13987962382014-04-29T18:30:38ZTue, 29 Apr 2014 18:30:38 GMT1398796238requestid"))
req := svc.OutputService13TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
- req.HTTPResponse.Header.Set("x-amz-enum", "baz")
+ req.HTTPResponse.Header.Set("x-amz-timearg", "Tue, 29 Apr 2014 18:30:38 GMT")
+ req.HTTPResponse.Header.Set("x-amz-timecustom", "1398796238")
+ req.HTTPResponse.Header.Set("x-amz-timeformat", "1398796238")
// unmarshal response
restxml.UnmarshalMeta(req.Request)
@@ -3480,32 +3397,45 @@ func TestOutputService13ProtocolTestEnumCase1(t *testing.T) {
if out == nil {
t.Errorf("expect not to be nil")
}
- if e, a := OutputService13TestShapeRESTJSONEnumType("foo"), out.FooEnum; e != a {
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Bar.String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := OutputService13TestShapeRESTJSONEnumType("baz"), out.HeaderEnum; e != a {
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := OutputService13TestShapeRESTJSONEnumType("0"), out.ListEnums[0]; e != a {
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArg.String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := OutputService13TestShapeRESTJSONEnumType("1"), out.ListEnums[1]; e != a {
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArgInHeader.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustom.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustomInHeader.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormat.String(); e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormatInHeader.String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
-func TestOutputService13ProtocolTestEnumCase2(t *testing.T) {
+func TestOutputService14ProtocolTestEnumCase1(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
- svc := NewOutputService13ProtocolTest(cfg)
+ svc := NewOutputService14ProtocolTest(cfg)
- buf := bytes.NewReader([]byte(""))
- req := svc.OutputService13TestCaseOperation2Request(nil)
+ buf := bytes.NewReader([]byte("foo01"))
+ req := svc.OutputService14TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
+ req.HTTPResponse.Header.Set("x-amz-enum", "baz")
// unmarshal response
restxml.UnmarshalMeta(req.Request)
@@ -3514,22 +3444,61 @@ func TestOutputService13ProtocolTestEnumCase2(t *testing.T) {
t.Errorf("expect not error, got %v", req.Error)
}
- out := req.Data.(*OutputService13TestShapeOutputService13TestCaseOperation2Output)
+ out := req.Data.(*OutputService14TestShapeOutputService14TestCaseOperation1Output)
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
+ if e, a := OutputService14TestShapeRESTJSONEnumType("foo"), out.FooEnum; e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := OutputService14TestShapeRESTJSONEnumType("baz"), out.HeaderEnum; e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := OutputService14TestShapeRESTJSONEnumType("0"), out.ListEnums[0]; e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
+ if e, a := OutputService14TestShapeRESTJSONEnumType("1"), out.ListEnums[1]; e != a {
+ t.Errorf("expect %v, got %v", e, a)
+ }
}
-func TestOutputService14ProtocolTestXMLAttributesCase1(t *testing.T) {
+func TestOutputService14ProtocolTestEnumCase2(t *testing.T) {
cfg := unit.Config()
cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
svc := NewOutputService14ProtocolTest(cfg)
+ buf := bytes.NewReader([]byte(""))
+ req := svc.OutputService14TestCaseOperation2Request(nil)
+ req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
+
+ // set headers
+
+ // unmarshal response
+ restxml.UnmarshalMeta(req.Request)
+ restxml.Unmarshal(req.Request)
+ if req.Error != nil {
+ t.Errorf("expect not error, got %v", req.Error)
+ }
+
+ out := req.Data.(*OutputService14TestShapeOutputService14TestCaseOperation2Output)
+ // assert response
+ if out == nil {
+ t.Errorf("expect not to be nil")
+ }
+
+}
+
+func TestOutputService15ProtocolTestXMLAttributesCase1(t *testing.T) {
+ cfg := unit.Config()
+ cfg.EndpointResolver = aws.ResolveWithEndpointURL("https://test")
+
+ svc := NewOutputService15ProtocolTest(cfg)
+
buf := bytes.NewReader([]byte("- id1
- id2
- id3
"))
- req := svc.OutputService14TestCaseOperation1Request(nil)
+ req := svc.OutputService15TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
@@ -3541,7 +3510,7 @@ func TestOutputService14ProtocolTestXMLAttributesCase1(t *testing.T) {
t.Errorf("expect not error, got %v", req.Error)
}
- out := req.Data.(*OutputService14TestShapeOutputService14TestCaseOperation1Output)
+ out := req.Data.(*OutputService15TestShapeOutputService15TestCaseOperation1Output)
// assert response
if out == nil {
t.Errorf("expect not to be nil")
@@ -3549,19 +3518,19 @@ func TestOutputService14ProtocolTestXMLAttributesCase1(t *testing.T) {
if e, a := string("id1"), *out.ListItems[0].ItemDetail.ID; e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := OutputService14TestShapeItemType("Type1"), out.ListItems[0].ItemDetail.Type; e != a {
+ if e, a := OutputService15TestShapeItemType("Type1"), out.ListItems[0].ItemDetail.Type; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := string("id2"), *out.ListItems[1].ItemDetail.ID; e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := OutputService14TestShapeItemType("Type2"), out.ListItems[1].ItemDetail.Type; e != a {
+ if e, a := OutputService15TestShapeItemType("Type2"), out.ListItems[1].ItemDetail.Type; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := string("id3"), *out.ListItems[2].ItemDetail.ID; e != a {
t.Errorf("expect %v, got %v", e, a)
}
- if e, a := OutputService14TestShapeItemType("Type3"), out.ListItems[2].ItemDetail.Type; e != a {
+ if e, a := OutputService15TestShapeItemType("Type3"), out.ListItems[2].ItemDetail.Type; e != a {
t.Errorf("expect %v, got %v", e, a)
}
diff --git a/private/protocol/timestamp.go b/private/protocol/timestamp.go
new file mode 100644
index 00000000000..5f6177548a1
--- /dev/null
+++ b/private/protocol/timestamp.go
@@ -0,0 +1,75 @@
+package protocol
+
+import (
+ "fmt"
+ "strconv"
+ "time"
+)
+
+// Names of time formats supported by the SDK
+const (
+ RFC822TimeFormatName = "rfc822"
+ ISO8601TimeFormatName = "iso8601"
+ UnixTimeFormatName = "unixTimestamp"
+)
+
+// Time formats supported by the SDK
+const (
+ // RFC 7231#section-7.1.1.1 timetamp format. e.g Tue, 29 Apr 2014 18:30:38 GMT
+ RFC822TimeFormat = "Mon, 2 Jan 2006 15:04:05 GMT"
+
+ // RFC3339 a subset of the ISO8601 timestamp format. e.g 2014-04-29T18:30:38Z
+ ISO8601TimeFormat = "2006-01-02T15:04:05Z"
+)
+
+// IsKnownTimestampFormat returns if the timestamp format name
+// is know to the SDK's protocols.
+func IsKnownTimestampFormat(name string) bool {
+ switch name {
+ case RFC822TimeFormatName:
+ fallthrough
+ case ISO8601TimeFormatName:
+ fallthrough
+ case UnixTimeFormatName:
+ return true
+ default:
+ return false
+ }
+}
+
+// FormatTime returns a string value of the time.
+func FormatTime(name string, t time.Time) (string,error) {
+ t = t.UTC()
+
+ switch name {
+ case RFC822TimeFormatName:
+ return t.Format(RFC822TimeFormat), nil
+ case ISO8601TimeFormatName:
+ return t.Format(ISO8601TimeFormat), nil
+ case UnixTimeFormatName:
+ return strconv.FormatInt(t.Unix(), 10), nil
+ default:
+ return "",fmt.Errorf("unknown timestamp format name, " + name)
+ }
+}
+
+// ParseTime attempts to parse the time given the format. Returns
+// the time if it was able to be parsed, and fails otherwise.
+func ParseTime(formatName, value string) (time.Time, error) {
+ switch formatName {
+ case RFC822TimeFormatName:
+ return time.Parse(RFC822TimeFormat, value)
+ case ISO8601TimeFormatName:
+ return time.Parse(ISO8601TimeFormat, value)
+ case UnixTimeFormatName:
+ v, err := strconv.ParseFloat(value, 64)
+ if err != nil {
+ return time.Time{}, err
+ }
+ t := time.Unix(int64(v), 0)
+ return t.UTC(),nil
+
+ default:
+ panic("unknown timestamp format name, " + formatName)
+ }
+}
diff --git a/private/protocol/xml/xmlutil/build.go b/private/protocol/xml/xmlutil/build.go
index ab4f1e4e82f..7f768ead3a5 100644
--- a/private/protocol/xml/xmlutil/build.go
+++ b/private/protocol/xml/xmlutil/build.go
@@ -278,8 +278,12 @@ func (b *xmlBuilder) buildScalar(value reflect.Value, current *XMLNode, tag refl
case float32:
str = strconv.FormatFloat(float64(converted), 'f', -1, 32)
case time.Time:
- const ISO8601UTC = "2006-01-02T15:04:05Z"
- str = converted.UTC().Format(ISO8601UTC)
+ format := tag.Get("timestampFormat")
+ if len(format) == 0 {
+ format = protocol.ISO8601TimeFormatName
+ }
+
+ str, _ = protocol.FormatTime(format, converted)
default:
if value.Kind() != reflect.String {
return fmt.Errorf("unsupported value for param %s: %v (%s)",
diff --git a/private/protocol/xml/xmlutil/unmarshal.go b/private/protocol/xml/xmlutil/unmarshal.go
index 2b95c35e668..cf7d4c7aac9 100644
--- a/private/protocol/xml/xmlutil/unmarshal.go
+++ b/private/protocol/xml/xmlutil/unmarshal.go
@@ -9,6 +9,8 @@ import (
"strconv"
"strings"
"time"
+
+ "github.com/aws/aws-sdk-go-v2/private/protocol"
)
// UnmarshalXML deserializes an xml.Decoder into the container v. V
@@ -219,7 +221,7 @@ func parseMapEntry(r reflect.Value, node *XMLNode, tag reflect.StructTag) error
return nil
}
-// parseScaller deserializes an XMLNode value into a concrete type based on the
+// parseScalar deserializes an XMLNode value into a concrete type based on the
// interface type of r.
//
// Error is returned if the deserialization fails due to invalid type conversion,
@@ -265,8 +267,12 @@ func parseScalar(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {
}
r.Set(reflect.ValueOf(v))
case time.Time:
- const ISO8601UTC = "2006-01-02T15:04:05Z"
- t, err := time.Parse(ISO8601UTC, node.Text)
+ format := tag.Get("timestampFormat")
+ if len(format) == 0 {
+ format = protocol.ISO8601TimeFormatName
+ }
+
+ t, err := protocol.ParseTime(format, node.Text)
if err != nil {
return err
}
diff --git a/service/acm/api_types.go b/service/acm/api_types.go
index ad78ff1b8e6..89877186e0a 100644
--- a/service/acm/api_types.go
+++ b/service/acm/api_types.go
@@ -31,7 +31,7 @@ type CertificateDetail struct {
// The time at which the certificate was requested. This value exists only when
// the certificate type is AMAZON_ISSUED.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The fully qualified domain name for the certificate, such as www.example.com
// or example.com.
@@ -55,7 +55,7 @@ type CertificateDetail struct {
// The date and time at which the certificate was imported. This value exists
// only when the certificate type is IMPORTED.
- ImportedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ImportedAt *time.Time `type:"timestamp"`
// A list of ARNs for the AWS resources that are using the certificate. A certificate
// can be used by multiple AWS resources.
@@ -63,7 +63,7 @@ type CertificateDetail struct {
// The time at which the certificate was issued. This value exists only when
// the certificate type is AMAZON_ISSUED.
- IssuedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ IssuedAt *time.Time `type:"timestamp"`
// The name of the certificate authority that issued and signed the certificate.
Issuer *string `type:"string"`
@@ -78,10 +78,10 @@ type CertificateDetail struct {
KeyUsages []KeyUsage `type:"list"`
// The time after which the certificate is not valid.
- NotAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ NotAfter *time.Time `type:"timestamp"`
// The time before which the certificate is not valid.
- NotBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ NotBefore *time.Time `type:"timestamp"`
// Value that specifies whether to add the certificate to a transparency log.
// Certificate transparency makes it possible to detect SSL certificates that
@@ -106,7 +106,7 @@ type CertificateDetail struct {
// The time at which the certificate was revoked. This value exists only when
// the certificate status is REVOKED.
- RevokedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RevokedAt *time.Time `type:"timestamp"`
// The serial number of the certificate.
Serial *string `type:"string"`
@@ -391,7 +391,7 @@ type RenewalSummary struct {
// The time at which the renewal summary was last updated.
//
// UpdatedAt is a required field
- UpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdatedAt *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/acmpca/api_op_DescribeCertificateAuthorityAuditReport.go b/service/acmpca/api_op_DescribeCertificateAuthorityAuditReport.go
index 01e2358305c..738d5882bc8 100644
--- a/service/acmpca/api_op_DescribeCertificateAuthorityAuditReport.go
+++ b/service/acmpca/api_op_DescribeCertificateAuthorityAuditReport.go
@@ -65,7 +65,7 @@ type DescribeCertificateAuthorityAuditReportOutput struct {
AuditReportStatus AuditReportStatus `type:"string" enum:"true"`
// The date and time at which the report was created.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// Name of the S3 bucket that contains the report.
S3BucketName *string `type:"string"`
diff --git a/service/acmpca/api_types.go b/service/acmpca/api_types.go
index 888ce2cfb05..feae10616d2 100644
--- a/service/acmpca/api_types.go
+++ b/service/acmpca/api_types.go
@@ -104,24 +104,24 @@ type CertificateAuthority struct {
CertificateAuthorityConfiguration *CertificateAuthorityConfiguration `type:"structure"`
// Date and time at which your private CA was created.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// Reason the request to create your private CA failed.
FailureReason FailureReason `type:"string" enum:"true"`
// Date and time at which your private CA was last updated.
- LastStateChangeAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastStateChangeAt *time.Time `type:"timestamp"`
// Date and time after which your private CA certificate is not valid.
- NotAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ NotAfter *time.Time `type:"timestamp"`
// Date and time before which your private CA certificate is not valid.
- NotBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ NotBefore *time.Time `type:"timestamp"`
// The period during which a deleted CA can be restored. For more information,
// see the PermanentDeletionTimeInDays parameter of the DeleteCertificateAuthorityRequest
// operation.
- RestorableUntil *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RestorableUntil *time.Time `type:"timestamp"`
// Information about the certificate revocation list (CRL) created and maintained
// by your private CA.
@@ -317,7 +317,7 @@ type Permission struct {
CertificateAuthorityArn *string `min:"5" type:"string"`
// The time at which the permission was created.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The name of the policy that is associated with the permission.
Policy *string `type:"string"`
diff --git a/service/alexaforbusiness/api_types.go b/service/alexaforbusiness/api_types.go
index d2f985c87ab..b78d54b978a 100644
--- a/service/alexaforbusiness/api_types.go
+++ b/service/alexaforbusiness/api_types.go
@@ -108,7 +108,7 @@ type BusinessReport struct {
_ struct{} `type:"structure"`
// The time of report delivery.
- DeliveryTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeliveryTime *time.Time `type:"timestamp"`
// The download link where a user can download the report.
DownloadUrl *string `type:"string"`
@@ -496,7 +496,7 @@ type DeviceEvent struct {
_ struct{} `type:"structure"`
// The time (in epoch) when the event occurred.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `type:"timestamp"`
// The type of device event.
Type DeviceEventType `type:"string" enum:"true"`
@@ -519,7 +519,7 @@ type DeviceNetworkProfileInfo struct {
CertificateArn *string `type:"string"`
// The time (in epoch) when the certificate expires.
- CertificateExpirationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CertificateExpirationTime *time.Time `type:"timestamp"`
// The ARN of the network profile associated with a device.
NetworkProfileArn *string `type:"string"`
diff --git a/service/amplify/api_op_CreateApp.go b/service/amplify/api_op_CreateApp.go
index e44c85de2a8..32ee1f51a09 100644
--- a/service/amplify/api_op_CreateApp.go
+++ b/service/amplify/api_op_CreateApp.go
@@ -114,7 +114,7 @@ func (s *CreateAppInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateAppInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BasicAuthCredentials != nil {
v := *s.BasicAuthCredentials
diff --git a/service/amplify/api_op_CreateBranch.go b/service/amplify/api_op_CreateBranch.go
index db8741ebb93..a3a5cebc0a3 100644
--- a/service/amplify/api_op_CreateBranch.go
+++ b/service/amplify/api_op_CreateBranch.go
@@ -93,7 +93,7 @@ func (s *CreateBranchInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateBranchInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BasicAuthCredentials != nil {
v := *s.BasicAuthCredentials
diff --git a/service/amplify/api_op_CreateDomainAssociation.go b/service/amplify/api_op_CreateDomainAssociation.go
index 32ec948c643..9e51130dcb0 100644
--- a/service/amplify/api_op_CreateDomainAssociation.go
+++ b/service/amplify/api_op_CreateDomainAssociation.go
@@ -74,7 +74,7 @@ func (s *CreateDomainAssociationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDomainAssociationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/amplify/api_op_DeleteApp.go b/service/amplify/api_op_DeleteApp.go
index 6e820928317..241aa0ccab7 100644
--- a/service/amplify/api_op_DeleteApp.go
+++ b/service/amplify/api_op_DeleteApp.go
@@ -45,7 +45,7 @@ func (s *DeleteAppInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteAppInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_DeleteBranch.go b/service/amplify/api_op_DeleteBranch.go
index 40a691bdc50..ff11fabe654 100644
--- a/service/amplify/api_op_DeleteBranch.go
+++ b/service/amplify/api_op_DeleteBranch.go
@@ -57,7 +57,7 @@ func (s *DeleteBranchInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBranchInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_DeleteDomainAssociation.go b/service/amplify/api_op_DeleteDomainAssociation.go
index f755e87adbf..9e7952e9793 100644
--- a/service/amplify/api_op_DeleteDomainAssociation.go
+++ b/service/amplify/api_op_DeleteDomainAssociation.go
@@ -54,7 +54,7 @@ func (s *DeleteDomainAssociationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDomainAssociationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_DeleteJob.go b/service/amplify/api_op_DeleteJob.go
index d72f2603a76..3f30c9c31eb 100644
--- a/service/amplify/api_op_DeleteJob.go
+++ b/service/amplify/api_op_DeleteJob.go
@@ -66,7 +66,7 @@ func (s *DeleteJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_GetApp.go b/service/amplify/api_op_GetApp.go
index 2fd6ee95a8f..a2b1516fee9 100644
--- a/service/amplify/api_op_GetApp.go
+++ b/service/amplify/api_op_GetApp.go
@@ -45,7 +45,7 @@ func (s *GetAppInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAppInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_GetBranch.go b/service/amplify/api_op_GetBranch.go
index df4af83780a..56e08f8e88b 100644
--- a/service/amplify/api_op_GetBranch.go
+++ b/service/amplify/api_op_GetBranch.go
@@ -57,7 +57,7 @@ func (s *GetBranchInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBranchInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_GetDomainAssociation.go b/service/amplify/api_op_GetDomainAssociation.go
index 5894243a286..44eba838f09 100644
--- a/service/amplify/api_op_GetDomainAssociation.go
+++ b/service/amplify/api_op_GetDomainAssociation.go
@@ -54,7 +54,7 @@ func (s *GetDomainAssociationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDomainAssociationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_GetJob.go b/service/amplify/api_op_GetJob.go
index fd6bcb542a5..f9c92ed3227 100644
--- a/service/amplify/api_op_GetJob.go
+++ b/service/amplify/api_op_GetJob.go
@@ -66,7 +66,7 @@ func (s *GetJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_ListApps.go b/service/amplify/api_op_ListApps.go
index 5bebc7d8832..59a0d581491 100644
--- a/service/amplify/api_op_ListApps.go
+++ b/service/amplify/api_op_ListApps.go
@@ -43,7 +43,7 @@ func (s *ListAppsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListAppsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/amplify/api_op_ListBranches.go b/service/amplify/api_op_ListBranches.go
index 0cbc84b8d15..816ae44b648 100644
--- a/service/amplify/api_op_ListBranches.go
+++ b/service/amplify/api_op_ListBranches.go
@@ -56,7 +56,7 @@ func (s *ListBranchesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBranchesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_ListDomainAssociations.go b/service/amplify/api_op_ListDomainAssociations.go
index cc23ceed958..6a6f19731b7 100644
--- a/service/amplify/api_op_ListDomainAssociations.go
+++ b/service/amplify/api_op_ListDomainAssociations.go
@@ -56,7 +56,7 @@ func (s *ListDomainAssociationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDomainAssociationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_ListJobs.go b/service/amplify/api_op_ListJobs.go
index 64beb739a11..554c260baeb 100644
--- a/service/amplify/api_op_ListJobs.go
+++ b/service/amplify/api_op_ListJobs.go
@@ -68,7 +68,7 @@ func (s *ListJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_StartJob.go b/service/amplify/api_op_StartJob.go
index ea6a95a2730..02d5a974d38 100644
--- a/service/amplify/api_op_StartJob.go
+++ b/service/amplify/api_op_StartJob.go
@@ -33,7 +33,7 @@ type StartJobInput struct {
CommitMessage *string `locationName:"commitMessage" type:"string"`
// Commit date / time for the Job.
- CommitTime *time.Time `locationName:"commitTime" type:"timestamp" timestampFormat:"unix"`
+ CommitTime *time.Time `locationName:"commitTime" type:"timestamp"`
// Unique Id for the Job.
JobId *string `locationName:"jobId" type:"string"`
@@ -81,7 +81,7 @@ func (s *StartJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CommitId != nil {
v := *s.CommitId
@@ -99,7 +99,8 @@ func (s StartJobInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CommitTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "commitTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "commitTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.JobId != nil {
v := *s.JobId
diff --git a/service/amplify/api_op_StopJob.go b/service/amplify/api_op_StopJob.go
index a8478769a40..9ace37e3752 100644
--- a/service/amplify/api_op_StopJob.go
+++ b/service/amplify/api_op_StopJob.go
@@ -66,7 +66,7 @@ func (s *StopJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StopJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AppId != nil {
v := *s.AppId
diff --git a/service/amplify/api_op_UpdateApp.go b/service/amplify/api_op_UpdateApp.go
index f958fbae8ab..34bbb06284c 100644
--- a/service/amplify/api_op_UpdateApp.go
+++ b/service/amplify/api_op_UpdateApp.go
@@ -92,7 +92,7 @@ func (s *UpdateAppInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAppInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BasicAuthCredentials != nil {
v := *s.BasicAuthCredentials
diff --git a/service/amplify/api_op_UpdateBranch.go b/service/amplify/api_op_UpdateBranch.go
index 08add135e25..0333333aef5 100644
--- a/service/amplify/api_op_UpdateBranch.go
+++ b/service/amplify/api_op_UpdateBranch.go
@@ -90,7 +90,7 @@ func (s *UpdateBranchInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateBranchInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BasicAuthCredentials != nil {
v := *s.BasicAuthCredentials
diff --git a/service/amplify/api_op_UpdateDomainAssociation.go b/service/amplify/api_op_UpdateDomainAssociation.go
index 374592af645..8962df1b92b 100644
--- a/service/amplify/api_op_UpdateDomainAssociation.go
+++ b/service/amplify/api_op_UpdateDomainAssociation.go
@@ -74,7 +74,7 @@ func (s *UpdateDomainAssociationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDomainAssociationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EnableAutoSubDomain != nil {
v := *s.EnableAutoSubDomain
diff --git a/service/amplify/api_types.go b/service/amplify/api_types.go
index 690e5d7cd57..6c631e26dff 100644
--- a/service/amplify/api_types.go
+++ b/service/amplify/api_types.go
@@ -38,7 +38,7 @@ type App struct {
// Create date / time for the Amplify App.
//
// CreateTime is a required field
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"`
// Custom redirect / rewrite rules for the Amplify App.
CustomRules []CustomRule `locationName:"customRules" type:"list"`
@@ -95,7 +95,7 @@ type App struct {
// Update date / time for the Amplify App.
//
// UpdateTime is a required field
- UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -133,7 +133,8 @@ func (s App) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CustomRules != nil {
v := s.CustomRules
@@ -229,7 +230,8 @@ func (s App) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "updateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "updateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -263,7 +265,7 @@ type Branch struct {
// Creation date and time for a branch, part of an Amplify App.
//
// CreateTime is a required field
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"`
// Custom domains for a branch, part of an Amplify App.
//
@@ -327,7 +329,7 @@ type Branch struct {
// Last updated date and time for a branch, part of an Amplify App.
//
// UpdateTime is a required field
- UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -371,7 +373,8 @@ func (s Branch) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CustomDomains != nil {
v := s.CustomDomains
@@ -473,7 +476,8 @@ func (s Branch) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "updateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "updateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -726,10 +730,10 @@ type JobSummary struct {
// Commit date / time for the Job.
//
// CommitTime is a required field
- CommitTime *time.Time `locationName:"commitTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CommitTime *time.Time `locationName:"commitTime" type:"timestamp" required:"true"`
// End date / time for the Job.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// Arn for the Job.
//
@@ -749,7 +753,7 @@ type JobSummary struct {
// Start date / time for the Job.
//
// StartTime is a required field
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
// Status for the Job.
//
@@ -780,13 +784,15 @@ func (s JobSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CommitTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "commitTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "commitTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.JobArn != nil {
v := *s.JobArn
@@ -810,7 +816,8 @@ func (s JobSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
@@ -830,7 +837,7 @@ type ProductionBranch struct {
BranchName *string `locationName:"branchName" min:"1" type:"string"`
// Last Deploy Time of Production Branch.
- LastDeployTime *time.Time `locationName:"lastDeployTime" type:"timestamp" timestampFormat:"unix"`
+ LastDeployTime *time.Time `locationName:"lastDeployTime" type:"timestamp"`
// Status of Production Branch.
Status *string `locationName:"status" min:"3" type:"string"`
@@ -856,7 +863,8 @@ func (s ProductionBranch) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastDeployTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastDeployTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastDeployTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Status != nil {
v := *s.Status
@@ -884,7 +892,7 @@ type Step struct {
// End date/ time of the execution step.
//
// EndTime is a required field
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"`
// Url to the logs for the execution step.
LogUrl *string `locationName:"logUrl" type:"string"`
@@ -895,7 +903,7 @@ type Step struct {
// Start date/ time of the execution step.
//
// StartTime is a required field
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
// Status of the execution step.
//
@@ -925,7 +933,8 @@ func (s Step) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LogUrl != nil {
v := *s.LogUrl
@@ -949,7 +958,8 @@ func (s Step) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
diff --git a/service/apigateway/api_op_CreateApiKey.go b/service/apigateway/api_op_CreateApiKey.go
index b45d16a2e10..b7270c83231 100644
--- a/service/apigateway/api_op_CreateApiKey.go
+++ b/service/apigateway/api_op_CreateApiKey.go
@@ -51,6 +51,7 @@ func (s CreateApiKeyInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateApiKeyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CustomerId != nil {
v := *s.CustomerId
@@ -125,7 +126,7 @@ type CreateApiKeyOutput struct {
_ struct{} `type:"structure"`
// The timestamp when the API Key was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// An AWS Marketplace customer identifier , when integrating with the AWS SaaS
// Marketplace.
@@ -141,7 +142,7 @@ type CreateApiKeyOutput struct {
Id *string `locationName:"id" type:"string"`
// The timestamp when the API Key was last updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the API Key.
Name *string `locationName:"name" type:"string"`
@@ -167,7 +168,8 @@ func (s CreateApiKeyOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CustomerId != nil {
v := *s.CustomerId
@@ -197,7 +199,8 @@ func (s CreateApiKeyOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/apigateway/api_op_CreateAuthorizer.go b/service/apigateway/api_op_CreateAuthorizer.go
index df489614f5f..6cc0afeefc9 100644
--- a/service/apigateway/api_op_CreateAuthorizer.go
+++ b/service/apigateway/api_op_CreateAuthorizer.go
@@ -121,6 +121,7 @@ func (s *CreateAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthType != nil {
v := *s.AuthType
diff --git a/service/apigateway/api_op_CreateBasePathMapping.go b/service/apigateway/api_op_CreateBasePathMapping.go
index 5d75a8391b7..8ee0ab4f896 100644
--- a/service/apigateway/api_op_CreateBasePathMapping.go
+++ b/service/apigateway/api_op_CreateBasePathMapping.go
@@ -61,6 +61,7 @@ func (s *CreateBasePathMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateBasePathMappingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BasePath != nil {
v := *s.BasePath
diff --git a/service/apigateway/api_op_CreateDeployment.go b/service/apigateway/api_op_CreateDeployment.go
index 1977105f021..da795a6cb29 100644
--- a/service/apigateway/api_op_CreateDeployment.go
+++ b/service/apigateway/api_op_CreateDeployment.go
@@ -70,6 +70,7 @@ func (s *CreateDeploymentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CacheClusterEnabled != nil {
v := *s.CacheClusterEnabled
@@ -152,7 +153,7 @@ type CreateDeploymentOutput struct {
ApiSummary map[string]map[string]MethodSnapshot `locationName:"apiSummary" type:"map"`
// The date and time that the deployment resource was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description for the deployment resource.
Description *string `locationName:"description" type:"string"`
@@ -189,7 +190,8 @@ func (s CreateDeploymentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_CreateDocumentationPart.go b/service/apigateway/api_op_CreateDocumentationPart.go
index 5ddb02e7d6a..99df4fd5c0f 100644
--- a/service/apigateway/api_op_CreateDocumentationPart.go
+++ b/service/apigateway/api_op_CreateDocumentationPart.go
@@ -67,6 +67,7 @@ func (s *CreateDocumentationPartInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDocumentationPartInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Location != nil {
v := s.Location
diff --git a/service/apigateway/api_op_CreateDocumentationVersion.go b/service/apigateway/api_op_CreateDocumentationVersion.go
index 949150e4617..d83c3b77e58 100644
--- a/service/apigateway/api_op_CreateDocumentationVersion.go
+++ b/service/apigateway/api_op_CreateDocumentationVersion.go
@@ -57,6 +57,7 @@ func (s *CreateDocumentationVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDocumentationVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
@@ -97,7 +98,7 @@ type CreateDocumentationVersionOutput struct {
_ struct{} `type:"structure"`
// The date when the API documentation snapshot is created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description of the API documentation snapshot.
Description *string `locationName:"description" type:"string"`
@@ -117,7 +118,8 @@ func (s CreateDocumentationVersionOutput) MarshalFields(e protocol.FieldEncoder)
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_CreateDomainName.go b/service/apigateway/api_op_CreateDomainName.go
index 0535449a1b6..bf39ef7f66a 100644
--- a/service/apigateway/api_op_CreateDomainName.go
+++ b/service/apigateway/api_op_CreateDomainName.go
@@ -86,6 +86,7 @@ func (s *CreateDomainNameInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDomainNameInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateArn != nil {
v := *s.CertificateArn
@@ -182,7 +183,7 @@ type CreateDomainNameOutput struct {
// The timestamp when the certificate that was used by edge-optimized endpoint
// for this domain name was uploaded.
- CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix"`
+ CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp"`
// The domain name of the Amazon CloudFront distribution associated with this
// custom domain name for an edge-optimized endpoint. You set up this association
@@ -250,7 +251,8 @@ func (s CreateDomainNameOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CertificateUploadDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "certificateUploadDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "certificateUploadDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DistributionDomainName != nil {
v := *s.DistributionDomainName
diff --git a/service/apigateway/api_op_CreateModel.go b/service/apigateway/api_op_CreateModel.go
index 52b4e2143cb..45c13ed9957 100644
--- a/service/apigateway/api_op_CreateModel.go
+++ b/service/apigateway/api_op_CreateModel.go
@@ -66,6 +66,7 @@ func (s *CreateModelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateModelInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ContentType != nil {
v := *s.ContentType
diff --git a/service/apigateway/api_op_CreateRequestValidator.go b/service/apigateway/api_op_CreateRequestValidator.go
index b44b1c803ba..57837efaa9f 100644
--- a/service/apigateway/api_op_CreateRequestValidator.go
+++ b/service/apigateway/api_op_CreateRequestValidator.go
@@ -52,6 +52,7 @@ func (s *CreateRequestValidatorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateRequestValidatorInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/apigateway/api_op_CreateResource.go b/service/apigateway/api_op_CreateResource.go
index 2c07fe7ac08..36433a9d214 100644
--- a/service/apigateway/api_op_CreateResource.go
+++ b/service/apigateway/api_op_CreateResource.go
@@ -59,6 +59,7 @@ func (s *CreateResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PathPart != nil {
v := *s.PathPart
diff --git a/service/apigateway/api_op_CreateRestApi.go b/service/apigateway/api_op_CreateRestApi.go
index 47a629bafe7..9fbf2d55b78 100644
--- a/service/apigateway/api_op_CreateRestApi.go
+++ b/service/apigateway/api_op_CreateRestApi.go
@@ -83,6 +83,7 @@ func (s *CreateRestApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateRestApiInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ApiKeySource) > 0 {
v := s.ApiKeySource
@@ -178,7 +179,7 @@ type CreateRestApiOutput struct {
BinaryMediaTypes []string `locationName:"binaryMediaTypes" type:"list"`
// The timestamp when the API was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The API's description.
Description *string `locationName:"description" type:"string"`
@@ -245,7 +246,8 @@ func (s CreateRestApiOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_CreateStage.go b/service/apigateway/api_op_CreateStage.go
index b1d8c3f90fb..1cc9cdce651 100644
--- a/service/apigateway/api_op_CreateStage.go
+++ b/service/apigateway/api_op_CreateStage.go
@@ -88,6 +88,7 @@ func (s *CreateStageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateStageInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CacheClusterEnabled != nil {
v := *s.CacheClusterEnabled
@@ -196,7 +197,7 @@ type CreateStageOutput struct {
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
// The timestamp when the stage was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The identifier of the Deployment that the stage points to.
DeploymentId *string `locationName:"deploymentId" type:"string"`
@@ -208,7 +209,7 @@ type CreateStageOutput struct {
DocumentationVersion *string `locationName:"documentationVersion" type:"string"`
// The timestamp when the stage last updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// A map that defines the method settings for a Stage resource. Keys (designated
// as /{method_setting_key below) are method paths defined as {resource_path}/{http_method}
@@ -282,7 +283,8 @@ func (s CreateStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DeploymentId != nil {
v := *s.DeploymentId
@@ -306,7 +308,8 @@ func (s CreateStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.MethodSettings != nil {
v := s.MethodSettings
diff --git a/service/apigateway/api_op_CreateUsagePlan.go b/service/apigateway/api_op_CreateUsagePlan.go
index 44f90c66810..0d97ee203f7 100644
--- a/service/apigateway/api_op_CreateUsagePlan.go
+++ b/service/apigateway/api_op_CreateUsagePlan.go
@@ -60,6 +60,7 @@ func (s *CreateUsagePlanInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateUsagePlanInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiStages != nil {
v := s.ApiStages
diff --git a/service/apigateway/api_op_CreateUsagePlanKey.go b/service/apigateway/api_op_CreateUsagePlanKey.go
index 3e55bc27327..c042fa53b3f 100644
--- a/service/apigateway/api_op_CreateUsagePlanKey.go
+++ b/service/apigateway/api_op_CreateUsagePlanKey.go
@@ -61,6 +61,7 @@ func (s *CreateUsagePlanKeyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateUsagePlanKeyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.KeyId != nil {
v := *s.KeyId
diff --git a/service/apigateway/api_op_CreateVpcLink.go b/service/apigateway/api_op_CreateVpcLink.go
index 160d2c92696..73e1de8e32e 100644
--- a/service/apigateway/api_op_CreateVpcLink.go
+++ b/service/apigateway/api_op_CreateVpcLink.go
@@ -63,6 +63,7 @@ func (s *CreateVpcLinkInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateVpcLinkInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_DeleteApiKey.go b/service/apigateway/api_op_DeleteApiKey.go
index c8e1ad6431c..3f692bffd0d 100644
--- a/service/apigateway/api_op_DeleteApiKey.go
+++ b/service/apigateway/api_op_DeleteApiKey.go
@@ -42,6 +42,7 @@ func (s *DeleteApiKeyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteApiKeyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiKey != nil {
v := *s.ApiKey
diff --git a/service/apigateway/api_op_DeleteAuthorizer.go b/service/apigateway/api_op_DeleteAuthorizer.go
index ab07816de6d..24665177d8b 100644
--- a/service/apigateway/api_op_DeleteAuthorizer.go
+++ b/service/apigateway/api_op_DeleteAuthorizer.go
@@ -51,6 +51,7 @@ func (s *DeleteAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthorizerId != nil {
v := *s.AuthorizerId
diff --git a/service/apigateway/api_op_DeleteBasePathMapping.go b/service/apigateway/api_op_DeleteBasePathMapping.go
index 9b569d758e8..3785cf8a146 100644
--- a/service/apigateway/api_op_DeleteBasePathMapping.go
+++ b/service/apigateway/api_op_DeleteBasePathMapping.go
@@ -51,6 +51,7 @@ func (s *DeleteBasePathMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBasePathMappingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BasePath != nil {
v := *s.BasePath
diff --git a/service/apigateway/api_op_DeleteClientCertificate.go b/service/apigateway/api_op_DeleteClientCertificate.go
index 5bdf449f736..945f7553685 100644
--- a/service/apigateway/api_op_DeleteClientCertificate.go
+++ b/service/apigateway/api_op_DeleteClientCertificate.go
@@ -42,6 +42,7 @@ func (s *DeleteClientCertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteClientCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClientCertificateId != nil {
v := *s.ClientCertificateId
diff --git a/service/apigateway/api_op_DeleteDeployment.go b/service/apigateway/api_op_DeleteDeployment.go
index aeca16e71a1..9b8402698d5 100644
--- a/service/apigateway/api_op_DeleteDeployment.go
+++ b/service/apigateway/api_op_DeleteDeployment.go
@@ -51,6 +51,7 @@ func (s *DeleteDeploymentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeploymentId != nil {
v := *s.DeploymentId
diff --git a/service/apigateway/api_op_DeleteDocumentationPart.go b/service/apigateway/api_op_DeleteDocumentationPart.go
index 14cc898fc21..5c290019f2e 100644
--- a/service/apigateway/api_op_DeleteDocumentationPart.go
+++ b/service/apigateway/api_op_DeleteDocumentationPart.go
@@ -51,6 +51,7 @@ func (s *DeleteDocumentationPartInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDocumentationPartInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DocumentationPartId != nil {
v := *s.DocumentationPartId
diff --git a/service/apigateway/api_op_DeleteDocumentationVersion.go b/service/apigateway/api_op_DeleteDocumentationVersion.go
index 1eda8f0ba87..7bce437e0b4 100644
--- a/service/apigateway/api_op_DeleteDocumentationVersion.go
+++ b/service/apigateway/api_op_DeleteDocumentationVersion.go
@@ -51,6 +51,7 @@ func (s *DeleteDocumentationVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDocumentationVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DocumentationVersion != nil {
v := *s.DocumentationVersion
diff --git a/service/apigateway/api_op_DeleteDomainName.go b/service/apigateway/api_op_DeleteDomainName.go
index b368ffd6f85..a18ad30eeda 100644
--- a/service/apigateway/api_op_DeleteDomainName.go
+++ b/service/apigateway/api_op_DeleteDomainName.go
@@ -42,6 +42,7 @@ func (s *DeleteDomainNameInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDomainNameInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/apigateway/api_op_DeleteGatewayResponse.go b/service/apigateway/api_op_DeleteGatewayResponse.go
index f2ab4812e3e..bde780e1c9d 100644
--- a/service/apigateway/api_op_DeleteGatewayResponse.go
+++ b/service/apigateway/api_op_DeleteGatewayResponse.go
@@ -91,6 +91,7 @@ func (s *DeleteGatewayResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteGatewayResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ResponseType) > 0 {
v := s.ResponseType
diff --git a/service/apigateway/api_op_DeleteIntegration.go b/service/apigateway/api_op_DeleteIntegration.go
index ca0b9d9ff4b..3a197e58170 100644
--- a/service/apigateway/api_op_DeleteIntegration.go
+++ b/service/apigateway/api_op_DeleteIntegration.go
@@ -60,6 +60,7 @@ func (s *DeleteIntegrationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteIntegrationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HttpMethod != nil {
v := *s.HttpMethod
diff --git a/service/apigateway/api_op_DeleteIntegrationResponse.go b/service/apigateway/api_op_DeleteIntegrationResponse.go
index 65f257253dc..37610a01b22 100644
--- a/service/apigateway/api_op_DeleteIntegrationResponse.go
+++ b/service/apigateway/api_op_DeleteIntegrationResponse.go
@@ -69,6 +69,7 @@ func (s *DeleteIntegrationResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteIntegrationResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HttpMethod != nil {
v := *s.HttpMethod
diff --git a/service/apigateway/api_op_DeleteMethod.go b/service/apigateway/api_op_DeleteMethod.go
index 0b2a65d0f00..7593dde2612 100644
--- a/service/apigateway/api_op_DeleteMethod.go
+++ b/service/apigateway/api_op_DeleteMethod.go
@@ -60,6 +60,7 @@ func (s *DeleteMethodInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteMethodInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HttpMethod != nil {
v := *s.HttpMethod
diff --git a/service/apigateway/api_op_DeleteMethodResponse.go b/service/apigateway/api_op_DeleteMethodResponse.go
index de5874ea604..f0b833e8672 100644
--- a/service/apigateway/api_op_DeleteMethodResponse.go
+++ b/service/apigateway/api_op_DeleteMethodResponse.go
@@ -69,6 +69,7 @@ func (s *DeleteMethodResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteMethodResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HttpMethod != nil {
v := *s.HttpMethod
diff --git a/service/apigateway/api_op_DeleteModel.go b/service/apigateway/api_op_DeleteModel.go
index 30ce4659a19..c0074695cfe 100644
--- a/service/apigateway/api_op_DeleteModel.go
+++ b/service/apigateway/api_op_DeleteModel.go
@@ -51,6 +51,7 @@ func (s *DeleteModelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteModelInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ModelName != nil {
v := *s.ModelName
diff --git a/service/apigateway/api_op_DeleteRequestValidator.go b/service/apigateway/api_op_DeleteRequestValidator.go
index 24f01047995..b6e591c2970 100644
--- a/service/apigateway/api_op_DeleteRequestValidator.go
+++ b/service/apigateway/api_op_DeleteRequestValidator.go
@@ -51,6 +51,7 @@ func (s *DeleteRequestValidatorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteRequestValidatorInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RequestValidatorId != nil {
v := *s.RequestValidatorId
diff --git a/service/apigateway/api_op_DeleteResource.go b/service/apigateway/api_op_DeleteResource.go
index 14a60a5dd36..63c95a5b07a 100644
--- a/service/apigateway/api_op_DeleteResource.go
+++ b/service/apigateway/api_op_DeleteResource.go
@@ -51,6 +51,7 @@ func (s *DeleteResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceId != nil {
v := *s.ResourceId
diff --git a/service/apigateway/api_op_DeleteRestApi.go b/service/apigateway/api_op_DeleteRestApi.go
index 30115990dd6..53f7b11202a 100644
--- a/service/apigateway/api_op_DeleteRestApi.go
+++ b/service/apigateway/api_op_DeleteRestApi.go
@@ -42,6 +42,7 @@ func (s *DeleteRestApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteRestApiInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_DeleteStage.go b/service/apigateway/api_op_DeleteStage.go
index b660908bb52..dad21544003 100644
--- a/service/apigateway/api_op_DeleteStage.go
+++ b/service/apigateway/api_op_DeleteStage.go
@@ -51,6 +51,7 @@ func (s *DeleteStageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteStageInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_DeleteUsagePlan.go b/service/apigateway/api_op_DeleteUsagePlan.go
index 4bafad56f90..3e4ba42c033 100644
--- a/service/apigateway/api_op_DeleteUsagePlan.go
+++ b/service/apigateway/api_op_DeleteUsagePlan.go
@@ -42,6 +42,7 @@ func (s *DeleteUsagePlanInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteUsagePlanInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UsagePlanId != nil {
v := *s.UsagePlanId
diff --git a/service/apigateway/api_op_DeleteUsagePlanKey.go b/service/apigateway/api_op_DeleteUsagePlanKey.go
index 1b921c881fe..a208a0fef9a 100644
--- a/service/apigateway/api_op_DeleteUsagePlanKey.go
+++ b/service/apigateway/api_op_DeleteUsagePlanKey.go
@@ -53,6 +53,7 @@ func (s *DeleteUsagePlanKeyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteUsagePlanKeyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.KeyId != nil {
v := *s.KeyId
diff --git a/service/apigateway/api_op_DeleteVpcLink.go b/service/apigateway/api_op_DeleteVpcLink.go
index 70bde58c1b3..19e9569f5d9 100644
--- a/service/apigateway/api_op_DeleteVpcLink.go
+++ b/service/apigateway/api_op_DeleteVpcLink.go
@@ -43,6 +43,7 @@ func (s *DeleteVpcLinkInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVpcLinkInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.VpcLinkId != nil {
v := *s.VpcLinkId
diff --git a/service/apigateway/api_op_FlushStageAuthorizersCache.go b/service/apigateway/api_op_FlushStageAuthorizersCache.go
index da97faf8a50..62b62eb16ab 100644
--- a/service/apigateway/api_op_FlushStageAuthorizersCache.go
+++ b/service/apigateway/api_op_FlushStageAuthorizersCache.go
@@ -51,6 +51,7 @@ func (s *FlushStageAuthorizersCacheInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s FlushStageAuthorizersCacheInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_FlushStageCache.go b/service/apigateway/api_op_FlushStageCache.go
index 6e3b04caa96..5d146a81b10 100644
--- a/service/apigateway/api_op_FlushStageCache.go
+++ b/service/apigateway/api_op_FlushStageCache.go
@@ -51,6 +51,7 @@ func (s *FlushStageCacheInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s FlushStageCacheInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GenerateClientCertificate.go b/service/apigateway/api_op_GenerateClientCertificate.go
index 991f10672b8..3f072006916 100644
--- a/service/apigateway/api_op_GenerateClientCertificate.go
+++ b/service/apigateway/api_op_GenerateClientCertificate.go
@@ -31,6 +31,7 @@ func (s GenerateClientCertificateInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GenerateClientCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
@@ -68,13 +69,13 @@ type GenerateClientCertificateOutput struct {
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
// The timestamp when the client certificate was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description of the client certificate.
Description *string `locationName:"description" type:"string"`
// The timestamp when the client certificate will expire.
- ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp"`
// The PEM-encoded public key of the client certificate, which can be used to
// configure certificate authentication in the integration endpoint .
@@ -101,7 +102,8 @@ func (s GenerateClientCertificateOutput) MarshalFields(e protocol.FieldEncoder)
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -113,7 +115,8 @@ func (s GenerateClientCertificateOutput) MarshalFields(e protocol.FieldEncoder)
v := *s.ExpirationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "expirationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "expirationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PemEncodedCertificate != nil {
v := *s.PemEncodedCertificate
diff --git a/service/apigateway/api_op_GetAccount.go b/service/apigateway/api_op_GetAccount.go
index 7998404c992..f9c9674bd27 100644
--- a/service/apigateway/api_op_GetAccount.go
+++ b/service/apigateway/api_op_GetAccount.go
@@ -22,6 +22,7 @@ func (s GetAccountInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAccountInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/apigateway/api_op_GetApiKey.go b/service/apigateway/api_op_GetApiKey.go
index 9df1f00f345..c24364d1b0c 100644
--- a/service/apigateway/api_op_GetApiKey.go
+++ b/service/apigateway/api_op_GetApiKey.go
@@ -46,6 +46,7 @@ func (s *GetApiKeyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApiKeyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiKey != nil {
v := *s.ApiKey
@@ -72,7 +73,7 @@ type GetApiKeyOutput struct {
_ struct{} `type:"structure"`
// The timestamp when the API Key was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// An AWS Marketplace customer identifier , when integrating with the AWS SaaS
// Marketplace.
@@ -88,7 +89,7 @@ type GetApiKeyOutput struct {
Id *string `locationName:"id" type:"string"`
// The timestamp when the API Key was last updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the API Key.
Name *string `locationName:"name" type:"string"`
@@ -114,7 +115,8 @@ func (s GetApiKeyOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CustomerId != nil {
v := *s.CustomerId
@@ -144,7 +146,8 @@ func (s GetApiKeyOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/apigateway/api_op_GetApiKeys.go b/service/apigateway/api_op_GetApiKeys.go
index bf24c84105a..69a8a288ee4 100644
--- a/service/apigateway/api_op_GetApiKeys.go
+++ b/service/apigateway/api_op_GetApiKeys.go
@@ -40,6 +40,7 @@ func (s GetApiKeysInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApiKeysInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CustomerId != nil {
v := *s.CustomerId
diff --git a/service/apigateway/api_op_GetAuthorizer.go b/service/apigateway/api_op_GetAuthorizer.go
index 1a5c0908a2e..5f79e16f1b3 100644
--- a/service/apigateway/api_op_GetAuthorizer.go
+++ b/service/apigateway/api_op_GetAuthorizer.go
@@ -50,6 +50,7 @@ func (s *GetAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthorizerId != nil {
v := *s.AuthorizerId
diff --git a/service/apigateway/api_op_GetAuthorizers.go b/service/apigateway/api_op_GetAuthorizers.go
index 9ffc19778a3..b06f712c3f7 100644
--- a/service/apigateway/api_op_GetAuthorizers.go
+++ b/service/apigateway/api_op_GetAuthorizers.go
@@ -48,6 +48,7 @@ func (s *GetAuthorizersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAuthorizersInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GetBasePathMapping.go b/service/apigateway/api_op_GetBasePathMapping.go
index 30860b64531..e191b773f85 100644
--- a/service/apigateway/api_op_GetBasePathMapping.go
+++ b/service/apigateway/api_op_GetBasePathMapping.go
@@ -53,6 +53,7 @@ func (s *GetBasePathMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBasePathMappingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BasePath != nil {
v := *s.BasePath
diff --git a/service/apigateway/api_op_GetBasePathMappings.go b/service/apigateway/api_op_GetBasePathMappings.go
index 1abb3617601..d0421b4368d 100644
--- a/service/apigateway/api_op_GetBasePathMappings.go
+++ b/service/apigateway/api_op_GetBasePathMappings.go
@@ -48,6 +48,7 @@ func (s *GetBasePathMappingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBasePathMappingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/apigateway/api_op_GetClientCertificate.go b/service/apigateway/api_op_GetClientCertificate.go
index 3b51935f487..420011f8f72 100644
--- a/service/apigateway/api_op_GetClientCertificate.go
+++ b/service/apigateway/api_op_GetClientCertificate.go
@@ -42,6 +42,7 @@ func (s *GetClientCertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetClientCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClientCertificateId != nil {
v := *s.ClientCertificateId
@@ -67,13 +68,13 @@ type GetClientCertificateOutput struct {
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
// The timestamp when the client certificate was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description of the client certificate.
Description *string `locationName:"description" type:"string"`
// The timestamp when the client certificate will expire.
- ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp"`
// The PEM-encoded public key of the client certificate, which can be used to
// configure certificate authentication in the integration endpoint .
@@ -100,7 +101,8 @@ func (s GetClientCertificateOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -112,7 +114,8 @@ func (s GetClientCertificateOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.ExpirationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "expirationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "expirationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PemEncodedCertificate != nil {
v := *s.PemEncodedCertificate
diff --git a/service/apigateway/api_op_GetClientCertificates.go b/service/apigateway/api_op_GetClientCertificates.go
index ac28eef2325..1545ed7b3bd 100644
--- a/service/apigateway/api_op_GetClientCertificates.go
+++ b/service/apigateway/api_op_GetClientCertificates.go
@@ -29,6 +29,7 @@ func (s GetClientCertificatesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetClientCertificatesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Limit != nil {
v := *s.Limit
diff --git a/service/apigateway/api_op_GetDeployment.go b/service/apigateway/api_op_GetDeployment.go
index ecfdfdd2ce1..93b1e1b4d1a 100644
--- a/service/apigateway/api_op_GetDeployment.go
+++ b/service/apigateway/api_op_GetDeployment.go
@@ -60,6 +60,7 @@ func (s *GetDeploymentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeploymentId != nil {
v := *s.DeploymentId
@@ -106,7 +107,7 @@ type GetDeploymentOutput struct {
ApiSummary map[string]map[string]MethodSnapshot `locationName:"apiSummary" type:"map"`
// The date and time that the deployment resource was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description for the deployment resource.
Description *string `locationName:"description" type:"string"`
@@ -143,7 +144,8 @@ func (s GetDeploymentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_GetDeployments.go b/service/apigateway/api_op_GetDeployments.go
index c70388486af..e9a0907cfcd 100644
--- a/service/apigateway/api_op_GetDeployments.go
+++ b/service/apigateway/api_op_GetDeployments.go
@@ -48,6 +48,7 @@ func (s *GetDeploymentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDeploymentsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GetDocumentationPart.go b/service/apigateway/api_op_GetDocumentationPart.go
index 0dd3cfd790c..be4be741385 100644
--- a/service/apigateway/api_op_GetDocumentationPart.go
+++ b/service/apigateway/api_op_GetDocumentationPart.go
@@ -50,6 +50,7 @@ func (s *GetDocumentationPartInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDocumentationPartInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DocumentationPartId != nil {
v := *s.DocumentationPartId
diff --git a/service/apigateway/api_op_GetDocumentationParts.go b/service/apigateway/api_op_GetDocumentationParts.go
index c5cbcae7214..e49d773c05c 100644
--- a/service/apigateway/api_op_GetDocumentationParts.go
+++ b/service/apigateway/api_op_GetDocumentationParts.go
@@ -63,6 +63,7 @@ func (s *GetDocumentationPartsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDocumentationPartsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GetDocumentationVersion.go b/service/apigateway/api_op_GetDocumentationVersion.go
index ae4a2dd4617..5cac86fca9a 100644
--- a/service/apigateway/api_op_GetDocumentationVersion.go
+++ b/service/apigateway/api_op_GetDocumentationVersion.go
@@ -51,6 +51,7 @@ func (s *GetDocumentationVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDocumentationVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DocumentationVersion != nil {
v := *s.DocumentationVersion
@@ -79,7 +80,7 @@ type GetDocumentationVersionOutput struct {
_ struct{} `type:"structure"`
// The date when the API documentation snapshot is created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description of the API documentation snapshot.
Description *string `locationName:"description" type:"string"`
@@ -99,7 +100,8 @@ func (s GetDocumentationVersionOutput) MarshalFields(e protocol.FieldEncoder) er
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_GetDocumentationVersions.go b/service/apigateway/api_op_GetDocumentationVersions.go
index 8f14d5ca07d..771c6222d2c 100644
--- a/service/apigateway/api_op_GetDocumentationVersions.go
+++ b/service/apigateway/api_op_GetDocumentationVersions.go
@@ -48,6 +48,7 @@ func (s *GetDocumentationVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDocumentationVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GetDomainName.go b/service/apigateway/api_op_GetDomainName.go
index 0d7a825c4c7..f8e467a544f 100644
--- a/service/apigateway/api_op_GetDomainName.go
+++ b/service/apigateway/api_op_GetDomainName.go
@@ -42,6 +42,7 @@ func (s *GetDomainNameInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDomainNameInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
@@ -78,7 +79,7 @@ type GetDomainNameOutput struct {
// The timestamp when the certificate that was used by edge-optimized endpoint
// for this domain name was uploaded.
- CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix"`
+ CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp"`
// The domain name of the Amazon CloudFront distribution associated with this
// custom domain name for an edge-optimized endpoint. You set up this association
@@ -146,7 +147,8 @@ func (s GetDomainNameOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CertificateUploadDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "certificateUploadDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "certificateUploadDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DistributionDomainName != nil {
v := *s.DistributionDomainName
diff --git a/service/apigateway/api_op_GetDomainNames.go b/service/apigateway/api_op_GetDomainNames.go
index 28b74f63ea4..4d0619f936a 100644
--- a/service/apigateway/api_op_GetDomainNames.go
+++ b/service/apigateway/api_op_GetDomainNames.go
@@ -29,6 +29,7 @@ func (s GetDomainNamesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDomainNamesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Limit != nil {
v := *s.Limit
diff --git a/service/apigateway/api_op_GetExport.go b/service/apigateway/api_op_GetExport.go
index 42c587a19fd..bee1d1113a2 100644
--- a/service/apigateway/api_op_GetExport.go
+++ b/service/apigateway/api_op_GetExport.go
@@ -74,6 +74,7 @@ func (s *GetExportInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetExportInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Accepts != nil {
v := *s.Accepts
diff --git a/service/apigateway/api_op_GetGatewayResponse.go b/service/apigateway/api_op_GetGatewayResponse.go
index 3fa68756743..03ec5aedcec 100644
--- a/service/apigateway/api_op_GetGatewayResponse.go
+++ b/service/apigateway/api_op_GetGatewayResponse.go
@@ -89,6 +89,7 @@ func (s *GetGatewayResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGatewayResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ResponseType) > 0 {
v := s.ResponseType
diff --git a/service/apigateway/api_op_GetGatewayResponses.go b/service/apigateway/api_op_GetGatewayResponses.go
index 5c881c8779f..8a4048876ee 100644
--- a/service/apigateway/api_op_GetGatewayResponses.go
+++ b/service/apigateway/api_op_GetGatewayResponses.go
@@ -53,6 +53,7 @@ func (s *GetGatewayResponsesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGatewayResponsesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GetIntegration.go b/service/apigateway/api_op_GetIntegration.go
index 25a670de077..ba1c68d32ef 100644
--- a/service/apigateway/api_op_GetIntegration.go
+++ b/service/apigateway/api_op_GetIntegration.go
@@ -59,6 +59,7 @@ func (s *GetIntegrationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIntegrationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HttpMethod != nil {
v := *s.HttpMethod
diff --git a/service/apigateway/api_op_GetIntegrationResponse.go b/service/apigateway/api_op_GetIntegrationResponse.go
index dc5994008e1..7b797f670b4 100644
--- a/service/apigateway/api_op_GetIntegrationResponse.go
+++ b/service/apigateway/api_op_GetIntegrationResponse.go
@@ -68,6 +68,7 @@ func (s *GetIntegrationResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIntegrationResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HttpMethod != nil {
v := *s.HttpMethod
diff --git a/service/apigateway/api_op_GetMethod.go b/service/apigateway/api_op_GetMethod.go
index 37823b56a42..fabea10b6f5 100644
--- a/service/apigateway/api_op_GetMethod.go
+++ b/service/apigateway/api_op_GetMethod.go
@@ -59,6 +59,7 @@ func (s *GetMethodInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMethodInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HttpMethod != nil {
v := *s.HttpMethod
diff --git a/service/apigateway/api_op_GetMethodResponse.go b/service/apigateway/api_op_GetMethodResponse.go
index a41b84ece67..9f0fc5daaa3 100644
--- a/service/apigateway/api_op_GetMethodResponse.go
+++ b/service/apigateway/api_op_GetMethodResponse.go
@@ -68,6 +68,7 @@ func (s *GetMethodResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMethodResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HttpMethod != nil {
v := *s.HttpMethod
diff --git a/service/apigateway/api_op_GetModel.go b/service/apigateway/api_op_GetModel.go
index c5dc069bd90..ee518fbd37f 100644
--- a/service/apigateway/api_op_GetModel.go
+++ b/service/apigateway/api_op_GetModel.go
@@ -55,6 +55,7 @@ func (s *GetModelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetModelInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ModelName != nil {
v := *s.ModelName
diff --git a/service/apigateway/api_op_GetModelTemplate.go b/service/apigateway/api_op_GetModelTemplate.go
index febad4f769a..680a686ad86 100644
--- a/service/apigateway/api_op_GetModelTemplate.go
+++ b/service/apigateway/api_op_GetModelTemplate.go
@@ -50,6 +50,7 @@ func (s *GetModelTemplateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetModelTemplateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ModelName != nil {
v := *s.ModelName
diff --git a/service/apigateway/api_op_GetModels.go b/service/apigateway/api_op_GetModels.go
index d54e94b57c4..e93fdc0c8fe 100644
--- a/service/apigateway/api_op_GetModels.go
+++ b/service/apigateway/api_op_GetModels.go
@@ -48,6 +48,7 @@ func (s *GetModelsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetModelsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GetRequestValidator.go b/service/apigateway/api_op_GetRequestValidator.go
index ebcc64f9e96..c9705a36180 100644
--- a/service/apigateway/api_op_GetRequestValidator.go
+++ b/service/apigateway/api_op_GetRequestValidator.go
@@ -50,6 +50,7 @@ func (s *GetRequestValidatorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetRequestValidatorInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RequestValidatorId != nil {
v := *s.RequestValidatorId
diff --git a/service/apigateway/api_op_GetRequestValidators.go b/service/apigateway/api_op_GetRequestValidators.go
index 34c88b70913..d4b03361da4 100644
--- a/service/apigateway/api_op_GetRequestValidators.go
+++ b/service/apigateway/api_op_GetRequestValidators.go
@@ -48,6 +48,7 @@ func (s *GetRequestValidatorsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetRequestValidatorsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GetResource.go b/service/apigateway/api_op_GetResource.go
index d71e8840252..adba5e1f161 100644
--- a/service/apigateway/api_op_GetResource.go
+++ b/service/apigateway/api_op_GetResource.go
@@ -58,6 +58,7 @@ func (s *GetResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceId != nil {
v := *s.ResourceId
diff --git a/service/apigateway/api_op_GetResources.go b/service/apigateway/api_op_GetResources.go
index edb02043cdd..a48cd0c55f5 100644
--- a/service/apigateway/api_op_GetResources.go
+++ b/service/apigateway/api_op_GetResources.go
@@ -56,6 +56,7 @@ func (s *GetResourcesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetResourcesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GetRestApi.go b/service/apigateway/api_op_GetRestApi.go
index c6aea5e35f5..448644e36e7 100644
--- a/service/apigateway/api_op_GetRestApi.go
+++ b/service/apigateway/api_op_GetRestApi.go
@@ -42,6 +42,7 @@ func (s *GetRestApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetRestApiInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
@@ -71,7 +72,7 @@ type GetRestApiOutput struct {
BinaryMediaTypes []string `locationName:"binaryMediaTypes" type:"list"`
// The timestamp when the API was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The API's description.
Description *string `locationName:"description" type:"string"`
@@ -138,7 +139,8 @@ func (s GetRestApiOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_GetRestApis.go b/service/apigateway/api_op_GetRestApis.go
index 26664883eb3..6bd2c5f5381 100644
--- a/service/apigateway/api_op_GetRestApis.go
+++ b/service/apigateway/api_op_GetRestApis.go
@@ -29,6 +29,7 @@ func (s GetRestApisInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetRestApisInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Limit != nil {
v := *s.Limit
diff --git a/service/apigateway/api_op_GetSdk.go b/service/apigateway/api_op_GetSdk.go
index b6945429758..ab3ddfa86c3 100644
--- a/service/apigateway/api_op_GetSdk.go
+++ b/service/apigateway/api_op_GetSdk.go
@@ -67,6 +67,7 @@ func (s *GetSdkInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSdkInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GetSdkType.go b/service/apigateway/api_op_GetSdkType.go
index f848c86bf98..1a62b748ef3 100644
--- a/service/apigateway/api_op_GetSdkType.go
+++ b/service/apigateway/api_op_GetSdkType.go
@@ -41,6 +41,7 @@ func (s *GetSdkTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSdkTypeInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/apigateway/api_op_GetSdkTypes.go b/service/apigateway/api_op_GetSdkTypes.go
index 47775ef4b5a..5604538d116 100644
--- a/service/apigateway/api_op_GetSdkTypes.go
+++ b/service/apigateway/api_op_GetSdkTypes.go
@@ -29,6 +29,7 @@ func (s GetSdkTypesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSdkTypesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Limit != nil {
v := *s.Limit
diff --git a/service/apigateway/api_op_GetStage.go b/service/apigateway/api_op_GetStage.go
index 71a1b2f8fb4..0818d397e76 100644
--- a/service/apigateway/api_op_GetStage.go
+++ b/service/apigateway/api_op_GetStage.go
@@ -51,6 +51,7 @@ func (s *GetStageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetStageInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
@@ -93,7 +94,7 @@ type GetStageOutput struct {
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
// The timestamp when the stage was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The identifier of the Deployment that the stage points to.
DeploymentId *string `locationName:"deploymentId" type:"string"`
@@ -105,7 +106,7 @@ type GetStageOutput struct {
DocumentationVersion *string `locationName:"documentationVersion" type:"string"`
// The timestamp when the stage last updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// A map that defines the method settings for a Stage resource. Keys (designated
// as /{method_setting_key below) are method paths defined as {resource_path}/{http_method}
@@ -179,7 +180,8 @@ func (s GetStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DeploymentId != nil {
v := *s.DeploymentId
@@ -203,7 +205,8 @@ func (s GetStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.MethodSettings != nil {
v := s.MethodSettings
diff --git a/service/apigateway/api_op_GetStages.go b/service/apigateway/api_op_GetStages.go
index bac3e3ff404..5b87b3d8833 100644
--- a/service/apigateway/api_op_GetStages.go
+++ b/service/apigateway/api_op_GetStages.go
@@ -44,6 +44,7 @@ func (s *GetStagesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetStagesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestApiId != nil {
v := *s.RestApiId
diff --git a/service/apigateway/api_op_GetTags.go b/service/apigateway/api_op_GetTags.go
index 2523786804f..06a8d546cb6 100644
--- a/service/apigateway/api_op_GetTags.go
+++ b/service/apigateway/api_op_GetTags.go
@@ -50,6 +50,7 @@ func (s *GetTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetTagsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/apigateway/api_op_GetUsage.go b/service/apigateway/api_op_GetUsage.go
index 1b9910f6cc0..070decce063 100644
--- a/service/apigateway/api_op_GetUsage.go
+++ b/service/apigateway/api_op_GetUsage.go
@@ -70,6 +70,7 @@ func (s *GetUsageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUsageInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UsagePlanId != nil {
v := *s.UsagePlanId
diff --git a/service/apigateway/api_op_GetUsagePlan.go b/service/apigateway/api_op_GetUsagePlan.go
index d0644a19469..cd2eb71995a 100644
--- a/service/apigateway/api_op_GetUsagePlan.go
+++ b/service/apigateway/api_op_GetUsagePlan.go
@@ -41,6 +41,7 @@ func (s *GetUsagePlanInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUsagePlanInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UsagePlanId != nil {
v := *s.UsagePlanId
diff --git a/service/apigateway/api_op_GetUsagePlanKey.go b/service/apigateway/api_op_GetUsagePlanKey.go
index 35c6adc4c7e..2fe85a9a8f8 100644
--- a/service/apigateway/api_op_GetUsagePlanKey.go
+++ b/service/apigateway/api_op_GetUsagePlanKey.go
@@ -52,6 +52,7 @@ func (s *GetUsagePlanKeyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUsagePlanKeyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.KeyId != nil {
v := *s.KeyId
diff --git a/service/apigateway/api_op_GetUsagePlanKeys.go b/service/apigateway/api_op_GetUsagePlanKeys.go
index a2e0aa54778..153c447c84f 100644
--- a/service/apigateway/api_op_GetUsagePlanKeys.go
+++ b/service/apigateway/api_op_GetUsagePlanKeys.go
@@ -53,6 +53,7 @@ func (s *GetUsagePlanKeysInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUsagePlanKeysInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UsagePlanId != nil {
v := *s.UsagePlanId
diff --git a/service/apigateway/api_op_GetUsagePlans.go b/service/apigateway/api_op_GetUsagePlans.go
index beb44e74e9f..deaea308c1d 100644
--- a/service/apigateway/api_op_GetUsagePlans.go
+++ b/service/apigateway/api_op_GetUsagePlans.go
@@ -32,6 +32,7 @@ func (s GetUsagePlansInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUsagePlansInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.KeyId != nil {
v := *s.KeyId
diff --git a/service/apigateway/api_op_GetVpcLink.go b/service/apigateway/api_op_GetVpcLink.go
index 724ed6dfed3..d25cffcb95a 100644
--- a/service/apigateway/api_op_GetVpcLink.go
+++ b/service/apigateway/api_op_GetVpcLink.go
@@ -42,6 +42,7 @@ func (s *GetVpcLinkInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetVpcLinkInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.VpcLinkId != nil {
v := *s.VpcLinkId
diff --git a/service/apigateway/api_op_GetVpcLinks.go b/service/apigateway/api_op_GetVpcLinks.go
index ba1e669a9fc..c244585f1b6 100644
--- a/service/apigateway/api_op_GetVpcLinks.go
+++ b/service/apigateway/api_op_GetVpcLinks.go
@@ -29,6 +29,7 @@ func (s GetVpcLinksInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetVpcLinksInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Limit != nil {
v := *s.Limit
diff --git a/service/apigateway/api_op_ImportRestApi.go b/service/apigateway/api_op_ImportRestApi.go
index 828581e0148..648fbeaadc4 100644
--- a/service/apigateway/api_op_ImportRestApi.go
+++ b/service/apigateway/api_op_ImportRestApi.go
@@ -121,7 +121,7 @@ type ImportRestApiOutput struct {
BinaryMediaTypes []string `locationName:"binaryMediaTypes" type:"list"`
// The timestamp when the API was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The API's description.
Description *string `locationName:"description" type:"string"`
@@ -188,7 +188,8 @@ func (s ImportRestApiOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_PutGatewayResponse.go b/service/apigateway/api_op_PutGatewayResponse.go
index 5eff47a9fe4..e1e9e7fd0df 100644
--- a/service/apigateway/api_op_PutGatewayResponse.go
+++ b/service/apigateway/api_op_PutGatewayResponse.go
@@ -101,6 +101,7 @@ func (s *PutGatewayResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutGatewayResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResponseParameters != nil {
v := s.ResponseParameters
diff --git a/service/apigateway/api_op_PutIntegration.go b/service/apigateway/api_op_PutIntegration.go
index 8e2f701a157..cdc8868bbd6 100644
--- a/service/apigateway/api_op_PutIntegration.go
+++ b/service/apigateway/api_op_PutIntegration.go
@@ -163,6 +163,7 @@ func (s *PutIntegrationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutIntegrationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CacheKeyParameters != nil {
v := s.CacheKeyParameters
diff --git a/service/apigateway/api_op_PutIntegrationResponse.go b/service/apigateway/api_op_PutIntegrationResponse.go
index d33ab38dcdb..e921f2841b2 100644
--- a/service/apigateway/api_op_PutIntegrationResponse.go
+++ b/service/apigateway/api_op_PutIntegrationResponse.go
@@ -100,6 +100,7 @@ func (s *PutIntegrationResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutIntegrationResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ContentHandling) > 0 {
v := s.ContentHandling
diff --git a/service/apigateway/api_op_PutMethod.go b/service/apigateway/api_op_PutMethod.go
index 9d9d9edc705..4c0b98d2d9a 100644
--- a/service/apigateway/api_op_PutMethod.go
+++ b/service/apigateway/api_op_PutMethod.go
@@ -111,6 +111,7 @@ func (s *PutMethodInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutMethodInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiKeyRequired != nil {
v := *s.ApiKeyRequired
diff --git a/service/apigateway/api_op_PutMethodResponse.go b/service/apigateway/api_op_PutMethodResponse.go
index 0dd3c600a46..e624b417a5a 100644
--- a/service/apigateway/api_op_PutMethodResponse.go
+++ b/service/apigateway/api_op_PutMethodResponse.go
@@ -86,6 +86,7 @@ func (s *PutMethodResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutMethodResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResponseModels != nil {
v := s.ResponseModels
diff --git a/service/apigateway/api_op_PutRestApi.go b/service/apigateway/api_op_PutRestApi.go
index 7e2e4e89f40..176c86de707 100644
--- a/service/apigateway/api_op_PutRestApi.go
+++ b/service/apigateway/api_op_PutRestApi.go
@@ -127,7 +127,7 @@ type PutRestApiOutput struct {
BinaryMediaTypes []string `locationName:"binaryMediaTypes" type:"list"`
// The timestamp when the API was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The API's description.
Description *string `locationName:"description" type:"string"`
@@ -194,7 +194,8 @@ func (s PutRestApiOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_TagResource.go b/service/apigateway/api_op_TagResource.go
index a4e28ca71e7..fd6deb79cb6 100644
--- a/service/apigateway/api_op_TagResource.go
+++ b/service/apigateway/api_op_TagResource.go
@@ -54,6 +54,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/apigateway/api_op_TestInvokeAuthorizer.go b/service/apigateway/api_op_TestInvokeAuthorizer.go
index 446cbc5f972..550b0adda8c 100644
--- a/service/apigateway/api_op_TestInvokeAuthorizer.go
+++ b/service/apigateway/api_op_TestInvokeAuthorizer.go
@@ -74,6 +74,7 @@ func (s *TestInvokeAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TestInvokeAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AdditionalContext != nil {
v := s.AdditionalContext
diff --git a/service/apigateway/api_op_TestInvokeMethod.go b/service/apigateway/api_op_TestInvokeMethod.go
index 0d9a435d5da..006ee6faf1e 100644
--- a/service/apigateway/api_op_TestInvokeMethod.go
+++ b/service/apigateway/api_op_TestInvokeMethod.go
@@ -82,6 +82,7 @@ func (s *TestInvokeMethodInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TestInvokeMethodInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Body != nil {
v := *s.Body
diff --git a/service/apigateway/api_op_UntagResource.go b/service/apigateway/api_op_UntagResource.go
index a664bd7b902..98730b87899 100644
--- a/service/apigateway/api_op_UntagResource.go
+++ b/service/apigateway/api_op_UntagResource.go
@@ -52,6 +52,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/apigateway/api_op_UpdateAccount.go b/service/apigateway/api_op_UpdateAccount.go
index e8082ad6ba4..18e480b788c 100644
--- a/service/apigateway/api_op_UpdateAccount.go
+++ b/service/apigateway/api_op_UpdateAccount.go
@@ -26,6 +26,7 @@ func (s UpdateAccountInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAccountInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateApiKey.go b/service/apigateway/api_op_UpdateApiKey.go
index fc4f0282a96..1a8da78823f 100644
--- a/service/apigateway/api_op_UpdateApiKey.go
+++ b/service/apigateway/api_op_UpdateApiKey.go
@@ -46,6 +46,7 @@ func (s *UpdateApiKeyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateApiKeyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
@@ -78,7 +79,7 @@ type UpdateApiKeyOutput struct {
_ struct{} `type:"structure"`
// The timestamp when the API Key was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// An AWS Marketplace customer identifier , when integrating with the AWS SaaS
// Marketplace.
@@ -94,7 +95,7 @@ type UpdateApiKeyOutput struct {
Id *string `locationName:"id" type:"string"`
// The timestamp when the API Key was last updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the API Key.
Name *string `locationName:"name" type:"string"`
@@ -120,7 +121,8 @@ func (s UpdateApiKeyOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CustomerId != nil {
v := *s.CustomerId
@@ -150,7 +152,8 @@ func (s UpdateApiKeyOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/apigateway/api_op_UpdateAuthorizer.go b/service/apigateway/api_op_UpdateAuthorizer.go
index 6ec492c165c..e391e60695b 100644
--- a/service/apigateway/api_op_UpdateAuthorizer.go
+++ b/service/apigateway/api_op_UpdateAuthorizer.go
@@ -54,6 +54,7 @@ func (s *UpdateAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateBasePathMapping.go b/service/apigateway/api_op_UpdateBasePathMapping.go
index 8dfd0383377..bcdf394e158 100644
--- a/service/apigateway/api_op_UpdateBasePathMapping.go
+++ b/service/apigateway/api_op_UpdateBasePathMapping.go
@@ -54,6 +54,7 @@ func (s *UpdateBasePathMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateBasePathMappingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateClientCertificate.go b/service/apigateway/api_op_UpdateClientCertificate.go
index a595250dd73..1f22b9f2daf 100644
--- a/service/apigateway/api_op_UpdateClientCertificate.go
+++ b/service/apigateway/api_op_UpdateClientCertificate.go
@@ -46,6 +46,7 @@ func (s *UpdateClientCertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateClientCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
@@ -83,13 +84,13 @@ type UpdateClientCertificateOutput struct {
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
// The timestamp when the client certificate was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description of the client certificate.
Description *string `locationName:"description" type:"string"`
// The timestamp when the client certificate will expire.
- ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp"`
// The PEM-encoded public key of the client certificate, which can be used to
// configure certificate authentication in the integration endpoint .
@@ -116,7 +117,8 @@ func (s UpdateClientCertificateOutput) MarshalFields(e protocol.FieldEncoder) er
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -128,7 +130,8 @@ func (s UpdateClientCertificateOutput) MarshalFields(e protocol.FieldEncoder) er
v := *s.ExpirationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "expirationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "expirationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PemEncodedCertificate != nil {
v := *s.PemEncodedCertificate
diff --git a/service/apigateway/api_op_UpdateDeployment.go b/service/apigateway/api_op_UpdateDeployment.go
index 38c2199b984..1c9759863dc 100644
--- a/service/apigateway/api_op_UpdateDeployment.go
+++ b/service/apigateway/api_op_UpdateDeployment.go
@@ -56,6 +56,7 @@ func (s *UpdateDeploymentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
@@ -102,7 +103,7 @@ type UpdateDeploymentOutput struct {
ApiSummary map[string]map[string]MethodSnapshot `locationName:"apiSummary" type:"map"`
// The date and time that the deployment resource was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description for the deployment resource.
Description *string `locationName:"description" type:"string"`
@@ -139,7 +140,8 @@ func (s UpdateDeploymentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_UpdateDocumentationPart.go b/service/apigateway/api_op_UpdateDocumentationPart.go
index 972b26f5d5c..af75d3ce473 100644
--- a/service/apigateway/api_op_UpdateDocumentationPart.go
+++ b/service/apigateway/api_op_UpdateDocumentationPart.go
@@ -54,6 +54,7 @@ func (s *UpdateDocumentationPartInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDocumentationPartInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateDocumentationVersion.go b/service/apigateway/api_op_UpdateDocumentationVersion.go
index 486f711ae94..4c440a0ee8d 100644
--- a/service/apigateway/api_op_UpdateDocumentationVersion.go
+++ b/service/apigateway/api_op_UpdateDocumentationVersion.go
@@ -55,6 +55,7 @@ func (s *UpdateDocumentationVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDocumentationVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
@@ -95,7 +96,7 @@ type UpdateDocumentationVersionOutput struct {
_ struct{} `type:"structure"`
// The date when the API documentation snapshot is created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description of the API documentation snapshot.
Description *string `locationName:"description" type:"string"`
@@ -115,7 +116,8 @@ func (s UpdateDocumentationVersionOutput) MarshalFields(e protocol.FieldEncoder)
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_UpdateDomainName.go b/service/apigateway/api_op_UpdateDomainName.go
index 9b6b91130a2..c18583a49c9 100644
--- a/service/apigateway/api_op_UpdateDomainName.go
+++ b/service/apigateway/api_op_UpdateDomainName.go
@@ -46,6 +46,7 @@ func (s *UpdateDomainNameInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDomainNameInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
@@ -94,7 +95,7 @@ type UpdateDomainNameOutput struct {
// The timestamp when the certificate that was used by edge-optimized endpoint
// for this domain name was uploaded.
- CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix"`
+ CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp"`
// The domain name of the Amazon CloudFront distribution associated with this
// custom domain name for an edge-optimized endpoint. You set up this association
@@ -162,7 +163,8 @@ func (s UpdateDomainNameOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CertificateUploadDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "certificateUploadDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "certificateUploadDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DistributionDomainName != nil {
v := *s.DistributionDomainName
diff --git a/service/apigateway/api_op_UpdateGatewayResponse.go b/service/apigateway/api_op_UpdateGatewayResponse.go
index 471ce41a6be..d732677e3b1 100644
--- a/service/apigateway/api_op_UpdateGatewayResponse.go
+++ b/service/apigateway/api_op_UpdateGatewayResponse.go
@@ -93,6 +93,7 @@ func (s *UpdateGatewayResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateGatewayResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateIntegration.go b/service/apigateway/api_op_UpdateIntegration.go
index 4287c3d35c5..18e6e28d143 100644
--- a/service/apigateway/api_op_UpdateIntegration.go
+++ b/service/apigateway/api_op_UpdateIntegration.go
@@ -63,6 +63,7 @@ func (s *UpdateIntegrationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateIntegrationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateIntegrationResponse.go b/service/apigateway/api_op_UpdateIntegrationResponse.go
index d5c88b52331..a15bb0729e8 100644
--- a/service/apigateway/api_op_UpdateIntegrationResponse.go
+++ b/service/apigateway/api_op_UpdateIntegrationResponse.go
@@ -72,6 +72,7 @@ func (s *UpdateIntegrationResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateIntegrationResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateMethod.go b/service/apigateway/api_op_UpdateMethod.go
index f2f7f13de5b..0e6d65ccb8b 100644
--- a/service/apigateway/api_op_UpdateMethod.go
+++ b/service/apigateway/api_op_UpdateMethod.go
@@ -63,6 +63,7 @@ func (s *UpdateMethodInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateMethodInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateMethodResponse.go b/service/apigateway/api_op_UpdateMethodResponse.go
index 09b9bf639b1..f64cae987c8 100644
--- a/service/apigateway/api_op_UpdateMethodResponse.go
+++ b/service/apigateway/api_op_UpdateMethodResponse.go
@@ -72,6 +72,7 @@ func (s *UpdateMethodResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateMethodResponseInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateModel.go b/service/apigateway/api_op_UpdateModel.go
index 07edb1f25f2..7f7f1142cb2 100644
--- a/service/apigateway/api_op_UpdateModel.go
+++ b/service/apigateway/api_op_UpdateModel.go
@@ -54,6 +54,7 @@ func (s *UpdateModelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateModelInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateRequestValidator.go b/service/apigateway/api_op_UpdateRequestValidator.go
index 666128bb61a..8eecd6b5387 100644
--- a/service/apigateway/api_op_UpdateRequestValidator.go
+++ b/service/apigateway/api_op_UpdateRequestValidator.go
@@ -54,6 +54,7 @@ func (s *UpdateRequestValidatorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateRequestValidatorInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateResource.go b/service/apigateway/api_op_UpdateResource.go
index bf85eb6e08e..ac710c65418 100644
--- a/service/apigateway/api_op_UpdateResource.go
+++ b/service/apigateway/api_op_UpdateResource.go
@@ -54,6 +54,7 @@ func (s *UpdateResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateRestApi.go b/service/apigateway/api_op_UpdateRestApi.go
index e9c7b397cfa..df68873bb5d 100644
--- a/service/apigateway/api_op_UpdateRestApi.go
+++ b/service/apigateway/api_op_UpdateRestApi.go
@@ -46,6 +46,7 @@ func (s *UpdateRestApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateRestApiInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
@@ -87,7 +88,7 @@ type UpdateRestApiOutput struct {
BinaryMediaTypes []string `locationName:"binaryMediaTypes" type:"list"`
// The timestamp when the API was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The API's description.
Description *string `locationName:"description" type:"string"`
@@ -154,7 +155,8 @@ func (s UpdateRestApiOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigateway/api_op_UpdateStage.go b/service/apigateway/api_op_UpdateStage.go
index 2cdfc1839b8..fc46d4655dd 100644
--- a/service/apigateway/api_op_UpdateStage.go
+++ b/service/apigateway/api_op_UpdateStage.go
@@ -55,6 +55,7 @@ func (s *UpdateStageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateStageInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
@@ -109,7 +110,7 @@ type UpdateStageOutput struct {
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
// The timestamp when the stage was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The identifier of the Deployment that the stage points to.
DeploymentId *string `locationName:"deploymentId" type:"string"`
@@ -121,7 +122,7 @@ type UpdateStageOutput struct {
DocumentationVersion *string `locationName:"documentationVersion" type:"string"`
// The timestamp when the stage last updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// A map that defines the method settings for a Stage resource. Keys (designated
// as /{method_setting_key below) are method paths defined as {resource_path}/{http_method}
@@ -195,7 +196,8 @@ func (s UpdateStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DeploymentId != nil {
v := *s.DeploymentId
@@ -219,7 +221,8 @@ func (s UpdateStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.MethodSettings != nil {
v := s.MethodSettings
diff --git a/service/apigateway/api_op_UpdateUsage.go b/service/apigateway/api_op_UpdateUsage.go
index 5809e6e937a..2cfcf8bca5d 100644
--- a/service/apigateway/api_op_UpdateUsage.go
+++ b/service/apigateway/api_op_UpdateUsage.go
@@ -56,6 +56,7 @@ func (s *UpdateUsageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUsageInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateUsagePlan.go b/service/apigateway/api_op_UpdateUsagePlan.go
index faca1193e15..42d1414c748 100644
--- a/service/apigateway/api_op_UpdateUsagePlan.go
+++ b/service/apigateway/api_op_UpdateUsagePlan.go
@@ -45,6 +45,7 @@ func (s *UpdateUsagePlanInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUsagePlanInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_op_UpdateVpcLink.go b/service/apigateway/api_op_UpdateVpcLink.go
index f64476ab050..dbcb633eed4 100644
--- a/service/apigateway/api_op_UpdateVpcLink.go
+++ b/service/apigateway/api_op_UpdateVpcLink.go
@@ -46,6 +46,7 @@ func (s *UpdateVpcLinkInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateVpcLinkInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PatchOperations != nil {
v := s.PatchOperations
diff --git a/service/apigateway/api_types.go b/service/apigateway/api_types.go
index 29ea649708c..8d4a3c52568 100644
--- a/service/apigateway/api_types.go
+++ b/service/apigateway/api_types.go
@@ -59,7 +59,7 @@ type ApiKey struct {
_ struct{} `type:"structure"`
// The timestamp when the API Key was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// An AWS Marketplace customer identifier , when integrating with the AWS SaaS
// Marketplace.
@@ -75,7 +75,7 @@ type ApiKey struct {
Id *string `locationName:"id" type:"string"`
// The timestamp when the API Key was last updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the API Key.
Name *string `locationName:"name" type:"string"`
@@ -101,7 +101,8 @@ func (s ApiKey) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CustomerId != nil {
v := *s.CustomerId
@@ -131,7 +132,8 @@ func (s ApiKey) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -501,13 +503,13 @@ type Certificate struct {
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
// The timestamp when the client certificate was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description of the client certificate.
Description *string `locationName:"description" type:"string"`
// The timestamp when the client certificate will expire.
- ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp"`
// The PEM-encoded public key of the client certificate, which can be used to
// configure certificate authentication in the integration endpoint .
@@ -534,7 +536,8 @@ func (s Certificate) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -546,7 +549,8 @@ func (s Certificate) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ExpirationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "expirationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "expirationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PemEncodedCertificate != nil {
v := *s.PemEncodedCertificate
@@ -587,7 +591,7 @@ type Deployment struct {
ApiSummary map[string]map[string]MethodSnapshot `locationName:"apiSummary" type:"map"`
// The date and time that the deployment resource was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description for the deployment resource.
Description *string `locationName:"description" type:"string"`
@@ -624,7 +628,8 @@ func (s Deployment) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -871,7 +876,7 @@ type DocumentationVersion struct {
_ struct{} `type:"structure"`
// The date when the API documentation snapshot is created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The description of the API documentation snapshot.
Description *string `locationName:"description" type:"string"`
@@ -891,7 +896,8 @@ func (s DocumentationVersion) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -934,7 +940,7 @@ type DomainName struct {
// The timestamp when the certificate that was used by edge-optimized endpoint
// for this domain name was uploaded.
- CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix"`
+ CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp"`
// The domain name of the Amazon CloudFront distribution associated with this
// custom domain name for an edge-optimized endpoint. You set up this association
@@ -1002,7 +1008,8 @@ func (s DomainName) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CertificateUploadDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "certificateUploadDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "certificateUploadDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DistributionDomainName != nil {
v := *s.DistributionDomainName
@@ -2589,7 +2596,7 @@ type RestApi struct {
BinaryMediaTypes []string `locationName:"binaryMediaTypes" type:"list"`
// The timestamp when the API was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The API's description.
Description *string `locationName:"description" type:"string"`
@@ -2656,7 +2663,8 @@ func (s RestApi) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -2871,7 +2879,7 @@ type Stage struct {
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
// The timestamp when the stage was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The identifier of the Deployment that the stage points to.
DeploymentId *string `locationName:"deploymentId" type:"string"`
@@ -2883,7 +2891,7 @@ type Stage struct {
DocumentationVersion *string `locationName:"documentationVersion" type:"string"`
// The timestamp when the stage last updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// A map that defines the method settings for a Stage resource. Keys (designated
// as /{method_setting_key below) are method paths defined as {resource_path}/{http_method}
@@ -2957,7 +2965,8 @@ func (s Stage) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DeploymentId != nil {
v := *s.DeploymentId
@@ -2981,7 +2990,8 @@ func (s Stage) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.MethodSettings != nil {
v := s.MethodSettings
diff --git a/service/apigatewayv2/api_op_CreateApi.go b/service/apigatewayv2/api_op_CreateApi.go
index 01b5db0d22f..81301cce764 100644
--- a/service/apigatewayv2/api_op_CreateApi.go
+++ b/service/apigatewayv2/api_op_CreateApi.go
@@ -72,7 +72,7 @@ func (s *CreateApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateApiInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiKeySelectionExpression != nil {
v := *s.ApiKeySelectionExpression
@@ -133,7 +133,7 @@ type CreateApiOutput struct {
// for more information.
ApiKeySelectionExpression *string `locationName:"apiKeySelectionExpression" type:"string"`
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// A string with a length between [0-1024].
Description *string `locationName:"description" type:"string"`
@@ -185,7 +185,8 @@ func (s CreateApiOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigatewayv2/api_op_CreateApiMapping.go b/service/apigatewayv2/api_op_CreateApiMapping.go
index 480c93ad792..bfe45b53ef8 100644
--- a/service/apigatewayv2/api_op_CreateApiMapping.go
+++ b/service/apigatewayv2/api_op_CreateApiMapping.go
@@ -64,7 +64,7 @@ func (s *CreateApiMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateApiMappingInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_CreateAuthorizer.go b/service/apigatewayv2/api_op_CreateAuthorizer.go
index 2ade04063fc..3849491f813 100644
--- a/service/apigatewayv2/api_op_CreateAuthorizer.go
+++ b/service/apigatewayv2/api_op_CreateAuthorizer.go
@@ -99,7 +99,7 @@ func (s *CreateAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthorizerCredentialsArn != nil {
v := *s.AuthorizerCredentialsArn
diff --git a/service/apigatewayv2/api_op_CreateDeployment.go b/service/apigatewayv2/api_op_CreateDeployment.go
index 911cdc7a03c..ae6aaff8726 100644
--- a/service/apigatewayv2/api_op_CreateDeployment.go
+++ b/service/apigatewayv2/api_op_CreateDeployment.go
@@ -46,7 +46,7 @@ func (s *CreateDeploymentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
@@ -73,7 +73,7 @@ func (s CreateDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
type CreateDeploymentOutput struct {
_ struct{} `type:"structure"`
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// The identifier.
DeploymentId *string `locationName:"deploymentId" type:"string"`
@@ -98,7 +98,8 @@ func (s CreateDeploymentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.DeploymentId != nil {
v := *s.DeploymentId
diff --git a/service/apigatewayv2/api_op_CreateDomainName.go b/service/apigatewayv2/api_op_CreateDomainName.go
index 5971d20460f..e45d2a476da 100644
--- a/service/apigatewayv2/api_op_CreateDomainName.go
+++ b/service/apigatewayv2/api_op_CreateDomainName.go
@@ -44,7 +44,7 @@ func (s *CreateDomainNameInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDomainNameInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/apigatewayv2/api_op_CreateIntegration.go b/service/apigatewayv2/api_op_CreateIntegration.go
index 9da321f9aad..c7cd023a4ed 100644
--- a/service/apigatewayv2/api_op_CreateIntegration.go
+++ b/service/apigatewayv2/api_op_CreateIntegration.go
@@ -99,7 +99,7 @@ func (s *CreateIntegrationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateIntegrationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConnectionId != nil {
v := *s.ConnectionId
diff --git a/service/apigatewayv2/api_op_CreateIntegrationResponse.go b/service/apigatewayv2/api_op_CreateIntegrationResponse.go
index 1a6e669c5e8..ef581397b93 100644
--- a/service/apigatewayv2/api_op_CreateIntegrationResponse.go
+++ b/service/apigatewayv2/api_op_CreateIntegrationResponse.go
@@ -84,7 +84,7 @@ func (s *CreateIntegrationResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateIntegrationResponseInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ContentHandlingStrategy) > 0 {
v := s.ContentHandlingStrategy
diff --git a/service/apigatewayv2/api_op_CreateModel.go b/service/apigatewayv2/api_op_CreateModel.go
index 2f9ed3e0e09..ca90970127f 100644
--- a/service/apigatewayv2/api_op_CreateModel.go
+++ b/service/apigatewayv2/api_op_CreateModel.go
@@ -63,7 +63,7 @@ func (s *CreateModelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateModelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ContentType != nil {
v := *s.ContentType
diff --git a/service/apigatewayv2/api_op_CreateRoute.go b/service/apigatewayv2/api_op_CreateRoute.go
index 721b06aab39..1054e5d80a7 100644
--- a/service/apigatewayv2/api_op_CreateRoute.go
+++ b/service/apigatewayv2/api_op_CreateRoute.go
@@ -93,7 +93,7 @@ func (s *CreateRouteInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateRouteInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiKeyRequired != nil {
v := *s.ApiKeyRequired
diff --git a/service/apigatewayv2/api_op_CreateRouteResponse.go b/service/apigatewayv2/api_op_CreateRouteResponse.go
index 6fe8312d9e0..d4d4df8e12e 100644
--- a/service/apigatewayv2/api_op_CreateRouteResponse.go
+++ b/service/apigatewayv2/api_op_CreateRouteResponse.go
@@ -70,7 +70,7 @@ func (s *CreateRouteResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateRouteResponseInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ModelSelectionExpression != nil {
v := *s.ModelSelectionExpression
diff --git a/service/apigatewayv2/api_op_CreateStage.go b/service/apigatewayv2/api_op_CreateStage.go
index 3624d3db930..3f11f25f0e7 100644
--- a/service/apigatewayv2/api_op_CreateStage.go
+++ b/service/apigatewayv2/api_op_CreateStage.go
@@ -70,7 +70,7 @@ func (s *CreateStageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateStageInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccessLogSettings != nil {
v := s.AccessLogSettings
@@ -151,7 +151,7 @@ type CreateStageOutput struct {
// The identifier.
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// Represents a collection of route settings.
DefaultRouteSettings *RouteSettings `locationName:"defaultRouteSettings" type:"structure"`
@@ -162,7 +162,7 @@ type CreateStageOutput struct {
// A string with a length between [0-1024].
Description *string `locationName:"description" type:"string"`
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"iso8601"`
// The route settings map.
RouteSettings map[string]RouteSettings `locationName:"routeSettings" type:"map"`
@@ -197,7 +197,8 @@ func (s CreateStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.DefaultRouteSettings != nil {
v := s.DefaultRouteSettings
@@ -221,7 +222,8 @@ func (s CreateStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.RouteSettings != nil {
v := s.RouteSettings
diff --git a/service/apigatewayv2/api_op_DeleteApi.go b/service/apigatewayv2/api_op_DeleteApi.go
index 444fabd13e2..031e70c6c21 100644
--- a/service/apigatewayv2/api_op_DeleteApi.go
+++ b/service/apigatewayv2/api_op_DeleteApi.go
@@ -40,7 +40,7 @@ func (s *DeleteApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteApiInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_DeleteApiMapping.go b/service/apigatewayv2/api_op_DeleteApiMapping.go
index 3600a11ab2a..48159ae1395 100644
--- a/service/apigatewayv2/api_op_DeleteApiMapping.go
+++ b/service/apigatewayv2/api_op_DeleteApiMapping.go
@@ -47,7 +47,7 @@ func (s *DeleteApiMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteApiMappingInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiMappingId != nil {
v := *s.ApiMappingId
diff --git a/service/apigatewayv2/api_op_DeleteAuthorizer.go b/service/apigatewayv2/api_op_DeleteAuthorizer.go
index 75e38c6ba0a..03ce30d44ab 100644
--- a/service/apigatewayv2/api_op_DeleteAuthorizer.go
+++ b/service/apigatewayv2/api_op_DeleteAuthorizer.go
@@ -47,7 +47,7 @@ func (s *DeleteAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_DeleteDeployment.go b/service/apigatewayv2/api_op_DeleteDeployment.go
index 52f943e7c34..7e778a4e2f1 100644
--- a/service/apigatewayv2/api_op_DeleteDeployment.go
+++ b/service/apigatewayv2/api_op_DeleteDeployment.go
@@ -47,7 +47,7 @@ func (s *DeleteDeploymentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_DeleteDomainName.go b/service/apigatewayv2/api_op_DeleteDomainName.go
index 987c9af0411..3097094e08a 100644
--- a/service/apigatewayv2/api_op_DeleteDomainName.go
+++ b/service/apigatewayv2/api_op_DeleteDomainName.go
@@ -40,7 +40,7 @@ func (s *DeleteDomainNameInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDomainNameInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/apigatewayv2/api_op_DeleteIntegration.go b/service/apigatewayv2/api_op_DeleteIntegration.go
index 4e91f35daa5..4f131d90d44 100644
--- a/service/apigatewayv2/api_op_DeleteIntegration.go
+++ b/service/apigatewayv2/api_op_DeleteIntegration.go
@@ -47,7 +47,7 @@ func (s *DeleteIntegrationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteIntegrationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_DeleteIntegrationResponse.go b/service/apigatewayv2/api_op_DeleteIntegrationResponse.go
index 745f802c1dc..9becb2698e9 100644
--- a/service/apigatewayv2/api_op_DeleteIntegrationResponse.go
+++ b/service/apigatewayv2/api_op_DeleteIntegrationResponse.go
@@ -54,7 +54,7 @@ func (s *DeleteIntegrationResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteIntegrationResponseInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_DeleteModel.go b/service/apigatewayv2/api_op_DeleteModel.go
index ea4da29c1fd..4bc1f161bb7 100644
--- a/service/apigatewayv2/api_op_DeleteModel.go
+++ b/service/apigatewayv2/api_op_DeleteModel.go
@@ -47,7 +47,7 @@ func (s *DeleteModelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteModelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_DeleteRoute.go b/service/apigatewayv2/api_op_DeleteRoute.go
index b8038911593..1f7f04582ab 100644
--- a/service/apigatewayv2/api_op_DeleteRoute.go
+++ b/service/apigatewayv2/api_op_DeleteRoute.go
@@ -47,7 +47,7 @@ func (s *DeleteRouteInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteRouteInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_DeleteRouteResponse.go b/service/apigatewayv2/api_op_DeleteRouteResponse.go
index bedbaf107d9..1607a804b87 100644
--- a/service/apigatewayv2/api_op_DeleteRouteResponse.go
+++ b/service/apigatewayv2/api_op_DeleteRouteResponse.go
@@ -54,7 +54,7 @@ func (s *DeleteRouteResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteRouteResponseInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_DeleteStage.go b/service/apigatewayv2/api_op_DeleteStage.go
index dbaee4a71ee..4d855888d6f 100644
--- a/service/apigatewayv2/api_op_DeleteStage.go
+++ b/service/apigatewayv2/api_op_DeleteStage.go
@@ -47,7 +47,7 @@ func (s *DeleteStageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteStageInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetApi.go b/service/apigatewayv2/api_op_GetApi.go
index 7d77395cd27..7a2bc80ec68 100644
--- a/service/apigatewayv2/api_op_GetApi.go
+++ b/service/apigatewayv2/api_op_GetApi.go
@@ -40,7 +40,7 @@ func (s *GetApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApiInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
@@ -65,7 +65,7 @@ type GetApiOutput struct {
// for more information.
ApiKeySelectionExpression *string `locationName:"apiKeySelectionExpression" type:"string"`
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// A string with a length between [0-1024].
Description *string `locationName:"description" type:"string"`
@@ -117,7 +117,8 @@ func (s GetApiOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigatewayv2/api_op_GetApiMapping.go b/service/apigatewayv2/api_op_GetApiMapping.go
index 339e812738f..4cf3f8a2fce 100644
--- a/service/apigatewayv2/api_op_GetApiMapping.go
+++ b/service/apigatewayv2/api_op_GetApiMapping.go
@@ -46,7 +46,7 @@ func (s *GetApiMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApiMappingInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiMappingId != nil {
v := *s.ApiMappingId
diff --git a/service/apigatewayv2/api_op_GetApiMappings.go b/service/apigatewayv2/api_op_GetApiMappings.go
index d706d211da7..89af5f6dbe4 100644
--- a/service/apigatewayv2/api_op_GetApiMappings.go
+++ b/service/apigatewayv2/api_op_GetApiMappings.go
@@ -43,7 +43,7 @@ func (s *GetApiMappingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApiMappingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/apigatewayv2/api_op_GetApis.go b/service/apigatewayv2/api_op_GetApis.go
index 13c17ec5a0d..ee5a9ec003b 100644
--- a/service/apigatewayv2/api_op_GetApis.go
+++ b/service/apigatewayv2/api_op_GetApis.go
@@ -26,7 +26,7 @@ func (s GetApisInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApisInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/apigatewayv2/api_op_GetAuthorizer.go b/service/apigatewayv2/api_op_GetAuthorizer.go
index 164c1cfebeb..0d51bb65e3f 100644
--- a/service/apigatewayv2/api_op_GetAuthorizer.go
+++ b/service/apigatewayv2/api_op_GetAuthorizer.go
@@ -46,7 +46,7 @@ func (s *GetAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetAuthorizers.go b/service/apigatewayv2/api_op_GetAuthorizers.go
index 19d54391885..eec91421fa8 100644
--- a/service/apigatewayv2/api_op_GetAuthorizers.go
+++ b/service/apigatewayv2/api_op_GetAuthorizers.go
@@ -43,7 +43,7 @@ func (s *GetAuthorizersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAuthorizersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetDeployment.go b/service/apigatewayv2/api_op_GetDeployment.go
index 72fd8226062..dbb252317ad 100644
--- a/service/apigatewayv2/api_op_GetDeployment.go
+++ b/service/apigatewayv2/api_op_GetDeployment.go
@@ -47,7 +47,7 @@ func (s *GetDeploymentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
@@ -68,7 +68,7 @@ func (s GetDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
type GetDeploymentOutput struct {
_ struct{} `type:"structure"`
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// The identifier.
DeploymentId *string `locationName:"deploymentId" type:"string"`
@@ -93,7 +93,8 @@ func (s GetDeploymentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.DeploymentId != nil {
v := *s.DeploymentId
diff --git a/service/apigatewayv2/api_op_GetDeployments.go b/service/apigatewayv2/api_op_GetDeployments.go
index c9964e6aae2..c782b54b194 100644
--- a/service/apigatewayv2/api_op_GetDeployments.go
+++ b/service/apigatewayv2/api_op_GetDeployments.go
@@ -43,7 +43,7 @@ func (s *GetDeploymentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDeploymentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetDomainName.go b/service/apigatewayv2/api_op_GetDomainName.go
index 8c4f3aa2831..ef625acd798 100644
--- a/service/apigatewayv2/api_op_GetDomainName.go
+++ b/service/apigatewayv2/api_op_GetDomainName.go
@@ -39,7 +39,7 @@ func (s *GetDomainNameInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDomainNameInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/apigatewayv2/api_op_GetDomainNames.go b/service/apigatewayv2/api_op_GetDomainNames.go
index 3b5316c4005..23809958289 100644
--- a/service/apigatewayv2/api_op_GetDomainNames.go
+++ b/service/apigatewayv2/api_op_GetDomainNames.go
@@ -26,7 +26,7 @@ func (s GetDomainNamesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDomainNamesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/apigatewayv2/api_op_GetIntegration.go b/service/apigatewayv2/api_op_GetIntegration.go
index a830d4435f2..32ca316b3c0 100644
--- a/service/apigatewayv2/api_op_GetIntegration.go
+++ b/service/apigatewayv2/api_op_GetIntegration.go
@@ -46,7 +46,7 @@ func (s *GetIntegrationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIntegrationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetIntegrationResponse.go b/service/apigatewayv2/api_op_GetIntegrationResponse.go
index 048bb4aee36..402df101049 100644
--- a/service/apigatewayv2/api_op_GetIntegrationResponse.go
+++ b/service/apigatewayv2/api_op_GetIntegrationResponse.go
@@ -53,7 +53,7 @@ func (s *GetIntegrationResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIntegrationResponseInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetIntegrationResponses.go b/service/apigatewayv2/api_op_GetIntegrationResponses.go
index 217d17190aa..101ada9dec1 100644
--- a/service/apigatewayv2/api_op_GetIntegrationResponses.go
+++ b/service/apigatewayv2/api_op_GetIntegrationResponses.go
@@ -50,7 +50,7 @@ func (s *GetIntegrationResponsesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIntegrationResponsesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetIntegrations.go b/service/apigatewayv2/api_op_GetIntegrations.go
index f9ca0a59458..85b22554fa8 100644
--- a/service/apigatewayv2/api_op_GetIntegrations.go
+++ b/service/apigatewayv2/api_op_GetIntegrations.go
@@ -43,7 +43,7 @@ func (s *GetIntegrationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIntegrationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetModel.go b/service/apigatewayv2/api_op_GetModel.go
index d3942fc5fc1..318b41b01d2 100644
--- a/service/apigatewayv2/api_op_GetModel.go
+++ b/service/apigatewayv2/api_op_GetModel.go
@@ -46,7 +46,7 @@ func (s *GetModelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetModelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetModelTemplate.go b/service/apigatewayv2/api_op_GetModelTemplate.go
index c06bc868716..30fc95a9627 100644
--- a/service/apigatewayv2/api_op_GetModelTemplate.go
+++ b/service/apigatewayv2/api_op_GetModelTemplate.go
@@ -46,7 +46,7 @@ func (s *GetModelTemplateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetModelTemplateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetModels.go b/service/apigatewayv2/api_op_GetModels.go
index 6c199a8a0e1..dfac9599e1d 100644
--- a/service/apigatewayv2/api_op_GetModels.go
+++ b/service/apigatewayv2/api_op_GetModels.go
@@ -43,7 +43,7 @@ func (s *GetModelsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetModelsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetRoute.go b/service/apigatewayv2/api_op_GetRoute.go
index 4fe8b00cb66..80e2346fb0d 100644
--- a/service/apigatewayv2/api_op_GetRoute.go
+++ b/service/apigatewayv2/api_op_GetRoute.go
@@ -46,7 +46,7 @@ func (s *GetRouteInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetRouteInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetRouteResponse.go b/service/apigatewayv2/api_op_GetRouteResponse.go
index b34ebe1cb76..4719d26626c 100644
--- a/service/apigatewayv2/api_op_GetRouteResponse.go
+++ b/service/apigatewayv2/api_op_GetRouteResponse.go
@@ -53,7 +53,7 @@ func (s *GetRouteResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetRouteResponseInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetRouteResponses.go b/service/apigatewayv2/api_op_GetRouteResponses.go
index b24c31317f1..f9c8c950b8d 100644
--- a/service/apigatewayv2/api_op_GetRouteResponses.go
+++ b/service/apigatewayv2/api_op_GetRouteResponses.go
@@ -50,7 +50,7 @@ func (s *GetRouteResponsesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetRouteResponsesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetRoutes.go b/service/apigatewayv2/api_op_GetRoutes.go
index 2e028e8e592..075b50966dd 100644
--- a/service/apigatewayv2/api_op_GetRoutes.go
+++ b/service/apigatewayv2/api_op_GetRoutes.go
@@ -43,7 +43,7 @@ func (s *GetRoutesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetRoutesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_GetStage.go b/service/apigatewayv2/api_op_GetStage.go
index 11e143d123e..15c3f2a0171 100644
--- a/service/apigatewayv2/api_op_GetStage.go
+++ b/service/apigatewayv2/api_op_GetStage.go
@@ -47,7 +47,7 @@ func (s *GetStageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetStageInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
@@ -74,7 +74,7 @@ type GetStageOutput struct {
// The identifier.
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// Represents a collection of route settings.
DefaultRouteSettings *RouteSettings `locationName:"defaultRouteSettings" type:"structure"`
@@ -85,7 +85,7 @@ type GetStageOutput struct {
// A string with a length between [0-1024].
Description *string `locationName:"description" type:"string"`
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"iso8601"`
// The route settings map.
RouteSettings map[string]RouteSettings `locationName:"routeSettings" type:"map"`
@@ -120,7 +120,8 @@ func (s GetStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.DefaultRouteSettings != nil {
v := s.DefaultRouteSettings
@@ -144,7 +145,8 @@ func (s GetStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.RouteSettings != nil {
v := s.RouteSettings
diff --git a/service/apigatewayv2/api_op_GetStages.go b/service/apigatewayv2/api_op_GetStages.go
index 2aa798fc08f..9c4e5cd525d 100644
--- a/service/apigatewayv2/api_op_GetStages.go
+++ b/service/apigatewayv2/api_op_GetStages.go
@@ -43,7 +43,7 @@ func (s *GetStagesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetStagesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_UpdateApi.go b/service/apigatewayv2/api_op_UpdateApi.go
index 7f084fe9524..54c930bf908 100644
--- a/service/apigatewayv2/api_op_UpdateApi.go
+++ b/service/apigatewayv2/api_op_UpdateApi.go
@@ -61,7 +61,7 @@ func (s *UpdateApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateApiInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiKeySelectionExpression != nil {
v := *s.ApiKeySelectionExpression
@@ -122,7 +122,7 @@ type UpdateApiOutput struct {
// for more information.
ApiKeySelectionExpression *string `locationName:"apiKeySelectionExpression" type:"string"`
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// A string with a length between [0-1024].
Description *string `locationName:"description" type:"string"`
@@ -174,7 +174,8 @@ func (s UpdateApiOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/apigatewayv2/api_op_UpdateApiMapping.go b/service/apigatewayv2/api_op_UpdateApiMapping.go
index 9420e06e7b2..e2f765865ba 100644
--- a/service/apigatewayv2/api_op_UpdateApiMapping.go
+++ b/service/apigatewayv2/api_op_UpdateApiMapping.go
@@ -65,7 +65,7 @@ func (s *UpdateApiMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateApiMappingInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/apigatewayv2/api_op_UpdateAuthorizer.go b/service/apigatewayv2/api_op_UpdateAuthorizer.go
index 71a98c20697..98f6fa54da9 100644
--- a/service/apigatewayv2/api_op_UpdateAuthorizer.go
+++ b/service/apigatewayv2/api_op_UpdateAuthorizer.go
@@ -83,7 +83,7 @@ func (s *UpdateAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthorizerCredentialsArn != nil {
v := *s.AuthorizerCredentialsArn
diff --git a/service/apigatewayv2/api_op_UpdateDeployment.go b/service/apigatewayv2/api_op_UpdateDeployment.go
index c298cbd41cb..637471618c7 100644
--- a/service/apigatewayv2/api_op_UpdateDeployment.go
+++ b/service/apigatewayv2/api_op_UpdateDeployment.go
@@ -50,7 +50,7 @@ func (s *UpdateDeploymentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
@@ -77,7 +77,7 @@ func (s UpdateDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
type UpdateDeploymentOutput struct {
_ struct{} `type:"structure"`
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// The identifier.
DeploymentId *string `locationName:"deploymentId" type:"string"`
@@ -102,7 +102,8 @@ func (s UpdateDeploymentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.DeploymentId != nil {
v := *s.DeploymentId
diff --git a/service/apigatewayv2/api_op_UpdateDomainName.go b/service/apigatewayv2/api_op_UpdateDomainName.go
index c4574589396..55d8ef14e92 100644
--- a/service/apigatewayv2/api_op_UpdateDomainName.go
+++ b/service/apigatewayv2/api_op_UpdateDomainName.go
@@ -42,7 +42,7 @@ func (s *UpdateDomainNameInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDomainNameInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainNameConfigurations != nil {
v := s.DomainNameConfigurations
diff --git a/service/apigatewayv2/api_op_UpdateIntegration.go b/service/apigatewayv2/api_op_UpdateIntegration.go
index 865eb2f77e0..1ab5f00f8cd 100644
--- a/service/apigatewayv2/api_op_UpdateIntegration.go
+++ b/service/apigatewayv2/api_op_UpdateIntegration.go
@@ -101,7 +101,7 @@ func (s *UpdateIntegrationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateIntegrationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConnectionId != nil {
v := *s.ConnectionId
diff --git a/service/apigatewayv2/api_op_UpdateIntegrationResponse.go b/service/apigatewayv2/api_op_UpdateIntegrationResponse.go
index a448706a670..88f67627eb1 100644
--- a/service/apigatewayv2/api_op_UpdateIntegrationResponse.go
+++ b/service/apigatewayv2/api_op_UpdateIntegrationResponse.go
@@ -85,7 +85,7 @@ func (s *UpdateIntegrationResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateIntegrationResponseInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ContentHandlingStrategy) > 0 {
v := s.ContentHandlingStrategy
diff --git a/service/apigatewayv2/api_op_UpdateModel.go b/service/apigatewayv2/api_op_UpdateModel.go
index 70a66154fbc..9614ed84022 100644
--- a/service/apigatewayv2/api_op_UpdateModel.go
+++ b/service/apigatewayv2/api_op_UpdateModel.go
@@ -58,7 +58,7 @@ func (s *UpdateModelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateModelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ContentType != nil {
v := *s.ContentType
diff --git a/service/apigatewayv2/api_op_UpdateRoute.go b/service/apigatewayv2/api_op_UpdateRoute.go
index 71fd69d2269..b4559a857bb 100644
--- a/service/apigatewayv2/api_op_UpdateRoute.go
+++ b/service/apigatewayv2/api_op_UpdateRoute.go
@@ -94,7 +94,7 @@ func (s *UpdateRouteInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateRouteInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiKeyRequired != nil {
v := *s.ApiKeyRequired
diff --git a/service/apigatewayv2/api_op_UpdateRouteResponse.go b/service/apigatewayv2/api_op_UpdateRouteResponse.go
index 8152b882f74..2475acdb874 100644
--- a/service/apigatewayv2/api_op_UpdateRouteResponse.go
+++ b/service/apigatewayv2/api_op_UpdateRouteResponse.go
@@ -71,7 +71,7 @@ func (s *UpdateRouteResponseInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateRouteResponseInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ModelSelectionExpression != nil {
v := *s.ModelSelectionExpression
diff --git a/service/apigatewayv2/api_op_UpdateStage.go b/service/apigatewayv2/api_op_UpdateStage.go
index 474517bbcf9..206ba62edea 100644
--- a/service/apigatewayv2/api_op_UpdateStage.go
+++ b/service/apigatewayv2/api_op_UpdateStage.go
@@ -68,7 +68,7 @@ func (s *UpdateStageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateStageInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccessLogSettings != nil {
v := s.AccessLogSettings
@@ -149,7 +149,7 @@ type UpdateStageOutput struct {
// The identifier.
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// Represents a collection of route settings.
DefaultRouteSettings *RouteSettings `locationName:"defaultRouteSettings" type:"structure"`
@@ -160,7 +160,7 @@ type UpdateStageOutput struct {
// A string with a length between [0-1024].
Description *string `locationName:"description" type:"string"`
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"iso8601"`
// The route settings map.
RouteSettings map[string]RouteSettings `locationName:"routeSettings" type:"map"`
@@ -195,7 +195,8 @@ func (s UpdateStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.DefaultRouteSettings != nil {
v := s.DefaultRouteSettings
@@ -219,7 +220,8 @@ func (s UpdateStageOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.RouteSettings != nil {
v := s.RouteSettings
diff --git a/service/apigatewayv2/api_types.go b/service/apigatewayv2/api_types.go
index 8da968fae6c..a46fdd4f1d5 100644
--- a/service/apigatewayv2/api_types.go
+++ b/service/apigatewayv2/api_types.go
@@ -65,7 +65,7 @@ type Api struct {
ApiKeySelectionExpression *string `locationName:"apiKeySelectionExpression" type:"string"`
// The timestamp when the API was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// The description of the API.
Description *string `locationName:"description" type:"string"`
@@ -125,7 +125,8 @@ func (s Api) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -379,7 +380,7 @@ type Deployment struct {
_ struct{} `type:"structure"`
// The date and time when the Deployment resource was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// The identifier for the deployment.
DeploymentId *string `locationName:"deploymentId" type:"string"`
@@ -405,7 +406,8 @@ func (s Deployment) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.DeploymentId != nil {
v := *s.DeploymentId
@@ -503,7 +505,7 @@ type DomainNameConfiguration struct {
// The timestamp when the certificate that was used by edge-optimized endpoint
// for this domain name was uploaded.
- CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix"`
+ CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"iso8601"`
// The endpoint type.
EndpointType EndpointType `locationName:"endpointType" type:"string" enum:"true"`
@@ -541,7 +543,8 @@ func (s DomainNameConfiguration) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CertificateUploadDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "certificateUploadDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "certificateUploadDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if len(s.EndpointType) > 0 {
v := s.EndpointType
@@ -1285,7 +1288,7 @@ type Stage struct {
ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
// The timestamp when the stage was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"iso8601"`
// Default route settings for the stage.
DefaultRouteSettings *RouteSettings `locationName:"defaultRouteSettings" type:"structure"`
@@ -1297,7 +1300,7 @@ type Stage struct {
Description *string `locationName:"description" type:"string"`
// The timestamp when the stage was last updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"iso8601"`
// Route settings for the stage.
RouteSettings map[string]RouteSettings `locationName:"routeSettings" type:"map"`
@@ -1336,7 +1339,8 @@ func (s Stage) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.DefaultRouteSettings != nil {
v := s.DefaultRouteSettings
@@ -1360,7 +1364,8 @@ func (s Stage) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.RouteSettings != nil {
v := s.RouteSettings
diff --git a/service/applicationautoscaling/api_op_PutScheduledAction.go b/service/applicationautoscaling/api_op_PutScheduledAction.go
index 97d40ed77c1..d29b4a3bb93 100644
--- a/service/applicationautoscaling/api_op_PutScheduledAction.go
+++ b/service/applicationautoscaling/api_op_PutScheduledAction.go
@@ -15,7 +15,7 @@ type PutScheduledActionInput struct {
_ struct{} `type:"structure"`
// The date and time for the scheduled action to end.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The identifier of the resource associated with the scheduled action. This
// string consists of the resource type and unique identifier.
@@ -129,7 +129,7 @@ type PutScheduledActionInput struct {
ServiceNamespace ServiceNamespace `type:"string" required:"true" enum:"true"`
// The date and time for the scheduled action to start.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/applicationautoscaling/api_types.go b/service/applicationautoscaling/api_types.go
index 16f1cde2e7c..78797f77f9b 100644
--- a/service/applicationautoscaling/api_types.go
+++ b/service/applicationautoscaling/api_types.go
@@ -208,7 +208,7 @@ type ScalableTarget struct {
// The Unix timestamp for when the scalable target was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The maximum value to scale to in response to a scale-out event.
//
@@ -355,7 +355,7 @@ type ScalingActivity struct {
Details *string `type:"string"`
// The Unix timestamp for when the scaling activity ended.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The identifier of the resource associated with the scaling activity. This
// string consists of the resource type and unique identifier.
@@ -442,7 +442,7 @@ type ScalingActivity struct {
// The Unix timestamp for when the scaling activity began.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
// Indicates the status of the scaling activity.
//
@@ -469,7 +469,7 @@ type ScalingPolicy struct {
// The Unix timestamp for when the scaling policy was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the scaling policy.
//
@@ -588,10 +588,10 @@ type ScheduledAction struct {
// The date and time that the scheduled action was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The date and time that the action is scheduled to end.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The identifier of the resource associated with the scaling policy. This string
// consists of the resource type and unique identifier.
@@ -710,7 +710,7 @@ type ScheduledAction struct {
ServiceNamespace ServiceNamespace `type:"string" required:"true" enum:"true"`
// The date and time that the action is scheduled to begin.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/applicationdiscoveryservice/api_op_StartContinuousExport.go b/service/applicationdiscoveryservice/api_op_StartContinuousExport.go
index 63b12974201..0d720211645 100644
--- a/service/applicationdiscoveryservice/api_op_StartContinuousExport.go
+++ b/service/applicationdiscoveryservice/api_op_StartContinuousExport.go
@@ -40,7 +40,7 @@ type StartContinuousExportOutput struct {
SchemaStorageConfig map[string]string `locationName:"schemaStorageConfig" type:"map"`
// The timestamp representing when the continuous export was started.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/applicationdiscoveryservice/api_op_StartExportTask.go b/service/applicationdiscoveryservice/api_op_StartExportTask.go
index 2be52221963..d8bbafeb102 100644
--- a/service/applicationdiscoveryservice/api_op_StartExportTask.go
+++ b/service/applicationdiscoveryservice/api_op_StartExportTask.go
@@ -18,7 +18,7 @@ type StartExportTaskInput struct {
// The end timestamp for exported data from the single Application Discovery
// Agent selected in the filters. If no value is specified, exported data includes
// the most recent data collected by the agent.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The file format for the returned export data. Default value is CSV. Note:
// The GRAPHML option has been deprecated.
@@ -34,7 +34,7 @@ type StartExportTaskInput struct {
// The start timestamp for exported data from the single Application Discovery
// Agent selected in the filters. If no value is specified, data is exported
// starting from the first data collected by the agent.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/applicationdiscoveryservice/api_op_StopContinuousExport.go b/service/applicationdiscoveryservice/api_op_StopContinuousExport.go
index c0a782ab172..b422d10a293 100644
--- a/service/applicationdiscoveryservice/api_op_StopContinuousExport.go
+++ b/service/applicationdiscoveryservice/api_op_StopContinuousExport.go
@@ -45,10 +45,10 @@ type StopContinuousExportOutput struct {
// Timestamp that represents when this continuous export started collecting
// data.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// Timestamp that represents when this continuous export was stopped.
- StopTime *time.Time `locationName:"stopTime" type:"timestamp" timestampFormat:"unix"`
+ StopTime *time.Time `locationName:"stopTime" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/applicationdiscoveryservice/api_types.go b/service/applicationdiscoveryservice/api_types.go
index a4982006bbe..8da5ba74f16 100644
--- a/service/applicationdiscoveryservice/api_types.go
+++ b/service/applicationdiscoveryservice/api_types.go
@@ -137,7 +137,7 @@ type ConfigurationTag struct {
// The time the configuration tag was created in Coordinated Universal Time
// (UTC).
- TimeOfCreation *time.Time `locationName:"timeOfCreation" type:"timestamp" timestampFormat:"unix"`
+ TimeOfCreation *time.Time `locationName:"timeOfCreation" type:"timestamp"`
// A value on which to filter. For example key = serverType and value = web
// server.
@@ -170,7 +170,7 @@ type ContinuousExportDescription struct {
SchemaStorageConfig map[string]string `locationName:"schemaStorageConfig" type:"map"`
// The timestamp representing when the continuous export was started.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// Describes the status of the export. Can be one of the following values:
//
@@ -234,7 +234,7 @@ type ContinuousExportDescription struct {
StatusDetail *string `locationName:"statusDetail" min:"1" type:"string"`
// The timestamp that represents when this continuous export was stopped.
- StopTime *time.Time `locationName:"stopTime" type:"timestamp" timestampFormat:"unix"`
+ StopTime *time.Time `locationName:"stopTime" type:"timestamp"`
}
// String returns the string representation
@@ -404,7 +404,7 @@ type ExportInfo struct {
// The time that the data export was initiated.
//
// ExportRequestTime is a required field
- ExportRequestTime *time.Time `locationName:"exportRequestTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ ExportRequestTime *time.Time `locationName:"exportRequestTime" type:"timestamp" required:"true"`
// The status of the data export job.
//
@@ -419,11 +419,11 @@ type ExportInfo struct {
// The endTime used in the StartExportTask request. If no endTime was requested,
// this result does not appear in ExportInfo.
- RequestedEndTime *time.Time `locationName:"requestedEndTime" type:"timestamp" timestampFormat:"unix"`
+ RequestedEndTime *time.Time `locationName:"requestedEndTime" type:"timestamp"`
// The value of startTime parameter in the StartExportTask request. If no startTime
// was requested, this result does not appear in ExportInfo.
- RequestedStartTime *time.Time `locationName:"requestedStartTime" type:"timestamp" timestampFormat:"unix"`
+ RequestedStartTime *time.Time `locationName:"requestedStartTime" type:"timestamp"`
// A status message provided for API callers.
//
@@ -530,15 +530,15 @@ type ImportTask struct {
// The time that the import task request finished, presented in the Unix time
// stamp format.
- ImportCompletionTime *time.Time `locationName:"importCompletionTime" type:"timestamp" timestampFormat:"unix"`
+ ImportCompletionTime *time.Time `locationName:"importCompletionTime" type:"timestamp"`
// The time that the import task request was deleted, presented in the Unix
// time stamp format.
- ImportDeletedTime *time.Time `locationName:"importDeletedTime" type:"timestamp" timestampFormat:"unix"`
+ ImportDeletedTime *time.Time `locationName:"importDeletedTime" type:"timestamp"`
// The time that the import task request was made, presented in the Unix time
// stamp format.
- ImportRequestTime *time.Time `locationName:"importRequestTime" type:"timestamp" timestampFormat:"unix"`
+ ImportRequestTime *time.Time `locationName:"importRequestTime" type:"timestamp"`
// The unique ID for a specific import task. These IDs aren't globally unique,
// but they are unique within an AWS account.
diff --git a/service/appmesh/api_op_CreateMesh.go b/service/appmesh/api_op_CreateMesh.go
index b59dbad4337..47e767e0ee7 100644
--- a/service/appmesh/api_op_CreateMesh.go
+++ b/service/appmesh/api_op_CreateMesh.go
@@ -70,7 +70,7 @@ func (s *CreateMeshInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateMeshInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/appmesh/api_op_CreateRoute.go b/service/appmesh/api_op_CreateRoute.go
index abc6ccfc7f6..d9aef682110 100644
--- a/service/appmesh/api_op_CreateRoute.go
+++ b/service/appmesh/api_op_CreateRoute.go
@@ -100,7 +100,7 @@ func (s *CreateRouteInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateRouteInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/appmesh/api_op_CreateVirtualNode.go b/service/appmesh/api_op_CreateVirtualNode.go
index 4d6cc1caa2e..48d01f4a9cc 100644
--- a/service/appmesh/api_op_CreateVirtualNode.go
+++ b/service/appmesh/api_op_CreateVirtualNode.go
@@ -88,7 +88,7 @@ func (s *CreateVirtualNodeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateVirtualNodeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/appmesh/api_op_CreateVirtualRouter.go b/service/appmesh/api_op_CreateVirtualRouter.go
index 554f0431fc9..cf2957ddf54 100644
--- a/service/appmesh/api_op_CreateVirtualRouter.go
+++ b/service/appmesh/api_op_CreateVirtualRouter.go
@@ -88,7 +88,7 @@ func (s *CreateVirtualRouterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateVirtualRouterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/appmesh/api_op_CreateVirtualService.go b/service/appmesh/api_op_CreateVirtualService.go
index b6eb84b82af..186116a7653 100644
--- a/service/appmesh/api_op_CreateVirtualService.go
+++ b/service/appmesh/api_op_CreateVirtualService.go
@@ -85,7 +85,7 @@ func (s *CreateVirtualServiceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateVirtualServiceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/appmesh/api_op_DeleteMesh.go b/service/appmesh/api_op_DeleteMesh.go
index ee6c892b6be..801ac0fc4d8 100644
--- a/service/appmesh/api_op_DeleteMesh.go
+++ b/service/appmesh/api_op_DeleteMesh.go
@@ -44,7 +44,7 @@ func (s *DeleteMeshInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteMeshInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_DeleteRoute.go b/service/appmesh/api_op_DeleteRoute.go
index 39698afa143..10de93f5fa7 100644
--- a/service/appmesh/api_op_DeleteRoute.go
+++ b/service/appmesh/api_op_DeleteRoute.go
@@ -68,7 +68,7 @@ func (s *DeleteRouteInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteRouteInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_DeleteVirtualNode.go b/service/appmesh/api_op_DeleteVirtualNode.go
index 42e5d706426..841a090a9cd 100644
--- a/service/appmesh/api_op_DeleteVirtualNode.go
+++ b/service/appmesh/api_op_DeleteVirtualNode.go
@@ -56,7 +56,7 @@ func (s *DeleteVirtualNodeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVirtualNodeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_DeleteVirtualRouter.go b/service/appmesh/api_op_DeleteVirtualRouter.go
index e6fdf852e5b..84d8a6736c4 100644
--- a/service/appmesh/api_op_DeleteVirtualRouter.go
+++ b/service/appmesh/api_op_DeleteVirtualRouter.go
@@ -56,7 +56,7 @@ func (s *DeleteVirtualRouterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVirtualRouterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_DeleteVirtualService.go b/service/appmesh/api_op_DeleteVirtualService.go
index 3aaadfd74ed..f4fdf85d1da 100644
--- a/service/appmesh/api_op_DeleteVirtualService.go
+++ b/service/appmesh/api_op_DeleteVirtualService.go
@@ -53,7 +53,7 @@ func (s *DeleteVirtualServiceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVirtualServiceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_DescribeMesh.go b/service/appmesh/api_op_DescribeMesh.go
index c462ef86ac8..e952b4a32dc 100644
--- a/service/appmesh/api_op_DescribeMesh.go
+++ b/service/appmesh/api_op_DescribeMesh.go
@@ -44,7 +44,7 @@ func (s *DescribeMeshInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeMeshInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_DescribeRoute.go b/service/appmesh/api_op_DescribeRoute.go
index 60ef0e407a3..fd4c317c0f4 100644
--- a/service/appmesh/api_op_DescribeRoute.go
+++ b/service/appmesh/api_op_DescribeRoute.go
@@ -68,7 +68,7 @@ func (s *DescribeRouteInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeRouteInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_DescribeVirtualNode.go b/service/appmesh/api_op_DescribeVirtualNode.go
index 5d969ede253..3858279106d 100644
--- a/service/appmesh/api_op_DescribeVirtualNode.go
+++ b/service/appmesh/api_op_DescribeVirtualNode.go
@@ -56,7 +56,7 @@ func (s *DescribeVirtualNodeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeVirtualNodeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_DescribeVirtualRouter.go b/service/appmesh/api_op_DescribeVirtualRouter.go
index ba7b5f267b5..27576b1e355 100644
--- a/service/appmesh/api_op_DescribeVirtualRouter.go
+++ b/service/appmesh/api_op_DescribeVirtualRouter.go
@@ -56,7 +56,7 @@ func (s *DescribeVirtualRouterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeVirtualRouterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_DescribeVirtualService.go b/service/appmesh/api_op_DescribeVirtualService.go
index b869a7b95e4..12b685af5e6 100644
--- a/service/appmesh/api_op_DescribeVirtualService.go
+++ b/service/appmesh/api_op_DescribeVirtualService.go
@@ -53,7 +53,7 @@ func (s *DescribeVirtualServiceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeVirtualServiceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_ListMeshes.go b/service/appmesh/api_op_ListMeshes.go
index 4b48fb2740e..5dcd20fb933 100644
--- a/service/appmesh/api_op_ListMeshes.go
+++ b/service/appmesh/api_op_ListMeshes.go
@@ -53,7 +53,7 @@ func (s *ListMeshesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListMeshesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Limit != nil {
v := *s.Limit
diff --git a/service/appmesh/api_op_ListRoutes.go b/service/appmesh/api_op_ListRoutes.go
index 391c60177f7..d582c9da304 100644
--- a/service/appmesh/api_op_ListRoutes.go
+++ b/service/appmesh/api_op_ListRoutes.go
@@ -74,7 +74,7 @@ func (s *ListRoutesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListRoutesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_ListTagsForResource.go b/service/appmesh/api_op_ListTagsForResource.go
index 0a054d49012..740bb1853f8 100644
--- a/service/appmesh/api_op_ListTagsForResource.go
+++ b/service/appmesh/api_op_ListTagsForResource.go
@@ -60,7 +60,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Limit != nil {
v := *s.Limit
diff --git a/service/appmesh/api_op_ListVirtualNodes.go b/service/appmesh/api_op_ListVirtualNodes.go
index a1c40d3f20c..ef276a8d851 100644
--- a/service/appmesh/api_op_ListVirtualNodes.go
+++ b/service/appmesh/api_op_ListVirtualNodes.go
@@ -62,7 +62,7 @@ func (s *ListVirtualNodesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListVirtualNodesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_ListVirtualRouters.go b/service/appmesh/api_op_ListVirtualRouters.go
index 80caaff09f2..9bc02fa2794 100644
--- a/service/appmesh/api_op_ListVirtualRouters.go
+++ b/service/appmesh/api_op_ListVirtualRouters.go
@@ -62,7 +62,7 @@ func (s *ListVirtualRoutersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListVirtualRoutersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_ListVirtualServices.go b/service/appmesh/api_op_ListVirtualServices.go
index b89861b81ac..61bc2af73f2 100644
--- a/service/appmesh/api_op_ListVirtualServices.go
+++ b/service/appmesh/api_op_ListVirtualServices.go
@@ -62,7 +62,7 @@ func (s *ListVirtualServicesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListVirtualServicesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MeshName != nil {
v := *s.MeshName
diff --git a/service/appmesh/api_op_TagResource.go b/service/appmesh/api_op_TagResource.go
index 5d42c30b3b5..2fd4ba14ca3 100644
--- a/service/appmesh/api_op_TagResource.go
+++ b/service/appmesh/api_op_TagResource.go
@@ -60,7 +60,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/appmesh/api_op_UntagResource.go b/service/appmesh/api_op_UntagResource.go
index c69f776c805..2605958cd88 100644
--- a/service/appmesh/api_op_UntagResource.go
+++ b/service/appmesh/api_op_UntagResource.go
@@ -50,7 +50,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TagKeys != nil {
v := s.TagKeys
diff --git a/service/appmesh/api_op_UpdateMesh.go b/service/appmesh/api_op_UpdateMesh.go
index b0eb37c25d2..25cefe76962 100644
--- a/service/appmesh/api_op_UpdateMesh.go
+++ b/service/appmesh/api_op_UpdateMesh.go
@@ -56,7 +56,7 @@ func (s *UpdateMeshInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateMeshInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/appmesh/api_op_UpdateRoute.go b/service/appmesh/api_op_UpdateRoute.go
index cb23296952f..79153f28063 100644
--- a/service/appmesh/api_op_UpdateRoute.go
+++ b/service/appmesh/api_op_UpdateRoute.go
@@ -86,7 +86,7 @@ func (s *UpdateRouteInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateRouteInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/appmesh/api_op_UpdateVirtualNode.go b/service/appmesh/api_op_UpdateVirtualNode.go
index 52166262da8..be136b8bab3 100644
--- a/service/appmesh/api_op_UpdateVirtualNode.go
+++ b/service/appmesh/api_op_UpdateVirtualNode.go
@@ -75,7 +75,7 @@ func (s *UpdateVirtualNodeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateVirtualNodeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/appmesh/api_op_UpdateVirtualRouter.go b/service/appmesh/api_op_UpdateVirtualRouter.go
index 0e5f359cd71..56d44fa47a8 100644
--- a/service/appmesh/api_op_UpdateVirtualRouter.go
+++ b/service/appmesh/api_op_UpdateVirtualRouter.go
@@ -75,7 +75,7 @@ func (s *UpdateVirtualRouterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateVirtualRouterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/appmesh/api_op_UpdateVirtualService.go b/service/appmesh/api_op_UpdateVirtualService.go
index a5257246b08..5dabdbb52ab 100644
--- a/service/appmesh/api_op_UpdateVirtualService.go
+++ b/service/appmesh/api_op_UpdateVirtualService.go
@@ -72,7 +72,7 @@ func (s *UpdateVirtualServiceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateVirtualServiceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/appmesh/api_types.go b/service/appmesh/api_types.go
index dbaaebdb8da..5fc4c4ea61e 100644
--- a/service/appmesh/api_types.go
+++ b/service/appmesh/api_types.go
@@ -877,12 +877,12 @@ type ResourceMetadata struct {
// The Unix epoch timestamp in seconds for when the resource was created.
//
// CreatedAt is a required field
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"`
// The Unix epoch timestamp in seconds for when the resource was last updated.
//
// LastUpdatedAt is a required field
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" required:"true"`
// The unique identifier for the resource.
//
@@ -913,13 +913,15 @@ func (s ResourceMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdatedAt != nil {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Uid != nil {
v := *s.Uid
diff --git a/service/appstream/api_op_CreateImageBuilderStreamingURL.go b/service/appstream/api_op_CreateImageBuilderStreamingURL.go
index cca0a4da36d..d74582307e4 100644
--- a/service/appstream/api_op_CreateImageBuilderStreamingURL.go
+++ b/service/appstream/api_op_CreateImageBuilderStreamingURL.go
@@ -51,7 +51,7 @@ type CreateImageBuilderStreamingURLOutput struct {
_ struct{} `type:"structure"`
// The elapsed time, in seconds after the Unix epoch, when this URL expires.
- Expires *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Expires *time.Time `type:"timestamp"`
// The URL to start the AppStream 2.0 streaming session.
StreamingURL *string `min:"1" type:"string"`
diff --git a/service/appstream/api_op_CreateStreamingURL.go b/service/appstream/api_op_CreateStreamingURL.go
index 7bee26bb028..6e1c3423656 100644
--- a/service/appstream/api_op_CreateStreamingURL.go
+++ b/service/appstream/api_op_CreateStreamingURL.go
@@ -89,7 +89,7 @@ type CreateStreamingURLOutput struct {
_ struct{} `type:"structure"`
// The elapsed time, in seconds after the Unix epoch, when this URL expires.
- Expires *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Expires *time.Time `type:"timestamp"`
// The URL to start the AppStream 2.0 streaming session.
StreamingURL *string `min:"1" type:"string"`
diff --git a/service/appstream/api_types.go b/service/appstream/api_types.go
index 5f6074ccf39..d9c0d4edd90 100644
--- a/service/appstream/api_types.go
+++ b/service/appstream/api_types.go
@@ -168,7 +168,7 @@ type DirectoryConfig struct {
_ struct{} `type:"structure"`
// The time the directory configuration was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The fully qualified name of the directory (for example, corp.example.com).
//
@@ -222,7 +222,7 @@ type Fleet struct {
ComputeCapacityStatus *ComputeCapacityStatus `type:"structure" required:"true"`
// The time the fleet was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The description to display.
Description *string `min:"1" type:"string"`
@@ -362,7 +362,7 @@ type Image struct {
BaseImageArn *string `type:"string"`
// The time the image was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The description to display.
Description *string `min:"1" type:"string"`
@@ -387,7 +387,7 @@ type Image struct {
// The release date of the public base image. For private images, this date
// is the release date of the base image from which the image was created.
- PublicBaseImageReleasedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ PublicBaseImageReleasedDate *time.Time `type:"timestamp"`
// The image starts in the PENDING state. If image creation succeeds, the state
// is AVAILABLE. If image creation fails, the state is FAILED.
@@ -418,7 +418,7 @@ type ImageBuilder struct {
Arn *string `type:"string"`
// The time stamp when the image builder was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The description to display.
Description *string `min:"1" type:"string"`
@@ -567,7 +567,7 @@ type ResourceError struct {
ErrorMessage *string `min:"1" type:"string"`
// The time the error occurred.
- ErrorTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ErrorTimestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -652,7 +652,7 @@ type Session struct {
// elapses or the user chooses to end his or her session. If the DisconnectTimeOutInSeconds
// elapses, or the user chooses to end his or her session, the streaming instance
// is terminated and the streaming session ends.
- MaxExpirationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ MaxExpirationTime *time.Time `type:"timestamp"`
// The network details for the streaming session.
NetworkAccessConfiguration *NetworkAccessConfiguration `type:"structure"`
@@ -663,7 +663,7 @@ type Session struct {
StackName *string `min:"1" type:"string" required:"true"`
// The time when a streaming instance is dedicated for the user.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The current state of the streaming session.
//
@@ -715,7 +715,7 @@ type Stack struct {
Arn *string `type:"string"`
// The time the stack was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The description to display.
Description *string `min:"1" type:"string"`
@@ -812,7 +812,7 @@ type UsageReportSubscription struct {
_ struct{} `type:"structure"`
// The time when the last usage report was generated.
- LastGeneratedReportDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastGeneratedReportDate *time.Time `type:"timestamp"`
// The Amazon S3 bucket where generated reports are stored. When a usage report
// subscription is enabled for the first time for an account in an AWS Region,
@@ -846,7 +846,7 @@ type User struct {
AuthenticationType AuthenticationType `type:"string" required:"true" enum:"true"`
// The date and time the user was created in the user pool.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// Specifies whether the user in the user pool is enabled.
Enabled *bool `type:"boolean"`
diff --git a/service/appsync/api_op_CreateApiKey.go b/service/appsync/api_op_CreateApiKey.go
index 30956ef0ab3..6815c6ad4b3 100644
--- a/service/appsync/api_op_CreateApiKey.go
+++ b/service/appsync/api_op_CreateApiKey.go
@@ -50,7 +50,7 @@ func (s *CreateApiKeyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateApiKeyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/appsync/api_op_CreateDataSource.go b/service/appsync/api_op_CreateDataSource.go
index 67eea6db9f7..bca0b13d8d5 100644
--- a/service/appsync/api_op_CreateDataSource.go
+++ b/service/appsync/api_op_CreateDataSource.go
@@ -100,7 +100,7 @@ func (s *CreateDataSourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDataSourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/appsync/api_op_CreateFunction.go b/service/appsync/api_op_CreateFunction.go
index 7045ddbe794..a983b348313 100644
--- a/service/appsync/api_op_CreateFunction.go
+++ b/service/appsync/api_op_CreateFunction.go
@@ -91,7 +91,7 @@ func (s *CreateFunctionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFunctionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DataSourceName != nil {
v := *s.DataSourceName
diff --git a/service/appsync/api_op_CreateGraphqlApi.go b/service/appsync/api_op_CreateGraphqlApi.go
index d2bf58e28d0..779f6452baa 100644
--- a/service/appsync/api_op_CreateGraphqlApi.go
+++ b/service/appsync/api_op_CreateGraphqlApi.go
@@ -90,7 +90,7 @@ func (s *CreateGraphqlApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateGraphqlApiInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AdditionalAuthenticationProviders != nil {
v := s.AdditionalAuthenticationProviders
diff --git a/service/appsync/api_op_CreateResolver.go b/service/appsync/api_op_CreateResolver.go
index 825e282b1fe..d76821ebd6c 100644
--- a/service/appsync/api_op_CreateResolver.go
+++ b/service/appsync/api_op_CreateResolver.go
@@ -98,7 +98,7 @@ func (s *CreateResolverInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateResolverInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DataSourceName != nil {
v := *s.DataSourceName
diff --git a/service/appsync/api_op_CreateType.go b/service/appsync/api_op_CreateType.go
index 3fe02fd955f..c3b76fca976 100644
--- a/service/appsync/api_op_CreateType.go
+++ b/service/appsync/api_op_CreateType.go
@@ -60,7 +60,7 @@ func (s *CreateTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateTypeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Definition != nil {
v := *s.Definition
diff --git a/service/appsync/api_op_DeleteApiKey.go b/service/appsync/api_op_DeleteApiKey.go
index faeba3ba20c..da484e86812 100644
--- a/service/appsync/api_op_DeleteApiKey.go
+++ b/service/appsync/api_op_DeleteApiKey.go
@@ -50,7 +50,7 @@ func (s *DeleteApiKeyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteApiKeyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_DeleteDataSource.go b/service/appsync/api_op_DeleteDataSource.go
index 3b778edd4b7..aa77242514a 100644
--- a/service/appsync/api_op_DeleteDataSource.go
+++ b/service/appsync/api_op_DeleteDataSource.go
@@ -50,7 +50,7 @@ func (s *DeleteDataSourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDataSourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_DeleteFunction.go b/service/appsync/api_op_DeleteFunction.go
index ebffa1f0c52..4b01150c70a 100644
--- a/service/appsync/api_op_DeleteFunction.go
+++ b/service/appsync/api_op_DeleteFunction.go
@@ -50,7 +50,7 @@ func (s *DeleteFunctionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFunctionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_DeleteGraphqlApi.go b/service/appsync/api_op_DeleteGraphqlApi.go
index 7a97d54ecfe..db513bfcc6d 100644
--- a/service/appsync/api_op_DeleteGraphqlApi.go
+++ b/service/appsync/api_op_DeleteGraphqlApi.go
@@ -41,7 +41,7 @@ func (s *DeleteGraphqlApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteGraphqlApiInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_DeleteResolver.go b/service/appsync/api_op_DeleteResolver.go
index 5163df4fa3d..b80aca2a528 100644
--- a/service/appsync/api_op_DeleteResolver.go
+++ b/service/appsync/api_op_DeleteResolver.go
@@ -59,7 +59,7 @@ func (s *DeleteResolverInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteResolverInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_DeleteType.go b/service/appsync/api_op_DeleteType.go
index 9d2eb1ec4ea..3bed8d89e51 100644
--- a/service/appsync/api_op_DeleteType.go
+++ b/service/appsync/api_op_DeleteType.go
@@ -50,7 +50,7 @@ func (s *DeleteTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteTypeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_GetDataSource.go b/service/appsync/api_op_GetDataSource.go
index d1b07071556..c7989ec5aa5 100644
--- a/service/appsync/api_op_GetDataSource.go
+++ b/service/appsync/api_op_GetDataSource.go
@@ -50,7 +50,7 @@ func (s *GetDataSourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDataSourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_GetFunction.go b/service/appsync/api_op_GetFunction.go
index e254d0cdd00..b7c7bcbbbe3 100644
--- a/service/appsync/api_op_GetFunction.go
+++ b/service/appsync/api_op_GetFunction.go
@@ -50,7 +50,7 @@ func (s *GetFunctionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFunctionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_GetGraphqlApi.go b/service/appsync/api_op_GetGraphqlApi.go
index 88ddb407491..9792e46caaf 100644
--- a/service/appsync/api_op_GetGraphqlApi.go
+++ b/service/appsync/api_op_GetGraphqlApi.go
@@ -41,7 +41,7 @@ func (s *GetGraphqlApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGraphqlApiInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_GetIntrospectionSchema.go b/service/appsync/api_op_GetIntrospectionSchema.go
index 16e2300e06c..ea27186f973 100644
--- a/service/appsync/api_op_GetIntrospectionSchema.go
+++ b/service/appsync/api_op_GetIntrospectionSchema.go
@@ -52,7 +52,7 @@ func (s *GetIntrospectionSchemaInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIntrospectionSchemaInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_GetResolver.go b/service/appsync/api_op_GetResolver.go
index ec0d19fe737..540961020bc 100644
--- a/service/appsync/api_op_GetResolver.go
+++ b/service/appsync/api_op_GetResolver.go
@@ -59,7 +59,7 @@ func (s *GetResolverInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetResolverInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_GetSchemaCreationStatus.go b/service/appsync/api_op_GetSchemaCreationStatus.go
index 16492e84ace..62ce53ccb6e 100644
--- a/service/appsync/api_op_GetSchemaCreationStatus.go
+++ b/service/appsync/api_op_GetSchemaCreationStatus.go
@@ -41,7 +41,7 @@ func (s *GetSchemaCreationStatusInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSchemaCreationStatusInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_GetType.go b/service/appsync/api_op_GetType.go
index 06248786647..64085fca18e 100644
--- a/service/appsync/api_op_GetType.go
+++ b/service/appsync/api_op_GetType.go
@@ -58,7 +58,7 @@ func (s *GetTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetTypeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_ListApiKeys.go b/service/appsync/api_op_ListApiKeys.go
index 6c5991020ec..2d094fba002 100644
--- a/service/appsync/api_op_ListApiKeys.go
+++ b/service/appsync/api_op_ListApiKeys.go
@@ -48,7 +48,7 @@ func (s *ListApiKeysInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListApiKeysInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_ListDataSources.go b/service/appsync/api_op_ListDataSources.go
index 9b183bfc287..b714beabb4e 100644
--- a/service/appsync/api_op_ListDataSources.go
+++ b/service/appsync/api_op_ListDataSources.go
@@ -48,7 +48,7 @@ func (s *ListDataSourcesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDataSourcesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_ListFunctions.go b/service/appsync/api_op_ListFunctions.go
index 5dc6c274ae4..8432361a01b 100644
--- a/service/appsync/api_op_ListFunctions.go
+++ b/service/appsync/api_op_ListFunctions.go
@@ -48,7 +48,7 @@ func (s *ListFunctionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFunctionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_ListGraphqlApis.go b/service/appsync/api_op_ListGraphqlApis.go
index e600756f785..b803b9a2304 100644
--- a/service/appsync/api_op_ListGraphqlApis.go
+++ b/service/appsync/api_op_ListGraphqlApis.go
@@ -29,7 +29,7 @@ func (s ListGraphqlApisInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListGraphqlApisInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/appsync/api_op_ListResolvers.go b/service/appsync/api_op_ListResolvers.go
index fc2176c20f6..7bf0e82e71e 100644
--- a/service/appsync/api_op_ListResolvers.go
+++ b/service/appsync/api_op_ListResolvers.go
@@ -57,7 +57,7 @@ func (s *ListResolversInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListResolversInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_ListResolversByFunction.go b/service/appsync/api_op_ListResolversByFunction.go
index 6c7d0db320e..0b2fa1b250a 100644
--- a/service/appsync/api_op_ListResolversByFunction.go
+++ b/service/appsync/api_op_ListResolversByFunction.go
@@ -57,7 +57,7 @@ func (s *ListResolversByFunctionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListResolversByFunctionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_ListTagsForResource.go b/service/appsync/api_op_ListTagsForResource.go
index fb51cabd473..03c79202c94 100644
--- a/service/appsync/api_op_ListTagsForResource.go
+++ b/service/appsync/api_op_ListTagsForResource.go
@@ -44,7 +44,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/appsync/api_op_ListTypes.go b/service/appsync/api_op_ListTypes.go
index df3dc52ab14..3bf8b46850f 100644
--- a/service/appsync/api_op_ListTypes.go
+++ b/service/appsync/api_op_ListTypes.go
@@ -56,7 +56,7 @@ func (s *ListTypesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTypesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
diff --git a/service/appsync/api_op_StartSchemaCreation.go b/service/appsync/api_op_StartSchemaCreation.go
index 04b18675130..5ec336312a8 100644
--- a/service/appsync/api_op_StartSchemaCreation.go
+++ b/service/appsync/api_op_StartSchemaCreation.go
@@ -52,7 +52,7 @@ func (s *StartSchemaCreationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartSchemaCreationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Definition != nil {
v := s.Definition
diff --git a/service/appsync/api_op_TagResource.go b/service/appsync/api_op_TagResource.go
index 88c99c0a522..0575fefbfc1 100644
--- a/service/appsync/api_op_TagResource.go
+++ b/service/appsync/api_op_TagResource.go
@@ -56,7 +56,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/appsync/api_op_UntagResource.go b/service/appsync/api_op_UntagResource.go
index 84210d26cdc..25f1d148a9d 100644
--- a/service/appsync/api_op_UntagResource.go
+++ b/service/appsync/api_op_UntagResource.go
@@ -56,7 +56,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/appsync/api_op_UpdateApiKey.go b/service/appsync/api_op_UpdateApiKey.go
index 2fa293811d1..e679833449c 100644
--- a/service/appsync/api_op_UpdateApiKey.go
+++ b/service/appsync/api_op_UpdateApiKey.go
@@ -57,7 +57,7 @@ func (s *UpdateApiKeyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateApiKeyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/appsync/api_op_UpdateDataSource.go b/service/appsync/api_op_UpdateDataSource.go
index 529ea90c71f..87b3a5420ff 100644
--- a/service/appsync/api_op_UpdateDataSource.go
+++ b/service/appsync/api_op_UpdateDataSource.go
@@ -99,7 +99,7 @@ func (s *UpdateDataSourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDataSourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/appsync/api_op_UpdateFunction.go b/service/appsync/api_op_UpdateFunction.go
index 9cb680b95b6..3a25215f649 100644
--- a/service/appsync/api_op_UpdateFunction.go
+++ b/service/appsync/api_op_UpdateFunction.go
@@ -100,7 +100,7 @@ func (s *UpdateFunctionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFunctionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DataSourceName != nil {
v := *s.DataSourceName
diff --git a/service/appsync/api_op_UpdateGraphqlApi.go b/service/appsync/api_op_UpdateGraphqlApi.go
index fc6ca18575e..099d20d7b2b 100644
--- a/service/appsync/api_op_UpdateGraphqlApi.go
+++ b/service/appsync/api_op_UpdateGraphqlApi.go
@@ -88,7 +88,7 @@ func (s *UpdateGraphqlApiInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateGraphqlApiInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AdditionalAuthenticationProviders != nil {
v := s.AdditionalAuthenticationProviders
diff --git a/service/appsync/api_op_UpdateResolver.go b/service/appsync/api_op_UpdateResolver.go
index 99d45690aaf..fb5a0e30f02 100644
--- a/service/appsync/api_op_UpdateResolver.go
+++ b/service/appsync/api_op_UpdateResolver.go
@@ -94,7 +94,7 @@ func (s *UpdateResolverInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateResolverInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DataSourceName != nil {
v := *s.DataSourceName
diff --git a/service/appsync/api_op_UpdateType.go b/service/appsync/api_op_UpdateType.go
index ce9f155f0cd..448c483b05c 100644
--- a/service/appsync/api_op_UpdateType.go
+++ b/service/appsync/api_op_UpdateType.go
@@ -61,7 +61,7 @@ func (s *UpdateTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateTypeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Definition != nil {
v := *s.Definition
diff --git a/service/athena/api_types.go b/service/athena/api_types.go
index 89b14a50854..345abfb2cf4 100644
--- a/service/athena/api_types.go
+++ b/service/athena/api_types.go
@@ -244,7 +244,7 @@ type QueryExecutionStatus struct {
_ struct{} `type:"structure"`
// The date and time that the query completed.
- CompletionDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionDateTime *time.Time `type:"timestamp"`
// The state of query execution. QUEUED state is listed but is not used by Athena
// and is reserved for future use. RUNNING indicates that the query has been
@@ -258,7 +258,7 @@ type QueryExecutionStatus struct {
StateChangeReason *string `type:"string"`
// The date and time that the query was submitted.
- SubmissionDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmissionDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -529,7 +529,7 @@ type WorkGroup struct {
Configuration *WorkGroupConfiguration `type:"structure"`
// The date and time the workgroup was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The workgroup description.
Description *string `type:"string"`
@@ -661,7 +661,7 @@ type WorkGroupSummary struct {
_ struct{} `type:"structure"`
// The workgroup creation date and time.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The workgroup description.
Description *string `type:"string"`
diff --git a/service/autoscaling/api_op_DescribeScheduledActions.go b/service/autoscaling/api_op_DescribeScheduledActions.go
index e0bedacbe2a..b9c8fd6440e 100644
--- a/service/autoscaling/api_op_DescribeScheduledActions.go
+++ b/service/autoscaling/api_op_DescribeScheduledActions.go
@@ -19,7 +19,7 @@ type DescribeScheduledActionsInput struct {
// The latest scheduled start time to return. If scheduled action names are
// provided, this parameter is ignored.
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// The maximum number of items to return with this call. The default value is
// 50 and the maximum value is 100.
@@ -36,7 +36,7 @@ type DescribeScheduledActionsInput struct {
// The earliest scheduled start time to return. If scheduled action names are
// provided, this parameter is ignored.
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/autoscaling/api_op_PutScheduledUpdateGroupAction.go b/service/autoscaling/api_op_PutScheduledUpdateGroupAction.go
index 483fead5aed..ba686344f19 100644
--- a/service/autoscaling/api_op_PutScheduledUpdateGroupAction.go
+++ b/service/autoscaling/api_op_PutScheduledUpdateGroupAction.go
@@ -26,7 +26,7 @@ type PutScheduledUpdateGroupActionInput struct {
// The time for the recurring schedule to end. Amazon EC2 Auto Scaling does
// not perform the action after this time.
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// The maximum size for the Auto Scaling group.
MaxSize *int64 `type:"integer"`
@@ -55,10 +55,10 @@ type PutScheduledUpdateGroupActionInput struct {
//
// If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns
// an error message.
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
// This parameter is deprecated.
- Time *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Time *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/autoscaling/api_types.go b/service/autoscaling/api_types.go
index e774c3474ba..a1f668ca6d0 100644
--- a/service/autoscaling/api_types.go
+++ b/service/autoscaling/api_types.go
@@ -42,7 +42,7 @@ type Activity struct {
Details *string `type:"string"`
// The end time of the activity.
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// A value between 0 and 100 that indicates the progress of the activity.
Progress *int64 `type:"integer"`
@@ -50,7 +50,7 @@ type Activity struct {
// The start time of the activity.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
// The current status of the activity.
//
@@ -119,7 +119,7 @@ type AutoScalingGroup struct {
// The date and time the group was created.
//
// CreatedTime is a required field
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreatedTime *time.Time `type:"timestamp" required:"true"`
// The amount of time, in seconds, after a scaling activity completes before
// another scaling activity can start.
@@ -704,7 +704,7 @@ type LaunchConfiguration struct {
// The creation date and time for the launch configuration.
//
// CreatedTime is a required field
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreatedTime *time.Time `type:"timestamp" required:"true"`
// Controls whether the instance is optimized for EBS I/O (true) or not (false).
EbsOptimized *bool `type:"boolean"`
@@ -1471,7 +1471,7 @@ type ScheduledUpdateGroupAction struct {
DesiredCapacity *int64 `type:"integer"`
// The date and time that the action is scheduled to end.
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// The maximum size of the group.
MaxSize *int64 `type:"integer"`
@@ -1492,10 +1492,10 @@ type ScheduledUpdateGroupAction struct {
//
// When StartTime and EndTime are specified with Recurrence, they form the boundaries
// of when the recurring action starts and stops.
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
// This parameter is deprecated.
- Time *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Time *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1517,7 +1517,7 @@ type ScheduledUpdateGroupActionRequest struct {
// The time for the recurring schedule to end. Amazon EC2 Auto Scaling does
// not perform the action after this time.
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// The maximum size of the group.
MaxSize *int64 `type:"integer"`
@@ -1545,7 +1545,7 @@ type ScheduledUpdateGroupActionRequest struct {
//
// If you try to schedule the action in the past, Amazon EC2 Auto Scaling returns
// an error message.
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/autoscalingplans/api_op_GetScalingPlanResourceForecastData.go b/service/autoscalingplans/api_op_GetScalingPlanResourceForecastData.go
index ad79fd04d63..1e967eb414d 100644
--- a/service/autoscalingplans/api_op_GetScalingPlanResourceForecastData.go
+++ b/service/autoscalingplans/api_op_GetScalingPlanResourceForecastData.go
@@ -22,7 +22,7 @@ type GetScalingPlanResourceForecastDataInput struct {
// Scaling only issues forecasts for periods of two days in advance.
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// The type of forecast data to get.
//
@@ -89,7 +89,7 @@ type GetScalingPlanResourceForecastDataInput struct {
// The date and time can be at most 56 days before the current date and time.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/autoscalingplans/api_types.go b/service/autoscalingplans/api_types.go
index cccf748861c..44f099d8fa0 100644
--- a/service/autoscalingplans/api_types.go
+++ b/service/autoscalingplans/api_types.go
@@ -215,7 +215,7 @@ type Datapoint struct {
_ struct{} `type:"structure"`
// The time stamp for the data point in UTC format.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `type:"timestamp"`
// The value of the data point.
Value *float64 `type:"double"`
@@ -627,7 +627,7 @@ type ScalingPlan struct {
ApplicationSource *ApplicationSource `type:"structure" required:"true"`
// The Unix time stamp when the scaling plan was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The scaling instructions.
//
@@ -670,7 +670,7 @@ type ScalingPlan struct {
StatusMessage *string `type:"string"`
// The Unix time stamp when the scaling plan entered the current status.
- StatusStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StatusStartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/backup/api_op_CreateBackupPlan.go b/service/backup/api_op_CreateBackupPlan.go
index 9ffc79829b6..d7e73c9f01d 100644
--- a/service/backup/api_op_CreateBackupPlan.go
+++ b/service/backup/api_op_CreateBackupPlan.go
@@ -59,7 +59,7 @@ func (s *CreateBackupPlanInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateBackupPlanInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlan != nil {
v := s.BackupPlan
@@ -103,7 +103,7 @@ type CreateBackupPlanOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most
// 1024 bytes long. They cannot be edited.
@@ -133,7 +133,8 @@ func (s CreateBackupPlanOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.VersionId != nil {
v := *s.VersionId
diff --git a/service/backup/api_op_CreateBackupSelection.go b/service/backup/api_op_CreateBackupSelection.go
index ea5115ca6f1..f1a50b1eaa0 100644
--- a/service/backup/api_op_CreateBackupSelection.go
+++ b/service/backup/api_op_CreateBackupSelection.go
@@ -66,7 +66,7 @@ func (s *CreateBackupSelectionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateBackupSelectionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupSelection != nil {
v := s.BackupSelection
@@ -100,7 +100,7 @@ type CreateBackupSelectionOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// Uniquely identifies the body of a request to assign a set of resources to
// a backup plan.
@@ -124,7 +124,8 @@ func (s CreateBackupSelectionOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SelectionId != nil {
v := *s.SelectionId
diff --git a/service/backup/api_op_CreateBackupVault.go b/service/backup/api_op_CreateBackupVault.go
index 8248afe00a2..9da9fa8a2fe 100644
--- a/service/backup/api_op_CreateBackupVault.go
+++ b/service/backup/api_op_CreateBackupVault.go
@@ -57,7 +57,7 @@ func (s *CreateBackupVaultInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateBackupVaultInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultTags != nil {
v := s.BackupVaultTags
@@ -110,7 +110,7 @@ type CreateBackupVaultOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -136,7 +136,8 @@ func (s CreateBackupVaultOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/backup/api_op_DeleteBackupPlan.go b/service/backup/api_op_DeleteBackupPlan.go
index fa05bc877fa..7f028449707 100644
--- a/service/backup/api_op_DeleteBackupPlan.go
+++ b/service/backup/api_op_DeleteBackupPlan.go
@@ -42,7 +42,7 @@ func (s *DeleteBackupPlanInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBackupPlanInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlanId != nil {
v := *s.BackupPlanId
@@ -68,7 +68,7 @@ type DeleteBackupPlanOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- DeletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeletionDate *time.Time `type:"timestamp"`
// Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most
// 1,024 bytes long. Version Ids cannot be edited.
@@ -98,7 +98,8 @@ func (s DeleteBackupPlanOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DeletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DeletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DeletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.VersionId != nil {
v := *s.VersionId
diff --git a/service/backup/api_op_DeleteBackupSelection.go b/service/backup/api_op_DeleteBackupSelection.go
index 5a4311b0c02..b1582b9b829 100644
--- a/service/backup/api_op_DeleteBackupSelection.go
+++ b/service/backup/api_op_DeleteBackupSelection.go
@@ -52,7 +52,7 @@ func (s *DeleteBackupSelectionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBackupSelectionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlanId != nil {
v := *s.BackupPlanId
diff --git a/service/backup/api_op_DeleteBackupVault.go b/service/backup/api_op_DeleteBackupVault.go
index 7771b292c7c..8b54b7b18e8 100644
--- a/service/backup/api_op_DeleteBackupVault.go
+++ b/service/backup/api_op_DeleteBackupVault.go
@@ -45,7 +45,7 @@ func (s *DeleteBackupVaultInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBackupVaultInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
diff --git a/service/backup/api_op_DeleteBackupVaultAccessPolicy.go b/service/backup/api_op_DeleteBackupVaultAccessPolicy.go
index 9c621cfe609..6abcd510bb7 100644
--- a/service/backup/api_op_DeleteBackupVaultAccessPolicy.go
+++ b/service/backup/api_op_DeleteBackupVaultAccessPolicy.go
@@ -45,7 +45,7 @@ func (s *DeleteBackupVaultAccessPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBackupVaultAccessPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
diff --git a/service/backup/api_op_DeleteBackupVaultNotifications.go b/service/backup/api_op_DeleteBackupVaultNotifications.go
index 600220ea033..44679d44b49 100644
--- a/service/backup/api_op_DeleteBackupVaultNotifications.go
+++ b/service/backup/api_op_DeleteBackupVaultNotifications.go
@@ -45,7 +45,7 @@ func (s *DeleteBackupVaultNotificationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBackupVaultNotificationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
diff --git a/service/backup/api_op_DeleteRecoveryPoint.go b/service/backup/api_op_DeleteRecoveryPoint.go
index a9be575638b..7f37c067bcc 100644
--- a/service/backup/api_op_DeleteRecoveryPoint.go
+++ b/service/backup/api_op_DeleteRecoveryPoint.go
@@ -55,7 +55,7 @@ func (s *DeleteRecoveryPointInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteRecoveryPointInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
diff --git a/service/backup/api_op_DescribeBackupJob.go b/service/backup/api_op_DescribeBackupJob.go
index b77a530acb1..b5b3d2d445c 100644
--- a/service/backup/api_op_DescribeBackupJob.go
+++ b/service/backup/api_op_DescribeBackupJob.go
@@ -42,7 +42,7 @@ func (s *DescribeBackupJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeBackupJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupJobId != nil {
v := *s.BackupJobId
@@ -81,7 +81,7 @@ type DescribeBackupJobOutput struct {
// format and Coordinated Universal Time (UTC). The value of CreationDate is
// accurate to milliseconds. For example, the value 1516925490.087 represents
// Friday, January 26, 2018 12:11:30.087 AM.
- CompletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionDate *time.Time `type:"timestamp"`
// Contains identifying information about the creation of a backup job, including
// the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the
@@ -92,13 +92,13 @@ type DescribeBackupJobOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The date and time that a job to back up resources is expected to be completed,
// in Unix format and Coordinated Universal Time (UTC). The value of ExpectedCompletionDate
// is accurate to milliseconds. For example, the value 1516925490.087 represents
// Friday, January 26, 2018 12:11:30.087 AM.
- ExpectedCompletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpectedCompletionDate *time.Time `type:"timestamp"`
// Specifies the IAM role ARN used to create the target recovery point; for
// example, arn:aws:iam::123456789012:role/S3Access.
@@ -127,7 +127,7 @@ type DescribeBackupJobOutput struct {
// PM on the date specified. The value of StartBy is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- StartBy *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartBy *time.Time `type:"timestamp"`
// The current state of a resource recovery point.
State BackupJobState `type:"string" enum:"true"`
@@ -177,7 +177,8 @@ func (s DescribeBackupJobOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CompletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CompletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CompletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatedBy != nil {
v := s.CreatedBy
@@ -189,13 +190,15 @@ func (s DescribeBackupJobOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ExpectedCompletionDate != nil {
v := *s.ExpectedCompletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ExpectedCompletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ExpectedCompletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.IamRoleArn != nil {
v := *s.IamRoleArn
@@ -231,7 +234,8 @@ func (s DescribeBackupJobOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartBy
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartBy", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartBy",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.State) > 0 {
v := s.State
diff --git a/service/backup/api_op_DescribeBackupVault.go b/service/backup/api_op_DescribeBackupVault.go
index 82b4ecd0df4..ce4e2f0974d 100644
--- a/service/backup/api_op_DescribeBackupVault.go
+++ b/service/backup/api_op_DescribeBackupVault.go
@@ -45,7 +45,7 @@ func (s *DescribeBackupVaultInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeBackupVaultInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
@@ -74,7 +74,7 @@ type DescribeBackupVaultOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A unique string that identifies the request and allows failed requests to
// be retried without the risk of executing the operation twice.
@@ -111,7 +111,8 @@ func (s DescribeBackupVaultOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatorRequestId != nil {
v := *s.CreatorRequestId
diff --git a/service/backup/api_op_DescribeProtectedResource.go b/service/backup/api_op_DescribeProtectedResource.go
index 441b01580c8..4d4e5a24a8d 100644
--- a/service/backup/api_op_DescribeProtectedResource.go
+++ b/service/backup/api_op_DescribeProtectedResource.go
@@ -43,7 +43,7 @@ func (s *DescribeProtectedResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeProtectedResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
@@ -62,7 +62,7 @@ type DescribeProtectedResourceOutput struct {
// Coordinated Universal Time (UTC). The value of LastBackupTime is accurate
// to milliseconds. For example, the value 1516925490.087 represents Friday,
// January 26, 2018 12:11:30.087 AM.
- LastBackupTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastBackupTime *time.Time `type:"timestamp"`
// An ARN that uniquely identifies a resource. The format of the ARN depends
// on the resource type.
@@ -84,7 +84,8 @@ func (s DescribeProtectedResourceOutput) MarshalFields(e protocol.FieldEncoder)
v := *s.LastBackupTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastBackupTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastBackupTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/backup/api_op_DescribeRecoveryPoint.go b/service/backup/api_op_DescribeRecoveryPoint.go
index 2f7be77d7f2..7d1b5c89efc 100644
--- a/service/backup/api_op_DescribeRecoveryPoint.go
+++ b/service/backup/api_op_DescribeRecoveryPoint.go
@@ -55,7 +55,7 @@ func (s *DescribeRecoveryPointInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeRecoveryPointInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
@@ -96,7 +96,7 @@ type DescribeRecoveryPointOutput struct {
// Unix format and Coordinated Universal Time (UTC). The value of CompletionDate
// is accurate to milliseconds. For example, the value 1516925490.087 represents
// Friday, January 26, 2018 12:11:30.087 AM.
- CompletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionDate *time.Time `type:"timestamp"`
// Contains identifying information about the creation of a recovery point,
// including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId
@@ -107,7 +107,7 @@ type DescribeRecoveryPointOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The server-side encryption key used to protect your backups; for example,
// arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.
@@ -125,7 +125,7 @@ type DescribeRecoveryPointOutput struct {
// and Coordinated Universal Time (UTC). The value of LastRestoreTime is accurate
// to milliseconds. For example, the value 1516925490.087 represents Friday,
// January 26, 2018 12:11:30.087 AM.
- LastRestoreTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastRestoreTime *time.Time `type:"timestamp"`
// The lifecycle defines when a protected resource is transitioned to cold storage
// and when it expires. AWS Backup transitions and expires backups automatically
@@ -196,7 +196,8 @@ func (s DescribeRecoveryPointOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.CompletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CompletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CompletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatedBy != nil {
v := s.CreatedBy
@@ -208,7 +209,8 @@ func (s DescribeRecoveryPointOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.EncryptionKeyArn != nil {
v := *s.EncryptionKeyArn
@@ -232,7 +234,8 @@ func (s DescribeRecoveryPointOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.LastRestoreTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastRestoreTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastRestoreTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Lifecycle != nil {
v := s.Lifecycle
diff --git a/service/backup/api_op_DescribeRestoreJob.go b/service/backup/api_op_DescribeRestoreJob.go
index c2452bd522e..be027589324 100644
--- a/service/backup/api_op_DescribeRestoreJob.go
+++ b/service/backup/api_op_DescribeRestoreJob.go
@@ -42,7 +42,7 @@ func (s *DescribeRestoreJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeRestoreJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RestoreJobId != nil {
v := *s.RestoreJobId
@@ -64,7 +64,7 @@ type DescribeRestoreJobOutput struct {
// Unix format and Coordinated Universal Time (UTC). The value of CompletionDate
// is accurate to milliseconds. For example, the value 1516925490.087 represents
// Friday, January 26, 2018 12:11:30.087 AM.
- CompletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionDate *time.Time `type:"timestamp"`
// An Amazon Resource Name (ARN) that uniquely identifies a resource whose recovery
// point is being restored. The format of the ARN depends on the resource type
@@ -75,7 +75,7 @@ type DescribeRestoreJobOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The amount of time in minutes that a job restoring a recovery point is expected
// to take.
@@ -120,7 +120,8 @@ func (s DescribeRestoreJobOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CompletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CompletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CompletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatedResourceArn != nil {
v := *s.CreatedResourceArn
@@ -132,7 +133,8 @@ func (s DescribeRestoreJobOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ExpectedCompletionTimeMinutes != nil {
v := *s.ExpectedCompletionTimeMinutes
diff --git a/service/backup/api_op_ExportBackupPlanTemplate.go b/service/backup/api_op_ExportBackupPlanTemplate.go
index b5e801a6d81..468fa83df42 100644
--- a/service/backup/api_op_ExportBackupPlanTemplate.go
+++ b/service/backup/api_op_ExportBackupPlanTemplate.go
@@ -41,7 +41,7 @@ func (s *ExportBackupPlanTemplateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ExportBackupPlanTemplateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlanId != nil {
v := *s.BackupPlanId
diff --git a/service/backup/api_op_GetBackupPlan.go b/service/backup/api_op_GetBackupPlan.go
index cf66af553a9..8ec48860869 100644
--- a/service/backup/api_op_GetBackupPlan.go
+++ b/service/backup/api_op_GetBackupPlan.go
@@ -46,7 +46,7 @@ func (s *GetBackupPlanInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBackupPlanInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlanId != nil {
v := *s.BackupPlanId
@@ -82,7 +82,7 @@ type GetBackupPlanOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A unique string that identifies the request and allows failed requests to
// be retried without the risk of executing the operation twice.
@@ -92,13 +92,13 @@ type GetBackupPlanOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- DeletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeletionDate *time.Time `type:"timestamp"`
// The last time a job to back up resources was executed with this backup plan.
// A date and time, in Unix format and Coordinated Universal Time (UTC). The
// value of LastExecutionDate is accurate to milliseconds. For example, the
// value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
- LastExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastExecutionDate *time.Time `type:"timestamp"`
// Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most
// 1,024 bytes long. Version IDs cannot be edited.
@@ -134,7 +134,8 @@ func (s GetBackupPlanOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatorRequestId != nil {
v := *s.CreatorRequestId
@@ -146,13 +147,15 @@ func (s GetBackupPlanOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DeletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DeletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DeletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastExecutionDate != nil {
v := *s.LastExecutionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastExecutionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastExecutionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.VersionId != nil {
v := *s.VersionId
diff --git a/service/backup/api_op_GetBackupPlanFromJSON.go b/service/backup/api_op_GetBackupPlanFromJSON.go
index 9c2b2df0702..9d2e9bcef00 100644
--- a/service/backup/api_op_GetBackupPlanFromJSON.go
+++ b/service/backup/api_op_GetBackupPlanFromJSON.go
@@ -41,7 +41,7 @@ func (s *GetBackupPlanFromJSONInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBackupPlanFromJSONInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlanTemplateJson != nil {
v := *s.BackupPlanTemplateJson
diff --git a/service/backup/api_op_GetBackupPlanFromTemplate.go b/service/backup/api_op_GetBackupPlanFromTemplate.go
index 708a38a8ee1..862e312cebc 100644
--- a/service/backup/api_op_GetBackupPlanFromTemplate.go
+++ b/service/backup/api_op_GetBackupPlanFromTemplate.go
@@ -41,7 +41,7 @@ func (s *GetBackupPlanFromTemplateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBackupPlanFromTemplateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlanTemplateId != nil {
v := *s.BackupPlanTemplateId
diff --git a/service/backup/api_op_GetBackupSelection.go b/service/backup/api_op_GetBackupSelection.go
index 9c1de356cb0..1451e3fbce6 100644
--- a/service/backup/api_op_GetBackupSelection.go
+++ b/service/backup/api_op_GetBackupSelection.go
@@ -52,7 +52,7 @@ func (s *GetBackupSelectionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBackupSelectionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlanId != nil {
v := *s.BackupPlanId
@@ -89,7 +89,7 @@ type GetBackupSelectionOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A unique string that identifies the request and allows failed requests to
// be retried without the risk of executing the operation twice.
@@ -123,7 +123,8 @@ func (s GetBackupSelectionOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatorRequestId != nil {
v := *s.CreatorRequestId
diff --git a/service/backup/api_op_GetBackupVaultAccessPolicy.go b/service/backup/api_op_GetBackupVaultAccessPolicy.go
index 3ccac24f489..37e25741fb1 100644
--- a/service/backup/api_op_GetBackupVaultAccessPolicy.go
+++ b/service/backup/api_op_GetBackupVaultAccessPolicy.go
@@ -44,7 +44,7 @@ func (s *GetBackupVaultAccessPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBackupVaultAccessPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
diff --git a/service/backup/api_op_GetBackupVaultNotifications.go b/service/backup/api_op_GetBackupVaultNotifications.go
index 4afab1bccce..05606361d5a 100644
--- a/service/backup/api_op_GetBackupVaultNotifications.go
+++ b/service/backup/api_op_GetBackupVaultNotifications.go
@@ -44,7 +44,7 @@ func (s *GetBackupVaultNotificationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBackupVaultNotificationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
diff --git a/service/backup/api_op_GetRecoveryPointRestoreMetadata.go b/service/backup/api_op_GetRecoveryPointRestoreMetadata.go
index c0cba692698..dd081955aaa 100644
--- a/service/backup/api_op_GetRecoveryPointRestoreMetadata.go
+++ b/service/backup/api_op_GetRecoveryPointRestoreMetadata.go
@@ -54,7 +54,7 @@ func (s *GetRecoveryPointRestoreMetadataInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetRecoveryPointRestoreMetadataInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
diff --git a/service/backup/api_op_GetSupportedResourceTypes.go b/service/backup/api_op_GetSupportedResourceTypes.go
index 46ea25d7372..02e159044e5 100644
--- a/service/backup/api_op_GetSupportedResourceTypes.go
+++ b/service/backup/api_op_GetSupportedResourceTypes.go
@@ -22,7 +22,7 @@ func (s GetSupportedResourceTypesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSupportedResourceTypesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/backup/api_op_ListBackupJobs.go b/service/backup/api_op_ListBackupJobs.go
index c3927dcb44a..dc0774c0e08 100644
--- a/service/backup/api_op_ListBackupJobs.go
+++ b/service/backup/api_op_ListBackupJobs.go
@@ -22,10 +22,10 @@ type ListBackupJobsInput struct {
ByBackupVaultName *string `location:"querystring" locationName:"backupVaultName" type:"string"`
// Returns only backup jobs that were created after the specified date.
- ByCreatedAfter *time.Time `location:"querystring" locationName:"createdAfter" type:"timestamp" timestampFormat:"unix"`
+ ByCreatedAfter *time.Time `location:"querystring" locationName:"createdAfter" type:"timestamp"`
// Returns only backup jobs that were created before the specified date.
- ByCreatedBefore *time.Time `location:"querystring" locationName:"createdBefore" type:"timestamp" timestampFormat:"unix"`
+ ByCreatedBefore *time.Time `location:"querystring" locationName:"createdBefore" type:"timestamp"`
// Returns only backup jobs that match the specified resource Amazon Resource
// Name (ARN).
@@ -77,7 +77,7 @@ func (s *ListBackupJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBackupJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ByBackupVaultName != nil {
v := *s.ByBackupVaultName
@@ -89,13 +89,15 @@ func (s ListBackupJobsInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ByCreatedAfter
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "createdAfter", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "createdAfter",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.ByCreatedBefore != nil {
v := *s.ByCreatedBefore
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "createdBefore", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "createdBefore",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.ByResourceArn != nil {
v := *s.ByResourceArn
diff --git a/service/backup/api_op_ListBackupPlanTemplates.go b/service/backup/api_op_ListBackupPlanTemplates.go
index 1da43e368b0..9c7948b0bf9 100644
--- a/service/backup/api_op_ListBackupPlanTemplates.go
+++ b/service/backup/api_op_ListBackupPlanTemplates.go
@@ -44,7 +44,7 @@ func (s *ListBackupPlanTemplatesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBackupPlanTemplatesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/backup/api_op_ListBackupPlanVersions.go b/service/backup/api_op_ListBackupPlanVersions.go
index 7581751bd72..d723e9a323f 100644
--- a/service/backup/api_op_ListBackupPlanVersions.go
+++ b/service/backup/api_op_ListBackupPlanVersions.go
@@ -53,7 +53,7 @@ func (s *ListBackupPlanVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBackupPlanVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlanId != nil {
v := *s.BackupPlanId
diff --git a/service/backup/api_op_ListBackupPlans.go b/service/backup/api_op_ListBackupPlans.go
index b7038e692d6..3a27bdd39e4 100644
--- a/service/backup/api_op_ListBackupPlans.go
+++ b/service/backup/api_op_ListBackupPlans.go
@@ -48,7 +48,7 @@ func (s *ListBackupPlansInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBackupPlansInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IncludeDeleted != nil {
v := *s.IncludeDeleted
diff --git a/service/backup/api_op_ListBackupSelections.go b/service/backup/api_op_ListBackupSelections.go
index 467a683e8b0..ca6bf538125 100644
--- a/service/backup/api_op_ListBackupSelections.go
+++ b/service/backup/api_op_ListBackupSelections.go
@@ -53,7 +53,7 @@ func (s *ListBackupSelectionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBackupSelectionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlanId != nil {
v := *s.BackupPlanId
diff --git a/service/backup/api_op_ListBackupVaults.go b/service/backup/api_op_ListBackupVaults.go
index 1ff1f0be2cd..8570e0fb6e5 100644
--- a/service/backup/api_op_ListBackupVaults.go
+++ b/service/backup/api_op_ListBackupVaults.go
@@ -44,7 +44,7 @@ func (s *ListBackupVaultsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBackupVaultsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/backup/api_op_ListProtectedResources.go b/service/backup/api_op_ListProtectedResources.go
index 483da48f2f2..6ce782fd9e2 100644
--- a/service/backup/api_op_ListProtectedResources.go
+++ b/service/backup/api_op_ListProtectedResources.go
@@ -44,7 +44,7 @@ func (s *ListProtectedResourcesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListProtectedResourcesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/backup/api_op_ListRecoveryPointsByBackupVault.go b/service/backup/api_op_ListRecoveryPointsByBackupVault.go
index af50f496b35..ec64cc31778 100644
--- a/service/backup/api_op_ListRecoveryPointsByBackupVault.go
+++ b/service/backup/api_op_ListRecoveryPointsByBackupVault.go
@@ -27,10 +27,10 @@ type ListRecoveryPointsByBackupVaultInput struct {
ByBackupPlanId *string `location:"querystring" locationName:"backupPlanId" type:"string"`
// Returns only recovery points that were created after the specified timestamp.
- ByCreatedAfter *time.Time `location:"querystring" locationName:"createdAfter" type:"timestamp" timestampFormat:"unix"`
+ ByCreatedAfter *time.Time `location:"querystring" locationName:"createdAfter" type:"timestamp"`
// Returns only recovery points that were created before the specified timestamp.
- ByCreatedBefore *time.Time `location:"querystring" locationName:"createdBefore" type:"timestamp" timestampFormat:"unix"`
+ ByCreatedBefore *time.Time `location:"querystring" locationName:"createdBefore" type:"timestamp"`
// Returns only recovery points that match the specified resource Amazon Resource
// Name (ARN).
@@ -73,7 +73,7 @@ func (s *ListRecoveryPointsByBackupVaultInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListRecoveryPointsByBackupVaultInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
@@ -91,13 +91,15 @@ func (s ListRecoveryPointsByBackupVaultInput) MarshalFields(e protocol.FieldEnco
v := *s.ByCreatedAfter
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "createdAfter", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "createdAfter",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.ByCreatedBefore != nil {
v := *s.ByCreatedBefore
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "createdBefore", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "createdBefore",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.ByResourceArn != nil {
v := *s.ByResourceArn
diff --git a/service/backup/api_op_ListRecoveryPointsByResource.go b/service/backup/api_op_ListRecoveryPointsByResource.go
index 7c21f0205a6..3a29f1e334c 100644
--- a/service/backup/api_op_ListRecoveryPointsByResource.go
+++ b/service/backup/api_op_ListRecoveryPointsByResource.go
@@ -54,7 +54,7 @@ func (s *ListRecoveryPointsByResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListRecoveryPointsByResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/backup/api_op_ListRestoreJobs.go b/service/backup/api_op_ListRestoreJobs.go
index 7a8c9e8bf19..48b1de1b6bf 100644
--- a/service/backup/api_op_ListRestoreJobs.go
+++ b/service/backup/api_op_ListRestoreJobs.go
@@ -44,7 +44,7 @@ func (s *ListRestoreJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListRestoreJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/backup/api_op_ListTags.go b/service/backup/api_op_ListTags.go
index 7dedebe2792..b7224707be9 100644
--- a/service/backup/api_op_ListTags.go
+++ b/service/backup/api_op_ListTags.go
@@ -55,7 +55,7 @@ func (s *ListTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/backup/api_op_PutBackupVaultAccessPolicy.go b/service/backup/api_op_PutBackupVaultAccessPolicy.go
index f1cadc3d8d0..387fcb96d53 100644
--- a/service/backup/api_op_PutBackupVaultAccessPolicy.go
+++ b/service/backup/api_op_PutBackupVaultAccessPolicy.go
@@ -48,7 +48,7 @@ func (s *PutBackupVaultAccessPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutBackupVaultAccessPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Policy != nil {
v := *s.Policy
diff --git a/service/backup/api_op_PutBackupVaultNotifications.go b/service/backup/api_op_PutBackupVaultNotifications.go
index a19d9412b1b..7e0f0734ab8 100644
--- a/service/backup/api_op_PutBackupVaultNotifications.go
+++ b/service/backup/api_op_PutBackupVaultNotifications.go
@@ -65,7 +65,7 @@ func (s *PutBackupVaultNotificationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutBackupVaultNotificationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultEvents != nil {
v := s.BackupVaultEvents
diff --git a/service/backup/api_op_StartBackupJob.go b/service/backup/api_op_StartBackupJob.go
index 87dc46ee48f..f53927cfccb 100644
--- a/service/backup/api_op_StartBackupJob.go
+++ b/service/backup/api_op_StartBackupJob.go
@@ -95,7 +95,7 @@ func (s *StartBackupJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartBackupJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupVaultName != nil {
v := *s.BackupVaultName
@@ -165,7 +165,7 @@ type StartBackupJobOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
RecoveryPointArn *string `type:"string"`
@@ -188,7 +188,8 @@ func (s StartBackupJobOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.RecoveryPointArn != nil {
v := *s.RecoveryPointArn
diff --git a/service/backup/api_op_StartRestoreJob.go b/service/backup/api_op_StartRestoreJob.go
index ee15d82643f..88c6250219b 100644
--- a/service/backup/api_op_StartRestoreJob.go
+++ b/service/backup/api_op_StartRestoreJob.go
@@ -82,7 +82,7 @@ func (s *StartRestoreJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartRestoreJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IamRoleArn != nil {
v := *s.IamRoleArn
diff --git a/service/backup/api_op_StopBackupJob.go b/service/backup/api_op_StopBackupJob.go
index c698c393a3a..e570cc52dbc 100644
--- a/service/backup/api_op_StopBackupJob.go
+++ b/service/backup/api_op_StopBackupJob.go
@@ -42,7 +42,7 @@ func (s *StopBackupJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StopBackupJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupJobId != nil {
v := *s.BackupJobId
diff --git a/service/backup/api_op_TagResource.go b/service/backup/api_op_TagResource.go
index db584a0f71b..0a14f867cf1 100644
--- a/service/backup/api_op_TagResource.go
+++ b/service/backup/api_op_TagResource.go
@@ -53,7 +53,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/backup/api_op_UntagResource.go b/service/backup/api_op_UntagResource.go
index 932a5fc35a9..aa30d0c75d9 100644
--- a/service/backup/api_op_UntagResource.go
+++ b/service/backup/api_op_UntagResource.go
@@ -52,7 +52,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TagKeyList != nil {
v := s.TagKeyList
diff --git a/service/backup/api_op_UpdateBackupPlan.go b/service/backup/api_op_UpdateBackupPlan.go
index cdd9643a7c6..9f8ae253be6 100644
--- a/service/backup/api_op_UpdateBackupPlan.go
+++ b/service/backup/api_op_UpdateBackupPlan.go
@@ -57,7 +57,7 @@ func (s *UpdateBackupPlanInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateBackupPlanInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BackupPlan != nil {
v := s.BackupPlan
@@ -89,7 +89,7 @@ type UpdateBackupPlanOutput struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most
// 1,024 bytes long. Version Ids cannot be edited.
@@ -119,7 +119,8 @@ func (s UpdateBackupPlanOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.VersionId != nil {
v := *s.VersionId
diff --git a/service/backup/api_op_UpdateRecoveryPointLifecycle.go b/service/backup/api_op_UpdateRecoveryPointLifecycle.go
index 3fc11efc498..6fb93287e52 100644
--- a/service/backup/api_op_UpdateRecoveryPointLifecycle.go
+++ b/service/backup/api_op_UpdateRecoveryPointLifecycle.go
@@ -65,7 +65,7 @@ func (s *UpdateRecoveryPointLifecycleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateRecoveryPointLifecycleInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Lifecycle != nil {
v := s.Lifecycle
diff --git a/service/backup/api_types.go b/service/backup/api_types.go
index f46bd44ec05..df51b842731 100644
--- a/service/backup/api_types.go
+++ b/service/backup/api_types.go
@@ -43,7 +43,7 @@ type BackupJob struct {
// and Coordinated Universal Time (UTC). The value of CompletionDate is accurate
// to milliseconds. For example, the value 1516925490.087 represents Friday,
// January 26, 2018 12:11:30.087 AM.
- CompletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionDate *time.Time `type:"timestamp"`
// Contains identifying information about the creation of a backup job, including
// the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the
@@ -54,13 +54,13 @@ type BackupJob struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The date and time a job to back up resources is expected to be completed,
// in Unix format and Coordinated Universal Time (UTC). The value of ExpectedCompletionDate
// is accurate to milliseconds. For example, the value 1516925490.087 represents
// Friday, January 26, 2018 12:11:30.087 AM.
- ExpectedCompletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpectedCompletionDate *time.Time `type:"timestamp"`
// Specifies the IAM role ARN used to create the target recovery point; for
// example, arn:aws:iam::123456789012:role/S3Access.
@@ -89,7 +89,7 @@ type BackupJob struct {
// PM on the date specified. The value of StartBy is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- StartBy *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartBy *time.Time `type:"timestamp"`
// The current state of a resource recovery point.
State BackupJobState `type:"string" enum:"true"`
@@ -139,7 +139,8 @@ func (s BackupJob) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CompletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CompletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CompletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatedBy != nil {
v := s.CreatedBy
@@ -151,13 +152,15 @@ func (s BackupJob) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ExpectedCompletionDate != nil {
v := *s.ExpectedCompletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ExpectedCompletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ExpectedCompletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.IamRoleArn != nil {
v := *s.IamRoleArn
@@ -193,7 +196,8 @@ func (s BackupJob) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartBy
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartBy", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartBy",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.State) > 0 {
v := s.State
@@ -384,7 +388,7 @@ type BackupPlansListMember struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A unique string that identifies the request and allows failed requests to
// be retried without the risk of executing the operation twice.
@@ -394,13 +398,13 @@ type BackupPlansListMember struct {
// Universal Time (UTC). The value of DeletionDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- DeletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeletionDate *time.Time `type:"timestamp"`
// The last time a job to back up resources was executed with this rule. A date
// and time, in Unix format and Coordinated Universal Time (UTC). The value
// of LastExecutionDate is accurate to milliseconds. For example, the value
// 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
- LastExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastExecutionDate *time.Time `type:"timestamp"`
// Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most
// 1,024 bytes long. Version IDs cannot be edited.
@@ -436,7 +440,8 @@ func (s BackupPlansListMember) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatorRequestId != nil {
v := *s.CreatorRequestId
@@ -448,13 +453,15 @@ func (s BackupPlansListMember) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DeletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DeletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DeletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastExecutionDate != nil {
v := *s.LastExecutionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastExecutionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastExecutionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.VersionId != nil {
v := *s.VersionId
@@ -808,7 +815,7 @@ type BackupSelectionsListMember struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A unique string that identifies the request and allows failed requests to
// be retried without the risk of executing the operation twice.
@@ -842,7 +849,8 @@ func (s BackupSelectionsListMember) MarshalFields(e protocol.FieldEncoder) error
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatorRequestId != nil {
v := *s.CreatorRequestId
@@ -890,7 +898,7 @@ type BackupVaultListMember struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A unique string that identifies the request and allows failed requests to
// be retried without the risk of executing the operation twice.
@@ -927,7 +935,8 @@ func (s BackupVaultListMember) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatorRequestId != nil {
v := *s.CreatorRequestId
@@ -967,10 +976,10 @@ type CalculatedLifecycle struct {
_ struct{} `type:"structure"`
// A timestamp that specifies when to delete a recovery point.
- DeleteAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeleteAt *time.Time `type:"timestamp"`
// A timestamp that specifies when to transition a recovery point to cold storage.
- MoveToColdStorageAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ MoveToColdStorageAt *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -984,13 +993,15 @@ func (s CalculatedLifecycle) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DeleteAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DeleteAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DeleteAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.MoveToColdStorageAt != nil {
v := *s.MoveToColdStorageAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "MoveToColdStorageAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "MoveToColdStorageAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -1116,7 +1127,7 @@ type ProtectedResource struct {
// Universal Time (UTC). The value of LastBackupTime is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- LastBackupTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastBackupTime *time.Time `type:"timestamp"`
// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format
// of the ARN depends on the resource type.
@@ -1138,7 +1149,8 @@ func (s ProtectedResource) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastBackupTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastBackupTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastBackupTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ResourceArn != nil {
v := *s.ResourceArn
@@ -1181,7 +1193,7 @@ type RecoveryPointByBackupVault struct {
// format and Coordinated Universal Time (UTC). The value of CompletionDate
// is accurate to milliseconds. For example, the value 1516925490.087 represents
// Friday, January 26, 2018 12:11:30.087 AM.
- CompletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionDate *time.Time `type:"timestamp"`
// Contains identifying information about the creation of a recovery point,
// including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId
@@ -1192,7 +1204,7 @@ type RecoveryPointByBackupVault struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The server-side encryption key that is used to protect your backups; for
// example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.
@@ -1210,7 +1222,7 @@ type RecoveryPointByBackupVault struct {
// Coordinated Universal Time (UTC). The value of LastRestoreTime is accurate
// to milliseconds. For example, the value 1516925490.087 represents Friday,
// January 26, 2018 12:11:30.087 AM.
- LastRestoreTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastRestoreTime *time.Time `type:"timestamp"`
// The lifecycle defines when a protected resource is transitioned to cold storage
// and when it expires. AWS Backup transitions and expires backups automatically
@@ -1275,7 +1287,8 @@ func (s RecoveryPointByBackupVault) MarshalFields(e protocol.FieldEncoder) error
v := *s.CompletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CompletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CompletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatedBy != nil {
v := s.CreatedBy
@@ -1287,7 +1300,8 @@ func (s RecoveryPointByBackupVault) MarshalFields(e protocol.FieldEncoder) error
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.EncryptionKeyArn != nil {
v := *s.EncryptionKeyArn
@@ -1311,7 +1325,8 @@ func (s RecoveryPointByBackupVault) MarshalFields(e protocol.FieldEncoder) error
v := *s.LastRestoreTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastRestoreTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastRestoreTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Lifecycle != nil {
v := s.Lifecycle
@@ -1364,7 +1379,7 @@ type RecoveryPointByResource struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The server-side encryption key that is used to protect your backups; for
// example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.
@@ -1401,7 +1416,8 @@ func (s RecoveryPointByResource) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.EncryptionKeyArn != nil {
v := *s.EncryptionKeyArn
@@ -1492,7 +1508,7 @@ type RestoreJobsListMember struct {
// format and Coordinated Universal Time (UTC). The value of CompletionDate
// is accurate to milliseconds. For example, the value 1516925490.087 represents
// Friday, January 26, 2018 12:11:30.087 AM.
- CompletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionDate *time.Time `type:"timestamp"`
// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format
// of the ARN depends on the resource type.
@@ -1502,7 +1518,7 @@ type RestoreJobsListMember struct {
// Universal Time (UTC). The value of CreationDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The amount of time in minutes that a job restoring a recovery point is expected
// to take.
@@ -1548,7 +1564,8 @@ func (s RestoreJobsListMember) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CompletionDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CompletionDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CompletionDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatedResourceArn != nil {
v := *s.CreatedResourceArn
@@ -1560,7 +1577,8 @@ func (s RestoreJobsListMember) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ExpectedCompletionTimeMinutes != nil {
v := *s.ExpectedCompletionTimeMinutes
diff --git a/service/batch/api_op_CancelJob.go b/service/batch/api_op_CancelJob.go
index 7c92c596a4c..e91db9ee4e9 100644
--- a/service/batch/api_op_CancelJob.go
+++ b/service/batch/api_op_CancelJob.go
@@ -52,7 +52,7 @@ func (s *CancelJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobId != nil {
v := *s.JobId
diff --git a/service/batch/api_op_CreateComputeEnvironment.go b/service/batch/api_op_CreateComputeEnvironment.go
index a6cf1703d34..17f2b3c3d60 100644
--- a/service/batch/api_op_CreateComputeEnvironment.go
+++ b/service/batch/api_op_CreateComputeEnvironment.go
@@ -88,7 +88,7 @@ func (s *CreateComputeEnvironmentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateComputeEnvironmentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ComputeEnvironmentName != nil {
v := *s.ComputeEnvironmentName
diff --git a/service/batch/api_op_CreateJobQueue.go b/service/batch/api_op_CreateJobQueue.go
index 6e2d7b26385..27cf2c7d22d 100644
--- a/service/batch/api_op_CreateJobQueue.go
+++ b/service/batch/api_op_CreateJobQueue.go
@@ -79,7 +79,7 @@ func (s *CreateJobQueueInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateJobQueueInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ComputeEnvironmentOrder != nil {
v := s.ComputeEnvironmentOrder
diff --git a/service/batch/api_op_DeleteComputeEnvironment.go b/service/batch/api_op_DeleteComputeEnvironment.go
index e55d1980d4c..c843595638b 100644
--- a/service/batch/api_op_DeleteComputeEnvironment.go
+++ b/service/batch/api_op_DeleteComputeEnvironment.go
@@ -41,7 +41,7 @@ func (s *DeleteComputeEnvironmentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteComputeEnvironmentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ComputeEnvironment != nil {
v := *s.ComputeEnvironment
diff --git a/service/batch/api_op_DeleteJobQueue.go b/service/batch/api_op_DeleteJobQueue.go
index ae0ae6ae6f8..820f63d9838 100644
--- a/service/batch/api_op_DeleteJobQueue.go
+++ b/service/batch/api_op_DeleteJobQueue.go
@@ -41,7 +41,7 @@ func (s *DeleteJobQueueInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteJobQueueInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobQueue != nil {
v := *s.JobQueue
diff --git a/service/batch/api_op_DeregisterJobDefinition.go b/service/batch/api_op_DeregisterJobDefinition.go
index 4bb61c15135..3a70f475eb3 100644
--- a/service/batch/api_op_DeregisterJobDefinition.go
+++ b/service/batch/api_op_DeregisterJobDefinition.go
@@ -42,7 +42,7 @@ func (s *DeregisterJobDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeregisterJobDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobDefinition != nil {
v := *s.JobDefinition
diff --git a/service/batch/api_op_DescribeComputeEnvironments.go b/service/batch/api_op_DescribeComputeEnvironments.go
index 12a5000820f..2aa949ea2cc 100644
--- a/service/batch/api_op_DescribeComputeEnvironments.go
+++ b/service/batch/api_op_DescribeComputeEnvironments.go
@@ -46,7 +46,7 @@ func (s DescribeComputeEnvironmentsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeComputeEnvironmentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ComputeEnvironments != nil {
v := s.ComputeEnvironments
diff --git a/service/batch/api_op_DescribeJobDefinitions.go b/service/batch/api_op_DescribeJobDefinitions.go
index 9196f93910a..93147bf93bc 100644
--- a/service/batch/api_op_DescribeJobDefinitions.go
+++ b/service/batch/api_op_DescribeJobDefinitions.go
@@ -51,7 +51,7 @@ func (s DescribeJobDefinitionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeJobDefinitionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobDefinitionName != nil {
v := *s.JobDefinitionName
diff --git a/service/batch/api_op_DescribeJobQueues.go b/service/batch/api_op_DescribeJobQueues.go
index 99bb34d8b6e..154c1503413 100644
--- a/service/batch/api_op_DescribeJobQueues.go
+++ b/service/batch/api_op_DescribeJobQueues.go
@@ -45,7 +45,7 @@ func (s DescribeJobQueuesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeJobQueuesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobQueues != nil {
v := s.JobQueues
diff --git a/service/batch/api_op_DescribeJobs.go b/service/batch/api_op_DescribeJobs.go
index e9242af18fc..2e0d2e16d20 100644
--- a/service/batch/api_op_DescribeJobs.go
+++ b/service/batch/api_op_DescribeJobs.go
@@ -41,7 +41,7 @@ func (s *DescribeJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Jobs != nil {
v := s.Jobs
diff --git a/service/batch/api_op_ListJobs.go b/service/batch/api_op_ListJobs.go
index 91f9baeec2d..3ae288b68f9 100644
--- a/service/batch/api_op_ListJobs.go
+++ b/service/batch/api_op_ListJobs.go
@@ -57,7 +57,7 @@ func (s ListJobsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ArrayJobId != nil {
v := *s.ArrayJobId
diff --git a/service/batch/api_op_RegisterJobDefinition.go b/service/batch/api_op_RegisterJobDefinition.go
index c556be16321..56af1ab677e 100644
--- a/service/batch/api_op_RegisterJobDefinition.go
+++ b/service/batch/api_op_RegisterJobDefinition.go
@@ -92,7 +92,7 @@ func (s *RegisterJobDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RegisterJobDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ContainerProperties != nil {
v := s.ContainerProperties
diff --git a/service/batch/api_op_SubmitJob.go b/service/batch/api_op_SubmitJob.go
index 2449d20ace5..5b0d85536ea 100644
--- a/service/batch/api_op_SubmitJob.go
+++ b/service/batch/api_op_SubmitJob.go
@@ -123,7 +123,7 @@ func (s *SubmitJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SubmitJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ArrayProperties != nil {
v := s.ArrayProperties
diff --git a/service/batch/api_op_TerminateJob.go b/service/batch/api_op_TerminateJob.go
index f723a4746d1..3ec5b610eaf 100644
--- a/service/batch/api_op_TerminateJob.go
+++ b/service/batch/api_op_TerminateJob.go
@@ -52,7 +52,7 @@ func (s *TerminateJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TerminateJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobId != nil {
v := *s.JobId
diff --git a/service/batch/api_op_UpdateComputeEnvironment.go b/service/batch/api_op_UpdateComputeEnvironment.go
index 21a81e18a41..50959ddb995 100644
--- a/service/batch/api_op_UpdateComputeEnvironment.go
+++ b/service/batch/api_op_UpdateComputeEnvironment.go
@@ -65,7 +65,7 @@ func (s *UpdateComputeEnvironmentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateComputeEnvironmentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ComputeEnvironment != nil {
v := *s.ComputeEnvironment
diff --git a/service/batch/api_op_UpdateJobQueue.go b/service/batch/api_op_UpdateJobQueue.go
index ae9cf825152..9fb083f6423 100644
--- a/service/batch/api_op_UpdateJobQueue.go
+++ b/service/batch/api_op_UpdateJobQueue.go
@@ -64,7 +64,7 @@ func (s *UpdateJobQueueInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateJobQueueInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ComputeEnvironmentOrder != nil {
v := s.ComputeEnvironmentOrder
diff --git a/service/budgets/api_types.go b/service/budgets/api_types.go
index c9cd95619bb..6ef502794eb 100644
--- a/service/budgets/api_types.go
+++ b/service/budgets/api_types.go
@@ -68,7 +68,7 @@ type Budget struct {
CostTypes *CostTypes `type:"structure"`
// The last time that you updated this budget.
- LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `type:"timestamp"`
// A map containing multiple BudgetLimit, including current or future limits.
//
@@ -583,7 +583,7 @@ type TimePeriod struct {
//
// After the end date, AWS deletes the budget and all associated notifications
// and subscribers. You can change your end date with the UpdateBudget operation.
- End *time.Time `type:"timestamp" timestampFormat:"unix"`
+ End *time.Time `type:"timestamp"`
// The start date for a budget. If you created your budget and didn't specify
// a start date, AWS defaults to the start of your chosen time period (DAILY,
@@ -594,7 +594,7 @@ type TimePeriod struct {
// and Cost Management console and the API.
//
// You can change your start date with the UpdateBudget operation.
- Start *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Start *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/chime/api_op_AssociatePhoneNumberWithUser.go b/service/chime/api_op_AssociatePhoneNumberWithUser.go
index 1f1959dcdc2..508c5fdaa47 100644
--- a/service/chime/api_op_AssociatePhoneNumberWithUser.go
+++ b/service/chime/api_op_AssociatePhoneNumberWithUser.go
@@ -59,6 +59,7 @@ func (s *AssociatePhoneNumberWithUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociatePhoneNumberWithUserInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.E164PhoneNumber != nil {
v := *s.E164PhoneNumber
diff --git a/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnector.go b/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnector.go
index 9c79f4cff46..9154ce822c5 100644
--- a/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnector.go
+++ b/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnector.go
@@ -44,6 +44,7 @@ func (s *AssociatePhoneNumbersWithVoiceConnectorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociatePhoneNumbersWithVoiceConnectorInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.E164PhoneNumbers != nil {
v := s.E164PhoneNumbers
diff --git a/service/chime/api_op_BatchDeletePhoneNumber.go b/service/chime/api_op_BatchDeletePhoneNumber.go
index 30487720f85..6fab0c66d85 100644
--- a/service/chime/api_op_BatchDeletePhoneNumber.go
+++ b/service/chime/api_op_BatchDeletePhoneNumber.go
@@ -44,6 +44,7 @@ func (s *BatchDeletePhoneNumberInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchDeletePhoneNumberInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PhoneNumberIds != nil {
v := s.PhoneNumberIds
diff --git a/service/chime/api_op_BatchSuspendUser.go b/service/chime/api_op_BatchSuspendUser.go
index 2ae4f2e6005..e4c70c7a085 100644
--- a/service/chime/api_op_BatchSuspendUser.go
+++ b/service/chime/api_op_BatchSuspendUser.go
@@ -50,6 +50,7 @@ func (s *BatchSuspendUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchSuspendUserInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UserIdList != nil {
v := s.UserIdList
diff --git a/service/chime/api_op_BatchUnsuspendUser.go b/service/chime/api_op_BatchUnsuspendUser.go
index c40430fda40..ca45436478a 100644
--- a/service/chime/api_op_BatchUnsuspendUser.go
+++ b/service/chime/api_op_BatchUnsuspendUser.go
@@ -50,6 +50,7 @@ func (s *BatchUnsuspendUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchUnsuspendUserInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UserIdList != nil {
v := s.UserIdList
diff --git a/service/chime/api_op_BatchUpdatePhoneNumber.go b/service/chime/api_op_BatchUpdatePhoneNumber.go
index a3cfd05ab72..e178ad38853 100644
--- a/service/chime/api_op_BatchUpdatePhoneNumber.go
+++ b/service/chime/api_op_BatchUpdatePhoneNumber.go
@@ -49,6 +49,7 @@ func (s *BatchUpdatePhoneNumberInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchUpdatePhoneNumberInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UpdatePhoneNumberRequestItems != nil {
v := s.UpdatePhoneNumberRequestItems
diff --git a/service/chime/api_op_BatchUpdateUser.go b/service/chime/api_op_BatchUpdateUser.go
index 6e3b15cfd9d..95db580f0a4 100644
--- a/service/chime/api_op_BatchUpdateUser.go
+++ b/service/chime/api_op_BatchUpdateUser.go
@@ -58,6 +58,7 @@ func (s *BatchUpdateUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchUpdateUserInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UpdateUserRequestItems != nil {
v := s.UpdateUserRequestItems
diff --git a/service/chime/api_op_CreateAccount.go b/service/chime/api_op_CreateAccount.go
index fde55ddc18d..ab9968c0758 100644
--- a/service/chime/api_op_CreateAccount.go
+++ b/service/chime/api_op_CreateAccount.go
@@ -44,6 +44,7 @@ func (s *CreateAccountInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateAccountInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/chime/api_op_CreateBot.go b/service/chime/api_op_CreateBot.go
index 110a3e4b6e0..9d7018b608e 100644
--- a/service/chime/api_op_CreateBot.go
+++ b/service/chime/api_op_CreateBot.go
@@ -53,6 +53,7 @@ func (s *CreateBotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateBotInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DisplayName != nil {
v := *s.DisplayName
diff --git a/service/chime/api_op_CreatePhoneNumberOrder.go b/service/chime/api_op_CreatePhoneNumberOrder.go
index 8f721033ef8..cdb0a6667ae 100644
--- a/service/chime/api_op_CreatePhoneNumberOrder.go
+++ b/service/chime/api_op_CreatePhoneNumberOrder.go
@@ -49,6 +49,7 @@ func (s *CreatePhoneNumberOrderInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreatePhoneNumberOrderInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.E164PhoneNumbers != nil {
v := s.E164PhoneNumbers
diff --git a/service/chime/api_op_CreateVoiceConnector.go b/service/chime/api_op_CreateVoiceConnector.go
index 10a0263e725..593cbb523d8 100644
--- a/service/chime/api_op_CreateVoiceConnector.go
+++ b/service/chime/api_op_CreateVoiceConnector.go
@@ -53,6 +53,7 @@ func (s *CreateVoiceConnectorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateVoiceConnectorInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/chime/api_op_DeleteAccount.go b/service/chime/api_op_DeleteAccount.go
index 8134a04cec6..3a06e846215 100644
--- a/service/chime/api_op_DeleteAccount.go
+++ b/service/chime/api_op_DeleteAccount.go
@@ -41,6 +41,7 @@ func (s *DeleteAccountInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteAccountInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_DeleteEventsConfiguration.go b/service/chime/api_op_DeleteEventsConfiguration.go
index e2db9f2166c..79e655b41cb 100644
--- a/service/chime/api_op_DeleteEventsConfiguration.go
+++ b/service/chime/api_op_DeleteEventsConfiguration.go
@@ -51,6 +51,7 @@ func (s *DeleteEventsConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteEventsConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_DeletePhoneNumber.go b/service/chime/api_op_DeletePhoneNumber.go
index 7b81f7e0510..0b1e7c0ea72 100644
--- a/service/chime/api_op_DeletePhoneNumber.go
+++ b/service/chime/api_op_DeletePhoneNumber.go
@@ -42,6 +42,7 @@ func (s *DeletePhoneNumberInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePhoneNumberInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PhoneNumberId != nil {
v := *s.PhoneNumberId
diff --git a/service/chime/api_op_DeleteVoiceConnector.go b/service/chime/api_op_DeleteVoiceConnector.go
index 80d3336e542..53f272fa02b 100644
--- a/service/chime/api_op_DeleteVoiceConnector.go
+++ b/service/chime/api_op_DeleteVoiceConnector.go
@@ -42,6 +42,7 @@ func (s *DeleteVoiceConnectorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVoiceConnectorInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.VoiceConnectorId != nil {
v := *s.VoiceConnectorId
diff --git a/service/chime/api_op_DeleteVoiceConnectorOrigination.go b/service/chime/api_op_DeleteVoiceConnectorOrigination.go
index c28f15af3ad..0b40dfc6746 100644
--- a/service/chime/api_op_DeleteVoiceConnectorOrigination.go
+++ b/service/chime/api_op_DeleteVoiceConnectorOrigination.go
@@ -42,6 +42,7 @@ func (s *DeleteVoiceConnectorOriginationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVoiceConnectorOriginationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.VoiceConnectorId != nil {
v := *s.VoiceConnectorId
diff --git a/service/chime/api_op_DeleteVoiceConnectorTermination.go b/service/chime/api_op_DeleteVoiceConnectorTermination.go
index 1819dd148a4..bd8bd52b412 100644
--- a/service/chime/api_op_DeleteVoiceConnectorTermination.go
+++ b/service/chime/api_op_DeleteVoiceConnectorTermination.go
@@ -42,6 +42,7 @@ func (s *DeleteVoiceConnectorTerminationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVoiceConnectorTerminationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.VoiceConnectorId != nil {
v := *s.VoiceConnectorId
diff --git a/service/chime/api_op_DeleteVoiceConnectorTerminationCredentials.go b/service/chime/api_op_DeleteVoiceConnectorTerminationCredentials.go
index fb0f46ab18a..9a2d27a4c52 100644
--- a/service/chime/api_op_DeleteVoiceConnectorTerminationCredentials.go
+++ b/service/chime/api_op_DeleteVoiceConnectorTerminationCredentials.go
@@ -46,6 +46,7 @@ func (s *DeleteVoiceConnectorTerminationCredentialsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVoiceConnectorTerminationCredentialsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Usernames != nil {
v := s.Usernames
diff --git a/service/chime/api_op_DisassociatePhoneNumberFromUser.go b/service/chime/api_op_DisassociatePhoneNumberFromUser.go
index 33e8b43d057..1a1b891ff00 100644
--- a/service/chime/api_op_DisassociatePhoneNumberFromUser.go
+++ b/service/chime/api_op_DisassociatePhoneNumberFromUser.go
@@ -50,6 +50,7 @@ func (s *DisassociatePhoneNumberFromUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociatePhoneNumberFromUserInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnector.go b/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnector.go
index 77429880dad..c988cfcf4bf 100644
--- a/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnector.go
+++ b/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnector.go
@@ -44,6 +44,7 @@ func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociatePhoneNumbersFromVoiceConnectorInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.E164PhoneNumbers != nil {
v := s.E164PhoneNumbers
diff --git a/service/chime/api_op_GetAccount.go b/service/chime/api_op_GetAccount.go
index 8fb32f12265..50eca926306 100644
--- a/service/chime/api_op_GetAccount.go
+++ b/service/chime/api_op_GetAccount.go
@@ -41,6 +41,7 @@ func (s *GetAccountInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAccountInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_GetAccountSettings.go b/service/chime/api_op_GetAccountSettings.go
index d7fcf1c9d0e..0ee5b60ee2d 100644
--- a/service/chime/api_op_GetAccountSettings.go
+++ b/service/chime/api_op_GetAccountSettings.go
@@ -41,6 +41,7 @@ func (s *GetAccountSettingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAccountSettingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_GetBot.go b/service/chime/api_op_GetBot.go
index 9f3d99f41d2..88b1d760ce5 100644
--- a/service/chime/api_op_GetBot.go
+++ b/service/chime/api_op_GetBot.go
@@ -50,6 +50,7 @@ func (s *GetBotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBotInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_GetEventsConfiguration.go b/service/chime/api_op_GetEventsConfiguration.go
index f7197a8210e..52ac4e258aa 100644
--- a/service/chime/api_op_GetEventsConfiguration.go
+++ b/service/chime/api_op_GetEventsConfiguration.go
@@ -50,6 +50,7 @@ func (s *GetEventsConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetEventsConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_GetGlobalSettings.go b/service/chime/api_op_GetGlobalSettings.go
index 3a8316c7b7e..3e75f60fa04 100644
--- a/service/chime/api_op_GetGlobalSettings.go
+++ b/service/chime/api_op_GetGlobalSettings.go
@@ -22,6 +22,7 @@ func (s GetGlobalSettingsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGlobalSettingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/chime/api_op_GetPhoneNumber.go b/service/chime/api_op_GetPhoneNumber.go
index cf0cedce456..2b57989fe7e 100644
--- a/service/chime/api_op_GetPhoneNumber.go
+++ b/service/chime/api_op_GetPhoneNumber.go
@@ -41,6 +41,7 @@ func (s *GetPhoneNumberInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetPhoneNumberInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PhoneNumberId != nil {
v := *s.PhoneNumberId
diff --git a/service/chime/api_op_GetPhoneNumberOrder.go b/service/chime/api_op_GetPhoneNumberOrder.go
index adab2576e23..8ac4e6d757c 100644
--- a/service/chime/api_op_GetPhoneNumberOrder.go
+++ b/service/chime/api_op_GetPhoneNumberOrder.go
@@ -41,6 +41,7 @@ func (s *GetPhoneNumberOrderInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetPhoneNumberOrderInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PhoneNumberOrderId != nil {
v := *s.PhoneNumberOrderId
diff --git a/service/chime/api_op_GetUser.go b/service/chime/api_op_GetUser.go
index 12f2766c526..f8788cc8721 100644
--- a/service/chime/api_op_GetUser.go
+++ b/service/chime/api_op_GetUser.go
@@ -50,6 +50,7 @@ func (s *GetUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUserInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_GetUserSettings.go b/service/chime/api_op_GetUserSettings.go
index f1aba3dbecd..c43a46c334b 100644
--- a/service/chime/api_op_GetUserSettings.go
+++ b/service/chime/api_op_GetUserSettings.go
@@ -50,6 +50,7 @@ func (s *GetUserSettingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUserSettingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_GetVoiceConnector.go b/service/chime/api_op_GetVoiceConnector.go
index 9942410d85c..3b2265bd3bf 100644
--- a/service/chime/api_op_GetVoiceConnector.go
+++ b/service/chime/api_op_GetVoiceConnector.go
@@ -41,6 +41,7 @@ func (s *GetVoiceConnectorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetVoiceConnectorInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.VoiceConnectorId != nil {
v := *s.VoiceConnectorId
diff --git a/service/chime/api_op_GetVoiceConnectorOrigination.go b/service/chime/api_op_GetVoiceConnectorOrigination.go
index 2da2aeca787..8686974c2ed 100644
--- a/service/chime/api_op_GetVoiceConnectorOrigination.go
+++ b/service/chime/api_op_GetVoiceConnectorOrigination.go
@@ -41,6 +41,7 @@ func (s *GetVoiceConnectorOriginationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetVoiceConnectorOriginationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.VoiceConnectorId != nil {
v := *s.VoiceConnectorId
diff --git a/service/chime/api_op_GetVoiceConnectorTermination.go b/service/chime/api_op_GetVoiceConnectorTermination.go
index e14ffe9f4e2..998a46e5db4 100644
--- a/service/chime/api_op_GetVoiceConnectorTermination.go
+++ b/service/chime/api_op_GetVoiceConnectorTermination.go
@@ -41,6 +41,7 @@ func (s *GetVoiceConnectorTerminationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetVoiceConnectorTerminationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.VoiceConnectorId != nil {
v := *s.VoiceConnectorId
diff --git a/service/chime/api_op_GetVoiceConnectorTerminationHealth.go b/service/chime/api_op_GetVoiceConnectorTerminationHealth.go
index dec00039052..76405048487 100644
--- a/service/chime/api_op_GetVoiceConnectorTerminationHealth.go
+++ b/service/chime/api_op_GetVoiceConnectorTerminationHealth.go
@@ -41,6 +41,7 @@ func (s *GetVoiceConnectorTerminationHealthInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetVoiceConnectorTerminationHealthInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.VoiceConnectorId != nil {
v := *s.VoiceConnectorId
diff --git a/service/chime/api_op_InviteUsers.go b/service/chime/api_op_InviteUsers.go
index bacc24e4cfe..b7a308dfe60 100644
--- a/service/chime/api_op_InviteUsers.go
+++ b/service/chime/api_op_InviteUsers.go
@@ -50,6 +50,7 @@ func (s *InviteUsersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InviteUsersInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UserEmailList != nil {
v := s.UserEmailList
diff --git a/service/chime/api_op_ListAccounts.go b/service/chime/api_op_ListAccounts.go
index a555efb9485..cb444857d87 100644
--- a/service/chime/api_op_ListAccounts.go
+++ b/service/chime/api_op_ListAccounts.go
@@ -50,6 +50,7 @@ func (s *ListAccountsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListAccountsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/chime/api_op_ListBots.go b/service/chime/api_op_ListBots.go
index 39cbc2fec64..9d584550d04 100644
--- a/service/chime/api_op_ListBots.go
+++ b/service/chime/api_op_ListBots.go
@@ -50,6 +50,7 @@ func (s *ListBotsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBotsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_ListPhoneNumberOrders.go b/service/chime/api_op_ListPhoneNumberOrders.go
index 2fbdba9643d..e4225da1a71 100644
--- a/service/chime/api_op_ListPhoneNumberOrders.go
+++ b/service/chime/api_op_ListPhoneNumberOrders.go
@@ -41,6 +41,7 @@ func (s *ListPhoneNumberOrdersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPhoneNumberOrdersInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/chime/api_op_ListPhoneNumbers.go b/service/chime/api_op_ListPhoneNumbers.go
index 935335bef5c..e2143ecf8dc 100644
--- a/service/chime/api_op_ListPhoneNumbers.go
+++ b/service/chime/api_op_ListPhoneNumbers.go
@@ -53,6 +53,7 @@ func (s *ListPhoneNumbersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPhoneNumbersInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.FilterName) > 0 {
v := s.FilterName
diff --git a/service/chime/api_op_ListUsers.go b/service/chime/api_op_ListUsers.go
index a2d6385f5bb..0412d29fa45 100644
--- a/service/chime/api_op_ListUsers.go
+++ b/service/chime/api_op_ListUsers.go
@@ -53,6 +53,7 @@ func (s *ListUsersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListUsersInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_ListVoiceConnectorTerminationCredentials.go b/service/chime/api_op_ListVoiceConnectorTerminationCredentials.go
index a7482bfd279..5e23f273172 100644
--- a/service/chime/api_op_ListVoiceConnectorTerminationCredentials.go
+++ b/service/chime/api_op_ListVoiceConnectorTerminationCredentials.go
@@ -41,6 +41,7 @@ func (s *ListVoiceConnectorTerminationCredentialsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListVoiceConnectorTerminationCredentialsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.VoiceConnectorId != nil {
v := *s.VoiceConnectorId
diff --git a/service/chime/api_op_ListVoiceConnectors.go b/service/chime/api_op_ListVoiceConnectors.go
index 636cd31a4b3..a2f366b1494 100644
--- a/service/chime/api_op_ListVoiceConnectors.go
+++ b/service/chime/api_op_ListVoiceConnectors.go
@@ -41,6 +41,7 @@ func (s *ListVoiceConnectorsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListVoiceConnectorsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/chime/api_op_LogoutUser.go b/service/chime/api_op_LogoutUser.go
index 2c6a3933900..54c1a3b79df 100644
--- a/service/chime/api_op_LogoutUser.go
+++ b/service/chime/api_op_LogoutUser.go
@@ -50,6 +50,7 @@ func (s *LogoutUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s LogoutUserInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_PutEventsConfiguration.go b/service/chime/api_op_PutEventsConfiguration.go
index 5d83aa46cbb..00a1130045a 100644
--- a/service/chime/api_op_PutEventsConfiguration.go
+++ b/service/chime/api_op_PutEventsConfiguration.go
@@ -56,6 +56,7 @@ func (s *PutEventsConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutEventsConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LambdaFunctionArn != nil {
v := *s.LambdaFunctionArn
diff --git a/service/chime/api_op_PutVoiceConnectorOrigination.go b/service/chime/api_op_PutVoiceConnectorOrigination.go
index 4ff4c6c3f38..4793c4e0b24 100644
--- a/service/chime/api_op_PutVoiceConnectorOrigination.go
+++ b/service/chime/api_op_PutVoiceConnectorOrigination.go
@@ -55,6 +55,7 @@ func (s *PutVoiceConnectorOriginationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutVoiceConnectorOriginationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Origination != nil {
v := s.Origination
diff --git a/service/chime/api_op_PutVoiceConnectorTermination.go b/service/chime/api_op_PutVoiceConnectorTermination.go
index 03afd6c5aa4..bcac8f8fef2 100644
--- a/service/chime/api_op_PutVoiceConnectorTermination.go
+++ b/service/chime/api_op_PutVoiceConnectorTermination.go
@@ -55,6 +55,7 @@ func (s *PutVoiceConnectorTerminationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutVoiceConnectorTerminationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Termination != nil {
v := s.Termination
diff --git a/service/chime/api_op_PutVoiceConnectorTerminationCredentials.go b/service/chime/api_op_PutVoiceConnectorTerminationCredentials.go
index ce3f84c0f20..4a703353cdd 100644
--- a/service/chime/api_op_PutVoiceConnectorTerminationCredentials.go
+++ b/service/chime/api_op_PutVoiceConnectorTerminationCredentials.go
@@ -45,6 +45,7 @@ func (s *PutVoiceConnectorTerminationCredentialsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutVoiceConnectorTerminationCredentialsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Credentials != nil {
v := s.Credentials
diff --git a/service/chime/api_op_RegenerateSecurityToken.go b/service/chime/api_op_RegenerateSecurityToken.go
index cfa689ddb2e..e4a3525c388 100644
--- a/service/chime/api_op_RegenerateSecurityToken.go
+++ b/service/chime/api_op_RegenerateSecurityToken.go
@@ -50,6 +50,7 @@ func (s *RegenerateSecurityTokenInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RegenerateSecurityTokenInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_ResetPersonalPIN.go b/service/chime/api_op_ResetPersonalPIN.go
index bf2b321bb58..e17ee68986c 100644
--- a/service/chime/api_op_ResetPersonalPIN.go
+++ b/service/chime/api_op_ResetPersonalPIN.go
@@ -50,6 +50,7 @@ func (s *ResetPersonalPINInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ResetPersonalPINInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/chime/api_op_RestorePhoneNumber.go b/service/chime/api_op_RestorePhoneNumber.go
index bc23210ab65..df6fd6e145c 100644
--- a/service/chime/api_op_RestorePhoneNumber.go
+++ b/service/chime/api_op_RestorePhoneNumber.go
@@ -41,6 +41,7 @@ func (s *RestorePhoneNumberInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RestorePhoneNumberInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PhoneNumberId != nil {
v := *s.PhoneNumberId
diff --git a/service/chime/api_op_SearchAvailablePhoneNumbers.go b/service/chime/api_op_SearchAvailablePhoneNumbers.go
index a0083d1820d..6b5117e5141 100644
--- a/service/chime/api_op_SearchAvailablePhoneNumbers.go
+++ b/service/chime/api_op_SearchAvailablePhoneNumbers.go
@@ -59,6 +59,7 @@ func (s *SearchAvailablePhoneNumbersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SearchAvailablePhoneNumbersInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AreaCode != nil {
v := *s.AreaCode
diff --git a/service/chime/api_op_UpdateAccount.go b/service/chime/api_op_UpdateAccount.go
index e62d2727852..b7928cce671 100644
--- a/service/chime/api_op_UpdateAccount.go
+++ b/service/chime/api_op_UpdateAccount.go
@@ -47,6 +47,7 @@ func (s *UpdateAccountInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAccountInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/chime/api_op_UpdateAccountSettings.go b/service/chime/api_op_UpdateAccountSettings.go
index c3c3e5a33f2..c37a2759a95 100644
--- a/service/chime/api_op_UpdateAccountSettings.go
+++ b/service/chime/api_op_UpdateAccountSettings.go
@@ -50,6 +50,7 @@ func (s *UpdateAccountSettingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAccountSettingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountSettings != nil {
v := s.AccountSettings
diff --git a/service/chime/api_op_UpdateBot.go b/service/chime/api_op_UpdateBot.go
index cd1283a6ded..d7aa2ae0185 100644
--- a/service/chime/api_op_UpdateBot.go
+++ b/service/chime/api_op_UpdateBot.go
@@ -53,6 +53,7 @@ func (s *UpdateBotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateBotInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Disabled != nil {
v := *s.Disabled
diff --git a/service/chime/api_op_UpdateGlobalSettings.go b/service/chime/api_op_UpdateGlobalSettings.go
index 9f6eebfffeb..650d6382f7c 100644
--- a/service/chime/api_op_UpdateGlobalSettings.go
+++ b/service/chime/api_op_UpdateGlobalSettings.go
@@ -51,6 +51,7 @@ func (s *UpdateGlobalSettingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateGlobalSettingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BusinessCalling != nil {
v := s.BusinessCalling
diff --git a/service/chime/api_op_UpdatePhoneNumber.go b/service/chime/api_op_UpdatePhoneNumber.go
index d384e799f2b..a03c84c4621 100644
--- a/service/chime/api_op_UpdatePhoneNumber.go
+++ b/service/chime/api_op_UpdatePhoneNumber.go
@@ -44,6 +44,7 @@ func (s *UpdatePhoneNumberInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdatePhoneNumberInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ProductType) > 0 {
v := s.ProductType
diff --git a/service/chime/api_op_UpdateUser.go b/service/chime/api_op_UpdateUser.go
index caab9dd9157..c7e28e4b237 100644
--- a/service/chime/api_op_UpdateUser.go
+++ b/service/chime/api_op_UpdateUser.go
@@ -54,6 +54,7 @@ func (s *UpdateUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUserInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.LicenseType) > 0 {
v := s.LicenseType
diff --git a/service/chime/api_op_UpdateUserSettings.go b/service/chime/api_op_UpdateUserSettings.go
index 4508dc3f826..9c682283b3d 100644
--- a/service/chime/api_op_UpdateUserSettings.go
+++ b/service/chime/api_op_UpdateUserSettings.go
@@ -65,6 +65,7 @@ func (s *UpdateUserSettingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUserSettingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UserSettings != nil {
v := s.UserSettings
diff --git a/service/chime/api_op_UpdateVoiceConnector.go b/service/chime/api_op_UpdateVoiceConnector.go
index e079ed82e17..4067c4992da 100644
--- a/service/chime/api_op_UpdateVoiceConnector.go
+++ b/service/chime/api_op_UpdateVoiceConnector.go
@@ -62,6 +62,7 @@ func (s *UpdateVoiceConnectorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateVoiceConnectorInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/chime/api_types.go b/service/chime/api_types.go
index 29c07edf51c..b6a81aed215 100644
--- a/service/chime/api_types.go
+++ b/service/chime/api_types.go
@@ -36,7 +36,7 @@ type Account struct {
AwsAccountId *string `type:"string" required:"true"`
// The Amazon Chime account creation timestamp, in ISO 8601 format.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The default license for the Amazon Chime account.
DefaultLicense License `type:"string" enum:"true"`
@@ -79,7 +79,8 @@ func (s Account) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if len(s.DefaultLicense) > 0 {
v := s.DefaultLicense
@@ -164,7 +165,7 @@ type Bot struct {
BotType BotType `type:"string" enum:"true"`
// The bot creation timestamp, in ISO 8601 format.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// When true, the bot is stopped from running in your account.
Disabled *bool `type:"boolean"`
@@ -177,7 +178,7 @@ type Bot struct {
SecurityToken *string `type:"string"`
// The updated bot timestamp, in ISO 8601 format.
- UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The unique ID for the bot user.
UserId *string `type:"string"`
@@ -212,7 +213,8 @@ func (s Bot) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Disabled != nil {
v := *s.Disabled
@@ -236,7 +238,8 @@ func (s Bot) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "UpdatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "UpdatedTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.UserId != nil {
v := *s.UserId
@@ -596,10 +599,10 @@ type PhoneNumber struct {
Capabilities *PhoneNumberCapabilities `type:"structure"`
// The phone number creation timestamp, in ISO 8601 format.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The deleted phone number timestamp, in ISO 8601 format.
- DeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The phone number, in E.164 format.
E164PhoneNumber *string `type:"string"`
@@ -617,7 +620,7 @@ type PhoneNumber struct {
Type PhoneNumberType `type:"string" enum:"true"`
// The updated phone number timestamp, in ISO 8601 format.
- UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}
// String returns the string representation
@@ -649,13 +652,15 @@ func (s PhoneNumber) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.DeletionTimestamp != nil {
v := *s.DeletionTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DeletionTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DeletionTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.E164PhoneNumber != nil {
v := *s.E164PhoneNumber
@@ -691,7 +696,8 @@ func (s PhoneNumber) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "UpdatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "UpdatedTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -703,7 +709,7 @@ type PhoneNumberAssociation struct {
_ struct{} `type:"structure"`
// The timestamp of the phone number association, in ISO 8601 format.
- AssociatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AssociatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// Defines the association with an Amazon Chime account ID, user ID, or Amazon
// Chime Voice Connector ID.
@@ -724,7 +730,8 @@ func (s PhoneNumberAssociation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.AssociatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "AssociatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "AssociatedTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if len(s.Name) > 0 {
v := s.Name
@@ -863,7 +870,7 @@ type PhoneNumberOrder struct {
_ struct{} `type:"structure"`
// The phone number order creation timestamp, in ISO 8601 format.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The ordered phone number details, such as the phone number in E.164 format
// and the phone number status.
@@ -879,7 +886,7 @@ type PhoneNumberOrder struct {
Status PhoneNumberOrderStatus `type:"string" enum:"true"`
// The updated phone number order timestamp, in ISO 8601 format.
- UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}
// String returns the string representation
@@ -893,7 +900,8 @@ func (s PhoneNumberOrder) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.OrderedPhoneNumbers != nil {
v := s.OrderedPhoneNumbers
@@ -929,7 +937,8 @@ func (s PhoneNumberOrder) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "UpdatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "UpdatedTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -1104,7 +1113,7 @@ type TerminationHealth struct {
Source *string `type:"string"`
// The timestamp, in ISO 8601 format.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}
// String returns the string representation
@@ -1124,7 +1133,8 @@ func (s TerminationHealth) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Timestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Timestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "Timestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -1243,7 +1253,7 @@ type User struct {
// Date and time when the user is invited to the Amazon Chime account, in ISO
// 8601 format.
- InvitedOn *time.Time `type:"timestamp" timestampFormat:"unix"`
+ InvitedOn *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The license type for the user.
LicenseType License `type:"string" enum:"true"`
@@ -1258,7 +1268,7 @@ type User struct {
PrimaryProvisionedNumber *string `type:"string"`
// Date and time when the user is registered, in ISO 8601 format.
- RegisteredOn *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RegisteredOn *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The user ID.
//
@@ -1295,7 +1305,8 @@ func (s User) MarshalFields(e protocol.FieldEncoder) error {
v := *s.InvitedOn
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "InvitedOn", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "InvitedOn",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if len(s.LicenseType) > 0 {
v := s.LicenseType
@@ -1325,7 +1336,8 @@ func (s User) MarshalFields(e protocol.FieldEncoder) error {
v := *s.RegisteredOn
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "RegisteredOn", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "RegisteredOn",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.UserId != nil {
v := *s.UserId
@@ -1447,7 +1459,7 @@ type VoiceConnector struct {
_ struct{} `type:"structure"`
// The Amazon Chime Voice Connector creation timestamp, in ISO 8601 format.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The name of the Amazon Chime Voice Connector.
Name *string `min:"1" type:"string"`
@@ -1459,7 +1471,7 @@ type VoiceConnector struct {
RequireEncryption *bool `type:"boolean"`
// The updated Amazon Chime Voice Connector timestamp, in ISO 8601 format.
- UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The Amazon Chime Voice Connector ID.
VoiceConnectorId *string `type:"string"`
@@ -1476,7 +1488,8 @@ func (s VoiceConnector) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -1500,7 +1513,8 @@ func (s VoiceConnector) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "UpdatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "UpdatedTimestamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.VoiceConnectorId != nil {
v := *s.VoiceConnectorId
diff --git a/service/cloud9/api_types.go b/service/cloud9/api_types.go
index 618d8c89c97..dfc8594cc0f 100644
--- a/service/cloud9/api_types.go
+++ b/service/cloud9/api_types.go
@@ -87,7 +87,7 @@ type EnvironmentMember struct {
// The time, expressed in epoch time format, when the environment member last
// opened the environment.
- LastAccess *time.Time `locationName:"lastAccess" type:"timestamp" timestampFormat:"unix"`
+ LastAccess *time.Time `locationName:"lastAccess" type:"timestamp"`
// The type of environment member permissions associated with this environment
// member. Available values include:
diff --git a/service/clouddirectory/api_op_AddFacetToObject.go b/service/clouddirectory/api_op_AddFacetToObject.go
index 7d1558cd1b6..eb212eb05c0 100644
--- a/service/clouddirectory/api_op_AddFacetToObject.go
+++ b/service/clouddirectory/api_op_AddFacetToObject.go
@@ -77,6 +77,7 @@ func (s *AddFacetToObjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AddFacetToObjectInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ObjectAttributeList != nil {
v := s.ObjectAttributeList
diff --git a/service/clouddirectory/api_op_ApplySchema.go b/service/clouddirectory/api_op_ApplySchema.go
index d80b2fec165..17313032a09 100644
--- a/service/clouddirectory/api_op_ApplySchema.go
+++ b/service/clouddirectory/api_op_ApplySchema.go
@@ -52,6 +52,7 @@ func (s *ApplySchemaInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ApplySchemaInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PublishedSchemaArn != nil {
v := *s.PublishedSchemaArn
diff --git a/service/clouddirectory/api_op_AttachObject.go b/service/clouddirectory/api_op_AttachObject.go
index 917967ec457..bbdd915ec55 100644
--- a/service/clouddirectory/api_op_AttachObject.go
+++ b/service/clouddirectory/api_op_AttachObject.go
@@ -72,6 +72,7 @@ func (s *AttachObjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AttachObjectInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChildReference != nil {
v := s.ChildReference
diff --git a/service/clouddirectory/api_op_AttachPolicy.go b/service/clouddirectory/api_op_AttachPolicy.go
index 5de70b11aa8..f0307e402b8 100644
--- a/service/clouddirectory/api_op_AttachPolicy.go
+++ b/service/clouddirectory/api_op_AttachPolicy.go
@@ -60,6 +60,7 @@ func (s *AttachPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AttachPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ObjectReference != nil {
v := s.ObjectReference
diff --git a/service/clouddirectory/api_op_AttachToIndex.go b/service/clouddirectory/api_op_AttachToIndex.go
index 9cedfee8c71..b328f5fc310 100644
--- a/service/clouddirectory/api_op_AttachToIndex.go
+++ b/service/clouddirectory/api_op_AttachToIndex.go
@@ -60,6 +60,7 @@ func (s *AttachToIndexInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AttachToIndexInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IndexReference != nil {
v := s.IndexReference
diff --git a/service/clouddirectory/api_op_AttachTypedLink.go b/service/clouddirectory/api_op_AttachTypedLink.go
index 691a612f82a..02497a40880 100644
--- a/service/clouddirectory/api_op_AttachTypedLink.go
+++ b/service/clouddirectory/api_op_AttachTypedLink.go
@@ -91,6 +91,7 @@ func (s *AttachTypedLinkInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AttachTypedLinkInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Attributes != nil {
v := s.Attributes
diff --git a/service/clouddirectory/api_op_BatchRead.go b/service/clouddirectory/api_op_BatchRead.go
index 629b28c4b31..2e4d5f70f2b 100644
--- a/service/clouddirectory/api_op_BatchRead.go
+++ b/service/clouddirectory/api_op_BatchRead.go
@@ -63,6 +63,7 @@ func (s *BatchReadInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchReadInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Operations != nil {
v := s.Operations
diff --git a/service/clouddirectory/api_op_BatchWrite.go b/service/clouddirectory/api_op_BatchWrite.go
index c887b006ead..ce230b94a9b 100644
--- a/service/clouddirectory/api_op_BatchWrite.go
+++ b/service/clouddirectory/api_op_BatchWrite.go
@@ -59,6 +59,7 @@ func (s *BatchWriteInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchWriteInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Operations != nil {
v := s.Operations
diff --git a/service/clouddirectory/api_op_CreateDirectory.go b/service/clouddirectory/api_op_CreateDirectory.go
index 144401f8fa5..9b85188b8ee 100644
--- a/service/clouddirectory/api_op_CreateDirectory.go
+++ b/service/clouddirectory/api_op_CreateDirectory.go
@@ -54,6 +54,7 @@ func (s *CreateDirectoryInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDirectoryInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/clouddirectory/api_op_CreateFacet.go b/service/clouddirectory/api_op_CreateFacet.go
index 8205bc6fec7..0cb356c7d94 100644
--- a/service/clouddirectory/api_op_CreateFacet.go
+++ b/service/clouddirectory/api_op_CreateFacet.go
@@ -83,6 +83,7 @@ func (s *CreateFacetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFacetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Attributes != nil {
v := s.Attributes
diff --git a/service/clouddirectory/api_op_CreateIndex.go b/service/clouddirectory/api_op_CreateIndex.go
index 0fb56d1fee9..a6489170835 100644
--- a/service/clouddirectory/api_op_CreateIndex.go
+++ b/service/clouddirectory/api_op_CreateIndex.go
@@ -78,6 +78,7 @@ func (s *CreateIndexInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateIndexInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IsUnique != nil {
v := *s.IsUnique
diff --git a/service/clouddirectory/api_op_CreateObject.go b/service/clouddirectory/api_op_CreateObject.go
index 0482be1640a..b1a34030afd 100644
--- a/service/clouddirectory/api_op_CreateObject.go
+++ b/service/clouddirectory/api_op_CreateObject.go
@@ -80,6 +80,7 @@ func (s *CreateObjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateObjectInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LinkName != nil {
v := *s.LinkName
diff --git a/service/clouddirectory/api_op_CreateSchema.go b/service/clouddirectory/api_op_CreateSchema.go
index c1dd88b5934..71214c42c40 100644
--- a/service/clouddirectory/api_op_CreateSchema.go
+++ b/service/clouddirectory/api_op_CreateSchema.go
@@ -45,6 +45,7 @@ func (s *CreateSchemaInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSchemaInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/clouddirectory/api_op_CreateTypedLinkFacet.go b/service/clouddirectory/api_op_CreateTypedLinkFacet.go
index 30b59dd2820..ef99a107953 100644
--- a/service/clouddirectory/api_op_CreateTypedLinkFacet.go
+++ b/service/clouddirectory/api_op_CreateTypedLinkFacet.go
@@ -56,6 +56,7 @@ func (s *CreateTypedLinkFacetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateTypedLinkFacetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Facet != nil {
v := s.Facet
diff --git a/service/clouddirectory/api_op_DeleteDirectory.go b/service/clouddirectory/api_op_DeleteDirectory.go
index eb17c155189..2b59b84beb8 100644
--- a/service/clouddirectory/api_op_DeleteDirectory.go
+++ b/service/clouddirectory/api_op_DeleteDirectory.go
@@ -41,6 +41,7 @@ func (s *DeleteDirectoryInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDirectoryInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DirectoryArn != nil {
v := *s.DirectoryArn
diff --git a/service/clouddirectory/api_op_DeleteFacet.go b/service/clouddirectory/api_op_DeleteFacet.go
index 54732b3e36e..4db99db5215 100644
--- a/service/clouddirectory/api_op_DeleteFacet.go
+++ b/service/clouddirectory/api_op_DeleteFacet.go
@@ -54,6 +54,7 @@ func (s *DeleteFacetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFacetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/clouddirectory/api_op_DeleteObject.go b/service/clouddirectory/api_op_DeleteObject.go
index 9a3e318e84c..e412a14f1ec 100644
--- a/service/clouddirectory/api_op_DeleteObject.go
+++ b/service/clouddirectory/api_op_DeleteObject.go
@@ -51,6 +51,7 @@ func (s *DeleteObjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteObjectInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ObjectReference != nil {
v := s.ObjectReference
diff --git a/service/clouddirectory/api_op_DeleteSchema.go b/service/clouddirectory/api_op_DeleteSchema.go
index 57797d1b85a..5e4bd51d3b2 100644
--- a/service/clouddirectory/api_op_DeleteSchema.go
+++ b/service/clouddirectory/api_op_DeleteSchema.go
@@ -42,6 +42,7 @@ func (s *DeleteSchemaInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteSchemaInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SchemaArn != nil {
v := *s.SchemaArn
diff --git a/service/clouddirectory/api_op_DeleteTypedLinkFacet.go b/service/clouddirectory/api_op_DeleteTypedLinkFacet.go
index b80ed8660ec..f8e2d48aabd 100644
--- a/service/clouddirectory/api_op_DeleteTypedLinkFacet.go
+++ b/service/clouddirectory/api_op_DeleteTypedLinkFacet.go
@@ -51,6 +51,7 @@ func (s *DeleteTypedLinkFacetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteTypedLinkFacetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/clouddirectory/api_op_DetachFromIndex.go b/service/clouddirectory/api_op_DetachFromIndex.go
index a2e0b12a078..5c29100798b 100644
--- a/service/clouddirectory/api_op_DetachFromIndex.go
+++ b/service/clouddirectory/api_op_DetachFromIndex.go
@@ -60,6 +60,7 @@ func (s *DetachFromIndexInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DetachFromIndexInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IndexReference != nil {
v := s.IndexReference
diff --git a/service/clouddirectory/api_op_DetachObject.go b/service/clouddirectory/api_op_DetachObject.go
index 0e61f040a07..ab1749402a8 100644
--- a/service/clouddirectory/api_op_DetachObject.go
+++ b/service/clouddirectory/api_op_DetachObject.go
@@ -64,6 +64,7 @@ func (s *DetachObjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DetachObjectInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LinkName != nil {
v := *s.LinkName
diff --git a/service/clouddirectory/api_op_DetachPolicy.go b/service/clouddirectory/api_op_DetachPolicy.go
index 3db681d16ee..6f2ebc0687d 100644
--- a/service/clouddirectory/api_op_DetachPolicy.go
+++ b/service/clouddirectory/api_op_DetachPolicy.go
@@ -60,6 +60,7 @@ func (s *DetachPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DetachPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ObjectReference != nil {
v := s.ObjectReference
diff --git a/service/clouddirectory/api_op_DetachTypedLink.go b/service/clouddirectory/api_op_DetachTypedLink.go
index 726ad226bcb..b30c8788d03 100644
--- a/service/clouddirectory/api_op_DetachTypedLink.go
+++ b/service/clouddirectory/api_op_DetachTypedLink.go
@@ -57,6 +57,7 @@ func (s *DetachTypedLinkInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DetachTypedLinkInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TypedLinkSpecifier != nil {
v := s.TypedLinkSpecifier
diff --git a/service/clouddirectory/api_op_DisableDirectory.go b/service/clouddirectory/api_op_DisableDirectory.go
index d61a8d91e8d..2fdcfb41350 100644
--- a/service/clouddirectory/api_op_DisableDirectory.go
+++ b/service/clouddirectory/api_op_DisableDirectory.go
@@ -41,6 +41,7 @@ func (s *DisableDirectoryInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisableDirectoryInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DirectoryArn != nil {
v := *s.DirectoryArn
diff --git a/service/clouddirectory/api_op_EnableDirectory.go b/service/clouddirectory/api_op_EnableDirectory.go
index d7c6e059a8a..2ad52378022 100644
--- a/service/clouddirectory/api_op_EnableDirectory.go
+++ b/service/clouddirectory/api_op_EnableDirectory.go
@@ -41,6 +41,7 @@ func (s *EnableDirectoryInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s EnableDirectoryInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DirectoryArn != nil {
v := *s.DirectoryArn
diff --git a/service/clouddirectory/api_op_GetAppliedSchemaVersion.go b/service/clouddirectory/api_op_GetAppliedSchemaVersion.go
index 9717931801f..a02ea9470d9 100644
--- a/service/clouddirectory/api_op_GetAppliedSchemaVersion.go
+++ b/service/clouddirectory/api_op_GetAppliedSchemaVersion.go
@@ -41,6 +41,7 @@ func (s *GetAppliedSchemaVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAppliedSchemaVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SchemaArn != nil {
v := *s.SchemaArn
diff --git a/service/clouddirectory/api_op_GetDirectory.go b/service/clouddirectory/api_op_GetDirectory.go
index 4905fb6cac8..2731b6c7236 100644
--- a/service/clouddirectory/api_op_GetDirectory.go
+++ b/service/clouddirectory/api_op_GetDirectory.go
@@ -41,6 +41,7 @@ func (s *GetDirectoryInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDirectoryInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DirectoryArn != nil {
v := *s.DirectoryArn
diff --git a/service/clouddirectory/api_op_GetFacet.go b/service/clouddirectory/api_op_GetFacet.go
index e94084c1104..7024623de56 100644
--- a/service/clouddirectory/api_op_GetFacet.go
+++ b/service/clouddirectory/api_op_GetFacet.go
@@ -54,6 +54,7 @@ func (s *GetFacetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFacetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/clouddirectory/api_op_GetLinkAttributes.go b/service/clouddirectory/api_op_GetLinkAttributes.go
index 8e3bd2a9426..8284d9559a7 100644
--- a/service/clouddirectory/api_op_GetLinkAttributes.go
+++ b/service/clouddirectory/api_op_GetLinkAttributes.go
@@ -68,6 +68,7 @@ func (s *GetLinkAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetLinkAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AttributeNames != nil {
v := s.AttributeNames
diff --git a/service/clouddirectory/api_op_GetObjectAttributes.go b/service/clouddirectory/api_op_GetObjectAttributes.go
index 8b0064ec018..b11412e8be0 100644
--- a/service/clouddirectory/api_op_GetObjectAttributes.go
+++ b/service/clouddirectory/api_op_GetObjectAttributes.go
@@ -78,6 +78,7 @@ func (s *GetObjectAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetObjectAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AttributeNames != nil {
v := s.AttributeNames
diff --git a/service/clouddirectory/api_op_GetObjectInformation.go b/service/clouddirectory/api_op_GetObjectInformation.go
index 65421a02e57..ea7d00c5734 100644
--- a/service/clouddirectory/api_op_GetObjectInformation.go
+++ b/service/clouddirectory/api_op_GetObjectInformation.go
@@ -53,6 +53,7 @@ func (s *GetObjectInformationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetObjectInformationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ObjectReference != nil {
v := s.ObjectReference
diff --git a/service/clouddirectory/api_op_GetSchemaAsJson.go b/service/clouddirectory/api_op_GetSchemaAsJson.go
index df90de4ff21..9948f896fbd 100644
--- a/service/clouddirectory/api_op_GetSchemaAsJson.go
+++ b/service/clouddirectory/api_op_GetSchemaAsJson.go
@@ -41,6 +41,7 @@ func (s *GetSchemaAsJsonInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSchemaAsJsonInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SchemaArn != nil {
v := *s.SchemaArn
diff --git a/service/clouddirectory/api_op_GetTypedLinkFacetInformation.go b/service/clouddirectory/api_op_GetTypedLinkFacetInformation.go
index be82013e36b..3cd48dad8c1 100644
--- a/service/clouddirectory/api_op_GetTypedLinkFacetInformation.go
+++ b/service/clouddirectory/api_op_GetTypedLinkFacetInformation.go
@@ -51,6 +51,7 @@ func (s *GetTypedLinkFacetInformationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetTypedLinkFacetInformationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/clouddirectory/api_op_ListAppliedSchemaArns.go b/service/clouddirectory/api_op_ListAppliedSchemaArns.go
index 944b09ba8f9..6d83d670f19 100644
--- a/service/clouddirectory/api_op_ListAppliedSchemaArns.go
+++ b/service/clouddirectory/api_op_ListAppliedSchemaArns.go
@@ -54,6 +54,7 @@ func (s *ListAppliedSchemaArnsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListAppliedSchemaArnsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DirectoryArn != nil {
v := *s.DirectoryArn
diff --git a/service/clouddirectory/api_op_ListAttachedIndices.go b/service/clouddirectory/api_op_ListAttachedIndices.go
index 10375f9fda3..3011adef5c1 100644
--- a/service/clouddirectory/api_op_ListAttachedIndices.go
+++ b/service/clouddirectory/api_op_ListAttachedIndices.go
@@ -62,6 +62,7 @@ func (s *ListAttachedIndicesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListAttachedIndicesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListDevelopmentSchemaArns.go b/service/clouddirectory/api_op_ListDevelopmentSchemaArns.go
index dd54d6c72a4..ada5e2e0198 100644
--- a/service/clouddirectory/api_op_ListDevelopmentSchemaArns.go
+++ b/service/clouddirectory/api_op_ListDevelopmentSchemaArns.go
@@ -41,6 +41,7 @@ func (s *ListDevelopmentSchemaArnsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDevelopmentSchemaArnsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListDirectories.go b/service/clouddirectory/api_op_ListDirectories.go
index 15ed614b847..a70e429fd0d 100644
--- a/service/clouddirectory/api_op_ListDirectories.go
+++ b/service/clouddirectory/api_op_ListDirectories.go
@@ -45,6 +45,7 @@ func (s *ListDirectoriesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDirectoriesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListFacetAttributes.go b/service/clouddirectory/api_op_ListFacetAttributes.go
index 353865352f0..70d671c0399 100644
--- a/service/clouddirectory/api_op_ListFacetAttributes.go
+++ b/service/clouddirectory/api_op_ListFacetAttributes.go
@@ -62,6 +62,7 @@ func (s *ListFacetAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFacetAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListFacetNames.go b/service/clouddirectory/api_op_ListFacetNames.go
index 420f170f2ac..8b804f05107 100644
--- a/service/clouddirectory/api_op_ListFacetNames.go
+++ b/service/clouddirectory/api_op_ListFacetNames.go
@@ -50,6 +50,7 @@ func (s *ListFacetNamesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFacetNamesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListIncomingTypedLinks.go b/service/clouddirectory/api_op_ListIncomingTypedLinks.go
index a4ee86a0a78..ec08f4f4b6b 100644
--- a/service/clouddirectory/api_op_ListIncomingTypedLinks.go
+++ b/service/clouddirectory/api_op_ListIncomingTypedLinks.go
@@ -86,6 +86,7 @@ func (s *ListIncomingTypedLinksInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListIncomingTypedLinksInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ConsistencyLevel) > 0 {
v := s.ConsistencyLevel
diff --git a/service/clouddirectory/api_op_ListIndex.go b/service/clouddirectory/api_op_ListIndex.go
index 8f046b58221..cf03a195e0e 100644
--- a/service/clouddirectory/api_op_ListIndex.go
+++ b/service/clouddirectory/api_op_ListIndex.go
@@ -75,6 +75,7 @@ func (s *ListIndexInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListIndexInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IndexReference != nil {
v := s.IndexReference
diff --git a/service/clouddirectory/api_op_ListManagedSchemaArns.go b/service/clouddirectory/api_op_ListManagedSchemaArns.go
index d26ca85943e..d966a0b8092 100644
--- a/service/clouddirectory/api_op_ListManagedSchemaArns.go
+++ b/service/clouddirectory/api_op_ListManagedSchemaArns.go
@@ -45,6 +45,7 @@ func (s *ListManagedSchemaArnsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListManagedSchemaArnsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListObjectAttributes.go b/service/clouddirectory/api_op_ListObjectAttributes.go
index 5425fb228d5..2f08ca2e111 100644
--- a/service/clouddirectory/api_op_ListObjectAttributes.go
+++ b/service/clouddirectory/api_op_ListObjectAttributes.go
@@ -74,6 +74,7 @@ func (s *ListObjectAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListObjectAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FacetFilter != nil {
v := s.FacetFilter
diff --git a/service/clouddirectory/api_op_ListObjectChildren.go b/service/clouddirectory/api_op_ListObjectChildren.go
index 53ee622fc2b..b383562f53c 100644
--- a/service/clouddirectory/api_op_ListObjectChildren.go
+++ b/service/clouddirectory/api_op_ListObjectChildren.go
@@ -66,6 +66,7 @@ func (s *ListObjectChildrenInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListObjectChildrenInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListObjectParentPaths.go b/service/clouddirectory/api_op_ListObjectParentPaths.go
index 33c8308a8d6..272c4c85050 100644
--- a/service/clouddirectory/api_op_ListObjectParentPaths.go
+++ b/service/clouddirectory/api_op_ListObjectParentPaths.go
@@ -60,6 +60,7 @@ func (s *ListObjectParentPathsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListObjectParentPathsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListObjectParents.go b/service/clouddirectory/api_op_ListObjectParents.go
index 39f568f3986..aebaf58cf96 100644
--- a/service/clouddirectory/api_op_ListObjectParents.go
+++ b/service/clouddirectory/api_op_ListObjectParents.go
@@ -70,6 +70,7 @@ func (s *ListObjectParentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListObjectParentsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IncludeAllLinksToEachParent != nil {
v := *s.IncludeAllLinksToEachParent
diff --git a/service/clouddirectory/api_op_ListObjectPolicies.go b/service/clouddirectory/api_op_ListObjectPolicies.go
index 2f33b93c5b9..f7225672fb6 100644
--- a/service/clouddirectory/api_op_ListObjectPolicies.go
+++ b/service/clouddirectory/api_op_ListObjectPolicies.go
@@ -65,6 +65,7 @@ func (s *ListObjectPoliciesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListObjectPoliciesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListOutgoingTypedLinks.go b/service/clouddirectory/api_op_ListOutgoingTypedLinks.go
index 39087e3fb22..00a2bf226b4 100644
--- a/service/clouddirectory/api_op_ListOutgoingTypedLinks.go
+++ b/service/clouddirectory/api_op_ListOutgoingTypedLinks.go
@@ -86,6 +86,7 @@ func (s *ListOutgoingTypedLinksInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListOutgoingTypedLinksInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ConsistencyLevel) > 0 {
v := s.ConsistencyLevel
diff --git a/service/clouddirectory/api_op_ListPolicyAttachments.go b/service/clouddirectory/api_op_ListPolicyAttachments.go
index e7e5cdc5c67..ebc51dedb61 100644
--- a/service/clouddirectory/api_op_ListPolicyAttachments.go
+++ b/service/clouddirectory/api_op_ListPolicyAttachments.go
@@ -65,6 +65,7 @@ func (s *ListPolicyAttachmentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPolicyAttachmentsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListPublishedSchemaArns.go b/service/clouddirectory/api_op_ListPublishedSchemaArns.go
index 5766d61acb7..ddb000a0d5c 100644
--- a/service/clouddirectory/api_op_ListPublishedSchemaArns.go
+++ b/service/clouddirectory/api_op_ListPublishedSchemaArns.go
@@ -45,6 +45,7 @@ func (s *ListPublishedSchemaArnsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPublishedSchemaArnsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListTagsForResource.go b/service/clouddirectory/api_op_ListTagsForResource.go
index 4068aed84a3..a8eedcd5705 100644
--- a/service/clouddirectory/api_op_ListTagsForResource.go
+++ b/service/clouddirectory/api_op_ListTagsForResource.go
@@ -53,6 +53,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListTypedLinkFacetAttributes.go b/service/clouddirectory/api_op_ListTypedLinkFacetAttributes.go
index 3555d1b6a7f..3593ad92bf1 100644
--- a/service/clouddirectory/api_op_ListTypedLinkFacetAttributes.go
+++ b/service/clouddirectory/api_op_ListTypedLinkFacetAttributes.go
@@ -60,6 +60,7 @@ func (s *ListTypedLinkFacetAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTypedLinkFacetAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_ListTypedLinkFacetNames.go b/service/clouddirectory/api_op_ListTypedLinkFacetNames.go
index 936924a24bd..5cde2173b0a 100644
--- a/service/clouddirectory/api_op_ListTypedLinkFacetNames.go
+++ b/service/clouddirectory/api_op_ListTypedLinkFacetNames.go
@@ -51,6 +51,7 @@ func (s *ListTypedLinkFacetNamesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTypedLinkFacetNamesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_LookupPolicy.go b/service/clouddirectory/api_op_LookupPolicy.go
index df2dcee0a07..f9d7346fd3b 100644
--- a/service/clouddirectory/api_op_LookupPolicy.go
+++ b/service/clouddirectory/api_op_LookupPolicy.go
@@ -61,6 +61,7 @@ func (s *LookupPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s LookupPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/clouddirectory/api_op_PublishSchema.go b/service/clouddirectory/api_op_PublishSchema.go
index fcdf20f9944..1469d1b4d0e 100644
--- a/service/clouddirectory/api_op_PublishSchema.go
+++ b/service/clouddirectory/api_op_PublishSchema.go
@@ -70,6 +70,7 @@ func (s *PublishSchemaInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PublishSchemaInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MinorVersion != nil {
v := *s.MinorVersion
diff --git a/service/clouddirectory/api_op_PutSchemaFromJson.go b/service/clouddirectory/api_op_PutSchemaFromJson.go
index fc14d2cb7de..7135a6bb67a 100644
--- a/service/clouddirectory/api_op_PutSchemaFromJson.go
+++ b/service/clouddirectory/api_op_PutSchemaFromJson.go
@@ -50,6 +50,7 @@ func (s *PutSchemaFromJsonInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutSchemaFromJsonInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Document != nil {
v := *s.Document
diff --git a/service/clouddirectory/api_op_RemoveFacetFromObject.go b/service/clouddirectory/api_op_RemoveFacetFromObject.go
index 8506a0ce035..9c612a28c27 100644
--- a/service/clouddirectory/api_op_RemoveFacetFromObject.go
+++ b/service/clouddirectory/api_op_RemoveFacetFromObject.go
@@ -64,6 +64,7 @@ func (s *RemoveFacetFromObjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemoveFacetFromObjectInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ObjectReference != nil {
v := s.ObjectReference
diff --git a/service/clouddirectory/api_op_TagResource.go b/service/clouddirectory/api_op_TagResource.go
index 133c44ee33b..f96c5d6fa49 100644
--- a/service/clouddirectory/api_op_TagResource.go
+++ b/service/clouddirectory/api_op_TagResource.go
@@ -51,6 +51,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/clouddirectory/api_op_UntagResource.go b/service/clouddirectory/api_op_UntagResource.go
index d90c79418e8..a0e91a3aef9 100644
--- a/service/clouddirectory/api_op_UntagResource.go
+++ b/service/clouddirectory/api_op_UntagResource.go
@@ -51,6 +51,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/clouddirectory/api_op_UpdateFacet.go b/service/clouddirectory/api_op_UpdateFacet.go
index 3e382fe9c41..d39eb7894ba 100644
--- a/service/clouddirectory/api_op_UpdateFacet.go
+++ b/service/clouddirectory/api_op_UpdateFacet.go
@@ -71,6 +71,7 @@ func (s *UpdateFacetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFacetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AttributeUpdates != nil {
v := s.AttributeUpdates
diff --git a/service/clouddirectory/api_op_UpdateLinkAttributes.go b/service/clouddirectory/api_op_UpdateLinkAttributes.go
index 0b4c708a536..99adaf2cfbc 100644
--- a/service/clouddirectory/api_op_UpdateLinkAttributes.go
+++ b/service/clouddirectory/api_op_UpdateLinkAttributes.go
@@ -74,6 +74,7 @@ func (s *UpdateLinkAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateLinkAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AttributeUpdates != nil {
v := s.AttributeUpdates
diff --git a/service/clouddirectory/api_op_UpdateObjectAttributes.go b/service/clouddirectory/api_op_UpdateObjectAttributes.go
index 995d4b2a862..410852735ff 100644
--- a/service/clouddirectory/api_op_UpdateObjectAttributes.go
+++ b/service/clouddirectory/api_op_UpdateObjectAttributes.go
@@ -68,6 +68,7 @@ func (s *UpdateObjectAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateObjectAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AttributeUpdates != nil {
v := s.AttributeUpdates
diff --git a/service/clouddirectory/api_op_UpdateSchema.go b/service/clouddirectory/api_op_UpdateSchema.go
index d0a7f3baad8..10739db8a1f 100644
--- a/service/clouddirectory/api_op_UpdateSchema.go
+++ b/service/clouddirectory/api_op_UpdateSchema.go
@@ -54,6 +54,7 @@ func (s *UpdateSchemaInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateSchemaInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/clouddirectory/api_op_UpdateTypedLinkFacet.go b/service/clouddirectory/api_op_UpdateTypedLinkFacet.go
index 11c0b180c32..2ba1f86f191 100644
--- a/service/clouddirectory/api_op_UpdateTypedLinkFacet.go
+++ b/service/clouddirectory/api_op_UpdateTypedLinkFacet.go
@@ -84,6 +84,7 @@ func (s *UpdateTypedLinkFacetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateTypedLinkFacetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AttributeUpdates != nil {
v := s.AttributeUpdates
diff --git a/service/clouddirectory/api_op_UpgradeAppliedSchema.go b/service/clouddirectory/api_op_UpgradeAppliedSchema.go
index 23662af79ff..2c1b48441cb 100644
--- a/service/clouddirectory/api_op_UpgradeAppliedSchema.go
+++ b/service/clouddirectory/api_op_UpgradeAppliedSchema.go
@@ -55,6 +55,7 @@ func (s *UpgradeAppliedSchemaInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpgradeAppliedSchemaInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DirectoryArn != nil {
v := *s.DirectoryArn
diff --git a/service/clouddirectory/api_op_UpgradePublishedSchema.go b/service/clouddirectory/api_op_UpgradePublishedSchema.go
index 90b620636d3..bb231bc4bb4 100644
--- a/service/clouddirectory/api_op_UpgradePublishedSchema.go
+++ b/service/clouddirectory/api_op_UpgradePublishedSchema.go
@@ -69,6 +69,7 @@ func (s *UpgradePublishedSchemaInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpgradePublishedSchemaInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DevelopmentSchemaArn != nil {
v := *s.DevelopmentSchemaArn
diff --git a/service/clouddirectory/api_types.go b/service/clouddirectory/api_types.go
index d41100dc08a..cbb921e0bbc 100644
--- a/service/clouddirectory/api_types.go
+++ b/service/clouddirectory/api_types.go
@@ -4008,7 +4008,7 @@ type Directory struct {
_ struct{} `type:"structure"`
// The date and time when the directory was created.
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDateTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) that is associated with the directory. For
// more information, see arns.
@@ -4032,7 +4032,8 @@ func (s Directory) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DirectoryArn != nil {
v := *s.DirectoryArn
@@ -4982,7 +4983,7 @@ type TypedAttributeValue struct {
BooleanValue *bool `type:"boolean"`
// A date and time value.
- DatetimeValue *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DatetimeValue *time.Time `type:"timestamp"`
// A number data value.
NumberValue *string `type:"string"`
@@ -5014,7 +5015,8 @@ func (s TypedAttributeValue) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DatetimeValue
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DatetimeValue", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DatetimeValue",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.NumberValue != nil {
v := *s.NumberValue
diff --git a/service/cloudformation/api_op_DescribeChangeSet.go b/service/cloudformation/api_op_DescribeChangeSet.go
index a9db8fc9c3c..b6e75e3f7c2 100644
--- a/service/cloudformation/api_op_DescribeChangeSet.go
+++ b/service/cloudformation/api_op_DescribeChangeSet.go
@@ -78,7 +78,7 @@ type DescribeChangeSetOutput struct {
Changes []Change `type:"list"`
// The start time when the change set was created, in UTC.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreationTime *time.Time `type:"timestamp"`
// Information about the change set.
Description *string `min:"1" type:"string"`
diff --git a/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go b/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go
index 6303f316b58..c0a6a6e5de5 100644
--- a/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go
+++ b/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go
@@ -109,7 +109,7 @@ type DescribeStackDriftDetectionStatusOutput struct {
// Time at which the stack drift detection operation was initiated.
//
// Timestamp is a required field
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ Timestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/cloudformation/api_types.go b/service/cloudformation/api_types.go
index 5e8c5fe0b3c..96dbb7adf0c 100644
--- a/service/cloudformation/api_types.go
+++ b/service/cloudformation/api_types.go
@@ -116,7 +116,7 @@ type ChangeSetSummary struct {
ChangeSetName *string `min:"1" type:"string"`
// The start time when the change set was created, in UTC.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreationTime *time.Time `type:"timestamp"`
// Descriptive information about the change set.
Description *string `min:"1" type:"string"`
@@ -619,10 +619,10 @@ type Stack struct {
// The time at which the stack was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The time the stack was deleted.
- DeletionTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DeletionTime *time.Time `type:"timestamp"`
// A user-defined description associated with the stack.
Description *string `min:"1" type:"string"`
@@ -651,7 +651,7 @@ type Stack struct {
// The time the stack was last updated. This field will only be returned if
// the stack has been updated at least once.
- LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastUpdatedTime *time.Time `type:"timestamp"`
// SNS topic ARNs to which stack related events are published.
NotificationARNs []string `type:"list"`
@@ -724,7 +724,7 @@ type StackDriftInformation struct {
// Most recent time when a drift detection operation was initiated on the stack,
// or any of its individual resources that support drift detection.
- LastCheckTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastCheckTimestamp *time.Time `type:"timestamp"`
// Status of the stack's actual configuration compared to its expected template
// configuration.
@@ -760,7 +760,7 @@ type StackDriftInformationSummary struct {
// Most recent time when a drift detection operation was initiated on the stack,
// or any of its individual resources that support drift detection.
- LastCheckTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastCheckTimestamp *time.Time `type:"timestamp"`
// Status of the stack's actual configuration compared to its expected template
// configuration.
@@ -844,7 +844,7 @@ type StackEvent struct {
// Time the status was updated.
//
// Timestamp is a required field
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ Timestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -998,7 +998,7 @@ type StackResource struct {
// Time the status was updated.
//
// Timestamp is a required field
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ Timestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -1023,7 +1023,7 @@ type StackResourceDetail struct {
// Time the status was updated.
//
// LastUpdatedTimestamp is a required field
- LastUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LastUpdatedTimestamp *time.Time `type:"timestamp" required:"true"`
// The logical name of the resource specified in the template.
//
@@ -1147,7 +1147,7 @@ type StackResourceDrift struct {
// Time at which AWS CloudFormation performed drift detection on the stack resource.
//
// Timestamp is a required field
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ Timestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -1163,7 +1163,7 @@ type StackResourceDriftInformation struct {
// When AWS CloudFormation last checked if the resource had drifted from its
// expected configuration.
- LastCheckTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastCheckTimestamp *time.Time `type:"timestamp"`
// Status of the resource's actual configuration compared to its expected configuration
//
@@ -1196,7 +1196,7 @@ type StackResourceDriftInformationSummary struct {
// When AWS CloudFormation last checked if the resource had drifted from its
// expected configuration.
- LastCheckTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastCheckTimestamp *time.Time `type:"timestamp"`
// Status of the resource's actual configuration compared to its expected configuration
//
@@ -1240,7 +1240,7 @@ type StackResourceSummary struct {
// Time the status was updated.
//
// LastUpdatedTimestamp is a required field
- LastUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LastUpdatedTimestamp *time.Time `type:"timestamp" required:"true"`
// The logical name of the resource specified in the template.
//
@@ -1360,12 +1360,12 @@ type StackSetOperation struct {
// stacks themselves. This is because AWS CloudFormation needs to perform preparatory
// work for the operation, such as dispatching the work to the requested regions,
// before actually creating the first stacks.
- CreationTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreationTimestamp *time.Time `type:"timestamp"`
// The time at which the stack set operation ended, across all accounts and
// regions specified. Note that this doesn't necessarily mean that the stack
// set operation was successful, or even attempted, in each account or region.
- EndTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTimestamp *time.Time `type:"timestamp"`
// The name of the IAM execution role used to create or update the stack set.
//
@@ -1559,12 +1559,12 @@ type StackSetOperationSummary struct {
// stacks themselves. This is because AWS CloudFormation needs to perform preparatory
// work for the operation, such as dispatching the work to the requested regions,
// before actually creating the first stacks.
- CreationTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreationTimestamp *time.Time `type:"timestamp"`
// The time at which the stack set operation ended, across all accounts and
// regions specified. Note that this doesn't necessarily mean that the stack
// set operation was successful, or even attempted, in each account or region.
- EndTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTimestamp *time.Time `type:"timestamp"`
// The unique ID of the stack set operation.
OperationId *string `min:"1" type:"string"`
@@ -1628,10 +1628,10 @@ type StackSummary struct {
// The time the stack was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The time the stack was deleted.
- DeletionTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DeletionTime *time.Time `type:"timestamp"`
// Summarizes information on whether a stack's actual configuration differs,
// or has drifted, from it's expected configuration, as defined in the stack
@@ -1641,7 +1641,7 @@ type StackSummary struct {
// The time the stack was last updated. This field will only be returned if
// the stack has been updated at least once.
- LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastUpdatedTime *time.Time `type:"timestamp"`
// For nested stacks--stacks created as resources for another stack--the stack
// ID of the direct parent of this stack. For the first level of nested stacks,
diff --git a/service/cloudfront/api_types.go b/service/cloudfront/api_types.go
index ef11248bfe2..e4af2b25e44 100644
--- a/service/cloudfront/api_types.go
+++ b/service/cloudfront/api_types.go
@@ -1998,7 +1998,7 @@ type Distribution struct {
// The date and time the distribution was last modified.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
// This response element indicates the current status of the distribution. When
// the status is Deployed, the distribution's information is fully propagated
@@ -2055,7 +2055,8 @@ func (s Distribution) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Status != nil {
v := *s.Status
@@ -2735,7 +2736,7 @@ type DistributionSummary struct {
// The date and time the distribution was last modified.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
// A complex type that contains information about origin groups for this distribution.
OriginGroups *OriginGroups `type:"structure"`
@@ -2926,7 +2927,8 @@ func (s DistributionSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.OriginGroups != nil {
v := s.OriginGroups
@@ -3145,7 +3147,7 @@ type FieldLevelEncryption struct {
// The last time the field-level encryption configuration was changed.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -3171,7 +3173,8 @@ func (s FieldLevelEncryption) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -3343,7 +3346,7 @@ type FieldLevelEncryptionProfile struct {
// The last time the field-level encryption profile was updated.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -3369,7 +3372,8 @@ func (s FieldLevelEncryptionProfile) MarshalFields(e protocol.FieldEncoder) erro
v := *s.LastModifiedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -3549,7 +3553,7 @@ type FieldLevelEncryptionProfileSummary struct {
// The time when the the field-level encryption profile summary was last updated.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
// Name for the field-level encryption profile summary.
//
@@ -3586,7 +3590,8 @@ func (s FieldLevelEncryptionProfileSummary) MarshalFields(e protocol.FieldEncode
v := *s.LastModifiedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -3616,7 +3621,7 @@ type FieldLevelEncryptionSummary struct {
// The last time that the summary of field-level encryption items was modified.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
// A summary of a query argument-profile mapping.
QueryArgProfileConfig *QueryArgProfileConfig `type:"structure"`
@@ -3651,7 +3656,8 @@ func (s FieldLevelEncryptionSummary) MarshalFields(e protocol.FieldEncoder) erro
v := *s.LastModifiedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.QueryArgProfileConfig != nil {
v := s.QueryArgProfileConfig
@@ -4031,7 +4037,7 @@ type Invalidation struct {
// The date and time the invalidation request was first made.
//
// CreateTime is a required field
- CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreateTime *time.Time `type:"timestamp" required:"true"`
// The identifier for the invalidation request. For example: IDFDVBD632BHDS5.
//
@@ -4061,7 +4067,8 @@ func (s Invalidation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreateTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreateTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Id != nil {
v := *s.Id
@@ -4263,7 +4270,7 @@ type InvalidationSummary struct {
// The time that an invalidation request was created.
//
// CreateTime is a required field
- CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreateTime *time.Time `type:"timestamp" required:"true"`
// The unique ID for an invalidation request.
//
@@ -4287,7 +4294,8 @@ func (s InvalidationSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreateTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreateTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Id != nil {
v := *s.Id
@@ -5363,7 +5371,7 @@ type PublicKey struct {
// A time you added a public key to CloudFront.
//
// CreatedTime is a required field
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreatedTime *time.Time `type:"timestamp" required:"true"`
// A unique ID assigned to a public key you've added to CloudFront.
//
@@ -5388,7 +5396,8 @@ func (s PublicKey) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Id != nil {
v := *s.Id
@@ -5566,7 +5575,7 @@ type PublicKeySummary struct {
// Creation time for public key information summary.
//
// CreatedTime is a required field
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreatedTime *time.Time `type:"timestamp" required:"true"`
// Encoded key for public key information summary.
//
@@ -5601,7 +5610,8 @@ func (s PublicKeySummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.EncodedKey != nil {
v := *s.EncodedKey
@@ -6188,7 +6198,7 @@ type StreamingDistribution struct {
Id *string `type:"string" required:"true"`
// The date and time that the distribution was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The current status of the RTMP distribution. When the status is Deployed,
// the distribution's information is propagated to all CloudFront edge locations.
@@ -6237,7 +6247,8 @@ func (s StreamingDistribution) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Status != nil {
v := *s.Status
@@ -6619,7 +6630,7 @@ type StreamingDistributionSummary struct {
// The date and time the distribution was last modified.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
// PriceClass is a required field
PriceClass PriceClass `type:"string" required:"true" enum:"true"`
@@ -6699,7 +6710,8 @@ func (s StreamingDistributionSummary) MarshalFields(e protocol.FieldEncoder) err
v := *s.LastModifiedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if len(s.PriceClass) > 0 {
v := s.PriceClass
diff --git a/service/cloudhsmv2/api_types.go b/service/cloudhsmv2/api_types.go
index 7e5edce960c..3ccd97bb56a 100644
--- a/service/cloudhsmv2/api_types.go
+++ b/service/cloudhsmv2/api_types.go
@@ -28,13 +28,13 @@ type Backup struct {
// The identifier (ID) of the cluster that was backed up.
ClusterId *string `type:"string"`
- CopyTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CopyTimestamp *time.Time `type:"timestamp"`
// The date and time when the backup was created.
- CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateTimestamp *time.Time `type:"timestamp"`
// The date and time when the backup will be permanently deleted.
- DeleteTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeleteTimestamp *time.Time `type:"timestamp"`
SourceBackup *string `type:"string"`
@@ -91,7 +91,7 @@ type Cluster struct {
ClusterId *string `type:"string"`
// The date and time when the cluster was created.
- CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateTimestamp *time.Time `type:"timestamp"`
// The type of HSM that the cluster contains.
HsmType *string `type:"string"`
@@ -132,7 +132,7 @@ func (s Cluster) String() string {
type DestinationBackup struct {
_ struct{} `type:"structure"`
- CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateTimestamp *time.Time `type:"timestamp"`
SourceBackup *string `type:"string"`
diff --git a/service/cloudsearch/api_types.go b/service/cloudsearch/api_types.go
index ee06f712abe..b896e03f753 100644
--- a/service/cloudsearch/api_types.go
+++ b/service/cloudsearch/api_types.go
@@ -904,7 +904,7 @@ type OptionStatus struct {
// A timestamp for when this option was created.
//
// CreationDate is a required field
- CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreationDate *time.Time `type:"timestamp" required:"true"`
// Indicates that the option will be deleted once processing is complete.
PendingDeletion *bool `type:"boolean"`
@@ -928,7 +928,7 @@ type OptionStatus struct {
// A timestamp for when this option was last updated.
//
// UpdateDate is a required field
- UpdateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ UpdateDate *time.Time `type:"timestamp" required:"true"`
// A unique integer that indicates when this option was last updated.
UpdateVersion *int64 `type:"integer"`
diff --git a/service/cloudsearchdomain/api_op_Search.go b/service/cloudsearchdomain/api_op_Search.go
index 1738ec3e339..128919e67b7 100644
--- a/service/cloudsearchdomain/api_op_Search.go
+++ b/service/cloudsearchdomain/api_op_Search.go
@@ -346,7 +346,7 @@ func (s *SearchInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SearchInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Cursor != nil {
v := *s.Cursor
diff --git a/service/cloudsearchdomain/api_op_Suggest.go b/service/cloudsearchdomain/api_op_Suggest.go
index 4bba5423862..2eafbd781ec 100644
--- a/service/cloudsearchdomain/api_op_Suggest.go
+++ b/service/cloudsearchdomain/api_op_Suggest.go
@@ -53,7 +53,7 @@ func (s *SuggestInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SuggestInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Query != nil {
v := *s.Query
diff --git a/service/cloudtrail/api_op_GetTrailStatus.go b/service/cloudtrail/api_op_GetTrailStatus.go
index 780728017dc..c2aafcc173f 100644
--- a/service/cloudtrail/api_op_GetTrailStatus.go
+++ b/service/cloudtrail/api_op_GetTrailStatus.go
@@ -59,7 +59,7 @@ type GetTrailStatusOutput struct {
// Displays the most recent date and time when CloudTrail delivered logs to
// CloudWatch Logs.
- LatestCloudWatchLogsDeliveryTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LatestCloudWatchLogsDeliveryTime *time.Time `type:"timestamp"`
// This field is deprecated.
LatestDeliveryAttemptSucceeded *string `type:"string"`
@@ -80,7 +80,7 @@ type GetTrailStatusOutput struct {
// Specifies the date and time that CloudTrail last delivered log files to an
// account's Amazon S3 bucket.
- LatestDeliveryTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LatestDeliveryTime *time.Time `type:"timestamp"`
// Displays any Amazon S3 error that CloudTrail encountered when attempting
// to deliver a digest file to the designated bucket. For more information see
@@ -95,7 +95,7 @@ type GetTrailStatusOutput struct {
// Specifies the date and time that CloudTrail last delivered a digest file
// to an account's Amazon S3 bucket.
- LatestDigestDeliveryTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LatestDigestDeliveryTime *time.Time `type:"timestamp"`
// This field is deprecated.
LatestNotificationAttemptSucceeded *string `type:"string"`
@@ -110,15 +110,15 @@ type GetTrailStatusOutput struct {
// Specifies the date and time of the most recent Amazon SNS notification that
// CloudTrail has written a new log file to an account's Amazon S3 bucket.
- LatestNotificationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LatestNotificationTime *time.Time `type:"timestamp"`
// Specifies the most recent date and time when CloudTrail started recording
// API calls for an AWS account.
- StartLoggingTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartLoggingTime *time.Time `type:"timestamp"`
// Specifies the most recent date and time when CloudTrail stopped recording
// API calls for an AWS account.
- StopLoggingTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StopLoggingTime *time.Time `type:"timestamp"`
// This field is deprecated.
TimeLoggingStarted *string `type:"string"`
diff --git a/service/cloudtrail/api_op_ListPublicKeys.go b/service/cloudtrail/api_op_ListPublicKeys.go
index 0a1a7b9f5da..d3f6ae14086 100644
--- a/service/cloudtrail/api_op_ListPublicKeys.go
+++ b/service/cloudtrail/api_op_ListPublicKeys.go
@@ -17,7 +17,7 @@ type ListPublicKeysInput struct {
// Optionally specifies, in UTC, the end of the time range to look up public
// keys for CloudTrail digest files. If not specified, the current time is used.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// Reserved for future use.
NextToken *string `type:"string"`
@@ -25,7 +25,7 @@ type ListPublicKeysInput struct {
// Optionally specifies, in UTC, the start of the time range to look up public
// keys for CloudTrail digest files. If not specified, the current time is used,
// and the current public key is returned.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/cloudtrail/api_op_LookupEvents.go b/service/cloudtrail/api_op_LookupEvents.go
index 6bad60bcb93..f65000d701b 100644
--- a/service/cloudtrail/api_op_LookupEvents.go
+++ b/service/cloudtrail/api_op_LookupEvents.go
@@ -19,7 +19,7 @@ type LookupEventsInput struct {
// Specifies that only events that occur before or at the specified time are
// returned. If the specified end time is before the specified start time, an
// error is returned.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// Contains a list of lookup attributes. Currently the list can contain only
// one item.
@@ -39,7 +39,7 @@ type LookupEventsInput struct {
// Specifies that only events that occur after or at the specified time are
// returned. If the specified start time is after the specified end time, an
// error is returned.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/cloudtrail/api_types.go b/service/cloudtrail/api_types.go
index 9b662a49eba..7c674d9e403 100644
--- a/service/cloudtrail/api_types.go
+++ b/service/cloudtrail/api_types.go
@@ -128,7 +128,7 @@ type Event struct {
EventSource *string `type:"string"`
// The date and time of the event returned.
- EventTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EventTime *time.Time `type:"timestamp"`
// Information about whether the event is a write event or a read event.
ReadOnly *string `type:"string"`
@@ -239,10 +239,10 @@ type PublicKey struct {
Fingerprint *string `type:"string"`
// The ending time of validity of the public key.
- ValidityEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ValidityEndTime *time.Time `type:"timestamp"`
// The starting time of validity of the public key.
- ValidityStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ValidityStartTime *time.Time `type:"timestamp"`
// The DER encoded public key value in PKCS#1 format.
//
diff --git a/service/cloudwatch/api_op_DescribeAlarmHistory.go b/service/cloudwatch/api_op_DescribeAlarmHistory.go
index bb0d2e046fe..aeb3e29df52 100644
--- a/service/cloudwatch/api_op_DescribeAlarmHistory.go
+++ b/service/cloudwatch/api_op_DescribeAlarmHistory.go
@@ -18,7 +18,7 @@ type DescribeAlarmHistoryInput struct {
AlarmName *string `min:"1" type:"string"`
// The ending date to retrieve alarm history.
- EndDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndDate *time.Time `type:"timestamp"`
// The type of alarm histories to retrieve.
HistoryItemType HistoryItemType `type:"string" enum:"true"`
@@ -31,7 +31,7 @@ type DescribeAlarmHistoryInput struct {
NextToken *string `type:"string"`
// The starting date to retrieve alarm history.
- StartDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartDate *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/cloudwatch/api_op_GetMetricData.go b/service/cloudwatch/api_op_GetMetricData.go
index 90dabf7633f..ef923a29993 100644
--- a/service/cloudwatch/api_op_GetMetricData.go
+++ b/service/cloudwatch/api_op_GetMetricData.go
@@ -24,7 +24,7 @@ type GetMetricDataInput struct {
// setting 12:07 or 12:29 as the EndTime.
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// The maximum number of data points the request should return before paginating.
// If you omit this, the default of 100,800 is used.
@@ -57,7 +57,7 @@ type GetMetricDataInput struct {
// setting 12:07 or 12:29 as the StartTime.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/cloudwatch/api_op_GetMetricStatistics.go b/service/cloudwatch/api_op_GetMetricStatistics.go
index e6f843f5435..833f9178b14 100644
--- a/service/cloudwatch/api_op_GetMetricStatistics.go
+++ b/service/cloudwatch/api_op_GetMetricStatistics.go
@@ -32,7 +32,7 @@ type GetMetricStatisticsInput struct {
// time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// The percentile statistics. Specify values between p0.0 and p100. When calling
// GetMetricStatistics, you must specify either Statistics or ExtendedStatistics,
@@ -99,7 +99,7 @@ type GetMetricStatisticsInput struct {
// you receive data timestamped between 15:02:15 and 15:07:15.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
// The metric statistics, other than percentile. For percentile statistics,
// use ExtendedStatistics. When calling GetMetricStatistics, you must specify
diff --git a/service/cloudwatch/api_types.go b/service/cloudwatch/api_types.go
index 7435c083622..cf4cd2d26c2 100644
--- a/service/cloudwatch/api_types.go
+++ b/service/cloudwatch/api_types.go
@@ -31,7 +31,7 @@ type AlarmHistoryItem struct {
HistorySummary *string `min:"1" type:"string"`
// The time stamp for the alarm history item.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -53,7 +53,7 @@ type DashboardEntry struct {
// The time stamp of when the dashboard was last modified, either by an API
// call or through the console. This number is expressed as the number of milliseconds
// since Jan 1, 1970 00:00:00 UTC.
- LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastModified *time.Time `type:"timestamp"`
// The size of the dashboard, in bytes.
Size *int64 `type:"long"`
@@ -106,7 +106,7 @@ type Datapoint struct {
Sum *float64 `type:"double"`
// The time stamp used for the data point.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `type:"timestamp"`
// The standard unit for the data point.
Unit StandardUnit `type:"string" enum:"true"`
@@ -278,7 +278,7 @@ type MetricAlarm struct {
AlarmArn *string `min:"1" type:"string"`
// The time stamp of the last update to the alarm configuration.
- AlarmConfigurationUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ AlarmConfigurationUpdatedTimestamp *time.Time `type:"timestamp"`
// The description of the alarm.
AlarmDescription *string `type:"string"`
@@ -336,7 +336,7 @@ type MetricAlarm struct {
StateReasonData *string `type:"string"`
// The time stamp of the last update to the alarm state.
- StateUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StateUpdatedTimestamp *time.Time `type:"timestamp"`
// The state value for the alarm.
StateValue StateValue `type:"string" enum:"true"`
@@ -545,7 +545,7 @@ type MetricDatum struct {
// The time the metric data was received, expressed as the number of milliseconds
// since Jan 1, 1970 00:00:00 UTC.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `type:"timestamp"`
// The unit of the metric.
Unit StandardUnit `type:"string" enum:"true"`
diff --git a/service/cloudwatchevents/api_types.go b/service/cloudwatchevents/api_types.go
index ded8daed717..e1d40812fa3 100644
--- a/service/cloudwatchevents/api_types.go
+++ b/service/cloudwatchevents/api_types.go
@@ -440,7 +440,7 @@ type PutEventsRequestEntry struct {
// The time stamp of the event, per RFC3339 (https://www.rfc-editor.org/rfc/rfc3339.txt).
// If no time stamp is provided, the time stamp of the PutEvents call is used.
- Time *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Time *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/codebuild/api_types.go b/service/codebuild/api_types.go
index 509c27399b8..71250144aa1 100644
--- a/service/codebuild/api_types.go
+++ b/service/codebuild/api_types.go
@@ -59,7 +59,7 @@ type Build struct {
EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"`
// When the build process ended, expressed in Unix time format.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// Information about the build environment for this build.
Environment *ProjectEnvironment `locationName:"environment" type:"structure"`
@@ -142,7 +142,7 @@ type Build struct {
SourceVersion *string `locationName:"sourceVersion" min:"1" type:"string"`
// When the build process started, expressed in Unix time format.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// How long, in minutes, for AWS CodeBuild to wait before timing out this build
// if it does not get marked as completed.
@@ -235,7 +235,7 @@ type BuildPhase struct {
DurationInSeconds *int64 `locationName:"durationInSeconds" type:"long"`
// When the build phase ended, expressed in Unix time format.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The current status of the build phase. Valid values include:
//
@@ -283,7 +283,7 @@ type BuildPhase struct {
PhaseType BuildPhaseType `locationName:"phaseType" type:"string" enum:"true"`
// When the build phase started, expressed in Unix time format.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
}
// String returns the string representation
@@ -598,7 +598,7 @@ type Project struct {
Cache *ProjectCache `locationName:"cache" type:"structure"`
// When the build project was created, expressed in Unix time format.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// A description that makes the build project easy to identify.
Description *string `locationName:"description" type:"string"`
@@ -618,7 +618,7 @@ type Project struct {
// When the build project's settings were last modified, expressed in Unix time
// format.
- LastModified *time.Time `locationName:"lastModified" type:"timestamp" timestampFormat:"unix"`
+ LastModified *time.Time `locationName:"lastModified" type:"timestamp"`
// Information about logs for the build project. A project can create logs in
// Amazon CloudWatch Logs, an S3 bucket, or both.
@@ -1463,7 +1463,7 @@ type Webhook struct {
// A timestamp that indicates the last time a repository's secret token was
// modified.
- LastModifiedSecret *time.Time `locationName:"lastModifiedSecret" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedSecret *time.Time `locationName:"lastModifiedSecret" type:"timestamp"`
// The AWS CodeBuild endpoint where webhook events are sent.
PayloadUrl *string `locationName:"payloadUrl" min:"1" type:"string"`
diff --git a/service/codecommit/api_types.go b/service/codecommit/api_types.go
index 05fe4dc8e1c..d410ccd9508 100644
--- a/service/codecommit/api_types.go
+++ b/service/codecommit/api_types.go
@@ -78,7 +78,7 @@ type Comment struct {
Content *string `locationName:"content" type:"string"`
// The date and time the comment was created, in timestamp format.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// A Boolean value indicating whether the comment has been deleted.
Deleted *bool `locationName:"deleted" type:"boolean"`
@@ -87,7 +87,7 @@ type Comment struct {
InReplyTo *string `locationName:"inReplyTo" type:"string"`
// The date and time the comment was most recently modified, in timestamp format.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
}
// String returns the string representation
@@ -393,7 +393,7 @@ type PullRequest struct {
ClientRequestToken *string `locationName:"clientRequestToken" type:"string"`
// The date and time the pull request was originally created, in timestamp format.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The user-defined description of the pull request. This description can be
// used to clarify what should be reviewed and other details of the request.
@@ -401,7 +401,7 @@ type PullRequest struct {
// The day and time of the last user or system activity on the pull request,
// in timestamp format.
- LastActivityDate *time.Time `locationName:"lastActivityDate" type:"timestamp" timestampFormat:"unix"`
+ LastActivityDate *time.Time `locationName:"lastActivityDate" type:"timestamp"`
// The system-generated ID of the pull request.
PullRequestId *string `locationName:"pullRequestId" type:"string"`
@@ -461,7 +461,7 @@ type PullRequestEvent struct {
ActorArn *string `locationName:"actorArn" type:"string"`
// The day and time of the pull request event, in timestamp format.
- EventDate *time.Time `locationName:"eventDate" type:"timestamp" timestampFormat:"unix"`
+ EventDate *time.Time `locationName:"eventDate" type:"timestamp"`
// Information about the source and destination branches for the pull request.
PullRequestCreatedEventMetadata *PullRequestCreatedEventMetadata `locationName:"pullRequestCreatedEventMetadata" type:"structure"`
@@ -655,13 +655,13 @@ type RepositoryMetadata struct {
CloneUrlSsh *string `locationName:"cloneUrlSsh" type:"string"`
// The date and time the repository was created, in timestamp format.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The repository's default branch name.
DefaultBranch *string `locationName:"defaultBranch" min:"1" type:"string"`
// The date and time the repository was last modified, in timestamp format.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// A comment or description about the repository.
RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
diff --git a/service/codedeploy/api_types.go b/service/codedeploy/api_types.go
index d21a9204d87..c58ad431246 100644
--- a/service/codedeploy/api_types.go
+++ b/service/codedeploy/api_types.go
@@ -103,7 +103,7 @@ type ApplicationInfo struct {
ComputePlatform ComputePlatform `locationName:"computePlatform" type:"string" enum:"true"`
// The time at which the application was created.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// The name for a connection to a GitHub account.
GitHubAccountName *string `locationName:"gitHubAccountName" type:"string"`
@@ -212,7 +212,7 @@ type DeploymentConfigInfo struct {
ComputePlatform ComputePlatform `locationName:"computePlatform" type:"string" enum:"true"`
// The time at which the deployment configuration was created.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// The deployment configuration ID.
DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"`
@@ -344,13 +344,13 @@ type DeploymentInfo struct {
BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"`
// A timestamp that indicates when the deployment was complete.
- CompleteTime *time.Time `locationName:"completeTime" type:"timestamp" timestampFormat:"unix"`
+ CompleteTime *time.Time `locationName:"completeTime" type:"timestamp"`
// The destination platform type for the deployment (Lambda, Server, or ECS).
ComputePlatform ComputePlatform `locationName:"computePlatform" type:"string" enum:"true"`
// A timestamp that indicates when the deployment was created.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// The means by which the deployment was created:
//
@@ -451,7 +451,7 @@ type DeploymentInfo struct {
// In some cases, the reported value of the start time might be later than the
// complete time. This is due to differences in the clock settings of backend
// servers that participate in the deployment process.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// The current state of the deployment as a whole.
Status DeploymentStatus `locationName:"status" type:"string" enum:"true"`
@@ -685,7 +685,7 @@ type ECSTarget struct {
// The date and time when the target Amazon ECS application was updated by a
// deployment.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The lifecycle events of the deployment to this target Amazon ECS application.
LifecycleEvents []LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
@@ -852,13 +852,13 @@ type GenericRevisionInfo struct {
Description *string `locationName:"description" type:"string"`
// When the revision was first used by AWS CodeDeploy.
- FirstUsedTime *time.Time `locationName:"firstUsedTime" type:"timestamp" timestampFormat:"unix"`
+ FirstUsedTime *time.Time `locationName:"firstUsedTime" type:"timestamp"`
// When the revision was last used by AWS CodeDeploy.
- LastUsedTime *time.Time `locationName:"lastUsedTime" type:"timestamp" timestampFormat:"unix"`
+ LastUsedTime *time.Time `locationName:"lastUsedTime" type:"timestamp"`
// When the revision was registered with AWS CodeDeploy.
- RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"`
+ RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"`
}
// String returns the string representation
@@ -915,7 +915,7 @@ type InstanceInfo struct {
// If the on-premises instance was deregistered, the time at which the on-premises
// instance was deregistered.
- DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp" timestampFormat:"unix"`
+ DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp"`
// The ARN of the IAM session associated with the on-premises instance.
IamSessionArn *string `locationName:"iamSessionArn" type:"string"`
@@ -930,7 +930,7 @@ type InstanceInfo struct {
InstanceName *string `locationName:"instanceName" type:"string"`
// The time at which the on-premises instance was registered.
- RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"`
+ RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"`
// The tags currently associated with the on-premises instance.
Tags []Tag `locationName:"tags" type:"list"`
@@ -961,7 +961,7 @@ type InstanceSummary struct {
InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`
// A timestamp that indicaties when the instance information was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// A list of lifecycle events for this instance.
LifecycleEvents []LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
@@ -1001,7 +1001,7 @@ type InstanceTarget struct {
InstanceLabel TargetLabel `locationName:"instanceLabel" type:"string" enum:"true"`
// The date and time when the target instance was updated by a deployment.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The lifecycle events of the deployment to this target instance.
LifecycleEvents []LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
@@ -1062,7 +1062,7 @@ type LambdaTarget struct {
LambdaFunctionInfo *LambdaFunctionInfo `locationName:"lambdaFunctionInfo" type:"structure"`
// The date and time when the target Lambda function was updated by a deployment.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The lifecycle events of the deployment to this target Lambda function.
LifecycleEvents []LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
@@ -1090,14 +1090,14 @@ type LastDeploymentInfo struct {
// A timestamp that indicates when the most recent deployment to the deployment
// group started.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// The unique ID of a deployment.
DeploymentId *string `locationName:"deploymentId" type:"string"`
// A timestamp that indicates when the most recent deployment to the deployment
// group was complete.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The status of the most recent deployment.
Status DeploymentStatus `locationName:"status" type:"string" enum:"true"`
@@ -1117,14 +1117,14 @@ type LifecycleEvent struct {
Diagnostics *Diagnostics `locationName:"diagnostics" type:"structure"`
// A timestamp that indicates when the deployment lifecycle event ended.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The deployment lifecycle event name, such as ApplicationStop, BeforeInstall,
// AfterInstall, ApplicationStart, or ValidateService.
LifecycleEventName *string `locationName:"lifecycleEventName" type:"string"`
// A timestamp that indicates when the deployment lifecycle event started.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// The deployment lifecycle event status:
//
@@ -1541,12 +1541,12 @@ type TimeRange struct {
// The end time of the time range.
//
// Specify null to leave the end time open-ended.
- End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"unix"`
+ End *time.Time `locationName:"end" type:"timestamp"`
// The start time of the time range.
//
// Specify null to leave the start time open-ended.
- Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"unix"`
+ Start *time.Time `locationName:"start" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/codepipeline/api_op_GetPipelineState.go b/service/codepipeline/api_op_GetPipelineState.go
index 1177ea1643b..a73e445c3e4 100644
--- a/service/codepipeline/api_op_GetPipelineState.go
+++ b/service/codepipeline/api_op_GetPipelineState.go
@@ -49,7 +49,7 @@ type GetPipelineStateOutput struct {
_ struct{} `type:"structure"`
// The date and time the pipeline was created, in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// The name of the pipeline for which you want to get the state.
PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
@@ -64,7 +64,7 @@ type GetPipelineStateOutput struct {
StageStates []StageState `locationName:"stageStates" type:"list"`
// The date and time the pipeline was last updated, in timestamp format.
- Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"`
+ Updated *time.Time `locationName:"updated" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/codepipeline/api_op_PutApprovalResult.go b/service/codepipeline/api_op_PutApprovalResult.go
index bb2d076f083..0f7cc72ef44 100644
--- a/service/codepipeline/api_op_PutApprovalResult.go
+++ b/service/codepipeline/api_op_PutApprovalResult.go
@@ -99,7 +99,7 @@ type PutApprovalResultOutput struct {
_ struct{} `type:"structure"`
// The timestamp showing when the approval or rejection was submitted.
- ApprovedAt *time.Time `locationName:"approvedAt" type:"timestamp" timestampFormat:"unix"`
+ ApprovedAt *time.Time `locationName:"approvedAt" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/codepipeline/api_types.go b/service/codepipeline/api_types.go
index f487c245129..bee9a338323 100644
--- a/service/codepipeline/api_types.go
+++ b/service/codepipeline/api_types.go
@@ -264,7 +264,7 @@ type ActionExecution struct {
ExternalExecutionUrl *string `locationName:"externalExecutionUrl" min:"1" type:"string"`
// The last status change of the action.
- LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"unix"`
+ LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp"`
// The ARN of the user who last changed the pipeline.
LastUpdatedBy *string `locationName:"lastUpdatedBy" type:"string"`
@@ -308,7 +308,7 @@ type ActionExecutionDetail struct {
Input *ActionExecutionInput `locationName:"input" type:"structure"`
// The last update time of the action execution.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
// Output details for the action execution, such as the action execution result.
Output *ActionExecutionOutput `locationName:"output" type:"structure"`
@@ -323,7 +323,7 @@ type ActionExecutionDetail struct {
StageName *string `locationName:"stageName" min:"1" type:"string"`
// The start time of the action execution.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// The status of the action execution. Status categories are InProgress, Succeeded,
// and Failed.
@@ -424,7 +424,7 @@ type ActionRevision struct {
// in timestamp format.
//
// Created is a required field
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix" required:"true"`
+ Created *time.Time `locationName:"created" type:"timestamp" required:"true"`
// The unique identifier of the change that set the state to this revision,
// for example a deployment ID or timestamp.
@@ -794,7 +794,7 @@ type ArtifactRevision struct {
// The date and time when the most recent revision of the artifact was created,
// in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// The name of an artifact. This name might be system-generated, such as "MyApp",
// or might be defined by the user when an action is created.
@@ -932,7 +932,7 @@ type CurrentRevision struct {
// The date and time when the most recent revision of the artifact was created,
// in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// The revision ID of the current version of an artifact.
//
@@ -1274,7 +1274,7 @@ type ListWebhookItem struct {
// The date and time a webhook was last successfully triggered, in timestamp
// format.
- LastTriggered *time.Time `locationName:"lastTriggered" type:"timestamp" timestampFormat:"unix"`
+ LastTriggered *time.Time `locationName:"lastTriggered" type:"timestamp"`
// Specifies the tags applied to the webhook.
Tags []Tag `locationName:"tags" type:"list"`
@@ -1499,7 +1499,7 @@ type PipelineExecutionSummary struct {
// The date and time of the last change to the pipeline execution, in timestamp
// format.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
// The ID of the pipeline execution.
PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
@@ -1508,7 +1508,7 @@ type PipelineExecutionSummary struct {
SourceRevisions []SourceRevision `locationName:"sourceRevisions" type:"list"`
// The date and time when the pipeline execution began, in timestamp format.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// The status of the pipeline execution.
//
@@ -1535,13 +1535,13 @@ type PipelineMetadata struct {
_ struct{} `type:"structure"`
// The date and time the pipeline was created, in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// The Amazon Resource Name (ARN) of the pipeline.
PipelineArn *string `locationName:"pipelineArn" type:"string"`
// The date and time the pipeline was last updated, in timestamp format.
- Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"`
+ Updated *time.Time `locationName:"updated" type:"timestamp"`
}
// String returns the string representation
@@ -1555,13 +1555,13 @@ type PipelineSummary struct {
_ struct{} `type:"structure"`
// The date and time the pipeline was created, in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// The name of the pipeline.
Name *string `locationName:"name" min:"1" type:"string"`
// The date and time of the last update to the pipeline, in timestamp format.
- Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"`
+ Updated *time.Time `locationName:"updated" type:"timestamp"`
// The version number of the pipeline.
Version *int64 `locationName:"version" min:"1" type:"integer"`
@@ -1908,7 +1908,7 @@ type TransitionState struct {
Enabled *bool `locationName:"enabled" type:"boolean"`
// The timestamp when the transition state was last changed.
- LastChangedAt *time.Time `locationName:"lastChangedAt" type:"timestamp" timestampFormat:"unix"`
+ LastChangedAt *time.Time `locationName:"lastChangedAt" type:"timestamp"`
// The ID of the user who last changed the transition state.
LastChangedBy *string `locationName:"lastChangedBy" type:"string"`
diff --git a/service/codestar/api_op_CreateUserProfile.go b/service/codestar/api_op_CreateUserProfile.go
index 6735ea29f89..74cf2c326cf 100644
--- a/service/codestar/api_op_CreateUserProfile.go
+++ b/service/codestar/api_op_CreateUserProfile.go
@@ -78,7 +78,7 @@ type CreateUserProfileOutput struct {
_ struct{} `type:"structure"`
// The date the user profile was created, in timestamp format.
- CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp"`
// The name that is displayed as the friendly name for the user in AWS CodeStar.
DisplayName *string `locationName:"displayName" min:"1" type:"string"`
@@ -88,7 +88,7 @@ type CreateUserProfileOutput struct {
EmailAddress *string `locationName:"emailAddress" min:"3" type:"string"`
// The date the user profile was last modified, in timestamp format.
- LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp"`
// The SSH public key associated with the user in AWS CodeStar. This is the
// public portion of the public/private keypair the user can use to access project
diff --git a/service/codestar/api_op_DescribeProject.go b/service/codestar/api_op_DescribeProject.go
index 55443ee18dc..dc7fbda7a4d 100644
--- a/service/codestar/api_op_DescribeProject.go
+++ b/service/codestar/api_op_DescribeProject.go
@@ -54,7 +54,7 @@ type DescribeProjectOutput struct {
ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`
// The date and time the project was created, in timestamp format.
- CreatedTimeStamp *time.Time `locationName:"createdTimeStamp" type:"timestamp" timestampFormat:"unix"`
+ CreatedTimeStamp *time.Time `locationName:"createdTimeStamp" type:"timestamp"`
// The description of the project, if any.
Description *string `locationName:"description" type:"string"`
diff --git a/service/codestar/api_op_DescribeUserProfile.go b/service/codestar/api_op_DescribeUserProfile.go
index 5f071cf47d1..7c0d39aed4a 100644
--- a/service/codestar/api_op_DescribeUserProfile.go
+++ b/service/codestar/api_op_DescribeUserProfile.go
@@ -50,7 +50,7 @@ type DescribeUserProfileOutput struct {
// format.
//
// CreatedTimestamp is a required field
- CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp" required:"true"`
// The display name shown for the user in AWS CodeStar projects. For example,
// this could be set to both first and last name ("Mary Major") or a single
@@ -69,7 +69,7 @@ type DescribeUserProfileOutput struct {
// The date and time when the user profile was last modified, in timestamp format.
//
// LastModifiedTimestamp is a required field
- LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp" timestampFormat:"unix" required:"true"`
+ LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp" required:"true"`
// The SSH public key associated with the user. This SSH public key is associated
// with the user profile, and can be used in conjunction with the associated
diff --git a/service/codestar/api_op_UpdateUserProfile.go b/service/codestar/api_op_UpdateUserProfile.go
index 9127bb7239e..669726aefd1 100644
--- a/service/codestar/api_op_UpdateUserProfile.go
+++ b/service/codestar/api_op_UpdateUserProfile.go
@@ -66,7 +66,7 @@ type UpdateUserProfileOutput struct {
_ struct{} `type:"structure"`
// The date the user profile was created, in timestamp format.
- CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp"`
// The name that is displayed as the friendly name for the user in AWS CodeStar.
DisplayName *string `locationName:"displayName" min:"1" type:"string"`
@@ -76,7 +76,7 @@ type UpdateUserProfileOutput struct {
EmailAddress *string `locationName:"emailAddress" min:"3" type:"string"`
// The date the user profile was last modified, in timestamp format.
- LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp"`
// The SSH public key associated with the user in AWS CodeStar. This is the
// public portion of the public/private keypair the user can use to access project
diff --git a/service/cognitoidentity/api_op_DescribeIdentity.go b/service/cognitoidentity/api_op_DescribeIdentity.go
index c1063f78ca6..bd9b34ca691 100644
--- a/service/cognitoidentity/api_op_DescribeIdentity.go
+++ b/service/cognitoidentity/api_op_DescribeIdentity.go
@@ -49,13 +49,13 @@ type DescribeIdentityOutput struct {
_ struct{} `type:"structure"`
// Date on which the identity was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A unique identifier in the format REGION:GUID.
IdentityId *string `min:"1" type:"string"`
// Date on which the identity was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// The provider names.
Logins []string `type:"list"`
diff --git a/service/cognitoidentity/api_types.go b/service/cognitoidentity/api_types.go
index cf9c6f31c43..514effe8781 100644
--- a/service/cognitoidentity/api_types.go
+++ b/service/cognitoidentity/api_types.go
@@ -67,7 +67,7 @@ type Credentials struct {
AccessKeyId *string `type:"string"`
// The date at which these credentials will expire.
- Expiration *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Expiration *time.Time `type:"timestamp"`
// The Secret Access Key portion of the credentials
SecretKey *string `type:"string"`
@@ -87,13 +87,13 @@ type IdentityDescription struct {
_ struct{} `type:"structure"`
// Date on which the identity was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A unique identifier in the format REGION:GUID.
IdentityId *string `min:"1" type:"string"`
// Date on which the identity was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// The provider names.
Logins []string `type:"list"`
diff --git a/service/cognitoidentityprovider/api_op_AdminGetUser.go b/service/cognitoidentityprovider/api_op_AdminGetUser.go
index 3724892e9a1..fef2d95a963 100644
--- a/service/cognitoidentityprovider/api_op_AdminGetUser.go
+++ b/service/cognitoidentityprovider/api_op_AdminGetUser.go
@@ -75,10 +75,10 @@ type AdminGetUserOutput struct {
UserAttributes []AttributeType `type:"list"`
// The date the user was created.
- UserCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UserCreateDate *time.Time `type:"timestamp"`
// The date the user was last modified.
- UserLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UserLastModifiedDate *time.Time `type:"timestamp"`
// The list of the user's MFA settings.
UserMFASettingList []string `type:"list"`
diff --git a/service/cognitoidentityprovider/api_types.go b/service/cognitoidentityprovider/api_types.go
index 91325979ce0..b573f500692 100644
--- a/service/cognitoidentityprovider/api_types.go
+++ b/service/cognitoidentityprovider/api_types.go
@@ -313,7 +313,7 @@ type AuthEventType struct {
ChallengeResponses []ChallengeResponseType `type:"list"`
// The creation date
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The user context data captured at the time of an event request. It provides
// additional information about the client from which event the request is received.
@@ -616,16 +616,16 @@ type DeviceType struct {
DeviceAttributes []AttributeType `type:"list"`
// The creation date of the device.
- DeviceCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeviceCreateDate *time.Time `type:"timestamp"`
// The device key.
DeviceKey *string `min:"1" type:"string"`
// The date in which the device was last authenticated.
- DeviceLastAuthenticatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeviceLastAuthenticatedDate *time.Time `type:"timestamp"`
// The last modified date of the device.
- DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeviceLastModifiedDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -782,7 +782,7 @@ type EventFeedbackType struct {
_ struct{} `type:"structure"`
// The event feedback date.
- FeedbackDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FeedbackDate *time.Time `type:"timestamp"`
// The event feedback value.
//
@@ -823,7 +823,7 @@ type GroupType struct {
_ struct{} `type:"structure"`
// The date the group was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A string containing the description of the group.
Description *string `type:"string"`
@@ -832,7 +832,7 @@ type GroupType struct {
GroupName *string `min:"1" type:"string"`
// The date the group was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// A nonnegative integer value that specifies the precedence of this group relative
// to the other groups that a user can belong to in the user pool. If a user
@@ -889,13 +889,13 @@ type IdentityProviderType struct {
AttributeMapping map[string]string `type:"map"`
// The date the identity provider was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A list of identity provider identifiers.
IdpIdentifiers []string `type:"list"`
// The date the identity provider was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// The identity provider details, such as MetadataURL and MetadataFile.
ProviderDetails map[string]string `type:"map"`
@@ -1265,10 +1265,10 @@ type ProviderDescription struct {
_ struct{} `type:"structure"`
// The date the provider was added to the user pool.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The date the provider was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// The identity provider name.
ProviderName *string `min:"1" type:"string"`
@@ -1400,7 +1400,7 @@ type RiskConfigurationType struct {
CompromisedCredentialsRiskConfiguration *CompromisedCredentialsRiskConfigurationType `type:"structure"`
// The last modified date.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// The configuration to override the risk decision.
RiskExceptionConfiguration *RiskExceptionConfigurationType `type:"structure"`
@@ -1641,13 +1641,13 @@ type UICustomizationType struct {
ClientId *string `min:"1" type:"string"`
// The creation date for the UI customization.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The logo image for the UI customization.
ImageUrl *string `type:"string"`
// The last-modified date for the UI customization.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// The user pool ID for the user pool.
UserPoolId *string `min:"1" type:"string"`
@@ -1687,13 +1687,13 @@ type UserImportJobType struct {
CloudWatchLogsRoleArn *string `min:"20" type:"string"`
// The date when the user import job was completed.
- CompletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionDate *time.Time `type:"timestamp"`
// The message returned when the user import job is completed.
CompletionMessage *string `min:"1" type:"string"`
// The date the user import job was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The number of users that could not be imported.
FailedUsers *int64 `type:"long"`
@@ -1714,7 +1714,7 @@ type UserImportJobType struct {
SkippedUsers *int64 `type:"long"`
// The date when the user import job was started.
- StartDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartDate *time.Time `type:"timestamp"`
// The status of the user import job. One of the following:
//
@@ -1851,7 +1851,7 @@ type UserPoolClientType struct {
ClientSecret *string `min:"1" type:"string"`
// The date the user pool client was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The default redirect URI. Must be in the CallbackURLs list.
//
@@ -1875,7 +1875,7 @@ type UserPoolClientType struct {
ExplicitAuthFlows []ExplicitAuthFlowsType `type:"list"`
// The date the user pool client was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// A list of allowed logout URLs for the identity providers.
LogoutURLs []string `type:"list"`
@@ -1909,7 +1909,7 @@ type UserPoolDescriptionType struct {
_ struct{} `type:"structure"`
// The date the user pool description was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The ID in a user pool description.
Id *string `min:"1" type:"string"`
@@ -1918,7 +1918,7 @@ type UserPoolDescriptionType struct {
LambdaConfig *LambdaConfigType `type:"structure"`
// The date the user pool description was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// The name in a user pool description.
Name *string `min:"1" type:"string"`
@@ -1979,7 +1979,7 @@ type UserPoolType struct {
AutoVerifiedAttributes []VerifiedAttributeType `type:"list"`
// The date the user pool was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A custom domain name that you provide to Amazon Cognito. This parameter applies
// only if you use a custom domain to host the sign-up and sign-in pages for
@@ -2017,7 +2017,7 @@ type UserPoolType struct {
LambdaConfig *LambdaConfigType `type:"structure"`
// The date the user pool was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// Can be one of the following values:
//
@@ -2090,10 +2090,10 @@ type UserType struct {
MFAOptions []MFAOptionType `type:"list"`
// The creation date of the user.
- UserCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UserCreateDate *time.Time `type:"timestamp"`
// The last modified date of the user.
- UserLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UserLastModifiedDate *time.Time `type:"timestamp"`
// The user status. Can be one of the following:
//
diff --git a/service/cognitosync/api_op_BulkPublish.go b/service/cognitosync/api_op_BulkPublish.go
index 6905ae66fcd..daf706dc2f4 100644
--- a/service/cognitosync/api_op_BulkPublish.go
+++ b/service/cognitosync/api_op_BulkPublish.go
@@ -46,7 +46,7 @@ func (s *BulkPublishInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BulkPublishInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IdentityPoolId != nil {
v := *s.IdentityPoolId
diff --git a/service/cognitosync/api_op_DeleteDataset.go b/service/cognitosync/api_op_DeleteDataset.go
index 1181c52505d..710ecc456c6 100644
--- a/service/cognitosync/api_op_DeleteDataset.go
+++ b/service/cognitosync/api_op_DeleteDataset.go
@@ -72,7 +72,7 @@ func (s *DeleteDatasetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDatasetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
diff --git a/service/cognitosync/api_op_DescribeDataset.go b/service/cognitosync/api_op_DescribeDataset.go
index 7c5977c7b93..5ffdc477257 100644
--- a/service/cognitosync/api_op_DescribeDataset.go
+++ b/service/cognitosync/api_op_DescribeDataset.go
@@ -73,7 +73,7 @@ func (s *DescribeDatasetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeDatasetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
diff --git a/service/cognitosync/api_op_DescribeIdentityPoolUsage.go b/service/cognitosync/api_op_DescribeIdentityPoolUsage.go
index bd94a2e6e4b..26a5a445baa 100644
--- a/service/cognitosync/api_op_DescribeIdentityPoolUsage.go
+++ b/service/cognitosync/api_op_DescribeIdentityPoolUsage.go
@@ -46,7 +46,7 @@ func (s *DescribeIdentityPoolUsageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeIdentityPoolUsageInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IdentityPoolId != nil {
v := *s.IdentityPoolId
diff --git a/service/cognitosync/api_op_DescribeIdentityUsage.go b/service/cognitosync/api_op_DescribeIdentityUsage.go
index 4264746fce6..989b6db6e0e 100644
--- a/service/cognitosync/api_op_DescribeIdentityUsage.go
+++ b/service/cognitosync/api_op_DescribeIdentityUsage.go
@@ -59,7 +59,7 @@ func (s *DescribeIdentityUsageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeIdentityUsageInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IdentityId != nil {
v := *s.IdentityId
diff --git a/service/cognitosync/api_op_GetBulkPublishDetails.go b/service/cognitosync/api_op_GetBulkPublishDetails.go
index 318a11736e1..5b387fe24bf 100644
--- a/service/cognitosync/api_op_GetBulkPublishDetails.go
+++ b/service/cognitosync/api_op_GetBulkPublishDetails.go
@@ -47,7 +47,7 @@ func (s *GetBulkPublishDetailsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBulkPublishDetailsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IdentityPoolId != nil {
v := *s.IdentityPoolId
@@ -65,10 +65,10 @@ type GetBulkPublishDetailsOutput struct {
// If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation
// completed.
- BulkPublishCompleteTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ BulkPublishCompleteTime *time.Time `type:"timestamp"`
// The date/time at which the last bulk publish was initiated.
- BulkPublishStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ BulkPublishStartTime *time.Time `type:"timestamp"`
// Status of the last bulk publish operation, valid values are:
// NOT_STARTED - No bulk publish has been requested for this identity pool
@@ -102,13 +102,15 @@ func (s GetBulkPublishDetailsOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.BulkPublishCompleteTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "BulkPublishCompleteTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "BulkPublishCompleteTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.BulkPublishStartTime != nil {
v := *s.BulkPublishStartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "BulkPublishStartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "BulkPublishStartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.BulkPublishStatus) > 0 {
v := s.BulkPublishStatus
diff --git a/service/cognitosync/api_op_GetCognitoEvents.go b/service/cognitosync/api_op_GetCognitoEvents.go
index 894127f3acb..a16dc1d709f 100644
--- a/service/cognitosync/api_op_GetCognitoEvents.go
+++ b/service/cognitosync/api_op_GetCognitoEvents.go
@@ -45,7 +45,7 @@ func (s *GetCognitoEventsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCognitoEventsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IdentityPoolId != nil {
v := *s.IdentityPoolId
diff --git a/service/cognitosync/api_op_GetIdentityPoolConfiguration.go b/service/cognitosync/api_op_GetIdentityPoolConfiguration.go
index 84443b99cba..d9e2ee493df 100644
--- a/service/cognitosync/api_op_GetIdentityPoolConfiguration.go
+++ b/service/cognitosync/api_op_GetIdentityPoolConfiguration.go
@@ -47,7 +47,7 @@ func (s *GetIdentityPoolConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIdentityPoolConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IdentityPoolId != nil {
v := *s.IdentityPoolId
diff --git a/service/cognitosync/api_op_ListDatasets.go b/service/cognitosync/api_op_ListDatasets.go
index caf7cdf1c4c..37ea562dfb7 100644
--- a/service/cognitosync/api_op_ListDatasets.go
+++ b/service/cognitosync/api_op_ListDatasets.go
@@ -65,7 +65,7 @@ func (s *ListDatasetsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDatasetsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IdentityId != nil {
v := *s.IdentityId
diff --git a/service/cognitosync/api_op_ListIdentityPoolUsage.go b/service/cognitosync/api_op_ListIdentityPoolUsage.go
index 1d13e4b5910..53213998184 100644
--- a/service/cognitosync/api_op_ListIdentityPoolUsage.go
+++ b/service/cognitosync/api_op_ListIdentityPoolUsage.go
@@ -29,7 +29,7 @@ func (s ListIdentityPoolUsageInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListIdentityPoolUsageInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/cognitosync/api_op_ListRecords.go b/service/cognitosync/api_op_ListRecords.go
index 2a88e8a42ca..4153d38c2f0 100644
--- a/service/cognitosync/api_op_ListRecords.go
+++ b/service/cognitosync/api_op_ListRecords.go
@@ -84,7 +84,7 @@ func (s *ListRecordsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListRecordsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
diff --git a/service/cognitosync/api_op_RegisterDevice.go b/service/cognitosync/api_op_RegisterDevice.go
index 95a955d5955..367ea4e4234 100644
--- a/service/cognitosync/api_op_RegisterDevice.go
+++ b/service/cognitosync/api_op_RegisterDevice.go
@@ -76,7 +76,7 @@ func (s *RegisterDeviceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RegisterDeviceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.Platform) > 0 {
v := s.Platform
diff --git a/service/cognitosync/api_op_SetCognitoEvents.go b/service/cognitosync/api_op_SetCognitoEvents.go
index c2e3a10f9fd..9c2de2c459e 100644
--- a/service/cognitosync/api_op_SetCognitoEvents.go
+++ b/service/cognitosync/api_op_SetCognitoEvents.go
@@ -56,7 +56,7 @@ func (s *SetCognitoEventsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SetCognitoEventsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Events != nil {
v := s.Events
diff --git a/service/cognitosync/api_op_SetIdentityPoolConfiguration.go b/service/cognitosync/api_op_SetIdentityPoolConfiguration.go
index a0e47a7a99a..b1be1f30ecc 100644
--- a/service/cognitosync/api_op_SetIdentityPoolConfiguration.go
+++ b/service/cognitosync/api_op_SetIdentityPoolConfiguration.go
@@ -62,7 +62,7 @@ func (s *SetIdentityPoolConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SetIdentityPoolConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CognitoStreams != nil {
v := s.CognitoStreams
diff --git a/service/cognitosync/api_op_SubscribeToDataset.go b/service/cognitosync/api_op_SubscribeToDataset.go
index 86fdbd03b1e..6639c618f67 100644
--- a/service/cognitosync/api_op_SubscribeToDataset.go
+++ b/service/cognitosync/api_op_SubscribeToDataset.go
@@ -82,7 +82,7 @@ func (s *SubscribeToDatasetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SubscribeToDatasetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
diff --git a/service/cognitosync/api_op_UnsubscribeFromDataset.go b/service/cognitosync/api_op_UnsubscribeFromDataset.go
index edf45d82193..fece42d8292 100644
--- a/service/cognitosync/api_op_UnsubscribeFromDataset.go
+++ b/service/cognitosync/api_op_UnsubscribeFromDataset.go
@@ -82,7 +82,7 @@ func (s *UnsubscribeFromDatasetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UnsubscribeFromDatasetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
diff --git a/service/cognitosync/api_op_UpdateRecords.go b/service/cognitosync/api_op_UpdateRecords.go
index 92c1a70b4aa..3ba5061161f 100644
--- a/service/cognitosync/api_op_UpdateRecords.go
+++ b/service/cognitosync/api_op_UpdateRecords.go
@@ -104,7 +104,7 @@ func (s *UpdateRecordsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateRecordsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceId != nil {
v := *s.DeviceId
diff --git a/service/cognitosync/api_types.go b/service/cognitosync/api_types.go
index da53bd7e48e..0224f35d9e2 100644
--- a/service/cognitosync/api_types.go
+++ b/service/cognitosync/api_types.go
@@ -89,7 +89,7 @@ type Dataset struct {
_ struct{} `type:"structure"`
// Date on which the dataset was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// Total size in bytes of the records in this dataset.
DataStorage *int64 `type:"long"`
@@ -106,7 +106,7 @@ type Dataset struct {
LastModifiedBy *string `type:"string"`
// Date when the dataset was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// Number of records in this dataset.
NumRecords *int64 `type:"long"`
@@ -123,7 +123,8 @@ func (s Dataset) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DataStorage != nil {
v := *s.DataStorage
@@ -153,7 +154,8 @@ func (s Dataset) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.NumRecords != nil {
v := *s.NumRecords
@@ -177,7 +179,7 @@ type IdentityPoolUsage struct {
IdentityPoolId *string `min:"1" type:"string"`
// Date on which the identity pool was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// Number of sync sessions for the identity pool.
SyncSessionsCount *int64 `type:"long"`
@@ -206,7 +208,8 @@ func (s IdentityPoolUsage) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SyncSessionsCount != nil {
v := *s.SyncSessionsCount
@@ -237,7 +240,7 @@ type IdentityUsage struct {
IdentityPoolId *string `min:"1" type:"string"`
// Date on which the identity was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -275,7 +278,8 @@ func (s IdentityUsage) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -339,7 +343,7 @@ type Record struct {
_ struct{} `type:"structure"`
// The last modified date of the client device.
- DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeviceLastModifiedDate *time.Time `type:"timestamp"`
// The key for the record.
Key *string `min:"1" type:"string"`
@@ -348,7 +352,7 @@ type Record struct {
LastModifiedBy *string `type:"string"`
// The date on which the record was last modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// The server sync count for this record.
SyncCount *int64 `type:"long"`
@@ -368,7 +372,8 @@ func (s Record) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DeviceLastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DeviceLastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DeviceLastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Key != nil {
v := *s.Key
@@ -386,7 +391,8 @@ func (s Record) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SyncCount != nil {
v := *s.SyncCount
@@ -409,7 +415,7 @@ type RecordPatch struct {
_ struct{} `type:"structure"`
// The last modified date of the client device.
- DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeviceLastModifiedDate *time.Time `type:"timestamp"`
// The key associated with the record patch.
//
@@ -465,7 +471,8 @@ func (s RecordPatch) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DeviceLastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DeviceLastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DeviceLastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Key != nil {
v := *s.Key
diff --git a/service/comprehend/api_types.go b/service/comprehend/api_types.go
index 952e5fed991..bbc06deb60b 100644
--- a/service/comprehend/api_types.go
+++ b/service/comprehend/api_types.go
@@ -205,12 +205,12 @@ type DocumentClassificationJobFilter struct {
// Filters the list of jobs based on the time that the job was submitted for
// processing. Returns only jobs submitted before the specified time. Jobs are
// returned in descending order, newest to oldest.
- SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeAfter *time.Time `type:"timestamp"`
// Filters the list of jobs based on the time that the job was submitted for
// processing. Returns only jobs submitted after the specified time. Jobs are
// returned in ascending order, oldest to newest.
- SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeBefore *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -244,7 +244,7 @@ type DocumentClassificationJobProperties struct {
DocumentClassifierArn *string `type:"string"`
// The time that the document classification job completed.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The input data configuration that you supplied when you created the document
// classification job.
@@ -268,7 +268,7 @@ type DocumentClassificationJobProperties struct {
OutputDataConfig *OutputDataConfig `type:"structure"`
// The time that the document classification job was submitted for processing.
- SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `type:"timestamp"`
// ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
// to encrypt data on the storage volume attached to the ML compute instance(s)
@@ -304,12 +304,12 @@ type DocumentClassifierFilter struct {
// Filters the list of classifiers based on the time that the classifier was
// submitted for processing. Returns only classifiers submitted after the specified
// time. Classifiers are returned in descending order, newest to oldest.
- SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeAfter *time.Time `type:"timestamp"`
// Filters the list of classifiers based on the time that the classifier was
// submitted for processing. Returns only classifiers submitted before the specified
// time. Classifiers are returned in ascending order, oldest to newest.
- SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeBefore *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -409,7 +409,7 @@ type DocumentClassifierProperties struct {
DocumentClassifierArn *string `type:"string"`
// The time that training the document classifier completed.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The input data configuration that you supplied when you created the document
// classifier for training.
@@ -431,16 +431,16 @@ type DocumentClassifierProperties struct {
Status ModelStatus `type:"string" enum:"true"`
// The time that the document classifier was submitted for training.
- SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `type:"timestamp"`
// The time that training of the document classifier was completed. Indicates
// the time when the training completes on documentation classifiers. You are
// billed for the time interval between this time and the value of TrainingStartTime.
- TrainingEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingEndTime *time.Time `type:"timestamp"`
// Indicates the time when the training starts on documentation classifiers.
// You are billed for the time interval between this time and the value of TrainingEndTime.
- TrainingStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingStartTime *time.Time `type:"timestamp"`
// ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
// to encrypt data on the storage volume attached to the ML compute instance(s)
@@ -500,12 +500,12 @@ type DominantLanguageDetectionJobFilter struct {
// Filters the list of jobs based on the time that the job was submitted for
// processing. Returns only jobs submitted after the specified time. Jobs are
// returned in descending order, newest to oldest.
- SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeAfter *time.Time `type:"timestamp"`
// Filters the list of jobs based on the time that the job was submitted for
// processing. Returns only jobs submitted before the specified time. Jobs are
// returned in ascending order, oldest to newest.
- SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeBefore *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -536,7 +536,7 @@ type DominantLanguageDetectionJobProperties struct {
DataAccessRoleArn *string `min:"20" type:"string"`
// The time that the dominant language detection job completed.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The input data configuration that you supplied when you created the dominant
// language detection job.
@@ -560,7 +560,7 @@ type DominantLanguageDetectionJobProperties struct {
OutputDataConfig *OutputDataConfig `type:"structure"`
// The time that the dominant language detection job was submitted for processing.
- SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `type:"timestamp"`
// ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
// to encrypt data on the storage volume attached to the ML compute instance(s)
@@ -599,12 +599,12 @@ type EntitiesDetectionJobFilter struct {
// Filters the list of jobs based on the time that the job was submitted for
// processing. Returns only jobs submitted after the specified time. Jobs are
// returned in descending order, newest to oldest.
- SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeAfter *time.Time `type:"timestamp"`
// Filters the list of jobs based on the time that the job was submitted for
// processing. Returns only jobs submitted before the specified time. Jobs are
// returned in ascending order, oldest to newest.
- SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeBefore *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -635,7 +635,7 @@ type EntitiesDetectionJobProperties struct {
DataAccessRoleArn *string `min:"20" type:"string"`
// The time that the entities detection job completed
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) that identifies the entity recognizer.
EntityRecognizerArn *string `type:"string"`
@@ -665,7 +665,7 @@ type EntitiesDetectionJobProperties struct {
OutputDataConfig *OutputDataConfig `type:"structure"`
// The time that the entities detection job was submitted for processing.
- SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `type:"timestamp"`
// ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
// to encrypt data on the storage volume attached to the ML compute instance(s)
@@ -856,12 +856,12 @@ type EntityRecognizerFilter struct {
// Filters the list of entities based on the time that the list was submitted
// for processing. Returns only jobs submitted after the specified time. Jobs
// are returned in ascending order, oldest to newest.
- SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeAfter *time.Time `type:"timestamp"`
// Filters the list of entities based on the time that the list was submitted
// for processing. Returns only jobs submitted before the specified time. Jobs
// are returned in descending order, newest to oldest.
- SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeBefore *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -987,7 +987,7 @@ type EntityRecognizerProperties struct {
DataAccessRoleArn *string `min:"20" type:"string"`
// The time that the recognizer creation completed.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) that identifies the entity recognizer.
EntityRecognizerArn *string `type:"string"`
@@ -1009,13 +1009,13 @@ type EntityRecognizerProperties struct {
Status ModelStatus `type:"string" enum:"true"`
// The time that the recognizer was submitted for processing.
- SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `type:"timestamp"`
// The time that training of the entity recognizer was completed.
- TrainingEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingEndTime *time.Time `type:"timestamp"`
// The time that training of the entity recognizer started.
- TrainingStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingStartTime *time.Time `type:"timestamp"`
// ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
// to encrypt data on the storage volume attached to the ML compute instance(s)
@@ -1162,12 +1162,12 @@ type KeyPhrasesDetectionJobFilter struct {
// Filters the list of jobs based on the time that the job was submitted for
// processing. Returns only jobs submitted after the specified time. Jobs are
// returned in descending order, newest to oldest.
- SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeAfter *time.Time `type:"timestamp"`
// Filters the list of jobs based on the time that the job was submitted for
// processing. Returns only jobs submitted before the specified time. Jobs are
// returned in ascending order, oldest to newest.
- SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeBefore *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1198,7 +1198,7 @@ type KeyPhrasesDetectionJobProperties struct {
DataAccessRoleArn *string `min:"20" type:"string"`
// The time that the key phrases detection job completed.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The input data configuration that you supplied when you created the key phrases
// detection job.
@@ -1225,7 +1225,7 @@ type KeyPhrasesDetectionJobProperties struct {
OutputDataConfig *OutputDataConfig `type:"structure"`
// The time that the key phrases detection job was submitted for processing.
- SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `type:"timestamp"`
// ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
// to encrypt data on the storage volume attached to the ML compute instance(s)
@@ -1337,12 +1337,12 @@ type SentimentDetectionJobFilter struct {
// Filters the list of jobs based on the time that the job was submitted for
// processing. Returns only jobs submitted after the specified time. Jobs are
// returned in descending order, newest to oldest.
- SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeAfter *time.Time `type:"timestamp"`
// Filters the list of jobs based on the time that the job was submitted for
// processing. Returns only jobs submitted before the specified time. Jobs are
// returned in ascending order, oldest to newest.
- SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeBefore *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1373,7 +1373,7 @@ type SentimentDetectionJobProperties struct {
DataAccessRoleArn *string `min:"20" type:"string"`
// The time that the sentiment detection job ended.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The input data configuration that you supplied when you created the sentiment
// detection job.
@@ -1400,7 +1400,7 @@ type SentimentDetectionJobProperties struct {
OutputDataConfig *OutputDataConfig `type:"structure"`
// The time that the sentiment detection job was submitted for processing.
- SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `type:"timestamp"`
// ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
// to encrypt data on the storage volume attached to the ML compute instance(s)
@@ -1541,12 +1541,12 @@ type TopicsDetectionJobFilter struct {
// Filters the list of jobs based on the time that the job was submitted for
// processing. Only returns jobs submitted after the specified time. Jobs are
// returned in ascending order, oldest to newest.
- SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeAfter *time.Time `type:"timestamp"`
// Filters the list of jobs based on the time that the job was submitted for
// processing. Only returns jobs submitted before the specified time. Jobs are
// returned in descending order, newest to oldest.
- SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTimeBefore *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1577,7 +1577,7 @@ type TopicsDetectionJobProperties struct {
DataAccessRoleArn *string `min:"20" type:"string"`
// The time that the topic detection job was completed.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The input data configuration supplied when you created the topic detection
// job.
@@ -1605,7 +1605,7 @@ type TopicsDetectionJobProperties struct {
OutputDataConfig *OutputDataConfig `type:"structure"`
// The time that the topic detection job was submitted for processing.
- SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `type:"timestamp"`
// ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
// to encrypt data on the storage volume attached to the ML compute instance(s)
diff --git a/service/configservice/api_op_GetResourceConfigHistory.go b/service/configservice/api_op_GetResourceConfigHistory.go
index 4f7f9535fd4..8e7b04c0f45 100644
--- a/service/configservice/api_op_GetResourceConfigHistory.go
+++ b/service/configservice/api_op_GetResourceConfigHistory.go
@@ -22,11 +22,11 @@ type GetResourceConfigHistoryInput struct {
// The time stamp that indicates an earlier time. If not specified, the action
// returns paginated results that contain configuration items that start when
// the first configuration item was recorded.
- EarlierTime *time.Time `locationName:"earlierTime" type:"timestamp" timestampFormat:"unix"`
+ EarlierTime *time.Time `locationName:"earlierTime" type:"timestamp"`
// The time stamp that indicates a later time. If not specified, current time
// is taken.
- LaterTime *time.Time `locationName:"laterTime" type:"timestamp" timestampFormat:"unix"`
+ LaterTime *time.Time `locationName:"laterTime" type:"timestamp"`
// The maximum number of configuration items returned on each page. The default
// is 10. You cannot specify a number greater than 100. If you specify 0, AWS
diff --git a/service/configservice/api_types.go b/service/configservice/api_types.go
index e0cd9e52b70..dcc106299f1 100644
--- a/service/configservice/api_types.go
+++ b/service/configservice/api_types.go
@@ -125,13 +125,13 @@ type AggregateEvaluationResult struct {
ComplianceType ComplianceType `type:"string" enum:"true"`
// The time when the AWS Config rule evaluated the AWS resource.
- ConfigRuleInvokedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ConfigRuleInvokedTime *time.Time `type:"timestamp"`
// Uniquely identifies the evaluation result.
EvaluationResultIdentifier *EvaluationResultIdentifier `type:"structure"`
// The time when AWS Config recorded the aggregate evaluation result.
- ResultRecordedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ResultRecordedTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -232,7 +232,7 @@ type AggregatedSourceStatus struct {
LastUpdateStatus AggregatedSourceStatusType `type:"string" enum:"true"`
// The time of the last update.
- LastUpdateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `type:"timestamp"`
// The source account ID or an organization.
SourceId *string `type:"string"`
@@ -262,7 +262,7 @@ type AggregationAuthorization struct {
AuthorizedAwsRegion *string `min:"1" type:"string"`
// The time stamp when the aggregation authorization was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -291,7 +291,7 @@ type BaseConfigurationItem struct {
Configuration *string `locationName:"configuration" type:"string"`
// The time when the configuration recording was initiated.
- ConfigurationItemCaptureTime *time.Time `locationName:"configurationItemCaptureTime" type:"timestamp" timestampFormat:"unix"`
+ ConfigurationItemCaptureTime *time.Time `locationName:"configurationItemCaptureTime" type:"timestamp"`
// The configuration item status.
ConfigurationItemStatus ConfigurationItemStatus `locationName:"configurationItemStatus" type:"string" enum:"true"`
@@ -301,7 +301,7 @@ type BaseConfigurationItem struct {
ConfigurationStateId *string `locationName:"configurationStateId" type:"string"`
// The time stamp when the resource was created.
- ResourceCreationTime *time.Time `locationName:"resourceCreationTime" type:"timestamp" timestampFormat:"unix"`
+ ResourceCreationTime *time.Time `locationName:"resourceCreationTime" type:"timestamp"`
// The ID of the resource (for example., sg-xxxxxx).
ResourceId *string `locationName:"resourceId" min:"1" type:"string"`
@@ -426,7 +426,7 @@ type ComplianceSummary struct {
_ struct{} `type:"structure"`
// The time that AWS Config created the compliance summary.
- ComplianceSummaryTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ComplianceSummaryTimestamp *time.Time `type:"timestamp"`
// The number of AWS Config rules or AWS resources that are compliant, up to
// a maximum of 25 for rules and 100 for resources.
@@ -469,7 +469,7 @@ type ConfigExportDeliveryInfo struct {
_ struct{} `type:"structure"`
// The time of the last attempted delivery.
- LastAttemptTime *time.Time `locationName:"lastAttemptTime" type:"timestamp" timestampFormat:"unix"`
+ LastAttemptTime *time.Time `locationName:"lastAttemptTime" type:"timestamp"`
// The error code from the last attempted delivery.
LastErrorCode *string `locationName:"lastErrorCode" type:"string"`
@@ -481,10 +481,10 @@ type ConfigExportDeliveryInfo struct {
LastStatus DeliveryStatus `locationName:"lastStatus" type:"string" enum:"true"`
// The time of the last successful delivery.
- LastSuccessfulTime *time.Time `locationName:"lastSuccessfulTime" type:"timestamp" timestampFormat:"unix"`
+ LastSuccessfulTime *time.Time `locationName:"lastSuccessfulTime" type:"timestamp"`
// The time that the next delivery occurs.
- NextDeliveryTime *time.Time `locationName:"nextDeliveryTime" type:"timestamp" timestampFormat:"unix"`
+ NextDeliveryTime *time.Time `locationName:"nextDeliveryTime" type:"timestamp"`
}
// String returns the string representation
@@ -709,7 +709,7 @@ type ConfigRuleEvaluationStatus struct {
ConfigRuleName *string `min:"1" type:"string"`
// The time that you first activated the AWS Config rule.
- FirstActivatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FirstActivatedTime *time.Time `type:"timestamp"`
// Indicates whether AWS Config has evaluated your resources against the rule
// at least once.
@@ -729,19 +729,19 @@ type ConfigRuleEvaluationStatus struct {
// The time that AWS Config last failed to evaluate your AWS resources against
// the rule.
- LastFailedEvaluationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastFailedEvaluationTime *time.Time `type:"timestamp"`
// The time that AWS Config last failed to invoke the AWS Config rule to evaluate
// your AWS resources.
- LastFailedInvocationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastFailedInvocationTime *time.Time `type:"timestamp"`
// The time that AWS Config last successfully evaluated your AWS resources against
// the rule.
- LastSuccessfulEvaluationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastSuccessfulEvaluationTime *time.Time `type:"timestamp"`
// The time that AWS Config last successfully invoked the AWS Config rule to
// evaluate your AWS resources.
- LastSuccessfulInvocationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastSuccessfulInvocationTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -818,7 +818,7 @@ type ConfigStreamDeliveryInfo struct {
LastStatus DeliveryStatus `locationName:"lastStatus" type:"string" enum:"true"`
// The time from the last status change.
- LastStatusChangeTime *time.Time `locationName:"lastStatusChangeTime" type:"timestamp" timestampFormat:"unix"`
+ LastStatusChangeTime *time.Time `locationName:"lastStatusChangeTime" type:"timestamp"`
}
// String returns the string representation
@@ -842,10 +842,10 @@ type ConfigurationAggregator struct {
ConfigurationAggregatorName *string `min:"1" type:"string"`
// The time stamp when the configuration aggregator was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The time of the last update.
- LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `type:"timestamp"`
// Provides an organization and list of regions to be aggregated.
OrganizationAggregationSource *OrganizationAggregationSource `type:"structure"`
@@ -877,7 +877,7 @@ type ConfigurationItem struct {
Configuration *string `locationName:"configuration" type:"string"`
// The time when the configuration recording was initiated.
- ConfigurationItemCaptureTime *time.Time `locationName:"configurationItemCaptureTime" type:"timestamp" timestampFormat:"unix"`
+ ConfigurationItemCaptureTime *time.Time `locationName:"configurationItemCaptureTime" type:"timestamp"`
// Unique MD5 hash that represents the configuration item's state.
//
@@ -906,7 +906,7 @@ type ConfigurationItem struct {
Relationships []Relationship `locationName:"relationships" type:"list"`
// The time stamp when the resource was created.
- ResourceCreationTime *time.Time `locationName:"resourceCreationTime" type:"timestamp" timestampFormat:"unix"`
+ ResourceCreationTime *time.Time `locationName:"resourceCreationTime" type:"timestamp"`
// The ID of the resource (for example, sg-xxxxxx).
ResourceId *string `locationName:"resourceId" min:"1" type:"string"`
@@ -983,16 +983,16 @@ type ConfigurationRecorderStatus struct {
LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"`
// The time the recorder was last started.
- LastStartTime *time.Time `locationName:"lastStartTime" type:"timestamp" timestampFormat:"unix"`
+ LastStartTime *time.Time `locationName:"lastStartTime" type:"timestamp"`
// The last (previous) status of the recorder.
LastStatus RecorderStatus `locationName:"lastStatus" type:"string" enum:"true"`
// The time when the status was last changed.
- LastStatusChangeTime *time.Time `locationName:"lastStatusChangeTime" type:"timestamp" timestampFormat:"unix"`
+ LastStatusChangeTime *time.Time `locationName:"lastStatusChangeTime" type:"timestamp"`
// The time the recorder was last stopped.
- LastStopTime *time.Time `locationName:"lastStopTime" type:"timestamp" timestampFormat:"unix"`
+ LastStopTime *time.Time `locationName:"lastStopTime" type:"timestamp"`
// The name of the configuration recorder.
Name *string `locationName:"name" type:"string"`
@@ -1132,7 +1132,7 @@ type Evaluation struct {
// (for example, every 24 hours).
//
// OrderingTimestamp is a required field
- OrderingTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ OrderingTimestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -1193,13 +1193,13 @@ type EvaluationResult struct {
ComplianceType ComplianceType `type:"string" enum:"true"`
// The time when the AWS Config rule evaluated the AWS resource.
- ConfigRuleInvokedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ConfigRuleInvokedTime *time.Time `type:"timestamp"`
// Uniquely identifies the evaluation result.
EvaluationResultIdentifier *EvaluationResultIdentifier `type:"structure"`
// The time when AWS Config recorded the evaluation result.
- ResultRecordedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ResultRecordedTime *time.Time `type:"timestamp"`
// An encrypted token that associates an evaluation with an AWS Config rule.
// The token identifies the rule, the AWS resource being evaluated, and the
@@ -1225,7 +1225,7 @@ type EvaluationResultIdentifier struct {
// The time can indicate when AWS Config delivered a configuration item change
// notification, or it can indicate when AWS Config delivered the configuration
// snapshot, depending on which event triggered the evaluation.
- OrderingTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ OrderingTimestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1552,10 +1552,10 @@ type RemediationExecutionStatus struct {
_ struct{} `type:"structure"`
// Start time when the remediation was executed.
- InvocationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ InvocationTime *time.Time `type:"timestamp"`
// The time when the remediation execution was last updated.
- LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `type:"timestamp"`
// The details that identify a resource within AWS Config, including the resource
// type and resource ID.
@@ -1585,13 +1585,13 @@ type RemediationExecutionStep struct {
Name *string `type:"string"`
// The time when the step started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The valid status of the step.
State RemediationExecutionStepState `type:"string" enum:"true"`
// The time when the step stopped.
- StopTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StopTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1714,7 +1714,7 @@ type ResourceIdentifier struct {
_ struct{} `type:"structure"`
// The time that the resource was deleted.
- ResourceDeletionTime *time.Time `locationName:"resourceDeletionTime" type:"timestamp" timestampFormat:"unix"`
+ ResourceDeletionTime *time.Time `locationName:"resourceDeletionTime" type:"timestamp"`
// The ID of the resource (for example, sg-xxxxxx).
ResourceId *string `locationName:"resourceId" min:"1" type:"string"`
diff --git a/service/connect/api_op_CreateUser.go b/service/connect/api_op_CreateUser.go
index 6af950eacec..587d34780e7 100644
--- a/service/connect/api_op_CreateUser.go
+++ b/service/connect/api_op_CreateUser.go
@@ -128,7 +128,7 @@ func (s *CreateUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DirectoryUserId != nil {
v := *s.DirectoryUserId
diff --git a/service/connect/api_op_DeleteUser.go b/service/connect/api_op_DeleteUser.go
index f71138ce939..1a8b04a188b 100644
--- a/service/connect/api_op_DeleteUser.go
+++ b/service/connect/api_op_DeleteUser.go
@@ -58,7 +58,7 @@ func (s *DeleteUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InstanceId != nil {
v := *s.InstanceId
diff --git a/service/connect/api_op_DescribeUser.go b/service/connect/api_op_DescribeUser.go
index 0457bf449ac..6dc2805489b 100644
--- a/service/connect/api_op_DescribeUser.go
+++ b/service/connect/api_op_DescribeUser.go
@@ -57,7 +57,7 @@ func (s *DescribeUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InstanceId != nil {
v := *s.InstanceId
diff --git a/service/connect/api_op_DescribeUserHierarchyGroup.go b/service/connect/api_op_DescribeUserHierarchyGroup.go
index 8ff9ea89b2a..0e6f3e4de7f 100644
--- a/service/connect/api_op_DescribeUserHierarchyGroup.go
+++ b/service/connect/api_op_DescribeUserHierarchyGroup.go
@@ -57,7 +57,7 @@ func (s *DescribeUserHierarchyGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeUserHierarchyGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HierarchyGroupId != nil {
v := *s.HierarchyGroupId
diff --git a/service/connect/api_op_DescribeUserHierarchyStructure.go b/service/connect/api_op_DescribeUserHierarchyStructure.go
index 1929cb4ae24..a8db5d87d8c 100644
--- a/service/connect/api_op_DescribeUserHierarchyStructure.go
+++ b/service/connect/api_op_DescribeUserHierarchyStructure.go
@@ -48,7 +48,7 @@ func (s *DescribeUserHierarchyStructureInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeUserHierarchyStructureInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InstanceId != nil {
v := *s.InstanceId
diff --git a/service/connect/api_op_GetContactAttributes.go b/service/connect/api_op_GetContactAttributes.go
index c9255c2b721..c762ed5fbb8 100644
--- a/service/connect/api_op_GetContactAttributes.go
+++ b/service/connect/api_op_GetContactAttributes.go
@@ -57,7 +57,7 @@ func (s *GetContactAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetContactAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InitialContactId != nil {
v := *s.InitialContactId
diff --git a/service/connect/api_op_GetCurrentMetricData.go b/service/connect/api_op_GetCurrentMetricData.go
index f9ce32be3db..6c2d47a371d 100644
--- a/service/connect/api_op_GetCurrentMetricData.go
+++ b/service/connect/api_op_GetCurrentMetricData.go
@@ -151,7 +151,7 @@ func (s *GetCurrentMetricDataInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCurrentMetricDataInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CurrentMetrics != nil {
v := s.CurrentMetrics
@@ -209,7 +209,7 @@ type GetCurrentMetricDataOutput struct {
_ struct{} `type:"structure"`
// The time at which CurrentMetricData was retrieved and cached for pagination.
- DataSnapshotTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DataSnapshotTime *time.Time `type:"timestamp"`
// A list of CurrentMetricResult objects organized by Dimensions combining with
// CurrentMetricDataCollections.
@@ -244,7 +244,8 @@ func (s GetCurrentMetricDataOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.DataSnapshotTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DataSnapshotTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DataSnapshotTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.MetricResults != nil {
v := s.MetricResults
diff --git a/service/connect/api_op_GetFederationToken.go b/service/connect/api_op_GetFederationToken.go
index 5eab0dac249..8d0357b8645 100644
--- a/service/connect/api_op_GetFederationToken.go
+++ b/service/connect/api_op_GetFederationToken.go
@@ -48,7 +48,7 @@ func (s *GetFederationTokenInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFederationTokenInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InstanceId != nil {
v := *s.InstanceId
diff --git a/service/connect/api_op_GetMetricData.go b/service/connect/api_op_GetMetricData.go
index 72cebef32ed..f78ffb61034 100644
--- a/service/connect/api_op_GetMetricData.go
+++ b/service/connect/api_op_GetMetricData.go
@@ -23,7 +23,7 @@ type GetMetricDataInput struct {
// The time range between StartTime and EndTime must be less than 24 hours.
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// A Filters object that contains a list of queue IDs or queue ARNs, up to 100,
// or a list of Channels to use to filter the metrics returned in the response.
@@ -250,7 +250,7 @@ type GetMetricDataInput struct {
// Historical metrics are available in Amazon Connect only for 24 hours.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -301,13 +301,14 @@ func (s *GetMetricDataInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMetricDataInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "EndTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "EndTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Filters != nil {
v := s.Filters
@@ -355,7 +356,8 @@ func (s GetMetricDataInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.InstanceId != nil {
v := *s.InstanceId
diff --git a/service/connect/api_op_ListRoutingProfiles.go b/service/connect/api_op_ListRoutingProfiles.go
index 7766523067c..a16149998e8 100644
--- a/service/connect/api_op_ListRoutingProfiles.go
+++ b/service/connect/api_op_ListRoutingProfiles.go
@@ -58,7 +58,7 @@ func (s *ListRoutingProfilesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListRoutingProfilesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InstanceId != nil {
v := *s.InstanceId
diff --git a/service/connect/api_op_ListSecurityProfiles.go b/service/connect/api_op_ListSecurityProfiles.go
index af9abd15702..66cedac8995 100644
--- a/service/connect/api_op_ListSecurityProfiles.go
+++ b/service/connect/api_op_ListSecurityProfiles.go
@@ -58,7 +58,7 @@ func (s *ListSecurityProfilesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSecurityProfilesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InstanceId != nil {
v := *s.InstanceId
diff --git a/service/connect/api_op_ListUserHierarchyGroups.go b/service/connect/api_op_ListUserHierarchyGroups.go
index f0dc0aedda8..eb921ed3265 100644
--- a/service/connect/api_op_ListUserHierarchyGroups.go
+++ b/service/connect/api_op_ListUserHierarchyGroups.go
@@ -58,7 +58,7 @@ func (s *ListUserHierarchyGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListUserHierarchyGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InstanceId != nil {
v := *s.InstanceId
diff --git a/service/connect/api_op_ListUsers.go b/service/connect/api_op_ListUsers.go
index 62354515c0d..34597684d7f 100644
--- a/service/connect/api_op_ListUsers.go
+++ b/service/connect/api_op_ListUsers.go
@@ -58,7 +58,7 @@ func (s *ListUsersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListUsersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InstanceId != nil {
v := *s.InstanceId
diff --git a/service/connect/api_op_StartOutboundVoiceContact.go b/service/connect/api_op_StartOutboundVoiceContact.go
index cfa761ee28b..3ff46550788 100644
--- a/service/connect/api_op_StartOutboundVoiceContact.go
+++ b/service/connect/api_op_StartOutboundVoiceContact.go
@@ -102,7 +102,7 @@ func (s *StartOutboundVoiceContactInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartOutboundVoiceContactInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Attributes != nil {
v := s.Attributes
diff --git a/service/connect/api_op_StopContact.go b/service/connect/api_op_StopContact.go
index 12125ed5e5e..e79f319f533 100644
--- a/service/connect/api_op_StopContact.go
+++ b/service/connect/api_op_StopContact.go
@@ -60,7 +60,7 @@ func (s *StopContactInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StopContactInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ContactId != nil {
v := *s.ContactId
diff --git a/service/connect/api_op_UpdateContactAttributes.go b/service/connect/api_op_UpdateContactAttributes.go
index 7ba2da15071..e39ec26923f 100644
--- a/service/connect/api_op_UpdateContactAttributes.go
+++ b/service/connect/api_op_UpdateContactAttributes.go
@@ -76,7 +76,7 @@ func (s *UpdateContactAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateContactAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Attributes != nil {
v := s.Attributes
diff --git a/service/connect/api_op_UpdateUserHierarchy.go b/service/connect/api_op_UpdateUserHierarchy.go
index 4b86f1a849d..e5404e95b95 100644
--- a/service/connect/api_op_UpdateUserHierarchy.go
+++ b/service/connect/api_op_UpdateUserHierarchy.go
@@ -61,7 +61,7 @@ func (s *UpdateUserHierarchyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUserHierarchyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.HierarchyGroupId != nil {
v := *s.HierarchyGroupId
diff --git a/service/connect/api_op_UpdateUserIdentityInfo.go b/service/connect/api_op_UpdateUserIdentityInfo.go
index 15046b0c12f..e7f068accfd 100644
--- a/service/connect/api_op_UpdateUserIdentityInfo.go
+++ b/service/connect/api_op_UpdateUserIdentityInfo.go
@@ -72,7 +72,7 @@ func (s *UpdateUserIdentityInfoInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUserIdentityInfoInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IdentityInfo != nil {
v := s.IdentityInfo
diff --git a/service/connect/api_op_UpdateUserPhoneConfig.go b/service/connect/api_op_UpdateUserPhoneConfig.go
index 516093343ea..ede3bc9fce5 100644
--- a/service/connect/api_op_UpdateUserPhoneConfig.go
+++ b/service/connect/api_op_UpdateUserPhoneConfig.go
@@ -73,7 +73,7 @@ func (s *UpdateUserPhoneConfigInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUserPhoneConfigInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PhoneConfig != nil {
v := s.PhoneConfig
diff --git a/service/connect/api_op_UpdateUserRoutingProfile.go b/service/connect/api_op_UpdateUserRoutingProfile.go
index 8009c3502a6..bd8f50acd74 100644
--- a/service/connect/api_op_UpdateUserRoutingProfile.go
+++ b/service/connect/api_op_UpdateUserRoutingProfile.go
@@ -67,7 +67,7 @@ func (s *UpdateUserRoutingProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUserRoutingProfileInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RoutingProfileId != nil {
v := *s.RoutingProfileId
diff --git a/service/connect/api_op_UpdateUserSecurityProfiles.go b/service/connect/api_op_UpdateUserSecurityProfiles.go
index 0dfe37c9980..4397a0cf871 100644
--- a/service/connect/api_op_UpdateUserSecurityProfiles.go
+++ b/service/connect/api_op_UpdateUserSecurityProfiles.go
@@ -70,7 +70,7 @@ func (s *UpdateUserSecurityProfilesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUserSecurityProfilesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SecurityProfileIds != nil {
v := s.SecurityProfileIds
diff --git a/service/connect/api_types.go b/service/connect/api_types.go
index 15fef4f8944..bde523b11d6 100644
--- a/service/connect/api_types.go
+++ b/service/connect/api_types.go
@@ -23,13 +23,13 @@ type Credentials struct {
// A token generated with an expiration time for the session a user is logged
// in to Amazon Connect
- AccessTokenExpiration *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AccessTokenExpiration *time.Time `type:"timestamp"`
// Renews a token generated for a user to access the Amazon Connect instance.
RefreshToken *string `type:"string"`
// Renews the expiration timer for a generated token.
- RefreshTokenExpiration *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RefreshTokenExpiration *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -49,7 +49,8 @@ func (s Credentials) MarshalFields(e protocol.FieldEncoder) error {
v := *s.AccessTokenExpiration
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "AccessTokenExpiration", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "AccessTokenExpiration",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.RefreshToken != nil {
v := *s.RefreshToken
@@ -61,7 +62,8 @@ func (s Credentials) MarshalFields(e protocol.FieldEncoder) error {
v := *s.RefreshTokenExpiration
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "RefreshTokenExpiration", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "RefreshTokenExpiration",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/databasemigrationservice/api_op_CreateReplicationTask.go b/service/databasemigrationservice/api_op_CreateReplicationTask.go
index 8f2876dd17e..e8b4d76fe9c 100644
--- a/service/databasemigrationservice/api_op_CreateReplicationTask.go
+++ b/service/databasemigrationservice/api_op_CreateReplicationTask.go
@@ -32,7 +32,7 @@ type CreateReplicationTaskInput struct {
// to start. Specifying both values results in an error.
//
// Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”
- CdcStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CdcStartTime *time.Time `type:"timestamp"`
// Indicates when you want a change data capture (CDC) operation to stop. The
// value can be either server time or commit time.
diff --git a/service/databasemigrationservice/api_op_DescribeEvents.go b/service/databasemigrationservice/api_op_DescribeEvents.go
index 3ce72ac5159..3d893ec62da 100644
--- a/service/databasemigrationservice/api_op_DescribeEvents.go
+++ b/service/databasemigrationservice/api_op_DescribeEvents.go
@@ -19,7 +19,7 @@ type DescribeEventsInput struct {
Duration *int64 `type:"integer"`
// The end time for the events to be listed.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// A list of event categories for a source type that you want to subscribe to.
EventCategories []string `type:"list"`
@@ -52,7 +52,7 @@ type DescribeEventsInput struct {
SourceType SourceType `type:"string" enum:"true"`
// The start time for the events to be listed.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/databasemigrationservice/api_op_ModifyReplicationTask.go b/service/databasemigrationservice/api_op_ModifyReplicationTask.go
index 8a2fde1d3d3..75c5f9c9168 100644
--- a/service/databasemigrationservice/api_op_ModifyReplicationTask.go
+++ b/service/databasemigrationservice/api_op_ModifyReplicationTask.go
@@ -32,7 +32,7 @@ type ModifyReplicationTaskInput struct {
// to start. Specifying both values results in an error.
//
// Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”
- CdcStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CdcStartTime *time.Time `type:"timestamp"`
// Indicates when you want a change data capture (CDC) operation to stop. The
// value can be either server time or commit time.
diff --git a/service/databasemigrationservice/api_op_StartReplicationTask.go b/service/databasemigrationservice/api_op_StartReplicationTask.go
index 38aa325d705..3990a1ad4a5 100644
--- a/service/databasemigrationservice/api_op_StartReplicationTask.go
+++ b/service/databasemigrationservice/api_op_StartReplicationTask.go
@@ -32,7 +32,7 @@ type StartReplicationTaskInput struct {
// to start. Specifying both values results in an error.
//
// Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”
- CdcStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CdcStartTime *time.Time `type:"timestamp"`
// Indicates when you want a change data capture (CDC) operation to stop. The
// value can be either server time or commit time.
diff --git a/service/databasemigrationservice/api_types.go b/service/databasemigrationservice/api_types.go
index 8ccc8af80ed..18017a74beb 100644
--- a/service/databasemigrationservice/api_types.go
+++ b/service/databasemigrationservice/api_types.go
@@ -56,7 +56,7 @@ type Certificate struct {
CertificateArn *string `type:"string"`
// The date that the certificate was created.
- CertificateCreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CertificateCreationDate *time.Time `type:"timestamp"`
// The customer-assigned name of the certificate. Valid characters are A-z and
// 0-9.
@@ -80,10 +80,10 @@ type Certificate struct {
SigningAlgorithm *string `type:"string"`
// The beginning date that the certificate is valid.
- ValidFromDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ValidFromDate *time.Time `type:"timestamp"`
// The final date that the certificate is valid.
- ValidToDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ValidToDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -337,7 +337,7 @@ type Event struct {
_ struct{} `type:"structure"`
// The date of the event.
- Date *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Date *time.Time `type:"timestamp"`
// The event categories available for the specified source type.
EventCategories []string `type:"list"`
@@ -615,14 +615,14 @@ type PendingMaintenanceAction struct {
// action will be applied to the resource during its first maintenance window
// after this date. If this date is specified, any next-maintenance opt-in requests
// are ignored.
- AutoAppliedAfterDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AutoAppliedAfterDate *time.Time `type:"timestamp"`
// The effective date when the pending maintenance action will be applied to
// the resource. This date takes into account opt-in requests received from
// the ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate, and the
// ForcedApplyDate. This value is blank if an opt-in request has not been received
// and nothing has been specified as AutoAppliedAfterDate or ForcedApplyDate.
- CurrentApplyDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CurrentApplyDate *time.Time `type:"timestamp"`
// A description providing more detail about the maintenance action.
Description *string `type:"string"`
@@ -631,7 +631,7 @@ type PendingMaintenanceAction struct {
// action will be applied to the resource on this date regardless of the maintenance
// window for the resource. If this date is specified, any immediate opt-in
// requests are ignored.
- ForcedApplyDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ForcedApplyDate *time.Time `type:"timestamp"`
// Indicates the type of opt-in request that has been received for the resource.
OptInStatus *string `type:"string"`
@@ -780,7 +780,7 @@ type RefreshSchemasStatus struct {
LastFailureMessage *string `type:"string"`
// The date the schema was last refreshed.
- LastRefreshDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastRefreshDate *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the replication instance.
ReplicationInstanceArn *string `type:"string"`
@@ -817,10 +817,10 @@ type ReplicationInstance struct {
// The expiration date of the free replication instance that is part of the
// Free DMS program.
- FreeUntil *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FreeUntil *time.Time `type:"timestamp"`
// The time the replication instance was created.
- InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ InstanceCreateTime *time.Time `type:"timestamp"`
// The AWS KMS key identifier that is used to encrypt the content on the replication
// instance. If you don't specify a value for the KmsKeyId parameter, then AWS
@@ -1013,7 +1013,7 @@ type ReplicationTask struct {
ReplicationTaskArn *string `type:"string"`
// The date the replication task was created.
- ReplicationTaskCreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReplicationTaskCreationDate *time.Time `type:"timestamp"`
// The user-assigned replication task identifier or name.
//
@@ -1030,7 +1030,7 @@ type ReplicationTask struct {
ReplicationTaskSettings *string `type:"string"`
// The date the replication task is scheduled to start.
- ReplicationTaskStartDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReplicationTaskStartDate *time.Time `type:"timestamp"`
// The statistics for the task, including elapsed time, tables loaded, and table
// errors.
@@ -1079,7 +1079,7 @@ type ReplicationTaskAssessmentResult struct {
ReplicationTaskIdentifier *string `type:"string"`
// The date the task assessment was completed.
- ReplicationTaskLastAssessmentDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReplicationTaskLastAssessmentDate *time.Time `type:"timestamp"`
// The URL of the S3 object containing the task assessment results.
S3ObjectUrl *string `type:"string"`
@@ -1338,7 +1338,7 @@ type TableStatistics struct {
Inserts *int64 `type:"long"`
// The last time the table was updated.
- LastUpdateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `type:"timestamp"`
// The schema name.
SchemaName *string `type:"string"`
diff --git a/service/datapipeline/api_op_ActivatePipeline.go b/service/datapipeline/api_op_ActivatePipeline.go
index 8deb5d5f7e5..64e856d14e8 100644
--- a/service/datapipeline/api_op_ActivatePipeline.go
+++ b/service/datapipeline/api_op_ActivatePipeline.go
@@ -26,7 +26,7 @@ type ActivatePipelineInput struct {
// The date and time to resume the pipeline. By default, the pipeline resumes
// from the last completed execution.
- StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp" timestampFormat:"unix"`
+ StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/datasync/api_op_DescribeAgent.go b/service/datasync/api_op_DescribeAgent.go
index 7ccc528c9d6..8dd5a77b057 100644
--- a/service/datasync/api_op_DescribeAgent.go
+++ b/service/datasync/api_op_DescribeAgent.go
@@ -49,12 +49,12 @@ type DescribeAgentOutput struct {
AgentArn *string `type:"string"`
// The time that the agent was activated (that is, created in your account).
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
EndpointOptions *EndpointOptions `type:"structure"`
// The time that the agent last connected to DataSyc.
- LastConnectionTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastConnectionTime *time.Time `type:"timestamp"`
// The name of the agent.
Name *string `min:"1" type:"string"`
diff --git a/service/datasync/api_op_DescribeLocationEfs.go b/service/datasync/api_op_DescribeLocationEfs.go
index cd10bcd2e76..726188105bc 100644
--- a/service/datasync/api_op_DescribeLocationEfs.go
+++ b/service/datasync/api_op_DescribeLocationEfs.go
@@ -46,7 +46,7 @@ type DescribeLocationEfsOutput struct {
_ struct{} `type:"structure"`
// The time that the EFS location was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The subnet and the security group that DataSync uses to access target EFS
// file system. The subnet must have at least one mount target for that file
diff --git a/service/datasync/api_op_DescribeLocationNfs.go b/service/datasync/api_op_DescribeLocationNfs.go
index 7bf59f2c4b7..04cce40d65e 100644
--- a/service/datasync/api_op_DescribeLocationNfs.go
+++ b/service/datasync/api_op_DescribeLocationNfs.go
@@ -46,7 +46,7 @@ type DescribeLocationNfsOutput struct {
_ struct{} `type:"structure"`
// The time that the NFS location was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The Amazon resource Name (ARN) of the NFS location that was described.
LocationArn *string `type:"string"`
diff --git a/service/datasync/api_op_DescribeLocationS3.go b/service/datasync/api_op_DescribeLocationS3.go
index 25390ff6255..c869ea1f342 100644
--- a/service/datasync/api_op_DescribeLocationS3.go
+++ b/service/datasync/api_op_DescribeLocationS3.go
@@ -46,7 +46,7 @@ type DescribeLocationS3Output struct {
_ struct{} `type:"structure"`
// The time that the Amazon S3 bucket location was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the Amazon S3 bucket location.
LocationArn *string `type:"string"`
diff --git a/service/datasync/api_op_DescribeTask.go b/service/datasync/api_op_DescribeTask.go
index 3df4f3280db..32035cbd2a4 100644
--- a/service/datasync/api_op_DescribeTask.go
+++ b/service/datasync/api_op_DescribeTask.go
@@ -53,7 +53,7 @@ type DescribeTaskOutput struct {
CloudWatchLogGroupArn *string `type:"string"`
// The time that the task was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the task execution that is syncing files.
CurrentTaskExecutionArn *string `type:"string"`
diff --git a/service/datasync/api_op_DescribeTaskExecution.go b/service/datasync/api_op_DescribeTaskExecution.go
index bb242e334ac..63bdbbd4ae2 100644
--- a/service/datasync/api_op_DescribeTaskExecution.go
+++ b/service/datasync/api_op_DescribeTaskExecution.go
@@ -99,7 +99,7 @@ type DescribeTaskExecutionOutput struct {
Result *TaskExecutionResultDetail `type:"structure"`
// The time that the task execution was started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The status of the task execution.
//
diff --git a/service/dax/api_op_DescribeEvents.go b/service/dax/api_op_DescribeEvents.go
index 0c428eae941..7c5df3e6f48 100644
--- a/service/dax/api_op_DescribeEvents.go
+++ b/service/dax/api_op_DescribeEvents.go
@@ -19,7 +19,7 @@ type DescribeEventsInput struct {
// The end of the time interval for which to retrieve events, specified in ISO
// 8601 format.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The maximum number of results to include in the response. If more results
// exist than the specified MaxResults value, a token is included in the response
@@ -43,7 +43,7 @@ type DescribeEventsInput struct {
// The beginning of the time interval to retrieve events for, specified in ISO
// 8601 format.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/dax/api_types.go b/service/dax/api_types.go
index 5a4c3804441..995e629a42c 100644
--- a/service/dax/api_types.go
+++ b/service/dax/api_types.go
@@ -113,7 +113,7 @@ type Event struct {
_ struct{} `type:"structure"`
// The date and time when the event occurred.
- Date *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Date *time.Time `type:"timestamp"`
// A user-defined message associated with the event.
Message *string `type:"string"`
@@ -147,7 +147,7 @@ type Node struct {
Endpoint *Endpoint `type:"structure"`
// The date and time (in UNIX epoch format) when the node was launched.
- NodeCreateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ NodeCreateTime *time.Time `type:"timestamp"`
// A system-generated identifier for the node.
NodeId *string `type:"string"`
diff --git a/service/devicefarm/api_types.go b/service/devicefarm/api_types.go
index e5c946d332f..870cd226a7a 100644
--- a/service/devicefarm/api_types.go
+++ b/service/devicefarm/api_types.go
@@ -781,7 +781,7 @@ type Job struct {
Counters *Counters `locationName:"counters" type:"structure"`
// When the job was created.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// The device (phone or tablet).
Device *Device `locationName:"device" type:"structure"`
@@ -818,7 +818,7 @@ type Job struct {
Result ExecutionResult `locationName:"result" type:"string" enum:"true"`
// The job's start time.
- Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
+ Started *time.Time `locationName:"started" type:"timestamp"`
// The job's status.
//
@@ -844,7 +844,7 @@ type Job struct {
Status ExecutionStatus `locationName:"status" type:"string" enum:"true"`
// The job's stop time.
- Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
+ Stopped *time.Time `locationName:"stopped" type:"timestamp"`
// The job's type.
//
@@ -1061,7 +1061,7 @@ type OfferingStatus struct {
_ struct{} `type:"structure"`
// The date on which the offering is effective.
- EffectiveOn *time.Time `locationName:"effectiveOn" type:"timestamp" timestampFormat:"unix"`
+ EffectiveOn *time.Time `locationName:"effectiveOn" type:"timestamp"`
// Represents the metadata of an offering status.
Offering *Offering `locationName:"offering" type:"structure"`
@@ -1087,7 +1087,7 @@ type OfferingTransaction struct {
Cost *MonetaryAmount `locationName:"cost" type:"structure"`
// The date on which an offering transaction was created.
- CreatedOn *time.Time `locationName:"createdOn" type:"timestamp" timestampFormat:"unix"`
+ CreatedOn *time.Time `locationName:"createdOn" type:"timestamp"`
// The ID that corresponds to a device offering promotion.
OfferingPromotionId *string `locationName:"offeringPromotionId" min:"4" type:"string"`
@@ -1179,7 +1179,7 @@ type Project struct {
Arn *string `locationName:"arn" min:"32" type:"string"`
// When the project was created.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// The default number of minutes (at the project level) a test run will execute
// before it times out. Default value is 60 minutes.
@@ -1253,7 +1253,7 @@ type RemoteAccessSession struct {
ClientId *string `locationName:"clientId" type:"string"`
// The date and time the remote access session was created.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// The device (phone or tablet) used in the remote access session.
Device *Device `locationName:"device" type:"structure"`
@@ -1335,7 +1335,7 @@ type RemoteAccessSession struct {
SkipAppResign *bool `locationName:"skipAppResign" type:"boolean"`
// The date and time the remote access session was started.
- Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
+ Started *time.Time `locationName:"started" type:"timestamp"`
// The status of the remote access session. Can be any of the following:
//
@@ -1359,7 +1359,7 @@ type RemoteAccessSession struct {
Status ExecutionStatus `locationName:"status" type:"string" enum:"true"`
// The date and time the remote access session was stopped.
- Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
+ Stopped *time.Time `locationName:"stopped" type:"timestamp"`
}
// String returns the string representation
@@ -1514,7 +1514,7 @@ type Run struct {
Counters *Counters `locationName:"counters" type:"structure"`
// When the run was created.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// Output CustomerArtifactPaths object for the test run.
CustomerArtifactPaths *CustomerArtifactPaths `locationName:"customerArtifactPaths" type:"structure"`
@@ -1604,7 +1604,7 @@ type Run struct {
SkipAppResign *bool `locationName:"skipAppResign" type:"boolean"`
// The run's start time.
- Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
+ Started *time.Time `locationName:"started" type:"timestamp"`
// The run's status.
//
@@ -1630,7 +1630,7 @@ type Run struct {
Status ExecutionStatus `locationName:"status" type:"string" enum:"true"`
// The run's stop time.
- Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
+ Stopped *time.Time `locationName:"stopped" type:"timestamp"`
// The ARN of the YAML-formatted test specification for the run.
TestSpecArn *string `locationName:"testSpecArn" min:"32" type:"string"`
@@ -1976,7 +1976,7 @@ type Suite struct {
Counters *Counters `locationName:"counters" type:"structure"`
// When the suite was created.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// Represents the total (metered or unmetered) minutes used by the test suite.
DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"`
@@ -2007,7 +2007,7 @@ type Suite struct {
Result ExecutionResult `locationName:"result" type:"string" enum:"true"`
// The suite's start time.
- Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
+ Started *time.Time `locationName:"started" type:"timestamp"`
// The suite's status.
//
@@ -2033,7 +2033,7 @@ type Suite struct {
Status ExecutionStatus `locationName:"status" type:"string" enum:"true"`
// The suite's stop time.
- Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
+ Stopped *time.Time `locationName:"stopped" type:"timestamp"`
// The suite's type.
//
@@ -2143,7 +2143,7 @@ type Test struct {
Counters *Counters `locationName:"counters" type:"structure"`
// When the test was created.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// Represents the total (metered or unmetered) minutes used by the test.
DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"`
@@ -2174,7 +2174,7 @@ type Test struct {
Result ExecutionResult `locationName:"result" type:"string" enum:"true"`
// The test's start time.
- Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
+ Started *time.Time `locationName:"started" type:"timestamp"`
// The test's status.
//
@@ -2200,7 +2200,7 @@ type Test struct {
Status ExecutionStatus `locationName:"status" type:"string" enum:"true"`
// The test's stop time.
- Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
+ Stopped *time.Time `locationName:"stopped" type:"timestamp"`
// The test's type.
//
@@ -2304,7 +2304,7 @@ type Upload struct {
ContentType *string `locationName:"contentType" type:"string"`
// When the upload was created.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp"`
// A message about the upload's result.
Message *string `locationName:"message" type:"string"`
diff --git a/service/directconnect/api_op_AllocateConnectionOnInterconnect.go b/service/directconnect/api_op_AllocateConnectionOnInterconnect.go
index 5aff0bd2a37..54bce343b30 100644
--- a/service/directconnect/api_op_AllocateConnectionOnInterconnect.go
+++ b/service/directconnect/api_op_AllocateConnectionOnInterconnect.go
@@ -136,7 +136,7 @@ type AllocateConnectionOnInterconnectOutput struct {
LagId *string `locationName:"lagId" type:"string"`
// The time of the most recent call to DescribeLoa for this connection.
- LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
+ LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"`
// The location of the connection.
Location *string `locationName:"location" type:"string"`
diff --git a/service/directconnect/api_op_AllocateHostedConnection.go b/service/directconnect/api_op_AllocateHostedConnection.go
index 1c9d5e9c6c6..a45601fbda5 100644
--- a/service/directconnect/api_op_AllocateHostedConnection.go
+++ b/service/directconnect/api_op_AllocateHostedConnection.go
@@ -135,7 +135,7 @@ type AllocateHostedConnectionOutput struct {
LagId *string `locationName:"lagId" type:"string"`
// The time of the most recent call to DescribeLoa for this connection.
- LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
+ LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"`
// The location of the connection.
Location *string `locationName:"location" type:"string"`
diff --git a/service/directconnect/api_op_AssociateConnectionWithLag.go b/service/directconnect/api_op_AssociateConnectionWithLag.go
index 53e3c8b29d5..a822bc1b760 100644
--- a/service/directconnect/api_op_AssociateConnectionWithLag.go
+++ b/service/directconnect/api_op_AssociateConnectionWithLag.go
@@ -105,7 +105,7 @@ type AssociateConnectionWithLagOutput struct {
LagId *string `locationName:"lagId" type:"string"`
// The time of the most recent call to DescribeLoa for this connection.
- LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
+ LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"`
// The location of the connection.
Location *string `locationName:"location" type:"string"`
diff --git a/service/directconnect/api_op_AssociateHostedConnection.go b/service/directconnect/api_op_AssociateHostedConnection.go
index 53648d7a312..89ae5c6a038 100644
--- a/service/directconnect/api_op_AssociateHostedConnection.go
+++ b/service/directconnect/api_op_AssociateHostedConnection.go
@@ -105,7 +105,7 @@ type AssociateHostedConnectionOutput struct {
LagId *string `locationName:"lagId" type:"string"`
// The time of the most recent call to DescribeLoa for this connection.
- LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
+ LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"`
// The location of the connection.
Location *string `locationName:"location" type:"string"`
diff --git a/service/directconnect/api_op_CreateConnection.go b/service/directconnect/api_op_CreateConnection.go
index 8cb4c152543..631b185401e 100644
--- a/service/directconnect/api_op_CreateConnection.go
+++ b/service/directconnect/api_op_CreateConnection.go
@@ -117,7 +117,7 @@ type CreateConnectionOutput struct {
LagId *string `locationName:"lagId" type:"string"`
// The time of the most recent call to DescribeLoa for this connection.
- LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
+ LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"`
// The location of the connection.
Location *string `locationName:"location" type:"string"`
diff --git a/service/directconnect/api_op_CreateInterconnect.go b/service/directconnect/api_op_CreateInterconnect.go
index cf8054c8a16..ddc3f018efe 100644
--- a/service/directconnect/api_op_CreateInterconnect.go
+++ b/service/directconnect/api_op_CreateInterconnect.go
@@ -111,7 +111,7 @@ type CreateInterconnectOutput struct {
LagId *string `locationName:"lagId" type:"string"`
// The time of the most recent call to DescribeLoa for this connection.
- LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
+ LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"`
// The location of the connection.
Location *string `locationName:"location" type:"string"`
diff --git a/service/directconnect/api_op_DeleteConnection.go b/service/directconnect/api_op_DeleteConnection.go
index de89d4c2d09..4369fa19f35 100644
--- a/service/directconnect/api_op_DeleteConnection.go
+++ b/service/directconnect/api_op_DeleteConnection.go
@@ -96,7 +96,7 @@ type DeleteConnectionOutput struct {
LagId *string `locationName:"lagId" type:"string"`
// The time of the most recent call to DescribeLoa for this connection.
- LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
+ LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"`
// The location of the connection.
Location *string `locationName:"location" type:"string"`
diff --git a/service/directconnect/api_op_DisassociateConnectionFromLag.go b/service/directconnect/api_op_DisassociateConnectionFromLag.go
index 32413c84a15..4517323485e 100644
--- a/service/directconnect/api_op_DisassociateConnectionFromLag.go
+++ b/service/directconnect/api_op_DisassociateConnectionFromLag.go
@@ -105,7 +105,7 @@ type DisassociateConnectionFromLagOutput struct {
LagId *string `locationName:"lagId" type:"string"`
// The time of the most recent call to DescribeLoa for this connection.
- LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
+ LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"`
// The location of the connection.
Location *string `locationName:"location" type:"string"`
diff --git a/service/directconnect/api_types.go b/service/directconnect/api_types.go
index 48c351fff73..c700574f02b 100644
--- a/service/directconnect/api_types.go
+++ b/service/directconnect/api_types.go
@@ -152,7 +152,7 @@ type Connection struct {
LagId *string `locationName:"lagId" type:"string"`
// The time of the most recent call to DescribeLoa for this connection.
- LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
+ LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"`
// The location of the connection.
Location *string `locationName:"location" type:"string"`
@@ -404,7 +404,7 @@ type Interconnect struct {
LagId *string `locationName:"lagId" type:"string"`
// The time of the most recent call to DescribeLoa for this connection.
- LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
+ LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"`
// The location of the connection.
Location *string `locationName:"location" type:"string"`
diff --git a/service/directoryservice/api_types.go b/service/directoryservice/api_types.go
index c55285b1bf7..49a82bd3a25 100644
--- a/service/directoryservice/api_types.go
+++ b/service/directoryservice/api_types.go
@@ -228,7 +228,7 @@ type DirectoryDescription struct {
Edition DirectoryEdition `type:"string" enum:"true"`
// Specifies when the directory was created.
- LaunchTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LaunchTime *time.Time `type:"timestamp"`
// The fully qualified name of the directory.
Name *string `type:"string"`
@@ -270,7 +270,7 @@ type DirectoryDescription struct {
Stage DirectoryStage `type:"string" enum:"true"`
// The date and time that the stage was last updated.
- StageLastUpdatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StageLastUpdatedDateTime *time.Time `type:"timestamp"`
// Additional information about the directory stage.
StageReason *string `type:"string"`
@@ -410,13 +410,13 @@ type DomainController struct {
DomainControllerId *string `type:"string"`
// Specifies when the domain controller was created.
- LaunchTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LaunchTime *time.Time `type:"timestamp"`
// The status of the domain controller.
Status DomainControllerStatus `type:"string" enum:"true"`
// The date and time that the status was last updated.
- StatusLastUpdatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StatusLastUpdatedDateTime *time.Time `type:"timestamp"`
// A description of the domain controller state.
StatusReason *string `type:"string"`
@@ -439,7 +439,7 @@ type EventTopic struct {
_ struct{} `type:"structure"`
// The date and time of when you associated your directory with the SNS topic.
- CreatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDateTime *time.Time `type:"timestamp"`
// The Directory ID of an AWS Directory Service directory that will publish
// status messages to an SNS topic.
@@ -486,7 +486,7 @@ type IpRouteInfo struct {
_ struct{} `type:"structure"`
// The date and time the address block was added to the directory.
- AddedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AddedDateTime *time.Time `type:"timestamp"`
// IP address block in the IpRoute.
CidrIp *string `type:"string"`
@@ -523,7 +523,7 @@ type LogSubscription struct {
LogGroupName *string `min:"1" type:"string"`
// The date and time that the log subscription was created.
- SubscriptionCreatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubscriptionCreatedDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -636,7 +636,7 @@ type SchemaExtensionInfo struct {
DirectoryId *string `type:"string"`
// The date and time that the schema extension was completed.
- EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndDateTime *time.Time `type:"timestamp"`
// The identifier of the schema extension.
SchemaExtensionId *string `type:"string"`
@@ -649,7 +649,7 @@ type SchemaExtensionInfo struct {
// The date and time that the schema extension started being applied to the
// directory.
- StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -705,10 +705,10 @@ type SharedDirectory struct {
_ struct{} `type:"structure"`
// The date and time that the shared directory was created.
- CreatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDateTime *time.Time `type:"timestamp"`
// The date and time that the shared directory was last updated.
- LastUpdatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDateTime *time.Time `type:"timestamp"`
// Identifier of the directory owner account, which contains the directory that
// has been shared to the consumer account.
@@ -759,7 +759,7 @@ type Snapshot struct {
SnapshotId *string `type:"string"`
// The date and time that the snapshot was taken.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The snapshot status.
Status SnapshotStatus `type:"string" enum:"true"`
@@ -846,13 +846,13 @@ type Trust struct {
_ struct{} `type:"structure"`
// The date and time that the trust relationship was created.
- CreatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDateTime *time.Time `type:"timestamp"`
// The Directory ID of the AWS directory involved in the trust relationship.
DirectoryId *string `type:"string"`
// The date and time that the trust relationship was last updated.
- LastUpdatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDateTime *time.Time `type:"timestamp"`
// The Fully Qualified Domain Name (FQDN) of the external domain involved in
// the trust relationship.
@@ -862,7 +862,7 @@ type Trust struct {
SelectiveAuth SelectiveAuth `type:"string" enum:"true"`
// The date and time that the TrustState was last updated.
- StateLastUpdatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StateLastUpdatedDateTime *time.Time `type:"timestamp"`
// The trust relationship direction.
TrustDirection TrustDirection `type:"string" enum:"true"`
diff --git a/service/dlm/api_op_CreateLifecyclePolicy.go b/service/dlm/api_op_CreateLifecyclePolicy.go
index b3669a2db26..5958efc7838 100644
--- a/service/dlm/api_op_CreateLifecyclePolicy.go
+++ b/service/dlm/api_op_CreateLifecyclePolicy.go
@@ -76,7 +76,7 @@ func (s *CreateLifecyclePolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateLifecyclePolicyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/dlm/api_op_DeleteLifecyclePolicy.go b/service/dlm/api_op_DeleteLifecyclePolicy.go
index e49c68c8430..f428c2efbde 100644
--- a/service/dlm/api_op_DeleteLifecyclePolicy.go
+++ b/service/dlm/api_op_DeleteLifecyclePolicy.go
@@ -41,7 +41,7 @@ func (s *DeleteLifecyclePolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteLifecyclePolicyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyId != nil {
v := *s.PolicyId
diff --git a/service/dlm/api_op_GetLifecyclePolicies.go b/service/dlm/api_op_GetLifecyclePolicies.go
index 8d0f6505061..607e12d20b1 100644
--- a/service/dlm/api_op_GetLifecyclePolicies.go
+++ b/service/dlm/api_op_GetLifecyclePolicies.go
@@ -60,7 +60,7 @@ func (s *GetLifecyclePoliciesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetLifecyclePoliciesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyIds != nil {
v := s.PolicyIds
diff --git a/service/dlm/api_op_GetLifecyclePolicy.go b/service/dlm/api_op_GetLifecyclePolicy.go
index a4c5457e5a1..d4bc2efbfa0 100644
--- a/service/dlm/api_op_GetLifecyclePolicy.go
+++ b/service/dlm/api_op_GetLifecyclePolicy.go
@@ -41,7 +41,7 @@ func (s *GetLifecyclePolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetLifecyclePolicyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyId != nil {
v := *s.PolicyId
diff --git a/service/dlm/api_op_UpdateLifecyclePolicy.go b/service/dlm/api_op_UpdateLifecyclePolicy.go
index 727520667ea..75b9e0c979e 100644
--- a/service/dlm/api_op_UpdateLifecyclePolicy.go
+++ b/service/dlm/api_op_UpdateLifecyclePolicy.go
@@ -61,7 +61,7 @@ func (s *UpdateLifecyclePolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateLifecyclePolicyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/dlm/api_types.go b/service/dlm/api_types.go
index 11448197484..39bd31a1a4b 100644
--- a/service/dlm/api_types.go
+++ b/service/dlm/api_types.go
@@ -95,10 +95,10 @@ type LifecyclePolicy struct {
_ struct{} `type:"structure"`
// The local date and time when the lifecycle policy was created.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The local date and time when the lifecycle policy was last modified.
- DateModified *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DateModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The description of the lifecycle policy.
Description *string `type:"string"`
@@ -128,13 +128,15 @@ func (s LifecyclePolicy) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DateCreated
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DateCreated", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DateCreated",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.DateModified != nil {
v := *s.DateModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "DateModified", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "DateModified",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/docdb/api_op_DescribeEvents.go b/service/docdb/api_op_DescribeEvents.go
index ac15aee0648..a0b32f5e8dd 100644
--- a/service/docdb/api_op_DescribeEvents.go
+++ b/service/docdb/api_op_DescribeEvents.go
@@ -25,7 +25,7 @@ type DescribeEventsInput struct {
// 8601 format.
//
// Example: 2009-07-08T18:00Z
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// A list of event categories that trigger notifications for an event notification
// subscription.
@@ -76,7 +76,7 @@ type DescribeEventsInput struct {
// 8601 format.
//
// Example: 2009-07-08T18:00Z
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/docdb/api_op_RestoreDBClusterToPointInTime.go b/service/docdb/api_op_RestoreDBClusterToPointInTime.go
index 1059616f722..ffc983858ee 100644
--- a/service/docdb/api_op_RestoreDBClusterToPointInTime.go
+++ b/service/docdb/api_op_RestoreDBClusterToPointInTime.go
@@ -88,7 +88,7 @@ type RestoreDBClusterToPointInTimeInput struct {
// * Cannot be specified if the RestoreType parameter is copy-on-write.
//
// Example: 2015-03-07T23:45:00Z
- RestoreToTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ RestoreToTime *time.Time `type:"timestamp"`
// The identifier of the source DB cluster from which to restore.
//
diff --git a/service/docdb/api_types.go b/service/docdb/api_types.go
index 0a191d146b7..2cd51820363 100644
--- a/service/docdb/api_types.go
+++ b/service/docdb/api_types.go
@@ -68,7 +68,7 @@ type DBCluster struct {
// Specifies the time when the DB cluster was created, in Universal Coordinated
// Time (UTC).
- ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ClusterCreateTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) for the DB cluster.
DBClusterArn *string `type:"string"`
@@ -94,7 +94,7 @@ type DBCluster struct {
// The earliest time to which a database can be restored with point-in-time
// restore.
- EarliestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EarliestRestorableTime *time.Time `type:"timestamp"`
// A list of log types that this DB cluster is configured to export to Amazon
// CloudWatch Logs.
@@ -118,7 +118,7 @@ type DBCluster struct {
// Specifies the latest time to which a database can be restored with point-in-time
// restore.
- LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LatestRestorableTime *time.Time `type:"timestamp"`
// Contains the master user name for the DB cluster.
MasterUsername *string `type:"string"`
@@ -262,7 +262,7 @@ type DBClusterSnapshot struct {
// Specifies the time when the DB cluster was created, in Universal Coordinated
// Time (UTC).
- ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ClusterCreateTime *time.Time `type:"timestamp"`
// Specifies the DB cluster identifier of the DB cluster that this DB cluster
// snapshot was created from.
@@ -295,7 +295,7 @@ type DBClusterSnapshot struct {
Port *int64 `type:"integer"`
// Provides the time when the snapshot was taken, in UTC.
- SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ SnapshotCreateTime *time.Time `type:"timestamp"`
// Provides the type of the DB cluster snapshot.
SnapshotType *string `type:"string"`
@@ -460,7 +460,7 @@ type DBInstance struct {
EngineVersion *string `type:"string"`
// Provides the date and time that the DB instance was created.
- InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ InstanceCreateTime *time.Time `type:"timestamp"`
// If StorageEncrypted is true, the AWS KMS key identifier for the encrypted
// DB instance.
@@ -468,7 +468,7 @@ type DBInstance struct {
// Specifies the latest time to which a database can be restored with point-in-time
// restore.
- LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LatestRestorableTime *time.Time `type:"timestamp"`
// Specifies that changes to the DB instance are pending. This element is included
// only when changes are pending. Specific changes are identified by subelements.
@@ -616,7 +616,7 @@ type Event struct {
_ struct{} `type:"structure"`
// Specifies the date and time of the event.
- Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Date *time.Time `type:"timestamp"`
// Specifies the category for the event.
EventCategories []string `locationNameList:"EventCategory" type:"list"`
@@ -803,11 +803,11 @@ type PendingMaintenanceAction struct {
// action is applied to the resource during its first maintenance window after
// this date. If this date is specified, any next-maintenance opt-in requests
// are ignored.
- AutoAppliedAfterDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ AutoAppliedAfterDate *time.Time `type:"timestamp"`
// The effective date when the pending maintenance action is applied to the
// resource.
- CurrentApplyDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CurrentApplyDate *time.Time `type:"timestamp"`
// A description providing more detail about the maintenance action.
Description *string `type:"string"`
@@ -816,7 +816,7 @@ type PendingMaintenanceAction struct {
// action is applied to the resource on this date regardless of the maintenance
// window for the resource. If this date is specified, any immediate opt-in
// requests are ignored.
- ForcedApplyDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ForcedApplyDate *time.Time `type:"timestamp"`
// Indicates the type of opt-in request that has been received for the resource.
OptInStatus *string `type:"string"`
diff --git a/service/dynamodb/api_op_ListBackups.go b/service/dynamodb/api_op_ListBackups.go
index 7bcb7b5bfd4..3524d08ed06 100644
--- a/service/dynamodb/api_op_ListBackups.go
+++ b/service/dynamodb/api_op_ListBackups.go
@@ -38,11 +38,11 @@ type ListBackupsInput struct {
TableName *string `min:"3" type:"string"`
// Only backups created after this time are listed. TimeRangeLowerBound is inclusive.
- TimeRangeLowerBound *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TimeRangeLowerBound *time.Time `type:"timestamp"`
// Only backups created before this time are listed. TimeRangeUpperBound is
// exclusive.
- TimeRangeUpperBound *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TimeRangeUpperBound *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/dynamodb/api_op_RestoreTableToPointInTime.go b/service/dynamodb/api_op_RestoreTableToPointInTime.go
index 4fbd10c1d86..19799249ae4 100644
--- a/service/dynamodb/api_op_RestoreTableToPointInTime.go
+++ b/service/dynamodb/api_op_RestoreTableToPointInTime.go
@@ -15,7 +15,7 @@ type RestoreTableToPointInTimeInput struct {
_ struct{} `type:"structure"`
// Time in the past to restore the table to.
- RestoreDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RestoreDateTime *time.Time `type:"timestamp"`
// Name of the source table that is being restored.
//
diff --git a/service/dynamodb/api_types.go b/service/dynamodb/api_types.go
index 1c38b9ff86e..421c7008316 100644
--- a/service/dynamodb/api_types.go
+++ b/service/dynamodb/api_types.go
@@ -490,11 +490,11 @@ type BackupDetails struct {
// Time at which the backup was created. This is the request time of the backup.
//
// BackupCreationDateTime is a required field
- BackupCreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ BackupCreationDateTime *time.Time `type:"timestamp" required:"true"`
// Time at which the automatic on-demand backup created by DynamoDB will expire.
// This SYSTEM on-demand backup expires automatically 35 days after its creation.
- BackupExpiryDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ BackupExpiryDateTime *time.Time `type:"timestamp"`
// Name of the requested backup.
//
@@ -538,11 +538,11 @@ type BackupSummary struct {
BackupArn *string `min:"37" type:"string"`
// Time at which the backup was created.
- BackupCreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ BackupCreationDateTime *time.Time `type:"timestamp"`
// Time at which the automatic on-demand backup created by DynamoDB will expire.
// This SYSTEM on-demand backup expires automatically 35 days after its creation.
- BackupExpiryDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ BackupExpiryDateTime *time.Time `type:"timestamp"`
// Name of the specified backup.
BackupName *string `min:"3" type:"string"`
@@ -597,7 +597,7 @@ type BillingModeSummary struct {
// Represents the time when PAY_PER_REQUEST was last set as the read/write capacity
// mode.
- LastUpdateToPayPerRequestDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdateToPayPerRequestDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1754,7 +1754,7 @@ type GlobalTableDescription struct {
_ struct{} `type:"structure"`
// The creation time of the global table.
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDateTime *time.Time `type:"timestamp"`
// The unique identifier of the global table.
GlobalTableArn *string `type:"string"`
@@ -2216,10 +2216,10 @@ type PointInTimeRecoveryDescription struct {
// Specifies the earliest point in time you can restore your table to. It You
// can restore your table to any point in time during the last 35 days.
- EarliestRestorableDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EarliestRestorableDateTime *time.Time `type:"timestamp"`
// LatestRestorableDateTime is typically 5 minutes before the current time.
- LatestRestorableDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LatestRestorableDateTime *time.Time `type:"timestamp"`
// The current state of point in time recovery:
//
@@ -2378,10 +2378,10 @@ type ProvisionedThroughputDescription struct {
_ struct{} `type:"structure"`
// The date and time of the last provisioned throughput decrease for this table.
- LastDecreaseDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastDecreaseDateTime *time.Time `type:"timestamp"`
// The date and time of the last provisioned throughput increase for this table.
- LastIncreaseDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastIncreaseDateTime *time.Time `type:"timestamp"`
// The number of provisioned throughput decreases for this table during this
// UTC calendar day. For current maximums on provisioned throughput decreases,
@@ -2772,7 +2772,7 @@ type RestoreSummary struct {
// Point in time or source backup time.
//
// RestoreDateTime is a required field
- RestoreDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ RestoreDateTime *time.Time `type:"timestamp" required:"true"`
// Indicates if a restore is in progress or not.
//
@@ -2893,7 +2893,7 @@ type SourceTableDetails struct {
// Time when the source table was created.
//
// TableCreationDateTime is a required field
- TableCreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ TableCreationDateTime *time.Time `type:"timestamp" required:"true"`
// Unique identifier for the table for which the backup was created.
//
@@ -2998,7 +2998,7 @@ type TableDescription struct {
// The date and time when the table was created, in UNIX epoch time (http://www.epochconverter.com/)
// format.
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDateTime *time.Time `type:"timestamp"`
// The global secondary indexes, if any, on the table. Each index is scoped
// to a given partition key value. Each element is composed of:
diff --git a/service/dynamodbstreams/api_types.go b/service/dynamodbstreams/api_types.go
index 726dc43e21f..82bd48cdc6b 100644
--- a/service/dynamodbstreams/api_types.go
+++ b/service/dynamodbstreams/api_types.go
@@ -243,7 +243,7 @@ type StreamDescription struct {
_ struct{} `type:"structure"`
// The date and time when the request to create this stream was issued.
- CreationRequestDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationRequestDateTime *time.Time `type:"timestamp"`
// The key attribute(s) of the stream's DynamoDB table.
KeySchema []dynamodb.KeySchemaElement `min:"1" type:"list"`
@@ -323,7 +323,7 @@ type StreamRecord struct {
// The approximate date and time when the stream record was created, in UNIX
// epoch time (http://www.epochconverter.com/) format.
- ApproximateCreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ApproximateCreationDateTime *time.Time `type:"timestamp"`
// The primary key attribute(s) for the DynamoDB item that was modified.
Keys map[string]dynamodb.AttributeValue `type:"map"`
diff --git a/service/ec2/api_op_AttachVolume.go b/service/ec2/api_op_AttachVolume.go
index 5e387a5d8a8..4303ad240e7 100644
--- a/service/ec2/api_op_AttachVolume.go
+++ b/service/ec2/api_op_AttachVolume.go
@@ -71,7 +71,7 @@ type AttachVolumeOutput struct {
_ struct{} `type:"structure"`
// The time stamp when the attachment initiated.
- AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
+ AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
// Indicates whether the EBS volume is deleted on instance termination.
DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
diff --git a/service/ec2/api_op_CreateCapacityReservation.go b/service/ec2/api_op_CreateCapacityReservation.go
index 16ef4e386aa..892d24a037b 100644
--- a/service/ec2/api_op_CreateCapacityReservation.go
+++ b/service/ec2/api_op_CreateCapacityReservation.go
@@ -50,7 +50,7 @@ type CreateCapacityReservationInput struct {
// an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55,
// the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55
// on 5/31/2019.
- EndDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndDate *time.Time `type:"timestamp"`
// Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
// can have one of the following end types:
diff --git a/service/ec2/api_op_CreateFleet.go b/service/ec2/api_op_CreateFleet.go
index e3aefa1fae1..796496a972b 100644
--- a/service/ec2/api_op_CreateFleet.go
+++ b/service/ec2/api_op_CreateFleet.go
@@ -72,12 +72,12 @@ type CreateFleetInput struct {
// The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
// The default is to start fulfilling the request immediately.
- ValidFrom *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ValidFrom *time.Time `type:"timestamp"`
// The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
// At this point, no new EC2 Fleet requests are placed or able to fulfill the
// request. If no value is specified, the request remains until you cancel it.
- ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ValidUntil *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/ec2/api_op_CreateSnapshot.go b/service/ec2/api_op_CreateSnapshot.go
index 466912f7c20..b4d1fbbea96 100644
--- a/service/ec2/api_op_CreateSnapshot.go
+++ b/service/ec2/api_op_CreateSnapshot.go
@@ -92,7 +92,7 @@ type CreateSnapshotOutput struct {
SnapshotId *string `locationName:"snapshotId" type:"string"`
// The time stamp when the snapshot was initiated.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// The snapshot state.
State SnapshotState `locationName:"status" type:"string" enum:"true"`
diff --git a/service/ec2/api_op_CreateVolume.go b/service/ec2/api_op_CreateVolume.go
index 24a5e3d2ba9..d25ef143c3a 100644
--- a/service/ec2/api_op_CreateVolume.go
+++ b/service/ec2/api_op_CreateVolume.go
@@ -140,7 +140,7 @@ type CreateVolumeOutput struct {
AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
// The time stamp when volume creation was initiated.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// Indicates whether the volume will be encrypted.
Encrypted *bool `locationName:"encrypted" type:"boolean"`
diff --git a/service/ec2/api_op_DescribeFleetHistory.go b/service/ec2/api_op_DescribeFleetHistory.go
index f76b72f3e20..6b6e74569d5 100644
--- a/service/ec2/api_op_DescribeFleetHistory.go
+++ b/service/ec2/api_op_DescribeFleetHistory.go
@@ -39,7 +39,7 @@ type DescribeFleetHistoryInput struct {
// The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -79,13 +79,13 @@ type DescribeFleetHistoryOutput struct {
// All records up to this time were retrieved.
//
// If nextToken indicates that there are more results, this value is not present.
- LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp" timestampFormat:"iso8601"`
+ LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp"`
// The token for the next set of results.
NextToken *string `locationName:"nextToken" type:"string"`
// The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/ec2/api_op_DescribeSpotFleetRequestHistory.go b/service/ec2/api_op_DescribeSpotFleetRequestHistory.go
index eab435630f0..1cde138c194 100644
--- a/service/ec2/api_op_DescribeSpotFleetRequestHistory.go
+++ b/service/ec2/api_op_DescribeSpotFleetRequestHistory.go
@@ -40,7 +40,7 @@ type DescribeSpotFleetRequestHistoryInput struct {
// The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
//
// StartTime is a required field
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -78,7 +78,7 @@ type DescribeSpotFleetRequestHistoryOutput struct {
// All records up to this time were retrieved.
//
// If nextToken indicates that there are more results, this value is not present.
- LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp" timestampFormat:"iso8601"`
+ LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp"`
// The token required to retrieve the next set of results. This value is null
// when there are no more results to return.
@@ -88,7 +88,7 @@ type DescribeSpotFleetRequestHistoryOutput struct {
SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
// The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/ec2/api_op_DescribeSpotPriceHistory.go b/service/ec2/api_op_DescribeSpotPriceHistory.go
index 76289d40463..6438c6d755a 100644
--- a/service/ec2/api_op_DescribeSpotPriceHistory.go
+++ b/service/ec2/api_op_DescribeSpotPriceHistory.go
@@ -26,7 +26,7 @@ type DescribeSpotPriceHistoryInput struct {
// The date and time, up to the current date, from which to stop retrieving
// the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// One or more filters.
//
@@ -63,7 +63,7 @@ type DescribeSpotPriceHistoryInput struct {
// The date and time, up to the past 90 days, from which to start retrieving
// the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/ec2/api_op_DetachVolume.go b/service/ec2/api_op_DetachVolume.go
index b9da35f83c5..36909afd543 100644
--- a/service/ec2/api_op_DetachVolume.go
+++ b/service/ec2/api_op_DetachVolume.go
@@ -67,7 +67,7 @@ type DetachVolumeOutput struct {
_ struct{} `type:"structure"`
// The time stamp when the attachment initiated.
- AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
+ AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
// Indicates whether the EBS volume is deleted on instance termination.
DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
diff --git a/service/ec2/api_op_GetConsoleOutput.go b/service/ec2/api_op_GetConsoleOutput.go
index 6cfed924d8b..2703ff90a8d 100644
--- a/service/ec2/api_op_GetConsoleOutput.go
+++ b/service/ec2/api_op_GetConsoleOutput.go
@@ -62,7 +62,7 @@ type GetConsoleOutputOutput struct {
Output *string `locationName:"output" type:"string"`
// The time at which the output was last updated.
- Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/ec2/api_op_GetPasswordData.go b/service/ec2/api_op_GetPasswordData.go
index 34d06a8d4be..7184705c4ae 100644
--- a/service/ec2/api_op_GetPasswordData.go
+++ b/service/ec2/api_op_GetPasswordData.go
@@ -57,7 +57,7 @@ type GetPasswordDataOutput struct {
PasswordData *string `locationName:"passwordData" type:"string"`
// The time the data was last updated.
- Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/ec2/api_op_GetReservedInstancesExchangeQuote.go b/service/ec2/api_op_GetReservedInstancesExchangeQuote.go
index 91fe41c649e..4dfca43a6b2 100644
--- a/service/ec2/api_op_GetReservedInstancesExchangeQuote.go
+++ b/service/ec2/api_op_GetReservedInstancesExchangeQuote.go
@@ -70,7 +70,7 @@ type GetReservedInstancesExchangeQuoteOutput struct {
IsValidExchange *bool `locationName:"isValidExchange" type:"boolean"`
// The new end date of the reservation term.
- OutputReservedInstancesWillExpireAt *time.Time `locationName:"outputReservedInstancesWillExpireAt" type:"timestamp" timestampFormat:"iso8601"`
+ OutputReservedInstancesWillExpireAt *time.Time `locationName:"outputReservedInstancesWillExpireAt" type:"timestamp"`
// The total true upfront charge for the exchange.
PaymentDue *string `locationName:"paymentDue" type:"string"`
diff --git a/service/ec2/api_op_ModifyCapacityReservation.go b/service/ec2/api_op_ModifyCapacityReservation.go
index 030e0ae6f67..f0348d76255 100644
--- a/service/ec2/api_op_ModifyCapacityReservation.go
+++ b/service/ec2/api_op_ModifyCapacityReservation.go
@@ -36,7 +36,7 @@ type ModifyCapacityReservationInput struct {
//
// You must provide an EndDate value if EndDateType is limited. Omit EndDate
// if EndDateType is unlimited.
- EndDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndDate *time.Time `type:"timestamp"`
// Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
// can have one of the following end types:
diff --git a/service/ec2/api_op_ModifyInstanceEventStartTime.go b/service/ec2/api_op_ModifyInstanceEventStartTime.go
index d788298e9ce..5a12bc41d1c 100644
--- a/service/ec2/api_op_ModifyInstanceEventStartTime.go
+++ b/service/ec2/api_op_ModifyInstanceEventStartTime.go
@@ -33,7 +33,7 @@ type ModifyInstanceEventStartTimeInput struct {
// The new date and time when the event will take place.
//
// NotBefore is a required field
- NotBefore *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ NotBefore *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/ec2/api_op_ReportInstanceStatus.go b/service/ec2/api_op_ReportInstanceStatus.go
index 429ef17b519..89656c2aa15 100644
--- a/service/ec2/api_op_ReportInstanceStatus.go
+++ b/service/ec2/api_op_ReportInstanceStatus.go
@@ -26,7 +26,7 @@ type ReportInstanceStatusInput struct {
DryRun *bool `locationName:"dryRun" type:"boolean"`
// The time at which the reported instance health state ended.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The instances.
//
@@ -60,7 +60,7 @@ type ReportInstanceStatusInput struct {
ReasonCodes []ReportInstanceReasonCodes `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"`
// The time at which the reported instance health state began.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// The status of all instances listed.
//
diff --git a/service/ec2/api_op_RequestSpotInstances.go b/service/ec2/api_op_RequestSpotInstances.go
index 8cadcd3b3cf..26cbc799b18 100644
--- a/service/ec2/api_op_RequestSpotInstances.go
+++ b/service/ec2/api_op_RequestSpotInstances.go
@@ -91,14 +91,14 @@ type RequestSpotInstancesInput struct {
// launch, the request expires, or the request is canceled. If the request is
// persistent, the request becomes active at this date and time and remains
// active until it expires or is canceled.
- ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
+ ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
// The end date of the request. If this is a one-time request, the request remains
// active until all instances launch, the request is canceled, or this date
// is reached. If the request is persistent, it remains active until it is canceled
// or this date is reached. The default end date is 7 days from the current
// date.
- ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
+ ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/ec2/api_types.go b/service/ec2/api_types.go
index 30b74908b00..b131f948525 100644
--- a/service/ec2/api_types.go
+++ b/service/ec2/api_types.go
@@ -348,7 +348,7 @@ type BundleTask struct {
Progress *string `locationName:"progress" type:"string"`
// The time this task started.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// The state of the task.
State BundleTaskState `locationName:"state" type:"string" enum:"true"`
@@ -357,7 +357,7 @@ type BundleTask struct {
Storage *Storage `locationName:"storage" type:"structure"`
// The time of the most recent update for the task.
- UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
+ UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
}
// String returns the string representation
@@ -494,7 +494,7 @@ type CapacityReservation struct {
CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`
// The date and time at which the Capacity Reservation was created.
- CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
// Indicates whether the Capacity Reservation supports EBS-optimized instances.
// This optimization provides dedicated throughput to Amazon EBS and an optimized
@@ -507,7 +507,7 @@ type CapacityReservation struct {
// Reservation expires, the reserved capacity is released and you can no longer
// launch instances into it. The Capacity Reservation's state changes to expired
// when it reaches its end date and time.
- EndDate *time.Time `locationName:"endDate" type:"timestamp" timestampFormat:"iso8601"`
+ EndDate *time.Time `locationName:"endDate" type:"timestamp"`
// Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
// can have one of the following end types:
@@ -1207,13 +1207,13 @@ type Data struct {
Comment *string `type:"string"`
// The time that the disk upload ends.
- UploadEnd *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ UploadEnd *time.Time `type:"timestamp"`
// The size of the uploaded disk image, in GiB.
UploadSize *float64 `type:"double"`
// The time that the disk upload starts.
- UploadStart *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ UploadStart *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1705,7 +1705,7 @@ type EbsInstanceBlockDevice struct {
_ struct{} `type:"structure"`
// The time stamp when the attachment initiated.
- AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
+ AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
// Indicates whether the volume is deleted on instance termination.
DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
@@ -1915,7 +1915,7 @@ type ElasticInferenceAcceleratorAssociation struct {
// The time at which the elastic inference accelerator is associated with an
// instance.
- ElasticInferenceAcceleratorAssociationTime *time.Time `locationName:"elasticInferenceAcceleratorAssociationTime" type:"timestamp" timestampFormat:"iso8601"`
+ ElasticInferenceAcceleratorAssociationTime *time.Time `locationName:"elasticInferenceAcceleratorAssociationTime" type:"timestamp"`
}
// String returns the string representation
@@ -2146,7 +2146,7 @@ type FleetData struct {
ClientToken *string `locationName:"clientToken" type:"string"`
// The creation date and time of the EC2 Fleet.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// Information about the instances that could not be launched by the fleet.
// Valid only when Type is set to instant.
@@ -2212,12 +2212,12 @@ type FleetData struct {
// The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
// The default is to start fulfilling the request immediately.
- ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
+ ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
// The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
// At this point, no new instance requests are placed or able to fulfill the
// request. The default end date is 7 days from the current date.
- ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
+ ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
}
// String returns the string representation
@@ -2426,7 +2426,7 @@ type FlowLog struct {
_ struct{} `type:"structure"`
// The date and time the flow log was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// Information about the error that occurred. Rate limited indicates that CloudWatch
// Logs throttling has been applied for one or more network interfaces, or that
@@ -2481,7 +2481,7 @@ type FpgaImage struct {
_ struct{} `type:"structure"`
// The date and time the AFI was created.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// Indicates whether data retention support is enabled for the AFI.
DataRetentionSupport *bool `locationName:"dataRetentionSupport" type:"boolean"`
@@ -2523,7 +2523,7 @@ type FpgaImage struct {
Tags []Tag `locationName:"tags" locationNameList:"item" type:"list"`
// The time of the most recent update to the AFI.
- UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
+ UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
}
// String returns the string representation
@@ -2660,7 +2660,7 @@ type HistoryRecord struct {
EventType EventType `locationName:"eventType" type:"string" enum:"true"`
// The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
}
// String returns the string representation
@@ -2680,7 +2680,7 @@ type HistoryRecordEntry struct {
EventType FleetEventType `locationName:"eventType" type:"string" enum:"true"`
// The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
}
// String returns the string representation
@@ -2694,7 +2694,7 @@ type Host struct {
_ struct{} `type:"structure"`
// The time that the Dedicated Host was allocated.
- AllocationTime *time.Time `locationName:"allocationTime" type:"timestamp" timestampFormat:"iso8601"`
+ AllocationTime *time.Time `locationName:"allocationTime" type:"timestamp"`
// Whether auto-placement is on or off.
AutoPlacement AutoPlacement `locationName:"autoPlacement" type:"string" enum:"true"`
@@ -2724,7 +2724,7 @@ type Host struct {
Instances []HostInstance `locationName:"instances" locationNameList:"item" type:"list"`
// The time that the Dedicated Host was released.
- ReleaseTime *time.Time `locationName:"releaseTime" type:"timestamp" timestampFormat:"iso8601"`
+ ReleaseTime *time.Time `locationName:"releaseTime" type:"timestamp"`
// The Dedicated Host's state.
State AllocationState `locationName:"state" type:"string" enum:"true"`
@@ -2827,7 +2827,7 @@ type HostReservation struct {
Duration *int64 `locationName:"duration" type:"integer"`
// The date and time that the reservation ends.
- End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"iso8601"`
+ End *time.Time `locationName:"end" type:"timestamp"`
// The IDs of the Dedicated Hosts associated with the reservation.
HostIdSet []string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
@@ -2851,7 +2851,7 @@ type HostReservation struct {
PaymentOption PaymentOption `locationName:"paymentOption" type:"string" enum:"true"`
// The date and time that the reservation started.
- Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
+ Start *time.Time `locationName:"start" type:"timestamp"`
// The state of the reservation.
State ReservationState `locationName:"state" type:"string" enum:"true"`
@@ -2903,7 +2903,7 @@ type IamInstanceProfileAssociation struct {
State IamInstanceProfileAssociationState `locationName:"state" type:"string" enum:"true"`
// The time the IAM instance profile was associated with the instance.
- Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
}
// String returns the string representation
@@ -2953,7 +2953,7 @@ type IdFormat struct {
// The date in UTC at which you are permanently switched over to using longer
// IDs. If a deadline is not yet available for this resource type, this field
// is not returned.
- Deadline *time.Time `locationName:"deadline" type:"timestamp" timestampFormat:"iso8601"`
+ Deadline *time.Time `locationName:"deadline" type:"timestamp"`
// The type of resource.
Resource *string `locationName:"resource" type:"string"`
@@ -3365,7 +3365,7 @@ type Instance struct {
KeyName *string `locationName:"keyName" type:"string"`
// The time the instance was launched.
- LaunchTime *time.Time `locationName:"launchTime" type:"timestamp" timestampFormat:"iso8601"`
+ LaunchTime *time.Time `locationName:"launchTime" type:"timestamp"`
// The license configurations.
Licenses []LicenseConfiguration `locationName:"licenseSet" locationNameList:"item" type:"list"`
@@ -3743,7 +3743,7 @@ type InstanceNetworkInterfaceAttachment struct {
_ struct{} `type:"structure"`
// The time stamp when the attachment initiated.
- AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
+ AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
// The ID of the network interface attachment.
AttachmentId *string `locationName:"attachmentId" type:"string"`
@@ -3976,7 +3976,7 @@ type InstanceStatusDetails struct {
// The time when a status check failed. For an instance that was launched and
// impaired, this is the time when the instance was launched.
- ImpairedSince *time.Time `locationName:"impairedSince" type:"timestamp" timestampFormat:"iso8601"`
+ ImpairedSince *time.Time `locationName:"impairedSince" type:"timestamp"`
// The type of instance status.
Name StatusName `locationName:"name" type:"string" enum:"true"`
@@ -4009,13 +4009,13 @@ type InstanceStatusEvent struct {
InstanceEventId *string `locationName:"instanceEventId" type:"string"`
// The latest scheduled end time for the event.
- NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"iso8601"`
+ NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`
// The earliest scheduled start time for the event.
- NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"`
+ NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`
// The deadline for starting the event.
- NotBeforeDeadline *time.Time `locationName:"notBeforeDeadline" type:"timestamp" timestampFormat:"iso8601"`
+ NotBeforeDeadline *time.Time `locationName:"notBeforeDeadline" type:"timestamp"`
}
// String returns the string representation
@@ -4312,7 +4312,7 @@ type LaunchTemplate struct {
_ struct{} `type:"structure"`
// The time launch template was created.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// The principal that created the launch template.
CreatedBy *string `locationName:"createdBy" type:"string"`
@@ -5029,7 +5029,7 @@ type LaunchTemplateSpotMarketOptions struct {
// active until all instances launch, the request is canceled, or this date
// is reached. If the request is persistent, it remains active until it is canceled
// or this date and time is reached.
- ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
+ ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
}
// String returns the string representation
@@ -5061,7 +5061,7 @@ type LaunchTemplateSpotMarketOptionsRequest struct {
// is reached. If the request is persistent, it remains active until it is canceled
// or this date and time is reached. The default end date is 7 days from the
// current date.
- ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ValidUntil *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -5111,7 +5111,7 @@ type LaunchTemplateVersion struct {
_ struct{} `type:"structure"`
// The time the version was created.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// The principal that created the version.
CreatedBy *string `locationName:"createdBy" type:"string"`
@@ -5343,10 +5343,10 @@ type NatGateway struct {
_ struct{} `type:"structure"`
// The date and time the NAT gateway was created.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// The date and time the NAT gateway was deleted, if applicable.
- DeleteTime *time.Time `locationName:"deleteTime" type:"timestamp" timestampFormat:"iso8601"`
+ DeleteTime *time.Time `locationName:"deleteTime" type:"timestamp"`
// If the NAT gateway could not be created, specifies the error code for the
// failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound
@@ -5639,7 +5639,7 @@ type NetworkInterfaceAttachment struct {
_ struct{} `type:"structure"`
// The timestamp indicating when the attachment initiated.
- AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
+ AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
// The ID of the network interface attachment.
AttachmentId *string `locationName:"attachmentId" type:"string"`
@@ -6197,7 +6197,7 @@ type ProvisionedBandwidth struct {
// Reserved. If you need to sustain traffic greater than the documented limits
// (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
// contact us through the Support Center (https://console.aws.amazon.com/support/home?).
- ProvisionTime *time.Time `locationName:"provisionTime" type:"timestamp" timestampFormat:"iso8601"`
+ ProvisionTime *time.Time `locationName:"provisionTime" type:"timestamp"`
// Reserved. If you need to sustain traffic greater than the documented limits
// (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
@@ -6207,7 +6207,7 @@ type ProvisionedBandwidth struct {
// Reserved. If you need to sustain traffic greater than the documented limits
// (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
// contact us through the Support Center (https://console.aws.amazon.com/support/home?).
- RequestTime *time.Time `locationName:"requestTime" type:"timestamp" timestampFormat:"iso8601"`
+ RequestTime *time.Time `locationName:"requestTime" type:"timestamp"`
// Reserved. If you need to sustain traffic greater than the documented limits
// (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
@@ -6740,7 +6740,7 @@ type ReservedInstances struct {
Duration *int64 `locationName:"duration" type:"long"`
// The time when the Reserved Instance expires.
- End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"iso8601"`
+ End *time.Time `locationName:"end" type:"timestamp"`
// The purchase price of the Reserved Instance.
FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
@@ -6773,7 +6773,7 @@ type ReservedInstances struct {
Scope Scope `locationName:"scope" type:"string" enum:"true"`
// The date and time the Reserved Instance started.
- Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
+ Start *time.Time `locationName:"start" type:"timestamp"`
// The state of the Reserved Instance purchase.
State ReservedInstanceState `locationName:"state" type:"string" enum:"true"`
@@ -6844,7 +6844,7 @@ type ReservedInstancesListing struct {
ClientToken *string `locationName:"clientToken" type:"string"`
// The time the listing was created.
- CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
// The number of instances in this state.
InstanceCounts []InstanceCount `locationName:"instanceCounts" locationNameList:"item" type:"list"`
@@ -6869,7 +6869,7 @@ type ReservedInstancesListing struct {
Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
// The last modified timestamp of the listing.
- UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"`
+ UpdateDate *time.Time `locationName:"updateDate" type:"timestamp"`
}
// String returns the string representation
@@ -6887,10 +6887,10 @@ type ReservedInstancesModification struct {
ClientToken *string `locationName:"clientToken" type:"string"`
// The time when the modification request was created.
- CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
// The time for the modification to become effective.
- EffectiveDate *time.Time `locationName:"effectiveDate" type:"timestamp" timestampFormat:"iso8601"`
+ EffectiveDate *time.Time `locationName:"effectiveDate" type:"timestamp"`
// Contains target configurations along with their corresponding new Reserved
// Instance IDs.
@@ -6909,7 +6909,7 @@ type ReservedInstancesModification struct {
StatusMessage *string `locationName:"statusMessage" type:"string"`
// The time when the modification request was last updated.
- UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"`
+ UpdateDate *time.Time `locationName:"updateDate" type:"timestamp"`
}
// String returns the string representation
@@ -7298,7 +7298,7 @@ type ScheduledInstance struct {
AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
// The date when the Scheduled Instance was purchased.
- CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
// The hourly price for a single instance.
HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
@@ -7313,13 +7313,13 @@ type ScheduledInstance struct {
NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
// The time for the next schedule to start.
- NextSlotStartTime *time.Time `locationName:"nextSlotStartTime" type:"timestamp" timestampFormat:"iso8601"`
+ NextSlotStartTime *time.Time `locationName:"nextSlotStartTime" type:"timestamp"`
// The platform (Linux/UNIX or Windows).
Platform *string `locationName:"platform" type:"string"`
// The time that the previous schedule ended or will end.
- PreviousSlotEndTime *time.Time `locationName:"previousSlotEndTime" type:"timestamp" timestampFormat:"iso8601"`
+ PreviousSlotEndTime *time.Time `locationName:"previousSlotEndTime" type:"timestamp"`
// The schedule recurrence.
Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
@@ -7331,10 +7331,10 @@ type ScheduledInstance struct {
SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
// The end date for the Scheduled Instance.
- TermEndDate *time.Time `locationName:"termEndDate" type:"timestamp" timestampFormat:"iso8601"`
+ TermEndDate *time.Time `locationName:"termEndDate" type:"timestamp"`
// The start date for the Scheduled Instance.
- TermStartDate *time.Time `locationName:"termStartDate" type:"timestamp" timestampFormat:"iso8601"`
+ TermStartDate *time.Time `locationName:"termStartDate" type:"timestamp"`
// The total number of hours for a single instance for the entire term.
TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
@@ -7357,7 +7357,7 @@ type ScheduledInstanceAvailability struct {
AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`
// The time period for the first schedule to start.
- FirstSlotStartTime *time.Time `locationName:"firstSlotStartTime" type:"timestamp" timestampFormat:"iso8601"`
+ FirstSlotStartTime *time.Time `locationName:"firstSlotStartTime" type:"timestamp"`
// The hourly price for a single instance.
HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
@@ -7939,14 +7939,14 @@ type SlotDateTimeRangeRequest struct {
// The earliest date and time, in UTC, for the Scheduled Instance to start.
//
// EarliestTime is a required field
- EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ EarliestTime *time.Time `type:"timestamp" required:"true"`
// The latest date and time, in UTC, for the Scheduled Instance to start. This
// value must be later than or equal to the earliest date and at most three
// months in the future.
//
// LatestTime is a required field
- LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LatestTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -7978,10 +7978,10 @@ type SlotStartTimeRangeRequest struct {
_ struct{} `type:"structure"`
// The earliest date and time, in UTC, for the Scheduled Instance to start.
- EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EarliestTime *time.Time `type:"timestamp"`
// The latest date and time, in UTC, for the Scheduled Instance to start.
- LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LatestTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -8029,7 +8029,7 @@ type Snapshot struct {
SnapshotId *string `locationName:"snapshotId" type:"string"`
// The time stamp when the snapshot was initiated.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// The snapshot state.
State SnapshotState `locationName:"status" type:"string" enum:"true"`
@@ -8318,7 +8318,7 @@ type SpotFleetRequestConfig struct {
ActivityStatus ActivityStatus `locationName:"activityStatus" type:"string" enum:"true"`
// The creation date and time of the request.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// The configuration of the Spot Fleet request.
SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure"`
@@ -8449,13 +8449,13 @@ type SpotFleetRequestConfigData struct {
// The start date and time of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
// By default, Amazon EC2 starts fulfilling the request immediately.
- ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
+ ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
// The end date and time of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
// After the end date and time, no new Spot Instance requests are placed or
// able to fulfill the request. If no value is specified, the Spot Fleet request
// remains until you cancel it.
- ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
+ ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
}
// String returns the string representation
@@ -8530,7 +8530,7 @@ type SpotInstanceRequest struct {
// The date and time when the Spot Instance request was created, in UTC format
// (for example, YYYY-MM-DDTHH:MM:SSZ).
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// The fault codes for the Spot Instance request, if any.
Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
@@ -8577,14 +8577,14 @@ type SpotInstanceRequest struct {
// The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
// The request becomes active at this date and time.
- ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
+ ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
// The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
// If this is a one-time request, it remains active until all instances launch,
// the request is canceled, or this date is reached. If the request is persistent,
// it remains active until it is canceled or this date is reached. The default
// end date is 7 days from the current date.
- ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
+ ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
}
// String returns the string representation
@@ -8623,7 +8623,7 @@ type SpotInstanceStatus struct {
// The date and time of the most recent status update, in UTC format (for example,
// YYYY-MM-DDTHH:MM:SSZ).
- UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
+ UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
}
// String returns the string representation
@@ -8658,7 +8658,7 @@ type SpotMarketOptions struct {
// is reached. If the request is persistent, it remains active until it is canceled
// or this date and time is reached. The default end date is 7 days from the
// current date.
- ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ValidUntil *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -8782,7 +8782,7 @@ type SpotPrice struct {
SpotPrice *string `locationName:"spotPrice" type:"string"`
// The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
}
// String returns the string representation
@@ -9351,7 +9351,7 @@ type TransitGateway struct {
_ struct{} `type:"structure"`
// The creation time.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The description of the transit gateway.
Description *string `locationName:"description" type:"string"`
@@ -9416,7 +9416,7 @@ type TransitGatewayAttachment struct {
Association *TransitGatewayAttachmentAssociation `locationName:"association" type:"structure"`
// The creation time.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The ID of the resource.
ResourceId *string `locationName:"resourceId" type:"string"`
@@ -9630,7 +9630,7 @@ type TransitGatewayRouteTable struct {
_ struct{} `type:"structure"`
// The creation time.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// Indicates whether this is the default association route table for the transit
// gateway.
@@ -9710,7 +9710,7 @@ type TransitGatewayVpcAttachment struct {
_ struct{} `type:"structure"`
// The creation time.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The VPC attachment options.
Options *TransitGatewayVpcAttachmentOptions `locationName:"options" type:"structure"`
@@ -9938,7 +9938,7 @@ type VgwTelemetry struct {
AcceptedRouteCount *int64 `locationName:"acceptedRouteCount" type:"integer"`
// The date and time of the last change in status.
- LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"iso8601"`
+ LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp"`
// The Internet-routable IP address of the virtual private gateway's outside
// interface.
@@ -9968,7 +9968,7 @@ type Volume struct {
AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
// The time stamp when volume creation was initiated.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
+ CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
// Indicates whether the volume will be encrypted.
Encrypted *bool `locationName:"encrypted" type:"boolean"`
@@ -10026,7 +10026,7 @@ type VolumeAttachment struct {
_ struct{} `type:"structure"`
// The time stamp when the attachment initiated.
- AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
+ AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
// Indicates whether the EBS volume is deleted on instance termination.
DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
@@ -10087,7 +10087,7 @@ type VolumeModification struct {
_ struct{} `type:"structure"`
// The modification completion or failure time.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The current modification state. The modification state is null for unmodified
// volumes.
@@ -10106,7 +10106,7 @@ type VolumeModification struct {
Progress *int64 `locationName:"progress" type:"long"`
// The modification start time.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// A status message about the modification progress or failure.
StatusMessage *string `locationName:"statusMessage" type:"string"`
@@ -10184,10 +10184,10 @@ type VolumeStatusEvent struct {
EventType *string `locationName:"eventType" type:"string"`
// The latest end time of the event.
- NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"iso8601"`
+ NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`
// The earliest start time of the event.
- NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"`
+ NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`
}
// String returns the string representation
@@ -10360,7 +10360,7 @@ type VpcEndpoint struct {
_ struct{} `type:"structure"`
// The date and time the VPC endpoint was created.
- CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp" timestampFormat:"iso8601"`
+ CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp"`
// (Interface endpoint) The DNS entries for the endpoint.
DnsEntries []DnsEntry `locationName:"dnsEntrySet" locationNameList:"item" type:"list"`
@@ -10418,7 +10418,7 @@ type VpcEndpointConnection struct {
_ struct{} `type:"structure"`
// The date and time the VPC endpoint was created.
- CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp" timestampFormat:"iso8601"`
+ CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp"`
// The ID of the service to which the endpoint is connected.
ServiceId *string `locationName:"serviceId" type:"string"`
@@ -10468,7 +10468,7 @@ type VpcPeeringConnection struct {
AccepterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"accepterVpcInfo" type:"structure"`
// The time that an unaccepted VPC peering connection will expire.
- ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp" timestampFormat:"iso8601"`
+ ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp"`
// Information about the requester VPC. CIDR block information is only returned
// when describing an active VPC peering connection.
diff --git a/service/ecr/api_op_DeleteLifecyclePolicy.go b/service/ecr/api_op_DeleteLifecyclePolicy.go
index cf4fb224781..a8cff4809be 100644
--- a/service/ecr/api_op_DeleteLifecyclePolicy.go
+++ b/service/ecr/api_op_DeleteLifecyclePolicy.go
@@ -51,7 +51,7 @@ type DeleteLifecyclePolicyOutput struct {
_ struct{} `type:"structure"`
// The time stamp of the last time that the lifecycle policy was run.
- LastEvaluatedAt *time.Time `locationName:"lastEvaluatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastEvaluatedAt *time.Time `locationName:"lastEvaluatedAt" type:"timestamp"`
// The JSON lifecycle policy text.
LifecyclePolicyText *string `locationName:"lifecyclePolicyText" min:"100" type:"string"`
diff --git a/service/ecr/api_op_GetLifecyclePolicy.go b/service/ecr/api_op_GetLifecyclePolicy.go
index 086d347f5b7..be3dac41875 100644
--- a/service/ecr/api_op_GetLifecyclePolicy.go
+++ b/service/ecr/api_op_GetLifecyclePolicy.go
@@ -51,7 +51,7 @@ type GetLifecyclePolicyOutput struct {
_ struct{} `type:"structure"`
// The time stamp of the last time that the lifecycle policy was run.
- LastEvaluatedAt *time.Time `locationName:"lastEvaluatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastEvaluatedAt *time.Time `locationName:"lastEvaluatedAt" type:"timestamp"`
// The JSON lifecycle policy text.
LifecyclePolicyText *string `locationName:"lifecyclePolicyText" min:"100" type:"string"`
diff --git a/service/ecr/api_types.go b/service/ecr/api_types.go
index 7a4a052566a..184598fab56 100644
--- a/service/ecr/api_types.go
+++ b/service/ecr/api_types.go
@@ -24,7 +24,7 @@ type AuthorizationData struct {
// The Unix time in seconds and milliseconds when the authorization token expires.
// Authorization tokens are valid for 12 hours.
- ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp" timestampFormat:"unix"`
+ ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp"`
// The registry URL to use for this authorization token in a docker login command.
// The Amazon ECR registry URL format is https://aws_account_id.dkr.ecr.region.amazonaws.com.
@@ -85,7 +85,7 @@ type ImageDetail struct {
// The date and time, expressed in standard JavaScript date format, at which
// the current image was pushed to the repository.
- ImagePushedAt *time.Time `locationName:"imagePushedAt" type:"timestamp" timestampFormat:"unix"`
+ ImagePushedAt *time.Time `locationName:"imagePushedAt" type:"timestamp"`
// The size, in bytes, of the image in the repository.
//
@@ -221,7 +221,7 @@ type LifecyclePolicyPreviewResult struct {
// The date and time, expressed in standard JavaScript date format, at which
// the current image was pushed to the repository.
- ImagePushedAt *time.Time `locationName:"imagePushedAt" type:"timestamp" timestampFormat:"unix"`
+ ImagePushedAt *time.Time `locationName:"imagePushedAt" type:"timestamp"`
// The list of tags associated with this image.
ImageTags []string `locationName:"imageTags" type:"list"`
@@ -281,7 +281,7 @@ type Repository struct {
_ struct{} `type:"structure"`
// The date and time, in JavaScript date format, when the repository was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The AWS account ID associated with the registry that contains the repository.
RegistryId *string `locationName:"registryId" type:"string"`
diff --git a/service/ecs/api_op_SubmitTaskStateChange.go b/service/ecs/api_op_SubmitTaskStateChange.go
index 1d1d9b56f43..43304741cd5 100644
--- a/service/ecs/api_op_SubmitTaskStateChange.go
+++ b/service/ecs/api_op_SubmitTaskStateChange.go
@@ -26,13 +26,13 @@ type SubmitTaskStateChangeInput struct {
Containers []ContainerStateChange `locationName:"containers" type:"list"`
// The Unix timestamp for when the task execution stopped.
- ExecutionStoppedAt *time.Time `locationName:"executionStoppedAt" type:"timestamp" timestampFormat:"unix"`
+ ExecutionStoppedAt *time.Time `locationName:"executionStoppedAt" type:"timestamp"`
// The Unix timestamp for when the container image pull began.
- PullStartedAt *time.Time `locationName:"pullStartedAt" type:"timestamp" timestampFormat:"unix"`
+ PullStartedAt *time.Time `locationName:"pullStartedAt" type:"timestamp"`
// The Unix timestamp for when the container image pull completed.
- PullStoppedAt *time.Time `locationName:"pullStoppedAt" type:"timestamp" timestampFormat:"unix"`
+ PullStoppedAt *time.Time `locationName:"pullStoppedAt" type:"timestamp"`
// The reason for the state change request.
Reason *string `locationName:"reason" type:"string"`
diff --git a/service/ecs/api_types.go b/service/ecs/api_types.go
index 4802ea10d50..60689459698 100644
--- a/service/ecs/api_types.go
+++ b/service/ecs/api_types.go
@@ -1014,7 +1014,7 @@ type ContainerInstance struct {
PendingTasksCount *int64 `locationName:"pendingTasksCount" type:"integer"`
// The Unix timestamp for when the container instance was registered.
- RegisteredAt *time.Time `locationName:"registeredAt" type:"timestamp" timestampFormat:"unix"`
+ RegisteredAt *time.Time `locationName:"registeredAt" type:"timestamp"`
// For CPU and memory resource types, this parameter describes the amount of
// each resource that was available on the container instance when the container
@@ -1167,7 +1167,7 @@ type Deployment struct {
_ struct{} `type:"structure"`
// The Unix timestamp for when the service deployment was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The most recent desired count of tasks that was specified for the service
// to deploy or maintain.
@@ -1219,7 +1219,7 @@ type Deployment struct {
TaskDefinition *string `locationName:"taskDefinition" type:"string"`
// The Unix timestamp for when the service deployment was last updated.
- UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"unix"`
+ UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp"`
}
// String returns the string representation
@@ -2393,7 +2393,7 @@ type Service struct {
ClusterArn *string `locationName:"clusterArn" type:"string"`
// The Unix timestamp for when the service was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The principal that created the service.
CreatedBy *string `locationName:"createdBy" type:"string"`
@@ -2539,7 +2539,7 @@ type ServiceEvent struct {
_ struct{} `type:"structure"`
// The Unix timestamp for when the event was triggered.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The ID string of the event.
Id *string `locationName:"id" type:"string"`
@@ -2700,7 +2700,7 @@ type Task struct {
Connectivity Connectivity `locationName:"connectivity" type:"string" enum:"true"`
// The Unix timestamp for when the task last went into CONNECTED status.
- ConnectivityAt *time.Time `locationName:"connectivityAt" type:"timestamp" timestampFormat:"unix"`
+ ConnectivityAt *time.Time `locationName:"connectivityAt" type:"timestamp"`
// The ARN of the container instances that host the task.
ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"`
@@ -2739,14 +2739,14 @@ type Task struct {
// The Unix timestamp for when the task was created (the task entered the PENDING
// state).
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The desired status of the task. For more information, see Task Lifecycle
// (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_life_cycle.html).
DesiredStatus *string `locationName:"desiredStatus" type:"string"`
// The Unix timestamp for when the task execution stopped.
- ExecutionStoppedAt *time.Time `locationName:"executionStoppedAt" type:"timestamp" timestampFormat:"unix"`
+ ExecutionStoppedAt *time.Time `locationName:"executionStoppedAt" type:"timestamp"`
// The name of the task group associated with the task.
Group *string `locationName:"group" type:"string"`
@@ -2812,14 +2812,14 @@ type Task struct {
PlatformVersion *string `locationName:"platformVersion" type:"string"`
// The Unix timestamp for when the container image pull began.
- PullStartedAt *time.Time `locationName:"pullStartedAt" type:"timestamp" timestampFormat:"unix"`
+ PullStartedAt *time.Time `locationName:"pullStartedAt" type:"timestamp"`
// The Unix timestamp for when the container image pull completed.
- PullStoppedAt *time.Time `locationName:"pullStoppedAt" type:"timestamp" timestampFormat:"unix"`
+ PullStoppedAt *time.Time `locationName:"pullStoppedAt" type:"timestamp"`
// The Unix timestamp for when the task started (the task transitioned from
// the PENDING state to the RUNNING state).
- StartedAt *time.Time `locationName:"startedAt" type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `locationName:"startedAt" type:"timestamp"`
// The tag specified when a task is started. If the task is started by an Amazon
// ECS service, then the startedBy parameter contains the deployment ID of the
@@ -2832,14 +2832,14 @@ type Task struct {
// The Unix timestamp for when the task was stopped (the task transitioned from
// the RUNNING state to the STOPPED state).
- StoppedAt *time.Time `locationName:"stoppedAt" type:"timestamp" timestampFormat:"unix"`
+ StoppedAt *time.Time `locationName:"stoppedAt" type:"timestamp"`
// The reason that the task was stopped.
StoppedReason *string `locationName:"stoppedReason" type:"string"`
// The Unix timestamp for when the task stops (transitions from the RUNNING
// state to STOPPED).
- StoppingAt *time.Time `locationName:"stoppingAt" type:"timestamp" timestampFormat:"unix"`
+ StoppingAt *time.Time `locationName:"stoppingAt" type:"timestamp"`
// The metadata that you apply to the task to help you categorize and organize
// them. Each tag consists of a key and an optional value, both of which you
@@ -3166,7 +3166,7 @@ type TaskSet struct {
ComputedDesiredCount *int64 `locationName:"computedDesiredCount" type:"integer"`
// The Unix timestamp for when the task set was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The external ID associated with the task set.
//
@@ -3237,7 +3237,7 @@ type TaskSet struct {
StabilityStatus StabilityStatus `locationName:"stabilityStatus" type:"string" enum:"true"`
// The Unix timestamp for when the task set stability status was retrieved.
- StabilityStatusAt *time.Time `locationName:"stabilityStatusAt" type:"timestamp" timestampFormat:"unix"`
+ StabilityStatusAt *time.Time `locationName:"stabilityStatusAt" type:"timestamp"`
// The tag specified when a task set is started. If the task set is created
// by an AWS CodeDeploy deployment, the startedBy parameter is CODE_DEPLOY.
@@ -3268,7 +3268,7 @@ type TaskSet struct {
TaskSetArn *string `locationName:"taskSetArn" type:"string"`
// The Unix timestamp for when the task set was last updated.
- UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"unix"`
+ UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/efs/api_op_CreateFileSystem.go b/service/efs/api_op_CreateFileSystem.go
index f87a3dee38e..0120a7a7365 100644
--- a/service/efs/api_op_CreateFileSystem.go
+++ b/service/efs/api_op_CreateFileSystem.go
@@ -115,6 +115,7 @@ func (s *CreateFileSystemInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFileSystemInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CreationToken != nil {
v := *s.CreationToken
@@ -175,7 +176,7 @@ type CreateFileSystemOutput struct {
// The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z).
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The opaque string specified in the request.
//
@@ -267,7 +268,8 @@ func (s CreateFileSystemOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreationToken != nil {
v := *s.CreationToken
diff --git a/service/efs/api_op_CreateMountTarget.go b/service/efs/api_op_CreateMountTarget.go
index ed68eec6145..bca5a44b750 100644
--- a/service/efs/api_op_CreateMountTarget.go
+++ b/service/efs/api_op_CreateMountTarget.go
@@ -57,6 +57,7 @@ func (s *CreateMountTargetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateMountTargetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FileSystemId != nil {
v := *s.FileSystemId
diff --git a/service/efs/api_op_CreateTags.go b/service/efs/api_op_CreateTags.go
index 928a4c49d7b..02d64113fb6 100644
--- a/service/efs/api_op_CreateTags.go
+++ b/service/efs/api_op_CreateTags.go
@@ -60,6 +60,7 @@ func (s *CreateTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateTagsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/efs/api_op_DeleteFileSystem.go b/service/efs/api_op_DeleteFileSystem.go
index 767d8130abc..1487d23a6cf 100644
--- a/service/efs/api_op_DeleteFileSystem.go
+++ b/service/efs/api_op_DeleteFileSystem.go
@@ -42,6 +42,7 @@ func (s *DeleteFileSystemInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFileSystemInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FileSystemId != nil {
v := *s.FileSystemId
diff --git a/service/efs/api_op_DeleteMountTarget.go b/service/efs/api_op_DeleteMountTarget.go
index cc5f2409595..46a718509e1 100644
--- a/service/efs/api_op_DeleteMountTarget.go
+++ b/service/efs/api_op_DeleteMountTarget.go
@@ -42,6 +42,7 @@ func (s *DeleteMountTargetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteMountTargetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MountTargetId != nil {
v := *s.MountTargetId
diff --git a/service/efs/api_op_DeleteTags.go b/service/efs/api_op_DeleteTags.go
index b92465c5594..40b7f5404e4 100644
--- a/service/efs/api_op_DeleteTags.go
+++ b/service/efs/api_op_DeleteTags.go
@@ -51,6 +51,7 @@ func (s *DeleteTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteTagsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TagKeys != nil {
v := s.TagKeys
diff --git a/service/efs/api_op_DescribeFileSystems.go b/service/efs/api_op_DescribeFileSystems.go
index a3671dff65a..fbf5ed7a0df 100644
--- a/service/efs/api_op_DescribeFileSystems.go
+++ b/service/efs/api_op_DescribeFileSystems.go
@@ -57,6 +57,7 @@ func (s *DescribeFileSystemsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeFileSystemsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CreationToken != nil {
v := *s.CreationToken
diff --git a/service/efs/api_op_DescribeLifecycleConfiguration.go b/service/efs/api_op_DescribeLifecycleConfiguration.go
index 209ef52cab8..8237f3d43bb 100644
--- a/service/efs/api_op_DescribeLifecycleConfiguration.go
+++ b/service/efs/api_op_DescribeLifecycleConfiguration.go
@@ -42,6 +42,7 @@ func (s *DescribeLifecycleConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeLifecycleConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FileSystemId != nil {
v := *s.FileSystemId
diff --git a/service/efs/api_op_DescribeMountTargetSecurityGroups.go b/service/efs/api_op_DescribeMountTargetSecurityGroups.go
index f895fd7755f..7e85f94040f 100644
--- a/service/efs/api_op_DescribeMountTargetSecurityGroups.go
+++ b/service/efs/api_op_DescribeMountTargetSecurityGroups.go
@@ -41,6 +41,7 @@ func (s *DescribeMountTargetSecurityGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeMountTargetSecurityGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MountTargetId != nil {
v := *s.MountTargetId
diff --git a/service/efs/api_op_DescribeMountTargets.go b/service/efs/api_op_DescribeMountTargets.go
index ce2d1bd09e1..4273f9190b8 100644
--- a/service/efs/api_op_DescribeMountTargets.go
+++ b/service/efs/api_op_DescribeMountTargets.go
@@ -53,6 +53,7 @@ func (s *DescribeMountTargetsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeMountTargetsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FileSystemId != nil {
v := *s.FileSystemId
diff --git a/service/efs/api_op_DescribeTags.go b/service/efs/api_op_DescribeTags.go
index 4bf2e1e70b8..97e786ee966 100644
--- a/service/efs/api_op_DescribeTags.go
+++ b/service/efs/api_op_DescribeTags.go
@@ -54,6 +54,7 @@ func (s *DescribeTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeTagsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FileSystemId != nil {
v := *s.FileSystemId
diff --git a/service/efs/api_op_ModifyMountTargetSecurityGroups.go b/service/efs/api_op_ModifyMountTargetSecurityGroups.go
index d6ecfa074a3..1545e165b8c 100644
--- a/service/efs/api_op_ModifyMountTargetSecurityGroups.go
+++ b/service/efs/api_op_ModifyMountTargetSecurityGroups.go
@@ -45,6 +45,7 @@ func (s *ModifyMountTargetSecurityGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ModifyMountTargetSecurityGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SecurityGroups != nil {
v := s.SecurityGroups
diff --git a/service/efs/api_op_PutLifecycleConfiguration.go b/service/efs/api_op_PutLifecycleConfiguration.go
index 66ba724fc0c..0d386d66767 100644
--- a/service/efs/api_op_PutLifecycleConfiguration.go
+++ b/service/efs/api_op_PutLifecycleConfiguration.go
@@ -54,6 +54,7 @@ func (s *PutLifecycleConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutLifecycleConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LifecyclePolicies != nil {
v := s.LifecyclePolicies
diff --git a/service/efs/api_op_UpdateFileSystem.go b/service/efs/api_op_UpdateFileSystem.go
index 583f18759ac..b1a7b896e32 100644
--- a/service/efs/api_op_UpdateFileSystem.go
+++ b/service/efs/api_op_UpdateFileSystem.go
@@ -58,6 +58,7 @@ func (s *UpdateFileSystemInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFileSystemInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProvisionedThroughputInMibps != nil {
v := *s.ProvisionedThroughputInMibps
@@ -88,7 +89,7 @@ type UpdateFileSystemOutput struct {
// The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z).
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The opaque string specified in the request.
//
@@ -180,7 +181,8 @@ func (s UpdateFileSystemOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreationToken != nil {
v := *s.CreationToken
diff --git a/service/efs/api_types.go b/service/efs/api_types.go
index 03e49501fb3..fa8021fc42a 100644
--- a/service/efs/api_types.go
+++ b/service/efs/api_types.go
@@ -21,7 +21,7 @@ type FileSystemDescription struct {
// The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z).
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The opaque string specified in the request.
//
@@ -113,7 +113,8 @@ func (s FileSystemDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreationToken != nil {
v := *s.CreationToken
@@ -216,7 +217,7 @@ type FileSystemSize struct {
// The time at which the size of data, returned in the Value field, was determined.
// The value is the integer number of seconds since 1970-01-01T00:00:00Z.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `type:"timestamp"`
// The latest known metered size (in bytes) of data stored in the file system.
//
@@ -243,7 +244,8 @@ func (s FileSystemSize) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Timestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Timestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "Timestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Value != nil {
v := *s.Value
diff --git a/service/eks/api_op_CreateCluster.go b/service/eks/api_op_CreateCluster.go
index abd5890c92b..df1a854746b 100644
--- a/service/eks/api_op_CreateCluster.go
+++ b/service/eks/api_op_CreateCluster.go
@@ -90,7 +90,7 @@ func (s *CreateClusterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateClusterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientRequestToken string
if s.ClientRequestToken != nil {
diff --git a/service/eks/api_op_DeleteCluster.go b/service/eks/api_op_DeleteCluster.go
index da08572887f..8512841304b 100644
--- a/service/eks/api_op_DeleteCluster.go
+++ b/service/eks/api_op_DeleteCluster.go
@@ -41,7 +41,7 @@ func (s *DeleteClusterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteClusterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/eks/api_op_DescribeCluster.go b/service/eks/api_op_DescribeCluster.go
index c6a3464c078..3d0359f4a26 100644
--- a/service/eks/api_op_DescribeCluster.go
+++ b/service/eks/api_op_DescribeCluster.go
@@ -41,7 +41,7 @@ func (s *DescribeClusterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeClusterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/eks/api_op_DescribeUpdate.go b/service/eks/api_op_DescribeUpdate.go
index 35c05ca4b5b..612fbf4afb1 100644
--- a/service/eks/api_op_DescribeUpdate.go
+++ b/service/eks/api_op_DescribeUpdate.go
@@ -50,7 +50,7 @@ func (s *DescribeUpdateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeUpdateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/eks/api_op_ListClusters.go b/service/eks/api_op_ListClusters.go
index 3c17c691881..436643157c0 100644
--- a/service/eks/api_op_ListClusters.go
+++ b/service/eks/api_op_ListClusters.go
@@ -53,7 +53,7 @@ func (s *ListClustersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListClustersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/eks/api_op_ListUpdates.go b/service/eks/api_op_ListUpdates.go
index 6864e2a0a84..5f0e5d4e06d 100644
--- a/service/eks/api_op_ListUpdates.go
+++ b/service/eks/api_op_ListUpdates.go
@@ -59,7 +59,7 @@ func (s *ListUpdatesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListUpdatesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/eks/api_op_UpdateClusterConfig.go b/service/eks/api_op_UpdateClusterConfig.go
index d958cd01387..7f1518ed2d7 100644
--- a/service/eks/api_op_UpdateClusterConfig.go
+++ b/service/eks/api_op_UpdateClusterConfig.go
@@ -59,7 +59,7 @@ func (s *UpdateClusterConfigInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateClusterConfigInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientRequestToken string
if s.ClientRequestToken != nil {
diff --git a/service/eks/api_op_UpdateClusterVersion.go b/service/eks/api_op_UpdateClusterVersion.go
index 8b0fccaa38f..88a939b43f8 100644
--- a/service/eks/api_op_UpdateClusterVersion.go
+++ b/service/eks/api_op_UpdateClusterVersion.go
@@ -54,7 +54,7 @@ func (s *UpdateClusterVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateClusterVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientRequestToken string
if s.ClientRequestToken != nil {
diff --git a/service/eks/api_types.go b/service/eks/api_types.go
index 957edccff10..7867ce2e170 100644
--- a/service/eks/api_types.go
+++ b/service/eks/api_types.go
@@ -56,7 +56,7 @@ type Cluster struct {
ClientRequestToken *string `locationName:"clientRequestToken" type:"string"`
// The Unix epoch timestamp in seconds for when the cluster was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The endpoint for your Kubernetes API server.
Endpoint *string `locationName:"endpoint" type:"string"`
@@ -120,7 +120,8 @@ func (s Cluster) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Endpoint != nil {
v := *s.Endpoint
@@ -322,7 +323,7 @@ type Update struct {
_ struct{} `type:"structure"`
// The Unix epoch timestamp in seconds for when the update was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// Any errors associated with a Failed update.
Errors []ErrorDetail `locationName:"errors" type:"list"`
@@ -351,7 +352,8 @@ func (s Update) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Errors != nil {
v := s.Errors
diff --git a/service/elasticache/api_op_DescribeEvents.go b/service/elasticache/api_op_DescribeEvents.go
index a078bb5676a..03fcd5522eb 100644
--- a/service/elasticache/api_op_DescribeEvents.go
+++ b/service/elasticache/api_op_DescribeEvents.go
@@ -22,7 +22,7 @@ type DescribeEventsInput struct {
// 8601 format.
//
// Example: 2017-03-30T07:03:49.555Z
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
@@ -50,7 +50,7 @@ type DescribeEventsInput struct {
// 8601 format.
//
// Example: 2017-03-30T07:03:49.555Z
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/elasticache/api_types.go b/service/elasticache/api_types.go
index 81b492f200d..f76fdd962f2 100644
--- a/service/elasticache/api_types.go
+++ b/service/elasticache/api_types.go
@@ -52,7 +52,7 @@ type CacheCluster struct {
AutoMinorVersionUpgrade *bool `type:"boolean"`
// The date and time when the cluster was created.
- CacheClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CacheClusterCreateTime *time.Time `type:"timestamp"`
// The user-supplied identifier of the cluster. This identifier is a unique
// key that identifies a cluster.
@@ -296,7 +296,7 @@ type CacheNode struct {
_ struct{} `type:"structure"`
// The date and time when the cache node was created.
- CacheNodeCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CacheNodeCreateTime *time.Time `type:"timestamp"`
// The cache node identifier. A node ID is a numeric identifier (0001, 0002,
// etc.). The combination of cluster ID and node ID uniquely identifies every
@@ -645,7 +645,7 @@ type Event struct {
_ struct{} `type:"structure"`
// The date and time when the event occurred.
- Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Date *time.Time `type:"timestamp"`
// The text of the event.
Message *string `type:"string"`
@@ -782,7 +782,7 @@ type NodeSnapshot struct {
CacheClusterId *string `type:"string"`
// The date and time when the cache node was created in the source cluster.
- CacheNodeCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CacheNodeCreateTime *time.Time `type:"timestamp"`
// The cache node identifier for the node in the source cluster.
CacheNodeId *string `type:"string"`
@@ -798,7 +798,7 @@ type NodeSnapshot struct {
// The date and time when the source node's metadata and cache data set was
// obtained for the snapshot.
- SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ SnapshotCreateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1158,7 +1158,7 @@ type ReservedCacheNode struct {
ReservedCacheNodesOfferingId *string `type:"string"`
// The time the reservation started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
// The state of the reserved cache node.
State *string `type:"string"`
@@ -1350,7 +1350,7 @@ type Snapshot struct {
AutomaticFailover AutomaticFailoverStatus `type:"string" enum:"true"`
// The date and time when the source cluster was created.
- CacheClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CacheClusterCreateTime *time.Time `type:"timestamp"`
// The user-supplied identifier of the source cluster.
CacheClusterId *string `type:"string"`
diff --git a/service/elasticbeanstalk/api_op_CreateConfigurationTemplate.go b/service/elasticbeanstalk/api_op_CreateConfigurationTemplate.go
index 818af2b5798..94ea847d707 100644
--- a/service/elasticbeanstalk/api_op_CreateConfigurationTemplate.go
+++ b/service/elasticbeanstalk/api_op_CreateConfigurationTemplate.go
@@ -137,10 +137,10 @@ type CreateConfigurationTemplateOutput struct {
ApplicationName *string `min:"1" type:"string"`
// The date (in UTC time) when this configuration set was created.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateCreated *time.Time `type:"timestamp"`
// The date (in UTC time) when this configuration set was last modified.
- DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateUpdated *time.Time `type:"timestamp"`
// If this configuration set is associated with an environment, the DeploymentStatus
// parameter indicates the deployment status of this configuration set:
diff --git a/service/elasticbeanstalk/api_op_CreateEnvironment.go b/service/elasticbeanstalk/api_op_CreateEnvironment.go
index 85be31699de..a5d19316476 100644
--- a/service/elasticbeanstalk/api_op_CreateEnvironment.go
+++ b/service/elasticbeanstalk/api_op_CreateEnvironment.go
@@ -170,10 +170,10 @@ type CreateEnvironmentOutput struct {
CNAME *string `min:"1" type:"string"`
// The creation date for this environment.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateCreated *time.Time `type:"timestamp"`
// The last modified date for this environment.
- DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateUpdated *time.Time `type:"timestamp"`
// Describes this environment.
Description *string `type:"string"`
diff --git a/service/elasticbeanstalk/api_op_DescribeEnvironmentHealth.go b/service/elasticbeanstalk/api_op_DescribeEnvironmentHealth.go
index e86dd2d4675..34be79752b1 100644
--- a/service/elasticbeanstalk/api_op_DescribeEnvironmentHealth.go
+++ b/service/elasticbeanstalk/api_op_DescribeEnvironmentHealth.go
@@ -75,7 +75,7 @@ type DescribeEnvironmentHealthOutput struct {
InstancesHealth *InstanceHealthSummary `type:"structure"`
// The date and time that the health information was retrieved.
- RefreshedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ RefreshedAt *time.Time `type:"timestamp"`
// The environment's operational status. Ready, Launching, Updating, Terminating,
// or Terminated.
diff --git a/service/elasticbeanstalk/api_op_DescribeEnvironments.go b/service/elasticbeanstalk/api_op_DescribeEnvironments.go
index 52bb97509e2..a24f7646d5b 100644
--- a/service/elasticbeanstalk/api_op_DescribeEnvironments.go
+++ b/service/elasticbeanstalk/api_op_DescribeEnvironments.go
@@ -37,7 +37,7 @@ type DescribeEnvironmentsInput struct {
// If specified when IncludeDeleted is set to true, then environments deleted
// after this date are displayed.
- IncludedDeletedBackTo *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ IncludedDeletedBackTo *time.Time `type:"timestamp"`
// For a paginated request. Specify a maximum number of environments to include
// in each response.
diff --git a/service/elasticbeanstalk/api_op_DescribeEvents.go b/service/elasticbeanstalk/api_op_DescribeEvents.go
index 4e80d462ee4..e36086df026 100644
--- a/service/elasticbeanstalk/api_op_DescribeEvents.go
+++ b/service/elasticbeanstalk/api_op_DescribeEvents.go
@@ -21,7 +21,7 @@ type DescribeEventsInput struct {
// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
// those that occur up to, but not including, the EndTime.
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
// those associated with this environment.
@@ -51,7 +51,7 @@ type DescribeEventsInput struct {
// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
// those that occur on or after this time.
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
// those that are associated with this environment configuration.
diff --git a/service/elasticbeanstalk/api_op_DescribeInstancesHealth.go b/service/elasticbeanstalk/api_op_DescribeInstancesHealth.go
index 1868dd4e978..31860b1198c 100644
--- a/service/elasticbeanstalk/api_op_DescribeInstancesHealth.go
+++ b/service/elasticbeanstalk/api_op_DescribeInstancesHealth.go
@@ -67,7 +67,7 @@ type DescribeInstancesHealthOutput struct {
NextToken *string `min:"1" type:"string"`
// The date and time that the health information was retrieved.
- RefreshedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ RefreshedAt *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/elasticbeanstalk/api_op_TerminateEnvironment.go b/service/elasticbeanstalk/api_op_TerminateEnvironment.go
index fa583991eb3..19a74f2c16b 100644
--- a/service/elasticbeanstalk/api_op_TerminateEnvironment.go
+++ b/service/elasticbeanstalk/api_op_TerminateEnvironment.go
@@ -88,10 +88,10 @@ type TerminateEnvironmentOutput struct {
CNAME *string `min:"1" type:"string"`
// The creation date for this environment.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateCreated *time.Time `type:"timestamp"`
// The last modified date for this environment.
- DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateUpdated *time.Time `type:"timestamp"`
// Describes this environment.
Description *string `type:"string"`
diff --git a/service/elasticbeanstalk/api_op_UpdateConfigurationTemplate.go b/service/elasticbeanstalk/api_op_UpdateConfigurationTemplate.go
index 5642bacffd4..37811f9aec5 100644
--- a/service/elasticbeanstalk/api_op_UpdateConfigurationTemplate.go
+++ b/service/elasticbeanstalk/api_op_UpdateConfigurationTemplate.go
@@ -98,10 +98,10 @@ type UpdateConfigurationTemplateOutput struct {
ApplicationName *string `min:"1" type:"string"`
// The date (in UTC time) when this configuration set was created.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateCreated *time.Time `type:"timestamp"`
// The date (in UTC time) when this configuration set was last modified.
- DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateUpdated *time.Time `type:"timestamp"`
// If this configuration set is associated with an environment, the DeploymentStatus
// parameter indicates the deployment status of this configuration set:
diff --git a/service/elasticbeanstalk/api_op_UpdateEnvironment.go b/service/elasticbeanstalk/api_op_UpdateEnvironment.go
index ef47dc3f788..12b05d68b1d 100644
--- a/service/elasticbeanstalk/api_op_UpdateEnvironment.go
+++ b/service/elasticbeanstalk/api_op_UpdateEnvironment.go
@@ -145,10 +145,10 @@ type UpdateEnvironmentOutput struct {
CNAME *string `min:"1" type:"string"`
// The creation date for this environment.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateCreated *time.Time `type:"timestamp"`
// The last modified date for this environment.
- DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateUpdated *time.Time `type:"timestamp"`
// Describes this environment.
Description *string `type:"string"`
diff --git a/service/elasticbeanstalk/api_types.go b/service/elasticbeanstalk/api_types.go
index b7c73596d40..69dd2c6e862 100644
--- a/service/elasticbeanstalk/api_types.go
+++ b/service/elasticbeanstalk/api_types.go
@@ -27,10 +27,10 @@ type ApplicationDescription struct {
ConfigurationTemplates []string `type:"list"`
// The date when the application was created.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateCreated *time.Time `type:"timestamp"`
// The date when the application was last modified.
- DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateUpdated *time.Time `type:"timestamp"`
// User-defined description of the application.
Description *string `type:"string"`
@@ -134,10 +134,10 @@ type ApplicationVersionDescription struct {
BuildArn *string `type:"string"`
// The creation date of the application version.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateCreated *time.Time `type:"timestamp"`
// The last modified date of the application version.
- DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateUpdated *time.Time `type:"timestamp"`
// The description of the application version.
Description *string `type:"string"`
@@ -500,10 +500,10 @@ type ConfigurationSettingsDescription struct {
ApplicationName *string `min:"1" type:"string"`
// The date (in UTC time) when this configuration set was created.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateCreated *time.Time `type:"timestamp"`
// The date (in UTC time) when this configuration set was last modified.
- DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateUpdated *time.Time `type:"timestamp"`
// If this configuration set is associated with an environment, the DeploymentStatus
// parameter indicates the deployment status of this configuration set:
@@ -574,7 +574,7 @@ type Deployment struct {
// For in-progress deployments, the time that the deployment started.
//
// For completed deployments, the time that the deployment ended.
- DeploymentTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DeploymentTime *time.Time `type:"timestamp"`
// The status of the deployment:
//
@@ -614,10 +614,10 @@ type EnvironmentDescription struct {
CNAME *string `min:"1" type:"string"`
// The creation date for this environment.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateCreated *time.Time `type:"timestamp"`
// The last modified date for this environment.
- DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateUpdated *time.Time `type:"timestamp"`
// Describes this environment.
Description *string `type:"string"`
@@ -719,7 +719,7 @@ type EnvironmentInfoDescription struct {
Message *string `type:"string"`
// The time stamp when this information was retrieved.
- SampleTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ SampleTimestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -846,7 +846,7 @@ type EventDescription struct {
EnvironmentName *string `min:"4" type:"string"`
// The date when the event occurred.
- EventDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EventDate *time.Time `type:"timestamp"`
// The event message.
Message *string `type:"string"`
@@ -1071,7 +1071,7 @@ type ManagedAction struct {
// The start time of the maintenance window in which the managed action will
// execute.
- WindowStartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ WindowStartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1094,7 +1094,7 @@ type ManagedActionHistoryItem struct {
ActionType ActionType `type:"string" enum:"true"`
// The date and time that the action started executing.
- ExecutedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ExecutedTime *time.Time `type:"timestamp"`
// If the action failed, a description of the failure.
FailureDescription *string `type:"string"`
@@ -1103,7 +1103,7 @@ type ManagedActionHistoryItem struct {
FailureType FailureType `type:"string" enum:"true"`
// The date and time that the action finished executing.
- FinishedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ FinishedTime *time.Time `type:"timestamp"`
// The status of the action.
Status ActionHistoryStatus `type:"string" enum:"true"`
@@ -1251,10 +1251,10 @@ type PlatformDescription struct {
CustomAmiList []CustomAmi `type:"list"`
// The date when the platform was created.
- DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateCreated *time.Time `type:"timestamp"`
// The date when the platform was last updated.
- DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DateUpdated *time.Time `type:"timestamp"`
// The description of the platform.
Description *string `type:"string"`
@@ -1519,7 +1519,7 @@ type SingleInstanceHealth struct {
InstanceType *string `type:"string"`
// The time at which the EC2 instance was launched.
- LaunchedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LaunchedAt *time.Time `type:"timestamp"`
// Operating system metrics from the instance.
System *SystemStatus `type:"structure"`
diff --git a/service/elasticloadbalancing/api_types.go b/service/elasticloadbalancing/api_types.go
index 741e4047351..509832e9206 100644
--- a/service/elasticloadbalancing/api_types.go
+++ b/service/elasticloadbalancing/api_types.go
@@ -606,7 +606,7 @@ type LoadBalancerDescription struct {
CanonicalHostedZoneNameID *string `type:"string"`
// The date and time the load balancer was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreatedTime *time.Time `type:"timestamp"`
// The DNS name of the load balancer.
DNSName *string `type:"string"`
diff --git a/service/elasticloadbalancingv2/api_types.go b/service/elasticloadbalancingv2/api_types.go
index 34d02218fce..a70ecc30f1b 100644
--- a/service/elasticloadbalancingv2/api_types.go
+++ b/service/elasticloadbalancingv2/api_types.go
@@ -491,7 +491,7 @@ type LoadBalancer struct {
CanonicalHostedZoneId *string `type:"string"`
// The date and time the load balancer was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreatedTime *time.Time `type:"timestamp"`
// The public DNS name of the load balancer.
DNSName *string `type:"string"`
diff --git a/service/elasticsearchservice/api_op_AddTags.go b/service/elasticsearchservice/api_op_AddTags.go
index ca88529544c..68d2e1671e3 100644
--- a/service/elasticsearchservice/api_op_AddTags.go
+++ b/service/elasticsearchservice/api_op_AddTags.go
@@ -60,6 +60,7 @@ func (s *AddTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AddTagsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ARN != nil {
v := *s.ARN
diff --git a/service/elasticsearchservice/api_op_CancelElasticsearchServiceSoftwareUpdate.go b/service/elasticsearchservice/api_op_CancelElasticsearchServiceSoftwareUpdate.go
index 709805828ac..0f75146ab8e 100644
--- a/service/elasticsearchservice/api_op_CancelElasticsearchServiceSoftwareUpdate.go
+++ b/service/elasticsearchservice/api_op_CancelElasticsearchServiceSoftwareUpdate.go
@@ -47,6 +47,7 @@ func (s *CancelElasticsearchServiceSoftwareUpdateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelElasticsearchServiceSoftwareUpdateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/elasticsearchservice/api_op_CreateElasticsearchDomain.go b/service/elasticsearchservice/api_op_CreateElasticsearchDomain.go
index 5b9eb525b01..26e20df3fcc 100644
--- a/service/elasticsearchservice/api_op_CreateElasticsearchDomain.go
+++ b/service/elasticsearchservice/api_op_CreateElasticsearchDomain.go
@@ -101,6 +101,7 @@ func (s *CreateElasticsearchDomainInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateElasticsearchDomainInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccessPolicies != nil {
v := *s.AccessPolicies
diff --git a/service/elasticsearchservice/api_op_DeleteElasticsearchDomain.go b/service/elasticsearchservice/api_op_DeleteElasticsearchDomain.go
index d31ba41dcb7..ab826c04e11 100644
--- a/service/elasticsearchservice/api_op_DeleteElasticsearchDomain.go
+++ b/service/elasticsearchservice/api_op_DeleteElasticsearchDomain.go
@@ -45,6 +45,7 @@ func (s *DeleteElasticsearchDomainInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteElasticsearchDomainInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/elasticsearchservice/api_op_DeleteElasticsearchServiceRole.go b/service/elasticsearchservice/api_op_DeleteElasticsearchServiceRole.go
index d6dec3d0b64..318fe68bc8a 100644
--- a/service/elasticsearchservice/api_op_DeleteElasticsearchServiceRole.go
+++ b/service/elasticsearchservice/api_op_DeleteElasticsearchServiceRole.go
@@ -22,6 +22,7 @@ func (s DeleteElasticsearchServiceRoleInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteElasticsearchServiceRoleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/elasticsearchservice/api_op_DescribeElasticsearchDomain.go b/service/elasticsearchservice/api_op_DescribeElasticsearchDomain.go
index 4ece811bf31..1df6e1bc977 100644
--- a/service/elasticsearchservice/api_op_DescribeElasticsearchDomain.go
+++ b/service/elasticsearchservice/api_op_DescribeElasticsearchDomain.go
@@ -44,6 +44,7 @@ func (s *DescribeElasticsearchDomainInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeElasticsearchDomainInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/elasticsearchservice/api_op_DescribeElasticsearchDomainConfig.go b/service/elasticsearchservice/api_op_DescribeElasticsearchDomainConfig.go
index 204bae26762..275cbe54a8c 100644
--- a/service/elasticsearchservice/api_op_DescribeElasticsearchDomainConfig.go
+++ b/service/elasticsearchservice/api_op_DescribeElasticsearchDomainConfig.go
@@ -45,6 +45,7 @@ func (s *DescribeElasticsearchDomainConfigInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeElasticsearchDomainConfigInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/elasticsearchservice/api_op_DescribeElasticsearchDomains.go b/service/elasticsearchservice/api_op_DescribeElasticsearchDomains.go
index 7c9176e1654..46785ecb7dd 100644
--- a/service/elasticsearchservice/api_op_DescribeElasticsearchDomains.go
+++ b/service/elasticsearchservice/api_op_DescribeElasticsearchDomains.go
@@ -42,6 +42,7 @@ func (s *DescribeElasticsearchDomainsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeElasticsearchDomainsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainNames != nil {
v := s.DomainNames
diff --git a/service/elasticsearchservice/api_op_DescribeElasticsearchInstanceTypeLimits.go b/service/elasticsearchservice/api_op_DescribeElasticsearchInstanceTypeLimits.go
index f3b57c86898..730ca4d27a4 100644
--- a/service/elasticsearchservice/api_op_DescribeElasticsearchInstanceTypeLimits.go
+++ b/service/elasticsearchservice/api_op_DescribeElasticsearchInstanceTypeLimits.go
@@ -58,6 +58,7 @@ func (s *DescribeElasticsearchInstanceTypeLimitsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeElasticsearchInstanceTypeLimitsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ElasticsearchVersion != nil {
v := *s.ElasticsearchVersion
diff --git a/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstanceOfferings.go b/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstanceOfferings.go
index d97e70e4f08..cc9aa846688 100644
--- a/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstanceOfferings.go
+++ b/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstanceOfferings.go
@@ -34,6 +34,7 @@ func (s DescribeReservedElasticsearchInstanceOfferingsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeReservedElasticsearchInstanceOfferingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstances.go b/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstances.go
index ede17ba35ad..20077354878 100644
--- a/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstances.go
+++ b/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstances.go
@@ -35,6 +35,7 @@ func (s DescribeReservedElasticsearchInstancesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeReservedElasticsearchInstancesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/elasticsearchservice/api_op_GetCompatibleElasticsearchVersions.go b/service/elasticsearchservice/api_op_GetCompatibleElasticsearchVersions.go
index 761a1b61a8d..5efc57eba3f 100644
--- a/service/elasticsearchservice/api_op_GetCompatibleElasticsearchVersions.go
+++ b/service/elasticsearchservice/api_op_GetCompatibleElasticsearchVersions.go
@@ -41,6 +41,7 @@ func (s *GetCompatibleElasticsearchVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCompatibleElasticsearchVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/elasticsearchservice/api_op_GetUpgradeHistory.go b/service/elasticsearchservice/api_op_GetUpgradeHistory.go
index cfddcccfe53..c2ab6f378ce 100644
--- a/service/elasticsearchservice/api_op_GetUpgradeHistory.go
+++ b/service/elasticsearchservice/api_op_GetUpgradeHistory.go
@@ -55,6 +55,7 @@ func (s *GetUpgradeHistoryInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUpgradeHistoryInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/elasticsearchservice/api_op_GetUpgradeStatus.go b/service/elasticsearchservice/api_op_GetUpgradeStatus.go
index 360a9236837..4ad46ff408d 100644
--- a/service/elasticsearchservice/api_op_GetUpgradeStatus.go
+++ b/service/elasticsearchservice/api_op_GetUpgradeStatus.go
@@ -47,6 +47,7 @@ func (s *GetUpgradeStatusInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUpgradeStatusInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/elasticsearchservice/api_op_ListDomainNames.go b/service/elasticsearchservice/api_op_ListDomainNames.go
index 479684e9aee..d0a99a21bfe 100644
--- a/service/elasticsearchservice/api_op_ListDomainNames.go
+++ b/service/elasticsearchservice/api_op_ListDomainNames.go
@@ -21,6 +21,7 @@ func (s ListDomainNamesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDomainNamesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/elasticsearchservice/api_op_ListElasticsearchInstanceTypes.go b/service/elasticsearchservice/api_op_ListElasticsearchInstanceTypes.go
index 1c7386813f8..d653fdf4367 100644
--- a/service/elasticsearchservice/api_op_ListElasticsearchInstanceTypes.go
+++ b/service/elasticsearchservice/api_op_ListElasticsearchInstanceTypes.go
@@ -58,6 +58,7 @@ func (s *ListElasticsearchInstanceTypesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListElasticsearchInstanceTypesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ElasticsearchVersion != nil {
v := *s.ElasticsearchVersion
diff --git a/service/elasticsearchservice/api_op_ListElasticsearchVersions.go b/service/elasticsearchservice/api_op_ListElasticsearchVersions.go
index 9fe93c1c331..cdb22ab9520 100644
--- a/service/elasticsearchservice/api_op_ListElasticsearchVersions.go
+++ b/service/elasticsearchservice/api_op_ListElasticsearchVersions.go
@@ -36,6 +36,7 @@ func (s ListElasticsearchVersionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListElasticsearchVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/elasticsearchservice/api_op_ListTags.go b/service/elasticsearchservice/api_op_ListTags.go
index 6881c20effa..f535d631659 100644
--- a/service/elasticsearchservice/api_op_ListTags.go
+++ b/service/elasticsearchservice/api_op_ListTags.go
@@ -44,6 +44,7 @@ func (s *ListTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ARN != nil {
v := *s.ARN
diff --git a/service/elasticsearchservice/api_op_PurchaseReservedElasticsearchInstanceOffering.go b/service/elasticsearchservice/api_op_PurchaseReservedElasticsearchInstanceOffering.go
index 8d161efde0d..e78e3cf9d69 100644
--- a/service/elasticsearchservice/api_op_PurchaseReservedElasticsearchInstanceOffering.go
+++ b/service/elasticsearchservice/api_op_PurchaseReservedElasticsearchInstanceOffering.go
@@ -59,6 +59,7 @@ func (s *PurchaseReservedElasticsearchInstanceOfferingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PurchaseReservedElasticsearchInstanceOfferingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InstanceCount != nil {
v := *s.InstanceCount
diff --git a/service/elasticsearchservice/api_op_RemoveTags.go b/service/elasticsearchservice/api_op_RemoveTags.go
index 78b0e662368..e154fbbc569 100644
--- a/service/elasticsearchservice/api_op_RemoveTags.go
+++ b/service/elasticsearchservice/api_op_RemoveTags.go
@@ -55,6 +55,7 @@ func (s *RemoveTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemoveTagsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ARN != nil {
v := *s.ARN
diff --git a/service/elasticsearchservice/api_op_StartElasticsearchServiceSoftwareUpdate.go b/service/elasticsearchservice/api_op_StartElasticsearchServiceSoftwareUpdate.go
index c725bda2b07..9393a64197b 100644
--- a/service/elasticsearchservice/api_op_StartElasticsearchServiceSoftwareUpdate.go
+++ b/service/elasticsearchservice/api_op_StartElasticsearchServiceSoftwareUpdate.go
@@ -46,6 +46,7 @@ func (s *StartElasticsearchServiceSoftwareUpdateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartElasticsearchServiceSoftwareUpdateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/elasticsearchservice/api_op_UpdateElasticsearchDomainConfig.go b/service/elasticsearchservice/api_op_UpdateElasticsearchDomainConfig.go
index 1bb176a7d7a..c247ae6e9d6 100644
--- a/service/elasticsearchservice/api_op_UpdateElasticsearchDomainConfig.go
+++ b/service/elasticsearchservice/api_op_UpdateElasticsearchDomainConfig.go
@@ -82,6 +82,7 @@ func (s *UpdateElasticsearchDomainConfigInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateElasticsearchDomainConfigInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccessPolicies != nil {
v := *s.AccessPolicies
diff --git a/service/elasticsearchservice/api_op_UpgradeElasticsearchDomain.go b/service/elasticsearchservice/api_op_UpgradeElasticsearchDomain.go
index 9eba209c9e8..b8f7885d487 100644
--- a/service/elasticsearchservice/api_op_UpgradeElasticsearchDomain.go
+++ b/service/elasticsearchservice/api_op_UpgradeElasticsearchDomain.go
@@ -60,6 +60,7 @@ func (s *UpgradeElasticsearchDomainInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpgradeElasticsearchDomainInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/elasticsearchservice/api_types.go b/service/elasticsearchservice/api_types.go
index 1e9f53b1651..af125580154 100644
--- a/service/elasticsearchservice/api_types.go
+++ b/service/elasticsearchservice/api_types.go
@@ -1296,7 +1296,7 @@ type OptionStatus struct {
// Timestamp which tells the creation date for the entity.
//
// CreationDate is a required field
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDate *time.Time `type:"timestamp" required:"true"`
// Indicates whether the Elasticsearch domain is being deleted.
PendingDeletion *bool `type:"boolean"`
@@ -1309,7 +1309,7 @@ type OptionStatus struct {
// Timestamp which tells the last updated time for the entity.
//
// UpdateDate is a required field
- UpdateDate *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdateDate *time.Time `type:"timestamp" required:"true"`
// Specifies the latest version for the entity.
UpdateVersion *int64 `type:"integer"`
@@ -1326,7 +1326,8 @@ func (s OptionStatus) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PendingDeletion != nil {
v := *s.PendingDeletion
@@ -1344,7 +1345,8 @@ func (s OptionStatus) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdateDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "UpdateDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "UpdateDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.UpdateVersion != nil {
v := *s.UpdateVersion
@@ -1426,7 +1428,7 @@ type ReservedElasticsearchInstance struct {
ReservedElasticsearchInstanceOfferingId *string `type:"string"`
// The time the reservation started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The state of the reserved Elasticsearch instance.
State *string `type:"string"`
@@ -1513,7 +1515,8 @@ func (s ReservedElasticsearchInstance) MarshalFields(e protocol.FieldEncoder) er
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.State != nil {
v := *s.State
@@ -1633,7 +1636,7 @@ type ServiceSoftwareOptions struct {
// Timestamp, in Epoch time, until which you can manually request a service
// software update. After this date, we automatically update your service software.
- AutomatedUpdateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AutomatedUpdateDate *time.Time `type:"timestamp"`
// True if you are able to cancel your service software version update. False
// if you are not able to cancel your service software version.
@@ -1668,7 +1671,8 @@ func (s ServiceSoftwareOptions) MarshalFields(e protocol.FieldEncoder) error {
v := *s.AutomatedUpdateDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "AutomatedUpdateDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "AutomatedUpdateDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Cancellable != nil {
v := *s.Cancellable
@@ -1941,7 +1945,7 @@ type UpgradeHistory struct {
// UTC Timestamp at which the Upgrade API call was made in "yyyy-MM-ddTHH:mm:ssZ"
// format.
- StartTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTimestamp *time.Time `type:"timestamp"`
// A list of UpgradeStepItem s representing information about each step performed
// as pard of a specific Upgrade or Upgrade Eligibility Check.
@@ -1973,7 +1977,8 @@ func (s UpgradeHistory) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.StepsList != nil {
v := s.StepsList
diff --git a/service/elastictranscoder/api_op_CancelJob.go b/service/elastictranscoder/api_op_CancelJob.go
index bdec0730ac9..9b3ed1cb2ba 100644
--- a/service/elastictranscoder/api_op_CancelJob.go
+++ b/service/elastictranscoder/api_op_CancelJob.go
@@ -44,6 +44,7 @@ func (s *CancelJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/elastictranscoder/api_op_CreateJob.go b/service/elastictranscoder/api_op_CreateJob.go
index 5681342e784..567ca8bd237 100644
--- a/service/elastictranscoder/api_op_CreateJob.go
+++ b/service/elastictranscoder/api_op_CreateJob.go
@@ -115,6 +115,7 @@ func (s *CreateJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Input != nil {
v := s.Input
diff --git a/service/elastictranscoder/api_op_CreatePipeline.go b/service/elastictranscoder/api_op_CreatePipeline.go
index df6965664fd..99f5d7fb103 100644
--- a/service/elastictranscoder/api_op_CreatePipeline.go
+++ b/service/elastictranscoder/api_op_CreatePipeline.go
@@ -245,6 +245,7 @@ func (s *CreatePipelineInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreatePipelineInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsKmsKeyArn != nil {
v := *s.AwsKmsKeyArn
diff --git a/service/elastictranscoder/api_op_CreatePreset.go b/service/elastictranscoder/api_op_CreatePreset.go
index 87e86e28242..b74cedd0c31 100644
--- a/service/elastictranscoder/api_op_CreatePreset.go
+++ b/service/elastictranscoder/api_op_CreatePreset.go
@@ -73,6 +73,7 @@ func (s *CreatePresetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreatePresetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Audio != nil {
v := s.Audio
diff --git a/service/elastictranscoder/api_op_DeletePipeline.go b/service/elastictranscoder/api_op_DeletePipeline.go
index 25d55ab0bbc..47ed6ec5bfb 100644
--- a/service/elastictranscoder/api_op_DeletePipeline.go
+++ b/service/elastictranscoder/api_op_DeletePipeline.go
@@ -41,6 +41,7 @@ func (s *DeletePipelineInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePipelineInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/elastictranscoder/api_op_DeletePreset.go b/service/elastictranscoder/api_op_DeletePreset.go
index 4d572e03e6d..a2bb11f193c 100644
--- a/service/elastictranscoder/api_op_DeletePreset.go
+++ b/service/elastictranscoder/api_op_DeletePreset.go
@@ -41,6 +41,7 @@ func (s *DeletePresetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePresetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/elastictranscoder/api_op_ListJobsByPipeline.go b/service/elastictranscoder/api_op_ListJobsByPipeline.go
index 207ca9355b3..3d0c39147f9 100644
--- a/service/elastictranscoder/api_op_ListJobsByPipeline.go
+++ b/service/elastictranscoder/api_op_ListJobsByPipeline.go
@@ -49,6 +49,7 @@ func (s *ListJobsByPipelineInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListJobsByPipelineInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PipelineId != nil {
v := *s.PipelineId
diff --git a/service/elastictranscoder/api_op_ListJobsByStatus.go b/service/elastictranscoder/api_op_ListJobsByStatus.go
index d59f087d601..100561a88f0 100644
--- a/service/elastictranscoder/api_op_ListJobsByStatus.go
+++ b/service/elastictranscoder/api_op_ListJobsByStatus.go
@@ -51,6 +51,7 @@ func (s *ListJobsByStatusInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListJobsByStatusInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Status != nil {
v := *s.Status
diff --git a/service/elastictranscoder/api_op_ListPipelines.go b/service/elastictranscoder/api_op_ListPipelines.go
index b8fd2fc5001..87fa320cd55 100644
--- a/service/elastictranscoder/api_op_ListPipelines.go
+++ b/service/elastictranscoder/api_op_ListPipelines.go
@@ -31,6 +31,7 @@ func (s ListPipelinesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPipelinesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Ascending != nil {
v := *s.Ascending
diff --git a/service/elastictranscoder/api_op_ListPresets.go b/service/elastictranscoder/api_op_ListPresets.go
index 04f7fa3a27d..ab76dfbde80 100644
--- a/service/elastictranscoder/api_op_ListPresets.go
+++ b/service/elastictranscoder/api_op_ListPresets.go
@@ -31,6 +31,7 @@ func (s ListPresetsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPresetsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Ascending != nil {
v := *s.Ascending
diff --git a/service/elastictranscoder/api_op_ReadJob.go b/service/elastictranscoder/api_op_ReadJob.go
index c11b5f1eafd..bdf3d82cb5f 100644
--- a/service/elastictranscoder/api_op_ReadJob.go
+++ b/service/elastictranscoder/api_op_ReadJob.go
@@ -41,6 +41,7 @@ func (s *ReadJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ReadJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/elastictranscoder/api_op_ReadPipeline.go b/service/elastictranscoder/api_op_ReadPipeline.go
index eb448c2ff2e..7f10d47807b 100644
--- a/service/elastictranscoder/api_op_ReadPipeline.go
+++ b/service/elastictranscoder/api_op_ReadPipeline.go
@@ -41,6 +41,7 @@ func (s *ReadPipelineInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ReadPipelineInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/elastictranscoder/api_op_ReadPreset.go b/service/elastictranscoder/api_op_ReadPreset.go
index 20e24dd3fc2..26e40007a03 100644
--- a/service/elastictranscoder/api_op_ReadPreset.go
+++ b/service/elastictranscoder/api_op_ReadPreset.go
@@ -41,6 +41,7 @@ func (s *ReadPresetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ReadPresetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/elastictranscoder/api_op_TestRole.go b/service/elastictranscoder/api_op_TestRole.go
index 45f9cb6eb98..43177f1b326 100644
--- a/service/elastictranscoder/api_op_TestRole.go
+++ b/service/elastictranscoder/api_op_TestRole.go
@@ -72,6 +72,7 @@ func (s *TestRoleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TestRoleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InputBucket != nil {
v := *s.InputBucket
diff --git a/service/elastictranscoder/api_op_UpdatePipeline.go b/service/elastictranscoder/api_op_UpdatePipeline.go
index e47bf447bdc..6d65dfe68fd 100644
--- a/service/elastictranscoder/api_op_UpdatePipeline.go
+++ b/service/elastictranscoder/api_op_UpdatePipeline.go
@@ -208,6 +208,7 @@ func (s *UpdatePipelineInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdatePipelineInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsKmsKeyArn != nil {
v := *s.AwsKmsKeyArn
diff --git a/service/elastictranscoder/api_op_UpdatePipelineNotifications.go b/service/elastictranscoder/api_op_UpdatePipelineNotifications.go
index 86b4ebf1295..efd614029ce 100644
--- a/service/elastictranscoder/api_op_UpdatePipelineNotifications.go
+++ b/service/elastictranscoder/api_op_UpdatePipelineNotifications.go
@@ -72,6 +72,7 @@ func (s *UpdatePipelineNotificationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdatePipelineNotificationsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Notifications != nil {
v := s.Notifications
diff --git a/service/elastictranscoder/api_op_UpdatePipelineStatus.go b/service/elastictranscoder/api_op_UpdatePipelineStatus.go
index ec18eb2c141..da90d775eb8 100644
--- a/service/elastictranscoder/api_op_UpdatePipelineStatus.go
+++ b/service/elastictranscoder/api_op_UpdatePipelineStatus.go
@@ -54,6 +54,7 @@ func (s *UpdatePipelineStatusInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdatePipelineStatusInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Status != nil {
v := *s.Status
diff --git a/service/emr/api_op_CreateSecurityConfiguration.go b/service/emr/api_op_CreateSecurityConfiguration.go
index a5e1d062db1..8575e176d2b 100644
--- a/service/emr/api_op_CreateSecurityConfiguration.go
+++ b/service/emr/api_op_CreateSecurityConfiguration.go
@@ -57,7 +57,7 @@ type CreateSecurityConfigurationOutput struct {
// The date and time the security configuration was created.
//
// CreationDateTime is a required field
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDateTime *time.Time `type:"timestamp" required:"true"`
// The name of the security configuration.
//
diff --git a/service/emr/api_op_DescribeJobFlows.go b/service/emr/api_op_DescribeJobFlows.go
index 331c70622d0..c859e177379 100644
--- a/service/emr/api_op_DescribeJobFlows.go
+++ b/service/emr/api_op_DescribeJobFlows.go
@@ -16,10 +16,10 @@ type DescribeJobFlowsInput struct {
_ struct{} `type:"structure"`
// Return only job flows created after this date and time.
- CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAfter *time.Time `type:"timestamp"`
// Return only job flows created before this date and time.
- CreatedBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedBefore *time.Time `type:"timestamp"`
// Return only job flows whose job flow ID is contained in this list.
JobFlowIds []string `type:"list"`
diff --git a/service/emr/api_op_DescribeSecurityConfiguration.go b/service/emr/api_op_DescribeSecurityConfiguration.go
index 92cc811a444..ebffbf75454 100644
--- a/service/emr/api_op_DescribeSecurityConfiguration.go
+++ b/service/emr/api_op_DescribeSecurityConfiguration.go
@@ -44,7 +44,7 @@ type DescribeSecurityConfigurationOutput struct {
_ struct{} `type:"structure"`
// The date and time the security configuration was created
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDateTime *time.Time `type:"timestamp"`
// The name of the security configuration.
Name *string `type:"string"`
diff --git a/service/emr/api_op_ListClusters.go b/service/emr/api_op_ListClusters.go
index fd20035281a..eeaf559d7e7 100644
--- a/service/emr/api_op_ListClusters.go
+++ b/service/emr/api_op_ListClusters.go
@@ -20,10 +20,10 @@ type ListClustersInput struct {
ClusterStates []ClusterState `type:"list"`
// The creation date and time beginning value filter for listing clusters.
- CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAfter *time.Time `type:"timestamp"`
// The creation date and time end value filter for listing clusters.
- CreatedBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedBefore *time.Time `type:"timestamp"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
diff --git a/service/emr/api_types.go b/service/emr/api_types.go
index c7695742737..0ac41862008 100644
--- a/service/emr/api_types.go
+++ b/service/emr/api_types.go
@@ -532,13 +532,13 @@ type ClusterTimeline struct {
_ struct{} `type:"structure"`
// The creation date and time of the cluster.
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDateTime *time.Time `type:"timestamp"`
// The date and time when the cluster was terminated.
- EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndDateTime *time.Time `type:"timestamp"`
// The date and time when the cluster was ready to execute steps.
- ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReadyDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1254,13 +1254,13 @@ type InstanceFleetTimeline struct {
_ struct{} `type:"structure"`
// The time and date the instance fleet was created.
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDateTime *time.Time `type:"timestamp"`
// The time and date the instance fleet terminated.
- EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndDateTime *time.Time `type:"timestamp"`
// The time and date the instance fleet was ready to run jobs.
- ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReadyDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1457,10 +1457,10 @@ type InstanceGroupDetail struct {
// The date/time the instance group was created.
//
// CreationDateTime is a required field
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDateTime *time.Time `type:"timestamp" required:"true"`
// The date/time the instance group was terminated.
- EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndDateTime *time.Time `type:"timestamp"`
// Unique identifier for the instance group.
InstanceGroupId *string `type:"string"`
@@ -1497,10 +1497,10 @@ type InstanceGroupDetail struct {
Name *string `type:"string"`
// The date/time the instance group was available to the cluster.
- ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReadyDateTime *time.Time `type:"timestamp"`
// The date/time the instance group was started.
- StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartDateTime *time.Time `type:"timestamp"`
// State of instance group. The following values are deprecated: STARTING, TERMINATED,
// and FAILED.
@@ -1600,13 +1600,13 @@ type InstanceGroupTimeline struct {
_ struct{} `type:"structure"`
// The creation date and time of the instance group.
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDateTime *time.Time `type:"timestamp"`
// The date and time when the instance group terminated.
- EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndDateTime *time.Time `type:"timestamp"`
// The date and time when the instance group became ready to perform tasks.
- ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReadyDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1679,13 +1679,13 @@ type InstanceTimeline struct {
_ struct{} `type:"structure"`
// The creation date and time of the instance.
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDateTime *time.Time `type:"timestamp"`
// The date and time when the instance was terminated.
- EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndDateTime *time.Time `type:"timestamp"`
// The date and time when the instance was ready to perform tasks.
- ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReadyDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1900,20 +1900,20 @@ type JobFlowExecutionStatusDetail struct {
// The creation date and time of the job flow.
//
// CreationDateTime is a required field
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDateTime *time.Time `type:"timestamp" required:"true"`
// The completion date and time of the job flow.
- EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndDateTime *time.Time `type:"timestamp"`
// Description of the job flow last changed state.
LastStateChangeReason *string `type:"string"`
// The date and time when the job flow was ready to start running bootstrap
// actions.
- ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReadyDateTime *time.Time `type:"timestamp"`
// The start date and time of the job flow.
- StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartDateTime *time.Time `type:"timestamp"`
// The state of the job flow.
//
@@ -2472,7 +2472,7 @@ type SecurityConfigurationSummary struct {
_ struct{} `type:"structure"`
// The date and time the security configuration was created.
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDateTime *time.Time `type:"timestamp"`
// The name of the security configuration.
Name *string `type:"string"`
@@ -2725,16 +2725,16 @@ type StepExecutionStatusDetail struct {
// The creation date and time of the step.
//
// CreationDateTime is a required field
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDateTime *time.Time `type:"timestamp" required:"true"`
// The completion date and time of the step.
- EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndDateTime *time.Time `type:"timestamp"`
// A description of the step's current state.
LastStateChangeReason *string `type:"string"`
// The start date and time of the step.
- StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartDateTime *time.Time `type:"timestamp"`
// The state of the step.
//
@@ -2823,13 +2823,13 @@ type StepTimeline struct {
_ struct{} `type:"structure"`
// The date and time when the cluster step was created.
- CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDateTime *time.Time `type:"timestamp"`
// The date and time when the cluster step execution completed or failed.
- EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndDateTime *time.Time `type:"timestamp"`
// The date and time when the cluster step execution started.
- StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/firehose/api_types.go b/service/firehose/api_types.go
index 91ba6f7219f..b402832c315 100644
--- a/service/firehose/api_types.go
+++ b/service/firehose/api_types.go
@@ -186,7 +186,7 @@ type DeliveryStreamDescription struct {
_ struct{} `type:"structure"`
// The date and time that the delivery stream was created.
- CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateTimestamp *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the delivery stream. For more information,
// see Amazon Resource Names (ARNs) and AWS Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
@@ -228,7 +228,7 @@ type DeliveryStreamDescription struct {
HasMoreDestinations *bool `type:"boolean" required:"true"`
// The date and time that the delivery stream was last updated.
- LastUpdateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTimestamp *time.Time `type:"timestamp"`
// If the DeliveryStreamType parameter is KinesisStreamAsSource, a SourceDescription
// object describing the source Kinesis data stream.
@@ -1097,7 +1097,7 @@ type KinesisStreamSourceDescription struct {
// Kinesis Data Firehose starts retrieving records from the Kinesis data stream
// starting with this timestamp.
- DeliveryStartTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeliveryStartTimestamp *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the source Kinesis data stream. For more
// information, see Amazon Kinesis Data Streams ARN Format (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams).
diff --git a/service/fms/api_op_GetProtectionStatus.go b/service/fms/api_op_GetProtectionStatus.go
index 7c9e9f8f684..85c8b7ab120 100644
--- a/service/fms/api_op_GetProtectionStatus.go
+++ b/service/fms/api_op_GetProtectionStatus.go
@@ -18,7 +18,7 @@ type GetProtectionStatusInput struct {
// type. The sample request above indicates a number type because the default
// used by AWS Firewall Manager is Unix time in seconds. However, any valid
// timestamp format is allowed.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// Specifies the number of objects that you want AWS Firewall Manager to return
// for this request. If you have more objects than the number that you specify
@@ -47,7 +47,7 @@ type GetProtectionStatusInput struct {
// type. The sample request above indicates a number type because the default
// used by AWS Firewall Manager is Unix time in seconds. However, any valid
// timestamp format is allowed.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/fms/api_types.go b/service/fms/api_types.go
index 7e1abfb956f..1d4da1b7442 100644
--- a/service/fms/api_types.go
+++ b/service/fms/api_types.go
@@ -200,7 +200,7 @@ type PolicyComplianceDetail struct {
// A time stamp that indicates when the returned information should be considered
// out-of-date.
- ExpiredAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpiredAt *time.Time `type:"timestamp"`
// Details about problems with dependent services, such as AWS WAF or AWS Config,
// that are causing a resource to be non-compliant. The details include the
@@ -243,7 +243,7 @@ type PolicyComplianceStatus struct {
IssueInfoMap map[string]string `type:"map"`
// Time stamp of the last update to the EvaluationResult objects.
- LastUpdated *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdated *time.Time `type:"timestamp"`
// The member account ID.
MemberAccount *string `min:"1" type:"string"`
diff --git a/service/fsx/api_types.go b/service/fsx/api_types.go
index 6c8ec253126..0eb2305fb44 100644
--- a/service/fsx/api_types.go
+++ b/service/fsx/api_types.go
@@ -27,7 +27,7 @@ type Backup struct {
// The time when a particular backup was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// Details explaining any failures that occur when creating a backup.
FailureDetails *BackupFailureDetails `type:"structure"`
@@ -315,7 +315,7 @@ type FileSystem struct {
// The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z),
// also known as Unix time.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The DNS name for the file system.
DNSName *string `min:"16" type:"string"`
diff --git a/service/gamelift/api_op_DescribeFleetEvents.go b/service/gamelift/api_op_DescribeFleetEvents.go
index 486d0f41723..20ac797ecbc 100644
--- a/service/gamelift/api_op_DescribeFleetEvents.go
+++ b/service/gamelift/api_op_DescribeFleetEvents.go
@@ -18,7 +18,7 @@ type DescribeFleetEventsInput struct {
// Most recent date to retrieve event logs for. If no end time is specified,
// this call returns entries from the specified start time up to the present.
// Format is a number expressed in Unix time as milliseconds (ex: "1469498468.057").
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// Unique identifier for a fleet to get event logs for.
//
@@ -38,7 +38,7 @@ type DescribeFleetEventsInput struct {
// this call returns entries starting from when the fleet was created to the
// specified end time. Format is a number expressed in Unix time as milliseconds
// (ex: "1469498468.057").
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/gamelift/api_types.go b/service/gamelift/api_types.go
index b4598594210..3af0615e702 100644
--- a/service/gamelift/api_types.go
+++ b/service/gamelift/api_types.go
@@ -38,14 +38,14 @@ type Alias struct {
// Time stamp indicating when this data object was created. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Human-readable description of an alias.
Description *string `type:"string"`
// Time stamp indicating when this data object was last modified. Format is
// a number expressed in Unix time as milliseconds (for example "1469498468.057").
- LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `type:"timestamp"`
// Descriptive label that is associated with an alias. Alias names do not need
// to be unique.
@@ -147,7 +147,7 @@ type Build struct {
// Time stamp indicating when this data object was created. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Descriptive label that is associated with a build. Build names do not need
// to be unique. It can be set using CreateBuild or UpdateBuild.
@@ -409,7 +409,7 @@ type Event struct {
// Time stamp indicating when this event occurred. Format is a number expressed
// in Unix time as milliseconds (for example "1469498468.057").
- EventTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EventTime *time.Time `type:"timestamp"`
// Additional information related to the event.
Message *string `min:"1" type:"string"`
@@ -453,7 +453,7 @@ type FleetAttributes struct {
// Time stamp indicating when this data object was created. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Human-readable description of the fleet.
Description *string `min:"1" type:"string"`
@@ -562,7 +562,7 @@ type FleetAttributes struct {
// Time stamp indicating when this data object was terminated. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TerminationTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -732,7 +732,7 @@ type GameSession struct {
// Time stamp indicating when this data object was created. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Unique identifier for a player. This ID is used to enforce a resource protection
// policy (if one exists), that limits the number of game sessions a player
@@ -800,7 +800,7 @@ type GameSession struct {
// Time stamp indicating when this data object was terminated. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TerminationTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -880,7 +880,7 @@ type GameSessionPlacement struct {
// Time stamp indicating when this request was completed, canceled, or timed
// out.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// Set of custom properties for a game session, formatted as key:value pairs.
// These properties are passed to a game server process in the GameSession object
@@ -953,7 +953,7 @@ type GameSessionPlacement struct {
// Time stamp indicating when this request was placed in the queue. Format is
// a number expressed in Unix time as milliseconds (for example "1469498468.057").
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// Current status of the game session placement request.
//
@@ -1086,7 +1086,7 @@ type Instance struct {
// Time stamp indicating when this data object was created. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Unique identifier for a fleet that the instance is in.
FleetId *string `type:"string"`
@@ -1288,7 +1288,7 @@ type MatchmakingConfiguration struct {
// Time stamp indicating when this data object was created. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Information to attached to all events related to the matchmaking configuration.
CustomEventData *string `type:"string"`
@@ -1378,7 +1378,7 @@ type MatchmakingRuleSet struct {
// Time stamp indicating when this data object was created. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Collection of matchmaking rules, formatted as a JSON string. (Note that comments14
// are not allowed in JSON, but most elements support a description field.)
@@ -1411,7 +1411,7 @@ type MatchmakingTicket struct {
// Time stamp indicating when this matchmaking request stopped being processed
// due to success, failure, or cancellation. Format is a number expressed in
// Unix time as milliseconds (for example "1469498468.057").
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// Average amount of time (in seconds) that players are currently waiting for
// a match. If there is not enough recent data, this property may be empty.
@@ -1430,7 +1430,7 @@ type MatchmakingTicket struct {
// Time stamp indicating when this matchmaking request was received. Format
// is a number expressed in Unix time as milliseconds (for example "1469498468.057").
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// Current status of the matchmaking request.
//
@@ -1669,7 +1669,7 @@ type PlayerSession struct {
// Time stamp indicating when this data object was created. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Unique identifier for a fleet that the player's game session is running on.
FleetId *string `type:"string"`
@@ -1714,7 +1714,7 @@ type PlayerSession struct {
// Time stamp indicating when this data object was terminated. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TerminationTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -2070,7 +2070,7 @@ type Script struct {
// Time stamp indicating when this data object was created. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Descriptive label that is associated with a script. Script names do not need
// to be unique.
@@ -2235,11 +2235,11 @@ type VpcPeeringAuthorization struct {
// Time stamp indicating when this authorization was issued. Format is a number
// expressed in Unix time as milliseconds (for example "1469498468.057").
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Time stamp indicating when this authorization expires (24 hours after issuance).
// Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
- ExpirationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpirationTime *time.Time `type:"timestamp"`
// Unique identifier for the AWS account that you use to manage your Amazon
// GameLift fleet. You can find your Account ID in the AWS Management Console
diff --git a/service/glacier/api_op_AbortMultipartUpload.go b/service/glacier/api_op_AbortMultipartUpload.go
index 8dd544dadd5..b98cb0af887 100644
--- a/service/glacier/api_op_AbortMultipartUpload.go
+++ b/service/glacier/api_op_AbortMultipartUpload.go
@@ -68,6 +68,7 @@ func (s *AbortMultipartUploadInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AbortMultipartUploadInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_AbortVaultLock.go b/service/glacier/api_op_AbortVaultLock.go
index d9a0c0bacbc..407bb997eeb 100644
--- a/service/glacier/api_op_AbortVaultLock.go
+++ b/service/glacier/api_op_AbortVaultLock.go
@@ -56,6 +56,7 @@ func (s *AbortVaultLockInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AbortVaultLockInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_AddTagsToVault.go b/service/glacier/api_op_AddTagsToVault.go
index 6cfc88324d7..33b7da3c670 100644
--- a/service/glacier/api_op_AddTagsToVault.go
+++ b/service/glacier/api_op_AddTagsToVault.go
@@ -59,6 +59,7 @@ func (s *AddTagsToVaultInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AddTagsToVaultInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/glacier/api_op_CompleteMultipartUpload.go b/service/glacier/api_op_CompleteMultipartUpload.go
index f5a8c6ed330..fea4e4ecbb7 100644
--- a/service/glacier/api_op_CompleteMultipartUpload.go
+++ b/service/glacier/api_op_CompleteMultipartUpload.go
@@ -77,6 +77,7 @@ func (s *CompleteMultipartUploadInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CompleteMultipartUploadInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ArchiveSize != nil {
v := *s.ArchiveSize
diff --git a/service/glacier/api_op_CompleteVaultLock.go b/service/glacier/api_op_CompleteVaultLock.go
index 150e3081622..4482cddfc97 100644
--- a/service/glacier/api_op_CompleteVaultLock.go
+++ b/service/glacier/api_op_CompleteVaultLock.go
@@ -65,6 +65,7 @@ func (s *CompleteVaultLockInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CompleteVaultLockInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_CreateVault.go b/service/glacier/api_op_CreateVault.go
index a2c4fc7cdf2..c3249ae6595 100644
--- a/service/glacier/api_op_CreateVault.go
+++ b/service/glacier/api_op_CreateVault.go
@@ -55,6 +55,7 @@ func (s *CreateVaultInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateVaultInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_DeleteArchive.go b/service/glacier/api_op_DeleteArchive.go
index 6e4bacbbd77..f52f050d3bf 100644
--- a/service/glacier/api_op_DeleteArchive.go
+++ b/service/glacier/api_op_DeleteArchive.go
@@ -64,6 +64,7 @@ func (s *DeleteArchiveInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteArchiveInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_DeleteVault.go b/service/glacier/api_op_DeleteVault.go
index 7b335ecf82c..7f0a6b79f1d 100644
--- a/service/glacier/api_op_DeleteVault.go
+++ b/service/glacier/api_op_DeleteVault.go
@@ -55,6 +55,7 @@ func (s *DeleteVaultInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVaultInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_DeleteVaultAccessPolicy.go b/service/glacier/api_op_DeleteVaultAccessPolicy.go
index c472c94b3e8..a5bd6091d0b 100644
--- a/service/glacier/api_op_DeleteVaultAccessPolicy.go
+++ b/service/glacier/api_op_DeleteVaultAccessPolicy.go
@@ -55,6 +55,7 @@ func (s *DeleteVaultAccessPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVaultAccessPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_DeleteVaultNotifications.go b/service/glacier/api_op_DeleteVaultNotifications.go
index 155c41f1e8f..f9abe881807 100644
--- a/service/glacier/api_op_DeleteVaultNotifications.go
+++ b/service/glacier/api_op_DeleteVaultNotifications.go
@@ -56,6 +56,7 @@ func (s *DeleteVaultNotificationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVaultNotificationsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_DescribeJob.go b/service/glacier/api_op_DescribeJob.go
index 570571b244b..0ce92a34229 100644
--- a/service/glacier/api_op_DescribeJob.go
+++ b/service/glacier/api_op_DescribeJob.go
@@ -63,6 +63,7 @@ func (s *DescribeJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_DescribeVault.go b/service/glacier/api_op_DescribeVault.go
index 92afe0bc8c0..da78f4cd9c4 100644
--- a/service/glacier/api_op_DescribeVault.go
+++ b/service/glacier/api_op_DescribeVault.go
@@ -54,6 +54,7 @@ func (s *DescribeVaultInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeVaultInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_GetDataRetrievalPolicy.go b/service/glacier/api_op_GetDataRetrievalPolicy.go
index 735ed95a360..39bcfaf1f90 100644
--- a/service/glacier/api_op_GetDataRetrievalPolicy.go
+++ b/service/glacier/api_op_GetDataRetrievalPolicy.go
@@ -46,6 +46,7 @@ func (s *GetDataRetrievalPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDataRetrievalPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_GetJobOutput.go b/service/glacier/api_op_GetJobOutput.go
index 17bcb5d0904..106c32abe3e 100644
--- a/service/glacier/api_op_GetJobOutput.go
+++ b/service/glacier/api_op_GetJobOutput.go
@@ -95,6 +95,7 @@ func (s *GetJobOutputInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetJobOutputInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Range != nil {
v := *s.Range
diff --git a/service/glacier/api_op_GetVaultAccessPolicy.go b/service/glacier/api_op_GetVaultAccessPolicy.go
index 49b1f3c106c..36f54c59779 100644
--- a/service/glacier/api_op_GetVaultAccessPolicy.go
+++ b/service/glacier/api_op_GetVaultAccessPolicy.go
@@ -54,6 +54,7 @@ func (s *GetVaultAccessPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetVaultAccessPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_GetVaultLock.go b/service/glacier/api_op_GetVaultLock.go
index b35856d54a2..2a1ef5ee55a 100644
--- a/service/glacier/api_op_GetVaultLock.go
+++ b/service/glacier/api_op_GetVaultLock.go
@@ -54,6 +54,7 @@ func (s *GetVaultLockInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetVaultLockInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_GetVaultNotifications.go b/service/glacier/api_op_GetVaultNotifications.go
index 85d05b946aa..ef292481c8e 100644
--- a/service/glacier/api_op_GetVaultNotifications.go
+++ b/service/glacier/api_op_GetVaultNotifications.go
@@ -55,6 +55,7 @@ func (s *GetVaultNotificationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetVaultNotificationsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_InitiateJob.go b/service/glacier/api_op_InitiateJob.go
index 23bb09a663f..b373910daa9 100644
--- a/service/glacier/api_op_InitiateJob.go
+++ b/service/glacier/api_op_InitiateJob.go
@@ -62,6 +62,7 @@ func (s *InitiateJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InitiateJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_InitiateMultipartUpload.go b/service/glacier/api_op_InitiateMultipartUpload.go
index 0e939abeda0..96e60c840ad 100644
--- a/service/glacier/api_op_InitiateMultipartUpload.go
+++ b/service/glacier/api_op_InitiateMultipartUpload.go
@@ -66,6 +66,7 @@ func (s *InitiateMultipartUploadInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InitiateMultipartUploadInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ArchiveDescription != nil {
v := *s.ArchiveDescription
diff --git a/service/glacier/api_op_InitiateVaultLock.go b/service/glacier/api_op_InitiateVaultLock.go
index 04b3f95ddd9..eaac776c2f7 100644
--- a/service/glacier/api_op_InitiateVaultLock.go
+++ b/service/glacier/api_op_InitiateVaultLock.go
@@ -58,6 +58,7 @@ func (s *InitiateVaultLockInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InitiateVaultLockInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_ListJobs.go b/service/glacier/api_op_ListJobs.go
index 9e8d724bec6..e9924d110c0 100644
--- a/service/glacier/api_op_ListJobs.go
+++ b/service/glacier/api_op_ListJobs.go
@@ -72,6 +72,7 @@ func (s *ListJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListJobsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_ListMultipartUploads.go b/service/glacier/api_op_ListMultipartUploads.go
index 71215f98676..d9ccbf5d471 100644
--- a/service/glacier/api_op_ListMultipartUploads.go
+++ b/service/glacier/api_op_ListMultipartUploads.go
@@ -66,6 +66,7 @@ func (s *ListMultipartUploadsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListMultipartUploadsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_ListParts.go b/service/glacier/api_op_ListParts.go
index 44a8dfe83cf..78ff1743864 100644
--- a/service/glacier/api_op_ListParts.go
+++ b/service/glacier/api_op_ListParts.go
@@ -76,6 +76,7 @@ func (s *ListPartsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPartsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_ListProvisionedCapacity.go b/service/glacier/api_op_ListProvisionedCapacity.go
index 02cc97a10d5..24f144ec65a 100644
--- a/service/glacier/api_op_ListProvisionedCapacity.go
+++ b/service/glacier/api_op_ListProvisionedCapacity.go
@@ -44,6 +44,7 @@ func (s *ListProvisionedCapacityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListProvisionedCapacityInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_ListTagsForVault.go b/service/glacier/api_op_ListTagsForVault.go
index c8f1b0ab164..00f59493ecc 100644
--- a/service/glacier/api_op_ListTagsForVault.go
+++ b/service/glacier/api_op_ListTagsForVault.go
@@ -54,6 +54,7 @@ func (s *ListTagsForVaultInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForVaultInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_ListVaults.go b/service/glacier/api_op_ListVaults.go
index 68b06e25ea7..b3f5c84e43a 100644
--- a/service/glacier/api_op_ListVaults.go
+++ b/service/glacier/api_op_ListVaults.go
@@ -56,6 +56,7 @@ func (s *ListVaultsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListVaultsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_PurchaseProvisionedCapacity.go b/service/glacier/api_op_PurchaseProvisionedCapacity.go
index a7048c2aa06..9b34a43673b 100644
--- a/service/glacier/api_op_PurchaseProvisionedCapacity.go
+++ b/service/glacier/api_op_PurchaseProvisionedCapacity.go
@@ -44,6 +44,7 @@ func (s *PurchaseProvisionedCapacityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PurchaseProvisionedCapacityInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_RemoveTagsFromVault.go b/service/glacier/api_op_RemoveTagsFromVault.go
index b3c40f8efda..a5084bfb204 100644
--- a/service/glacier/api_op_RemoveTagsFromVault.go
+++ b/service/glacier/api_op_RemoveTagsFromVault.go
@@ -58,6 +58,7 @@ func (s *RemoveTagsFromVaultInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemoveTagsFromVaultInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TagKeys != nil {
v := s.TagKeys
diff --git a/service/glacier/api_op_SetDataRetrievalPolicy.go b/service/glacier/api_op_SetDataRetrievalPolicy.go
index 90adb0eb4e8..5f45688194b 100644
--- a/service/glacier/api_op_SetDataRetrievalPolicy.go
+++ b/service/glacier/api_op_SetDataRetrievalPolicy.go
@@ -50,6 +50,7 @@ func (s *SetDataRetrievalPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SetDataRetrievalPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Policy != nil {
v := s.Policy
diff --git a/service/glacier/api_op_SetVaultAccessPolicy.go b/service/glacier/api_op_SetVaultAccessPolicy.go
index 80794a78fd6..4000cc37f3f 100644
--- a/service/glacier/api_op_SetVaultAccessPolicy.go
+++ b/service/glacier/api_op_SetVaultAccessPolicy.go
@@ -58,6 +58,7 @@ func (s *SetVaultAccessPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SetVaultAccessPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/glacier/api_op_SetVaultNotifications.go b/service/glacier/api_op_SetVaultNotifications.go
index 3d35e520092..bea68c574a2 100644
--- a/service/glacier/api_op_SetVaultNotifications.go
+++ b/service/glacier/api_op_SetVaultNotifications.go
@@ -59,6 +59,7 @@ func (s *SetVaultNotificationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SetVaultNotificationsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountId != nil {
v := *s.AccountId
diff --git a/service/globalaccelerator/api_types.go b/service/globalaccelerator/api_types.go
index 467cb31c309..bf2dcfbec9d 100644
--- a/service/globalaccelerator/api_types.go
+++ b/service/globalaccelerator/api_types.go
@@ -23,7 +23,7 @@ type Accelerator struct {
AcceleratorArn *string `type:"string"`
// The date and time that the accelerator was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// Indicates whether theaccelerator is enabled. The value is true or false.
// The default value is true.
@@ -39,7 +39,7 @@ type Accelerator struct {
IpSets []IpSet `type:"list"`
// The date and time that the accelerator was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The name of the accelerator. The name can have a maximum of 32 characters,
// must contain only alphanumeric characters or hyphens (-), and must not begin
diff --git a/service/glue/api_op_CreateDevEndpoint.go b/service/glue/api_op_CreateDevEndpoint.go
index 148c3202c4a..0e708049f85 100644
--- a/service/glue/api_op_CreateDevEndpoint.go
+++ b/service/glue/api_op_CreateDevEndpoint.go
@@ -111,7 +111,7 @@ type CreateDevEndpointOutput struct {
AvailabilityZone *string `type:"string"`
// The point in time at which this DevEndpoint was created.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The name assigned to the new DevEndpoint.
EndpointName *string `type:"string"`
diff --git a/service/glue/api_op_CreateSecurityConfiguration.go b/service/glue/api_op_CreateSecurityConfiguration.go
index 1809c4a02cf..e37f9dea16f 100644
--- a/service/glue/api_op_CreateSecurityConfiguration.go
+++ b/service/glue/api_op_CreateSecurityConfiguration.go
@@ -56,7 +56,7 @@ type CreateSecurityConfigurationOutput struct {
_ struct{} `type:"structure"`
// The time at which the new security configuration was created.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The name assigned to the new security configuration.
Name *string `min:"1" type:"string"`
diff --git a/service/glue/api_op_GetResourcePolicy.go b/service/glue/api_op_GetResourcePolicy.go
index b3d53e49aee..8aaae427451 100644
--- a/service/glue/api_op_GetResourcePolicy.go
+++ b/service/glue/api_op_GetResourcePolicy.go
@@ -25,7 +25,7 @@ type GetResourcePolicyOutput struct {
_ struct{} `type:"structure"`
// The date and time at which the policy was created.
- CreateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateTime *time.Time `type:"timestamp"`
// Contains the hash value associated with this policy.
PolicyHash *string `min:"1" type:"string"`
@@ -34,7 +34,7 @@ type GetResourcePolicyOutput struct {
PolicyInJson *string `min:"2" type:"string"`
// The date and time at which the policy was last updated.
- UpdateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/glue/api_types.go b/service/glue/api_types.go
index 09004f0edde..17177933de8 100644
--- a/service/glue/api_types.go
+++ b/service/glue/api_types.go
@@ -169,7 +169,7 @@ type CatalogImportStatus struct {
ImportCompleted *bool `type:"boolean"`
// The time that the migration was started.
- ImportTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ImportTime *time.Time `type:"timestamp"`
// The name of the person who initiated the migration.
ImportedBy *string `min:"1" type:"string"`
@@ -545,7 +545,7 @@ type Connection struct {
ConnectionType ConnectionType `type:"string" enum:"true"`
// The time that this connection definition was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The description of the connection.
Description *string `type:"string"`
@@ -554,7 +554,7 @@ type Connection struct {
LastUpdatedBy *string `min:"1" type:"string"`
// The last time that this connection definition was updated.
- LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `type:"timestamp"`
// A list of criteria that can be used in selecting this connection.
MatchCriteria []string `type:"list"`
@@ -733,7 +733,7 @@ type Crawler struct {
CrawlerSecurityConfiguration *string `type:"string"`
// The time that the crawler was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The name of the database in which the crawler's output is stored.
DatabaseName *string `type:"string"`
@@ -746,7 +746,7 @@ type Crawler struct {
LastCrawl *LastCrawlInfo `type:"structure"`
// The time that the crawler was last updated.
- LastUpdated *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdated *time.Time `type:"timestamp"`
// The name of the crawler.
Name *string `min:"1" type:"string"`
@@ -1077,7 +1077,7 @@ type CsvClassifier struct {
ContainsHeader CsvHeaderOption `type:"string" enum:"true"`
// The time that this classifier was registered.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// A custom symbol to denote what separates each column entry in the row.
Delimiter *string `min:"1" type:"string"`
@@ -1090,7 +1090,7 @@ type CsvClassifier struct {
Header []string `type:"list"`
// The time that this classifier was last updated.
- LastUpdated *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdated *time.Time `type:"timestamp"`
// The name of the classifier.
//
@@ -1157,7 +1157,7 @@ type Database struct {
_ struct{} `type:"structure"`
// The time at which the metadata database was created in the catalog.
- CreateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateTime *time.Time `type:"timestamp"`
// Description of the database.
Description *string `type:"string"`
@@ -1241,7 +1241,7 @@ type DevEndpoint struct {
AvailabilityZone *string `type:"string"`
// The point in time at which this DevEndpoint was created.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The name of the DevEndpoint.
EndpointName *string `type:"string"`
@@ -1266,7 +1266,7 @@ type DevEndpoint struct {
FailureReason *string `type:"string"`
// The point in time at which this DevEndpoint was last modified.
- LastModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimestamp *time.Time `type:"timestamp"`
// The status of the last update.
LastUpdateStatus *string `type:"string"`
@@ -1489,7 +1489,7 @@ type GrokClassifier struct {
Classification *string `type:"string" required:"true"`
// The time that this classifier was registered.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Optional custom grok patterns defined by this classifier. For more information,
// see custom patterns in Writing Custom Classifiers (http://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html).
@@ -1502,7 +1502,7 @@ type GrokClassifier struct {
GrokPattern *string `min:"1" type:"string" required:"true"`
// The time that this classifier was last updated.
- LastUpdated *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdated *time.Time `type:"timestamp"`
// The name of the classifier.
//
@@ -1560,7 +1560,7 @@ type Job struct {
Connections *ConnectionsList `type:"structure"`
// The time and date that this job definition was created.
- CreatedOn *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedOn *time.Time `type:"timestamp"`
// The default arguments for this job, specified as name-value pairs.
//
@@ -1584,7 +1584,7 @@ type Job struct {
ExecutionProperty *ExecutionProperty `type:"structure"`
// The last point in time when this job definition was modified.
- LastModifiedOn *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedOn *time.Time `type:"timestamp"`
// This field is reserved for future use.
LogUri *string `type:"string"`
@@ -1747,7 +1747,7 @@ type JobRun struct {
Attempt *int64 `type:"integer"`
// The date and time this job run completed.
- CompletedOn *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletedOn *time.Time `type:"timestamp"`
// An error message associated with this job run.
ErrorMessage *string `type:"string"`
@@ -1765,7 +1765,7 @@ type JobRun struct {
JobRunState JobRunState `type:"string" enum:"true"`
// The last time this job run was modified.
- LastModifiedOn *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedOn *time.Time `type:"timestamp"`
// The name of the log group for secure logging, that can be server-side encrypted
// in CloudWatch using KMS. This name can be /aws-glue/jobs/, in which case
@@ -1814,7 +1814,7 @@ type JobRun struct {
SecurityConfiguration *string `min:"1" type:"string"`
// The date and time at which this job run was started.
- StartedOn *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartedOn *time.Time `type:"timestamp"`
// The JobRun timeout in minutes. This is the maximum time that a job run can
// consume resources before it is terminated and enters TIMEOUT status. The
@@ -1977,7 +1977,7 @@ type JsonClassifier struct {
_ struct{} `type:"structure"`
// The time that this classifier was registered.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// A JsonPath string defining the JSON data for the classifier to classify.
// AWS Glue supports a subset of JsonPath, as described in Writing JsonPath
@@ -1987,7 +1987,7 @@ type JsonClassifier struct {
JsonPath *string `type:"string" required:"true"`
// The time that this classifier was last updated.
- LastUpdated *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdated *time.Time `type:"timestamp"`
// The name of the classifier.
//
@@ -2021,7 +2021,7 @@ type LastCrawlInfo struct {
MessagePrefix *string `min:"1" type:"string"`
// The time at which the crawl started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// Status of the last crawl.
Status LastCrawlStatus `type:"string" enum:"true"`
@@ -2189,16 +2189,16 @@ type Partition struct {
_ struct{} `type:"structure"`
// The time at which the partition was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The name of the catalog database where the table in question is located.
DatabaseName *string `min:"1" type:"string"`
// The last time at which the partition was accessed.
- LastAccessTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAccessTime *time.Time `type:"timestamp"`
// The last time at which column statistics were computed for this partition.
- LastAnalyzedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAnalyzedTime *time.Time `type:"timestamp"`
// These key-value pairs define partition parameters.
Parameters map[string]string `type:"map"`
@@ -2241,10 +2241,10 @@ type PartitionInput struct {
_ struct{} `type:"structure"`
// The last time at which the partition was accessed.
- LastAccessTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAccessTime *time.Time `type:"timestamp"`
// The last time at which column statistics were computed for this partition.
- LastAnalyzedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAnalyzedTime *time.Time `type:"timestamp"`
// These key-value pairs define partition parameters.
Parameters map[string]string `type:"map"`
@@ -2506,7 +2506,7 @@ type SecurityConfiguration struct {
_ struct{} `type:"structure"`
// The time at which this security configuration was created.
- CreatedTimeStamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimeStamp *time.Time `type:"timestamp"`
// The encryption configuration associated with this security configuration.
EncryptionConfiguration *EncryptionConfiguration `type:"structure"`
@@ -2711,7 +2711,7 @@ type Table struct {
_ struct{} `type:"structure"`
// Time when the table definition was created in the Data Catalog.
- CreateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateTime *time.Time `type:"timestamp"`
// Person or entity who created the table.
CreatedBy *string `min:"1" type:"string"`
@@ -2725,10 +2725,10 @@ type Table struct {
// Last time the table was accessed. This is usually taken from HDFS, and may
// not be reliable.
- LastAccessTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAccessTime *time.Time `type:"timestamp"`
// Last time column statistics were computed for this table.
- LastAnalyzedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAnalyzedTime *time.Time `type:"timestamp"`
// Name of the table. For Hive compatibility, this must be entirely lowercase.
//
@@ -2761,7 +2761,7 @@ type Table struct {
TableType *string `type:"string"`
// Last time the table was updated.
- UpdateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdateTime *time.Time `type:"timestamp"`
// If the table is a view, the expanded text of the view; otherwise null.
ViewExpandedText *string `type:"string"`
@@ -2801,10 +2801,10 @@ type TableInput struct {
Description *string `type:"string"`
// Last time the table was accessed.
- LastAccessTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAccessTime *time.Time `type:"timestamp"`
// Last time column statistics were computed for this table.
- LastAnalyzedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAnalyzedTime *time.Time `type:"timestamp"`
// Name of the table. For Hive compatibility, this is folded to lowercase when
// it is stored.
@@ -3208,7 +3208,7 @@ type UserDefinedFunction struct {
ClassName *string `min:"1" type:"string"`
// The time at which the function was created.
- CreateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateTime *time.Time `type:"timestamp"`
// The name of the function.
FunctionName *string `min:"1" type:"string"`
@@ -3291,10 +3291,10 @@ type XMLClassifier struct {
Classification *string `type:"string" required:"true"`
// The time that this classifier was registered.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The time that this classifier was last updated.
- LastUpdated *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdated *time.Time `type:"timestamp"`
// The name of the classifier.
//
diff --git a/service/greengrass/api_op_AssociateRoleToGroup.go b/service/greengrass/api_op_AssociateRoleToGroup.go
index 3f1954b3926..d4f3b985af8 100644
--- a/service/greengrass/api_op_AssociateRoleToGroup.go
+++ b/service/greengrass/api_op_AssociateRoleToGroup.go
@@ -42,7 +42,7 @@ func (s *AssociateRoleToGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociateRoleToGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RoleArn != nil {
v := *s.RoleArn
diff --git a/service/greengrass/api_op_AssociateServiceRoleToAccount.go b/service/greengrass/api_op_AssociateServiceRoleToAccount.go
index 8ebb1e36afe..970a2a78b6a 100644
--- a/service/greengrass/api_op_AssociateServiceRoleToAccount.go
+++ b/service/greengrass/api_op_AssociateServiceRoleToAccount.go
@@ -25,7 +25,7 @@ func (s AssociateServiceRoleToAccountInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociateServiceRoleToAccountInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RoleArn != nil {
v := *s.RoleArn
diff --git a/service/greengrass/api_op_CreateConnectorDefinition.go b/service/greengrass/api_op_CreateConnectorDefinition.go
index 9cf856b6c1c..a736cf76516 100644
--- a/service/greengrass/api_op_CreateConnectorDefinition.go
+++ b/service/greengrass/api_op_CreateConnectorDefinition.go
@@ -32,7 +32,7 @@ func (s CreateConnectorDefinitionInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateConnectorDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InitialVersion != nil {
v := s.InitialVersion
diff --git a/service/greengrass/api_op_CreateConnectorDefinitionVersion.go b/service/greengrass/api_op_CreateConnectorDefinitionVersion.go
index 4cf35f82b45..feff915d806 100644
--- a/service/greengrass/api_op_CreateConnectorDefinitionVersion.go
+++ b/service/greengrass/api_op_CreateConnectorDefinitionVersion.go
@@ -43,7 +43,7 @@ func (s *CreateConnectorDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateConnectorDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Connectors != nil {
v := s.Connectors
diff --git a/service/greengrass/api_op_CreateCoreDefinition.go b/service/greengrass/api_op_CreateCoreDefinition.go
index 65b576d4b94..38ea99371b3 100644
--- a/service/greengrass/api_op_CreateCoreDefinition.go
+++ b/service/greengrass/api_op_CreateCoreDefinition.go
@@ -31,7 +31,7 @@ func (s CreateCoreDefinitionInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateCoreDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InitialVersion != nil {
v := s.InitialVersion
diff --git a/service/greengrass/api_op_CreateCoreDefinitionVersion.go b/service/greengrass/api_op_CreateCoreDefinitionVersion.go
index 13a47fcc1b6..38ba6673777 100644
--- a/service/greengrass/api_op_CreateCoreDefinitionVersion.go
+++ b/service/greengrass/api_op_CreateCoreDefinitionVersion.go
@@ -43,7 +43,7 @@ func (s *CreateCoreDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateCoreDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Cores != nil {
v := s.Cores
diff --git a/service/greengrass/api_op_CreateDeployment.go b/service/greengrass/api_op_CreateDeployment.go
index da23829e556..f3a0c7b0db4 100644
--- a/service/greengrass/api_op_CreateDeployment.go
+++ b/service/greengrass/api_op_CreateDeployment.go
@@ -52,7 +52,7 @@ func (s *CreateDeploymentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeploymentId != nil {
v := *s.DeploymentId
diff --git a/service/greengrass/api_op_CreateDeviceDefinition.go b/service/greengrass/api_op_CreateDeviceDefinition.go
index 9c7e04653ca..8a50422e556 100644
--- a/service/greengrass/api_op_CreateDeviceDefinition.go
+++ b/service/greengrass/api_op_CreateDeviceDefinition.go
@@ -31,7 +31,7 @@ func (s CreateDeviceDefinitionInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDeviceDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InitialVersion != nil {
v := s.InitialVersion
diff --git a/service/greengrass/api_op_CreateDeviceDefinitionVersion.go b/service/greengrass/api_op_CreateDeviceDefinitionVersion.go
index 4ac1dcb84e7..4f131f99b8a 100644
--- a/service/greengrass/api_op_CreateDeviceDefinitionVersion.go
+++ b/service/greengrass/api_op_CreateDeviceDefinitionVersion.go
@@ -43,7 +43,7 @@ func (s *CreateDeviceDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDeviceDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Devices != nil {
v := s.Devices
diff --git a/service/greengrass/api_op_CreateFunctionDefinition.go b/service/greengrass/api_op_CreateFunctionDefinition.go
index 471a4621a4e..282961c07cc 100644
--- a/service/greengrass/api_op_CreateFunctionDefinition.go
+++ b/service/greengrass/api_op_CreateFunctionDefinition.go
@@ -31,7 +31,7 @@ func (s CreateFunctionDefinitionInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFunctionDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InitialVersion != nil {
v := s.InitialVersion
diff --git a/service/greengrass/api_op_CreateFunctionDefinitionVersion.go b/service/greengrass/api_op_CreateFunctionDefinitionVersion.go
index 8741512ece0..b29ec2ded01 100644
--- a/service/greengrass/api_op_CreateFunctionDefinitionVersion.go
+++ b/service/greengrass/api_op_CreateFunctionDefinitionVersion.go
@@ -47,7 +47,7 @@ func (s *CreateFunctionDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFunctionDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DefaultConfig != nil {
v := s.DefaultConfig
diff --git a/service/greengrass/api_op_CreateGroup.go b/service/greengrass/api_op_CreateGroup.go
index 3c8b7406b8b..3a8261ff491 100644
--- a/service/greengrass/api_op_CreateGroup.go
+++ b/service/greengrass/api_op_CreateGroup.go
@@ -31,7 +31,7 @@ func (s CreateGroupInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InitialVersion != nil {
v := s.InitialVersion
diff --git a/service/greengrass/api_op_CreateGroupCertificateAuthority.go b/service/greengrass/api_op_CreateGroupCertificateAuthority.go
index 908a8ecf0cb..541ea498642 100644
--- a/service/greengrass/api_op_CreateGroupCertificateAuthority.go
+++ b/service/greengrass/api_op_CreateGroupCertificateAuthority.go
@@ -41,7 +41,7 @@ func (s *CreateGroupCertificateAuthorityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateGroupCertificateAuthorityInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AmznClientToken != nil {
v := *s.AmznClientToken
diff --git a/service/greengrass/api_op_CreateGroupVersion.go b/service/greengrass/api_op_CreateGroupVersion.go
index 571c85d76cb..554930000d4 100644
--- a/service/greengrass/api_op_CreateGroupVersion.go
+++ b/service/greengrass/api_op_CreateGroupVersion.go
@@ -55,7 +55,7 @@ func (s *CreateGroupVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateGroupVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConnectorDefinitionVersionArn != nil {
v := *s.ConnectorDefinitionVersionArn
diff --git a/service/greengrass/api_op_CreateLoggerDefinition.go b/service/greengrass/api_op_CreateLoggerDefinition.go
index 34331844e20..aefceb62e72 100644
--- a/service/greengrass/api_op_CreateLoggerDefinition.go
+++ b/service/greengrass/api_op_CreateLoggerDefinition.go
@@ -31,7 +31,7 @@ func (s CreateLoggerDefinitionInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateLoggerDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InitialVersion != nil {
v := s.InitialVersion
diff --git a/service/greengrass/api_op_CreateLoggerDefinitionVersion.go b/service/greengrass/api_op_CreateLoggerDefinitionVersion.go
index 235a91feda0..f483b957216 100644
--- a/service/greengrass/api_op_CreateLoggerDefinitionVersion.go
+++ b/service/greengrass/api_op_CreateLoggerDefinitionVersion.go
@@ -43,7 +43,7 @@ func (s *CreateLoggerDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateLoggerDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Loggers != nil {
v := s.Loggers
diff --git a/service/greengrass/api_op_CreateResourceDefinition.go b/service/greengrass/api_op_CreateResourceDefinition.go
index edeaa788527..1ce781deb5c 100644
--- a/service/greengrass/api_op_CreateResourceDefinition.go
+++ b/service/greengrass/api_op_CreateResourceDefinition.go
@@ -31,7 +31,7 @@ func (s CreateResourceDefinitionInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateResourceDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InitialVersion != nil {
v := s.InitialVersion
diff --git a/service/greengrass/api_op_CreateResourceDefinitionVersion.go b/service/greengrass/api_op_CreateResourceDefinitionVersion.go
index c0424afdffa..1af1ed978fe 100644
--- a/service/greengrass/api_op_CreateResourceDefinitionVersion.go
+++ b/service/greengrass/api_op_CreateResourceDefinitionVersion.go
@@ -43,7 +43,7 @@ func (s *CreateResourceDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateResourceDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Resources != nil {
v := s.Resources
diff --git a/service/greengrass/api_op_CreateSoftwareUpdateJob.go b/service/greengrass/api_op_CreateSoftwareUpdateJob.go
index f803c98429c..fd1ac6d06cc 100644
--- a/service/greengrass/api_op_CreateSoftwareUpdateJob.go
+++ b/service/greengrass/api_op_CreateSoftwareUpdateJob.go
@@ -46,7 +46,7 @@ func (s CreateSoftwareUpdateJobInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSoftwareUpdateJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.S3UrlSignerRole != nil {
v := *s.S3UrlSignerRole
diff --git a/service/greengrass/api_op_CreateSubscriptionDefinition.go b/service/greengrass/api_op_CreateSubscriptionDefinition.go
index a6043c82f39..5f38a6db749 100644
--- a/service/greengrass/api_op_CreateSubscriptionDefinition.go
+++ b/service/greengrass/api_op_CreateSubscriptionDefinition.go
@@ -31,7 +31,7 @@ func (s CreateSubscriptionDefinitionInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSubscriptionDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InitialVersion != nil {
v := s.InitialVersion
diff --git a/service/greengrass/api_op_CreateSubscriptionDefinitionVersion.go b/service/greengrass/api_op_CreateSubscriptionDefinitionVersion.go
index b67b9fbaf11..58ff05a8791 100644
--- a/service/greengrass/api_op_CreateSubscriptionDefinitionVersion.go
+++ b/service/greengrass/api_op_CreateSubscriptionDefinitionVersion.go
@@ -43,7 +43,7 @@ func (s *CreateSubscriptionDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSubscriptionDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Subscriptions != nil {
v := s.Subscriptions
diff --git a/service/greengrass/api_op_DeleteConnectorDefinition.go b/service/greengrass/api_op_DeleteConnectorDefinition.go
index f133474c67c..3f720c55bb1 100644
--- a/service/greengrass/api_op_DeleteConnectorDefinition.go
+++ b/service/greengrass/api_op_DeleteConnectorDefinition.go
@@ -39,7 +39,7 @@ func (s *DeleteConnectorDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteConnectorDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConnectorDefinitionId != nil {
v := *s.ConnectorDefinitionId
diff --git a/service/greengrass/api_op_DeleteCoreDefinition.go b/service/greengrass/api_op_DeleteCoreDefinition.go
index 491dc2b8b5e..7a4322da59d 100644
--- a/service/greengrass/api_op_DeleteCoreDefinition.go
+++ b/service/greengrass/api_op_DeleteCoreDefinition.go
@@ -39,7 +39,7 @@ func (s *DeleteCoreDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteCoreDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CoreDefinitionId != nil {
v := *s.CoreDefinitionId
diff --git a/service/greengrass/api_op_DeleteDeviceDefinition.go b/service/greengrass/api_op_DeleteDeviceDefinition.go
index 5608aa22f0f..518ccf36a9e 100644
--- a/service/greengrass/api_op_DeleteDeviceDefinition.go
+++ b/service/greengrass/api_op_DeleteDeviceDefinition.go
@@ -39,7 +39,7 @@ func (s *DeleteDeviceDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDeviceDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceDefinitionId != nil {
v := *s.DeviceDefinitionId
diff --git a/service/greengrass/api_op_DeleteFunctionDefinition.go b/service/greengrass/api_op_DeleteFunctionDefinition.go
index 725145a6602..c8032fec289 100644
--- a/service/greengrass/api_op_DeleteFunctionDefinition.go
+++ b/service/greengrass/api_op_DeleteFunctionDefinition.go
@@ -39,7 +39,7 @@ func (s *DeleteFunctionDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFunctionDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionDefinitionId != nil {
v := *s.FunctionDefinitionId
diff --git a/service/greengrass/api_op_DeleteGroup.go b/service/greengrass/api_op_DeleteGroup.go
index 890e77b943b..98914d3b1dc 100644
--- a/service/greengrass/api_op_DeleteGroup.go
+++ b/service/greengrass/api_op_DeleteGroup.go
@@ -39,7 +39,7 @@ func (s *DeleteGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupId != nil {
v := *s.GroupId
diff --git a/service/greengrass/api_op_DeleteLoggerDefinition.go b/service/greengrass/api_op_DeleteLoggerDefinition.go
index 6e2e7d33bf9..98a296d4529 100644
--- a/service/greengrass/api_op_DeleteLoggerDefinition.go
+++ b/service/greengrass/api_op_DeleteLoggerDefinition.go
@@ -39,7 +39,7 @@ func (s *DeleteLoggerDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteLoggerDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LoggerDefinitionId != nil {
v := *s.LoggerDefinitionId
diff --git a/service/greengrass/api_op_DeleteResourceDefinition.go b/service/greengrass/api_op_DeleteResourceDefinition.go
index 2454214db96..b4a802d00b0 100644
--- a/service/greengrass/api_op_DeleteResourceDefinition.go
+++ b/service/greengrass/api_op_DeleteResourceDefinition.go
@@ -39,7 +39,7 @@ func (s *DeleteResourceDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteResourceDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceDefinitionId != nil {
v := *s.ResourceDefinitionId
diff --git a/service/greengrass/api_op_DeleteSubscriptionDefinition.go b/service/greengrass/api_op_DeleteSubscriptionDefinition.go
index 974d2111280..60c1ea8b9a6 100644
--- a/service/greengrass/api_op_DeleteSubscriptionDefinition.go
+++ b/service/greengrass/api_op_DeleteSubscriptionDefinition.go
@@ -39,7 +39,7 @@ func (s *DeleteSubscriptionDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteSubscriptionDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SubscriptionDefinitionId != nil {
v := *s.SubscriptionDefinitionId
diff --git a/service/greengrass/api_op_DisassociateRoleFromGroup.go b/service/greengrass/api_op_DisassociateRoleFromGroup.go
index 8b8f326c94d..cee25295353 100644
--- a/service/greengrass/api_op_DisassociateRoleFromGroup.go
+++ b/service/greengrass/api_op_DisassociateRoleFromGroup.go
@@ -39,7 +39,7 @@ func (s *DisassociateRoleFromGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateRoleFromGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupId != nil {
v := *s.GroupId
diff --git a/service/greengrass/api_op_DisassociateServiceRoleFromAccount.go b/service/greengrass/api_op_DisassociateServiceRoleFromAccount.go
index 8f0f3b2f3f0..4f1c8f34e15 100644
--- a/service/greengrass/api_op_DisassociateServiceRoleFromAccount.go
+++ b/service/greengrass/api_op_DisassociateServiceRoleFromAccount.go
@@ -22,7 +22,7 @@ func (s DisassociateServiceRoleFromAccountInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateServiceRoleFromAccountInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/greengrass/api_op_GetAssociatedRole.go b/service/greengrass/api_op_GetAssociatedRole.go
index 5be9184b8aa..c6799619b42 100644
--- a/service/greengrass/api_op_GetAssociatedRole.go
+++ b/service/greengrass/api_op_GetAssociatedRole.go
@@ -39,7 +39,7 @@ func (s *GetAssociatedRoleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAssociatedRoleInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupId != nil {
v := *s.GroupId
diff --git a/service/greengrass/api_op_GetBulkDeploymentStatus.go b/service/greengrass/api_op_GetBulkDeploymentStatus.go
index bb60ff15bb1..c4b114fa050 100644
--- a/service/greengrass/api_op_GetBulkDeploymentStatus.go
+++ b/service/greengrass/api_op_GetBulkDeploymentStatus.go
@@ -39,7 +39,7 @@ func (s *GetBulkDeploymentStatusInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBulkDeploymentStatusInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BulkDeploymentId != nil {
v := *s.BulkDeploymentId
diff --git a/service/greengrass/api_op_GetConnectivityInfo.go b/service/greengrass/api_op_GetConnectivityInfo.go
index af5fe288a98..257a403cf97 100644
--- a/service/greengrass/api_op_GetConnectivityInfo.go
+++ b/service/greengrass/api_op_GetConnectivityInfo.go
@@ -39,7 +39,7 @@ func (s *GetConnectivityInfoInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetConnectivityInfoInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingName != nil {
v := *s.ThingName
diff --git a/service/greengrass/api_op_GetConnectorDefinition.go b/service/greengrass/api_op_GetConnectorDefinition.go
index ceedb6f61a4..a1aef297206 100644
--- a/service/greengrass/api_op_GetConnectorDefinition.go
+++ b/service/greengrass/api_op_GetConnectorDefinition.go
@@ -39,7 +39,7 @@ func (s *GetConnectorDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetConnectorDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConnectorDefinitionId != nil {
v := *s.ConnectorDefinitionId
diff --git a/service/greengrass/api_op_GetConnectorDefinitionVersion.go b/service/greengrass/api_op_GetConnectorDefinitionVersion.go
index 84dc83c4009..a8bd351c227 100644
--- a/service/greengrass/api_op_GetConnectorDefinitionVersion.go
+++ b/service/greengrass/api_op_GetConnectorDefinitionVersion.go
@@ -48,7 +48,7 @@ func (s *GetConnectorDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetConnectorDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConnectorDefinitionId != nil {
v := *s.ConnectorDefinitionId
diff --git a/service/greengrass/api_op_GetCoreDefinition.go b/service/greengrass/api_op_GetCoreDefinition.go
index aef50dda63e..135dd946a5d 100644
--- a/service/greengrass/api_op_GetCoreDefinition.go
+++ b/service/greengrass/api_op_GetCoreDefinition.go
@@ -39,7 +39,7 @@ func (s *GetCoreDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCoreDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CoreDefinitionId != nil {
v := *s.CoreDefinitionId
diff --git a/service/greengrass/api_op_GetCoreDefinitionVersion.go b/service/greengrass/api_op_GetCoreDefinitionVersion.go
index 79343577f14..3ce82b7230b 100644
--- a/service/greengrass/api_op_GetCoreDefinitionVersion.go
+++ b/service/greengrass/api_op_GetCoreDefinitionVersion.go
@@ -46,7 +46,7 @@ func (s *GetCoreDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCoreDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CoreDefinitionId != nil {
v := *s.CoreDefinitionId
diff --git a/service/greengrass/api_op_GetDeploymentStatus.go b/service/greengrass/api_op_GetDeploymentStatus.go
index b11a3ad4827..05e7a40a2fc 100644
--- a/service/greengrass/api_op_GetDeploymentStatus.go
+++ b/service/greengrass/api_op_GetDeploymentStatus.go
@@ -46,7 +46,7 @@ func (s *GetDeploymentStatusInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDeploymentStatusInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeploymentId != nil {
v := *s.DeploymentId
diff --git a/service/greengrass/api_op_GetDeviceDefinition.go b/service/greengrass/api_op_GetDeviceDefinition.go
index 45bb394eb4d..d374ced0970 100644
--- a/service/greengrass/api_op_GetDeviceDefinition.go
+++ b/service/greengrass/api_op_GetDeviceDefinition.go
@@ -39,7 +39,7 @@ func (s *GetDeviceDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDeviceDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceDefinitionId != nil {
v := *s.DeviceDefinitionId
diff --git a/service/greengrass/api_op_GetDeviceDefinitionVersion.go b/service/greengrass/api_op_GetDeviceDefinitionVersion.go
index bd2b3bf542d..db7e8977b30 100644
--- a/service/greengrass/api_op_GetDeviceDefinitionVersion.go
+++ b/service/greengrass/api_op_GetDeviceDefinitionVersion.go
@@ -48,7 +48,7 @@ func (s *GetDeviceDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDeviceDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceDefinitionId != nil {
v := *s.DeviceDefinitionId
diff --git a/service/greengrass/api_op_GetFunctionDefinition.go b/service/greengrass/api_op_GetFunctionDefinition.go
index 9692dc2fb5e..d2b404a2cf4 100644
--- a/service/greengrass/api_op_GetFunctionDefinition.go
+++ b/service/greengrass/api_op_GetFunctionDefinition.go
@@ -39,7 +39,7 @@ func (s *GetFunctionDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFunctionDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionDefinitionId != nil {
v := *s.FunctionDefinitionId
diff --git a/service/greengrass/api_op_GetFunctionDefinitionVersion.go b/service/greengrass/api_op_GetFunctionDefinitionVersion.go
index f7c85260165..7cc98722dda 100644
--- a/service/greengrass/api_op_GetFunctionDefinitionVersion.go
+++ b/service/greengrass/api_op_GetFunctionDefinitionVersion.go
@@ -48,7 +48,7 @@ func (s *GetFunctionDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFunctionDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionDefinitionId != nil {
v := *s.FunctionDefinitionId
diff --git a/service/greengrass/api_op_GetGroup.go b/service/greengrass/api_op_GetGroup.go
index 558d1e5be34..2953ddccf40 100644
--- a/service/greengrass/api_op_GetGroup.go
+++ b/service/greengrass/api_op_GetGroup.go
@@ -39,7 +39,7 @@ func (s *GetGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupId != nil {
v := *s.GroupId
diff --git a/service/greengrass/api_op_GetGroupCertificateAuthority.go b/service/greengrass/api_op_GetGroupCertificateAuthority.go
index 7a5c24543a5..efb85c53837 100644
--- a/service/greengrass/api_op_GetGroupCertificateAuthority.go
+++ b/service/greengrass/api_op_GetGroupCertificateAuthority.go
@@ -46,7 +46,7 @@ func (s *GetGroupCertificateAuthorityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGroupCertificateAuthorityInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateAuthorityId != nil {
v := *s.CertificateAuthorityId
diff --git a/service/greengrass/api_op_GetGroupCertificateConfiguration.go b/service/greengrass/api_op_GetGroupCertificateConfiguration.go
index 8c6f7b57dc4..128a1443a73 100644
--- a/service/greengrass/api_op_GetGroupCertificateConfiguration.go
+++ b/service/greengrass/api_op_GetGroupCertificateConfiguration.go
@@ -39,7 +39,7 @@ func (s *GetGroupCertificateConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGroupCertificateConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupId != nil {
v := *s.GroupId
diff --git a/service/greengrass/api_op_GetGroupVersion.go b/service/greengrass/api_op_GetGroupVersion.go
index cb9324ceac8..f2f7b8abf33 100644
--- a/service/greengrass/api_op_GetGroupVersion.go
+++ b/service/greengrass/api_op_GetGroupVersion.go
@@ -46,7 +46,7 @@ func (s *GetGroupVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGroupVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupId != nil {
v := *s.GroupId
diff --git a/service/greengrass/api_op_GetLoggerDefinition.go b/service/greengrass/api_op_GetLoggerDefinition.go
index f48a05e7e32..fec7ebdfaf2 100644
--- a/service/greengrass/api_op_GetLoggerDefinition.go
+++ b/service/greengrass/api_op_GetLoggerDefinition.go
@@ -39,7 +39,7 @@ func (s *GetLoggerDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetLoggerDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LoggerDefinitionId != nil {
v := *s.LoggerDefinitionId
diff --git a/service/greengrass/api_op_GetLoggerDefinitionVersion.go b/service/greengrass/api_op_GetLoggerDefinitionVersion.go
index 7ed19c31c55..296b977878f 100644
--- a/service/greengrass/api_op_GetLoggerDefinitionVersion.go
+++ b/service/greengrass/api_op_GetLoggerDefinitionVersion.go
@@ -48,7 +48,7 @@ func (s *GetLoggerDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetLoggerDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LoggerDefinitionId != nil {
v := *s.LoggerDefinitionId
diff --git a/service/greengrass/api_op_GetResourceDefinition.go b/service/greengrass/api_op_GetResourceDefinition.go
index 044a3537579..b195c00bd10 100644
--- a/service/greengrass/api_op_GetResourceDefinition.go
+++ b/service/greengrass/api_op_GetResourceDefinition.go
@@ -39,7 +39,7 @@ func (s *GetResourceDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetResourceDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceDefinitionId != nil {
v := *s.ResourceDefinitionId
diff --git a/service/greengrass/api_op_GetResourceDefinitionVersion.go b/service/greengrass/api_op_GetResourceDefinitionVersion.go
index c0dedc5f4fe..abfa22e96ee 100644
--- a/service/greengrass/api_op_GetResourceDefinitionVersion.go
+++ b/service/greengrass/api_op_GetResourceDefinitionVersion.go
@@ -46,7 +46,7 @@ func (s *GetResourceDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetResourceDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceDefinitionId != nil {
v := *s.ResourceDefinitionId
diff --git a/service/greengrass/api_op_GetServiceRoleForAccount.go b/service/greengrass/api_op_GetServiceRoleForAccount.go
index 8fe96bc8021..f1a0e32a1e3 100644
--- a/service/greengrass/api_op_GetServiceRoleForAccount.go
+++ b/service/greengrass/api_op_GetServiceRoleForAccount.go
@@ -22,7 +22,7 @@ func (s GetServiceRoleForAccountInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetServiceRoleForAccountInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/greengrass/api_op_GetSubscriptionDefinition.go b/service/greengrass/api_op_GetSubscriptionDefinition.go
index ec5e4b5f7df..392d91f7120 100644
--- a/service/greengrass/api_op_GetSubscriptionDefinition.go
+++ b/service/greengrass/api_op_GetSubscriptionDefinition.go
@@ -39,7 +39,7 @@ func (s *GetSubscriptionDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSubscriptionDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SubscriptionDefinitionId != nil {
v := *s.SubscriptionDefinitionId
diff --git a/service/greengrass/api_op_GetSubscriptionDefinitionVersion.go b/service/greengrass/api_op_GetSubscriptionDefinitionVersion.go
index d30f7e3b25a..e3a3df61263 100644
--- a/service/greengrass/api_op_GetSubscriptionDefinitionVersion.go
+++ b/service/greengrass/api_op_GetSubscriptionDefinitionVersion.go
@@ -48,7 +48,7 @@ func (s *GetSubscriptionDefinitionVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSubscriptionDefinitionVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SubscriptionDefinitionId != nil {
v := *s.SubscriptionDefinitionId
diff --git a/service/greengrass/api_op_ListBulkDeploymentDetailedReports.go b/service/greengrass/api_op_ListBulkDeploymentDetailedReports.go
index 6d733c1aa4f..66c65daccc3 100644
--- a/service/greengrass/api_op_ListBulkDeploymentDetailedReports.go
+++ b/service/greengrass/api_op_ListBulkDeploymentDetailedReports.go
@@ -43,7 +43,7 @@ func (s *ListBulkDeploymentDetailedReportsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBulkDeploymentDetailedReportsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BulkDeploymentId != nil {
v := *s.BulkDeploymentId
diff --git a/service/greengrass/api_op_ListBulkDeployments.go b/service/greengrass/api_op_ListBulkDeployments.go
index 13a39b6dbcd..8bab79907c7 100644
--- a/service/greengrass/api_op_ListBulkDeployments.go
+++ b/service/greengrass/api_op_ListBulkDeployments.go
@@ -26,7 +26,7 @@ func (s ListBulkDeploymentsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBulkDeploymentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/greengrass/api_op_ListConnectorDefinitionVersions.go b/service/greengrass/api_op_ListConnectorDefinitionVersions.go
index 32cd8152479..1d5ba512aca 100644
--- a/service/greengrass/api_op_ListConnectorDefinitionVersions.go
+++ b/service/greengrass/api_op_ListConnectorDefinitionVersions.go
@@ -43,7 +43,7 @@ func (s *ListConnectorDefinitionVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListConnectorDefinitionVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConnectorDefinitionId != nil {
v := *s.ConnectorDefinitionId
diff --git a/service/greengrass/api_op_ListConnectorDefinitions.go b/service/greengrass/api_op_ListConnectorDefinitions.go
index e76cc274964..b892032f726 100644
--- a/service/greengrass/api_op_ListConnectorDefinitions.go
+++ b/service/greengrass/api_op_ListConnectorDefinitions.go
@@ -26,7 +26,7 @@ func (s ListConnectorDefinitionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListConnectorDefinitionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/greengrass/api_op_ListCoreDefinitionVersions.go b/service/greengrass/api_op_ListCoreDefinitionVersions.go
index aa8ffcbb04f..e07db838f18 100644
--- a/service/greengrass/api_op_ListCoreDefinitionVersions.go
+++ b/service/greengrass/api_op_ListCoreDefinitionVersions.go
@@ -43,7 +43,7 @@ func (s *ListCoreDefinitionVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListCoreDefinitionVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CoreDefinitionId != nil {
v := *s.CoreDefinitionId
diff --git a/service/greengrass/api_op_ListCoreDefinitions.go b/service/greengrass/api_op_ListCoreDefinitions.go
index 68c89f4e1d4..a12246e9ab5 100644
--- a/service/greengrass/api_op_ListCoreDefinitions.go
+++ b/service/greengrass/api_op_ListCoreDefinitions.go
@@ -26,7 +26,7 @@ func (s ListCoreDefinitionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListCoreDefinitionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/greengrass/api_op_ListDeployments.go b/service/greengrass/api_op_ListDeployments.go
index 706caaf9589..8b3524419c4 100644
--- a/service/greengrass/api_op_ListDeployments.go
+++ b/service/greengrass/api_op_ListDeployments.go
@@ -43,7 +43,7 @@ func (s *ListDeploymentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDeploymentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupId != nil {
v := *s.GroupId
diff --git a/service/greengrass/api_op_ListDeviceDefinitionVersions.go b/service/greengrass/api_op_ListDeviceDefinitionVersions.go
index 94d6544f26d..d069c50331b 100644
--- a/service/greengrass/api_op_ListDeviceDefinitionVersions.go
+++ b/service/greengrass/api_op_ListDeviceDefinitionVersions.go
@@ -43,7 +43,7 @@ func (s *ListDeviceDefinitionVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDeviceDefinitionVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceDefinitionId != nil {
v := *s.DeviceDefinitionId
diff --git a/service/greengrass/api_op_ListDeviceDefinitions.go b/service/greengrass/api_op_ListDeviceDefinitions.go
index ed8450f013f..9b0bedcfdb8 100644
--- a/service/greengrass/api_op_ListDeviceDefinitions.go
+++ b/service/greengrass/api_op_ListDeviceDefinitions.go
@@ -26,7 +26,7 @@ func (s ListDeviceDefinitionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDeviceDefinitionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/greengrass/api_op_ListFunctionDefinitionVersions.go b/service/greengrass/api_op_ListFunctionDefinitionVersions.go
index cb55347d266..3cc43c01898 100644
--- a/service/greengrass/api_op_ListFunctionDefinitionVersions.go
+++ b/service/greengrass/api_op_ListFunctionDefinitionVersions.go
@@ -43,7 +43,7 @@ func (s *ListFunctionDefinitionVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFunctionDefinitionVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionDefinitionId != nil {
v := *s.FunctionDefinitionId
diff --git a/service/greengrass/api_op_ListFunctionDefinitions.go b/service/greengrass/api_op_ListFunctionDefinitions.go
index 061f42a1e38..5d2d64513e8 100644
--- a/service/greengrass/api_op_ListFunctionDefinitions.go
+++ b/service/greengrass/api_op_ListFunctionDefinitions.go
@@ -26,7 +26,7 @@ func (s ListFunctionDefinitionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFunctionDefinitionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/greengrass/api_op_ListGroupCertificateAuthorities.go b/service/greengrass/api_op_ListGroupCertificateAuthorities.go
index c3e7eefe23c..17577a75ea7 100644
--- a/service/greengrass/api_op_ListGroupCertificateAuthorities.go
+++ b/service/greengrass/api_op_ListGroupCertificateAuthorities.go
@@ -39,7 +39,7 @@ func (s *ListGroupCertificateAuthoritiesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListGroupCertificateAuthoritiesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupId != nil {
v := *s.GroupId
diff --git a/service/greengrass/api_op_ListGroupVersions.go b/service/greengrass/api_op_ListGroupVersions.go
index d10df74f7c4..5bb689c0d2e 100644
--- a/service/greengrass/api_op_ListGroupVersions.go
+++ b/service/greengrass/api_op_ListGroupVersions.go
@@ -43,7 +43,7 @@ func (s *ListGroupVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListGroupVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupId != nil {
v := *s.GroupId
diff --git a/service/greengrass/api_op_ListGroups.go b/service/greengrass/api_op_ListGroups.go
index 314f6cf4c12..da19e8f5a28 100644
--- a/service/greengrass/api_op_ListGroups.go
+++ b/service/greengrass/api_op_ListGroups.go
@@ -26,7 +26,7 @@ func (s ListGroupsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/greengrass/api_op_ListLoggerDefinitionVersions.go b/service/greengrass/api_op_ListLoggerDefinitionVersions.go
index be2146c17be..615f8d28c76 100644
--- a/service/greengrass/api_op_ListLoggerDefinitionVersions.go
+++ b/service/greengrass/api_op_ListLoggerDefinitionVersions.go
@@ -43,7 +43,7 @@ func (s *ListLoggerDefinitionVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListLoggerDefinitionVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LoggerDefinitionId != nil {
v := *s.LoggerDefinitionId
diff --git a/service/greengrass/api_op_ListLoggerDefinitions.go b/service/greengrass/api_op_ListLoggerDefinitions.go
index d26617ee943..b3aee8c252d 100644
--- a/service/greengrass/api_op_ListLoggerDefinitions.go
+++ b/service/greengrass/api_op_ListLoggerDefinitions.go
@@ -26,7 +26,7 @@ func (s ListLoggerDefinitionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListLoggerDefinitionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/greengrass/api_op_ListResourceDefinitionVersions.go b/service/greengrass/api_op_ListResourceDefinitionVersions.go
index a3547e67a4c..d3a11e30319 100644
--- a/service/greengrass/api_op_ListResourceDefinitionVersions.go
+++ b/service/greengrass/api_op_ListResourceDefinitionVersions.go
@@ -43,7 +43,7 @@ func (s *ListResourceDefinitionVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListResourceDefinitionVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceDefinitionId != nil {
v := *s.ResourceDefinitionId
diff --git a/service/greengrass/api_op_ListResourceDefinitions.go b/service/greengrass/api_op_ListResourceDefinitions.go
index a3cfcd0a1cb..ed4dabe3f2b 100644
--- a/service/greengrass/api_op_ListResourceDefinitions.go
+++ b/service/greengrass/api_op_ListResourceDefinitions.go
@@ -26,7 +26,7 @@ func (s ListResourceDefinitionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListResourceDefinitionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/greengrass/api_op_ListSubscriptionDefinitionVersions.go b/service/greengrass/api_op_ListSubscriptionDefinitionVersions.go
index fc57380ed4d..cfc3cedcca6 100644
--- a/service/greengrass/api_op_ListSubscriptionDefinitionVersions.go
+++ b/service/greengrass/api_op_ListSubscriptionDefinitionVersions.go
@@ -43,7 +43,7 @@ func (s *ListSubscriptionDefinitionVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSubscriptionDefinitionVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SubscriptionDefinitionId != nil {
v := *s.SubscriptionDefinitionId
diff --git a/service/greengrass/api_op_ListSubscriptionDefinitions.go b/service/greengrass/api_op_ListSubscriptionDefinitions.go
index cf9465db16f..0971069f767 100644
--- a/service/greengrass/api_op_ListSubscriptionDefinitions.go
+++ b/service/greengrass/api_op_ListSubscriptionDefinitions.go
@@ -26,7 +26,7 @@ func (s ListSubscriptionDefinitionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSubscriptionDefinitionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/greengrass/api_op_ListTagsForResource.go b/service/greengrass/api_op_ListTagsForResource.go
index 0a07e4179ef..14b5d934ffa 100644
--- a/service/greengrass/api_op_ListTagsForResource.go
+++ b/service/greengrass/api_op_ListTagsForResource.go
@@ -39,7 +39,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/greengrass/api_op_ResetDeployments.go b/service/greengrass/api_op_ResetDeployments.go
index b9fa7980df0..ad4c42a7e7d 100644
--- a/service/greengrass/api_op_ResetDeployments.go
+++ b/service/greengrass/api_op_ResetDeployments.go
@@ -45,7 +45,7 @@ func (s *ResetDeploymentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ResetDeploymentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Force != nil {
v := *s.Force
diff --git a/service/greengrass/api_op_StartBulkDeployment.go b/service/greengrass/api_op_StartBulkDeployment.go
index 632143ea5df..7c1a6c88507 100644
--- a/service/greengrass/api_op_StartBulkDeployment.go
+++ b/service/greengrass/api_op_StartBulkDeployment.go
@@ -42,7 +42,7 @@ func (s StartBulkDeploymentInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartBulkDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ExecutionRoleArn != nil {
v := *s.ExecutionRoleArn
diff --git a/service/greengrass/api_op_StopBulkDeployment.go b/service/greengrass/api_op_StopBulkDeployment.go
index 5b3f0c97684..2600cc39586 100644
--- a/service/greengrass/api_op_StopBulkDeployment.go
+++ b/service/greengrass/api_op_StopBulkDeployment.go
@@ -39,7 +39,7 @@ func (s *StopBulkDeploymentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StopBulkDeploymentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BulkDeploymentId != nil {
v := *s.BulkDeploymentId
diff --git a/service/greengrass/api_op_TagResource.go b/service/greengrass/api_op_TagResource.go
index c1fed299e4b..c702986bde6 100644
--- a/service/greengrass/api_op_TagResource.go
+++ b/service/greengrass/api_op_TagResource.go
@@ -47,7 +47,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/greengrass/api_op_UntagResource.go b/service/greengrass/api_op_UntagResource.go
index 5f2fb80eb00..ab42c079e91 100644
--- a/service/greengrass/api_op_UntagResource.go
+++ b/service/greengrass/api_op_UntagResource.go
@@ -47,7 +47,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/greengrass/api_op_UpdateConnectivityInfo.go b/service/greengrass/api_op_UpdateConnectivityInfo.go
index a977191ea8d..246dbd560e8 100644
--- a/service/greengrass/api_op_UpdateConnectivityInfo.go
+++ b/service/greengrass/api_op_UpdateConnectivityInfo.go
@@ -43,7 +43,7 @@ func (s *UpdateConnectivityInfoInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateConnectivityInfoInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConnectivityInfo != nil {
v := s.ConnectivityInfo
diff --git a/service/greengrass/api_op_UpdateConnectorDefinition.go b/service/greengrass/api_op_UpdateConnectorDefinition.go
index d880f57752b..1f006e7d4f9 100644
--- a/service/greengrass/api_op_UpdateConnectorDefinition.go
+++ b/service/greengrass/api_op_UpdateConnectorDefinition.go
@@ -41,7 +41,7 @@ func (s *UpdateConnectorDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateConnectorDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/greengrass/api_op_UpdateCoreDefinition.go b/service/greengrass/api_op_UpdateCoreDefinition.go
index da14fc31c53..ada13e0d21f 100644
--- a/service/greengrass/api_op_UpdateCoreDefinition.go
+++ b/service/greengrass/api_op_UpdateCoreDefinition.go
@@ -41,7 +41,7 @@ func (s *UpdateCoreDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateCoreDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/greengrass/api_op_UpdateDeviceDefinition.go b/service/greengrass/api_op_UpdateDeviceDefinition.go
index f7591d2abf4..6ab273be8f0 100644
--- a/service/greengrass/api_op_UpdateDeviceDefinition.go
+++ b/service/greengrass/api_op_UpdateDeviceDefinition.go
@@ -41,7 +41,7 @@ func (s *UpdateDeviceDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDeviceDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/greengrass/api_op_UpdateFunctionDefinition.go b/service/greengrass/api_op_UpdateFunctionDefinition.go
index 7e013157ce0..392c86280a7 100644
--- a/service/greengrass/api_op_UpdateFunctionDefinition.go
+++ b/service/greengrass/api_op_UpdateFunctionDefinition.go
@@ -41,7 +41,7 @@ func (s *UpdateFunctionDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFunctionDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/greengrass/api_op_UpdateGroup.go b/service/greengrass/api_op_UpdateGroup.go
index cb0b7b2849d..9a32836638b 100644
--- a/service/greengrass/api_op_UpdateGroup.go
+++ b/service/greengrass/api_op_UpdateGroup.go
@@ -41,7 +41,7 @@ func (s *UpdateGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/greengrass/api_op_UpdateGroupCertificateConfiguration.go b/service/greengrass/api_op_UpdateGroupCertificateConfiguration.go
index c00a9966cd0..95b98c2a3c0 100644
--- a/service/greengrass/api_op_UpdateGroupCertificateConfiguration.go
+++ b/service/greengrass/api_op_UpdateGroupCertificateConfiguration.go
@@ -42,7 +42,7 @@ func (s *UpdateGroupCertificateConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateGroupCertificateConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateExpiryInMilliseconds != nil {
v := *s.CertificateExpiryInMilliseconds
diff --git a/service/greengrass/api_op_UpdateLoggerDefinition.go b/service/greengrass/api_op_UpdateLoggerDefinition.go
index c36e4938bce..075925e6421 100644
--- a/service/greengrass/api_op_UpdateLoggerDefinition.go
+++ b/service/greengrass/api_op_UpdateLoggerDefinition.go
@@ -41,7 +41,7 @@ func (s *UpdateLoggerDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateLoggerDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/greengrass/api_op_UpdateResourceDefinition.go b/service/greengrass/api_op_UpdateResourceDefinition.go
index 2052f7370f8..c7d27603703 100644
--- a/service/greengrass/api_op_UpdateResourceDefinition.go
+++ b/service/greengrass/api_op_UpdateResourceDefinition.go
@@ -41,7 +41,7 @@ func (s *UpdateResourceDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateResourceDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/greengrass/api_op_UpdateSubscriptionDefinition.go b/service/greengrass/api_op_UpdateSubscriptionDefinition.go
index 7200291387a..556e20ab16b 100644
--- a/service/greengrass/api_op_UpdateSubscriptionDefinition.go
+++ b/service/greengrass/api_op_UpdateSubscriptionDefinition.go
@@ -41,7 +41,7 @@ func (s *UpdateSubscriptionDefinitionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateSubscriptionDefinitionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/groundstation/api_op_CancelContact.go b/service/groundstation/api_op_CancelContact.go
index 980f72eaeb9..96d81952667 100644
--- a/service/groundstation/api_op_CancelContact.go
+++ b/service/groundstation/api_op_CancelContact.go
@@ -41,7 +41,7 @@ func (s *CancelContactInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelContactInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ContactId != nil {
v := *s.ContactId
diff --git a/service/groundstation/api_op_CreateConfig.go b/service/groundstation/api_op_CreateConfig.go
index 179ce87efc7..ddf9e442617 100644
--- a/service/groundstation/api_op_CreateConfig.go
+++ b/service/groundstation/api_op_CreateConfig.go
@@ -61,7 +61,7 @@ func (s *CreateConfigInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateConfigInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigData != nil {
v := s.ConfigData
diff --git a/service/groundstation/api_op_CreateDataflowEndpointGroup.go b/service/groundstation/api_op_CreateDataflowEndpointGroup.go
index 1de5da7d392..0d141fa6b24 100644
--- a/service/groundstation/api_op_CreateDataflowEndpointGroup.go
+++ b/service/groundstation/api_op_CreateDataflowEndpointGroup.go
@@ -52,7 +52,7 @@ func (s *CreateDataflowEndpointGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDataflowEndpointGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndpointDetails != nil {
v := s.EndpointDetails
diff --git a/service/groundstation/api_op_CreateMissionProfile.go b/service/groundstation/api_op_CreateMissionProfile.go
index 5eef71dccb2..3eec1d3ed65 100644
--- a/service/groundstation/api_op_CreateMissionProfile.go
+++ b/service/groundstation/api_op_CreateMissionProfile.go
@@ -94,7 +94,7 @@ func (s *CreateMissionProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateMissionProfileInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ContactPostPassDurationSeconds != nil {
v := *s.ContactPostPassDurationSeconds
diff --git a/service/groundstation/api_op_DeleteConfig.go b/service/groundstation/api_op_DeleteConfig.go
index 0399e16d9e5..5b9498b069d 100644
--- a/service/groundstation/api_op_DeleteConfig.go
+++ b/service/groundstation/api_op_DeleteConfig.go
@@ -49,7 +49,7 @@ func (s *DeleteConfigInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteConfigInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigId != nil {
v := *s.ConfigId
diff --git a/service/groundstation/api_op_DeleteDataflowEndpointGroup.go b/service/groundstation/api_op_DeleteDataflowEndpointGroup.go
index 13cf64a3208..5d20c1da3b9 100644
--- a/service/groundstation/api_op_DeleteDataflowEndpointGroup.go
+++ b/service/groundstation/api_op_DeleteDataflowEndpointGroup.go
@@ -41,7 +41,7 @@ func (s *DeleteDataflowEndpointGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDataflowEndpointGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DataflowEndpointGroupId != nil {
v := *s.DataflowEndpointGroupId
diff --git a/service/groundstation/api_op_DeleteMissionProfile.go b/service/groundstation/api_op_DeleteMissionProfile.go
index 2d4082a33f1..fdd71a3350c 100644
--- a/service/groundstation/api_op_DeleteMissionProfile.go
+++ b/service/groundstation/api_op_DeleteMissionProfile.go
@@ -41,7 +41,7 @@ func (s *DeleteMissionProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteMissionProfileInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MissionProfileId != nil {
v := *s.MissionProfileId
diff --git a/service/groundstation/api_op_DescribeContact.go b/service/groundstation/api_op_DescribeContact.go
index 42560dd16b9..c8feafeeea5 100644
--- a/service/groundstation/api_op_DescribeContact.go
+++ b/service/groundstation/api_op_DescribeContact.go
@@ -42,7 +42,7 @@ func (s *DescribeContactInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeContactInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ContactId != nil {
v := *s.ContactId
@@ -64,7 +64,7 @@ type DescribeContactOutput struct {
ContactStatus ContactStatus `locationName:"contactStatus" type:"string" enum:"true"`
// End time of a contact.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// Error message for a contact.
ErrorMessage *string `locationName:"errorMessage" type:"string"`
@@ -80,17 +80,17 @@ type DescribeContactOutput struct {
// Amount of time after a contact ends that you’d like to receive a CloudWatch
// event indicating the pass has finished.
- PostPassEndTime *time.Time `locationName:"postPassEndTime" type:"timestamp" timestampFormat:"unix"`
+ PostPassEndTime *time.Time `locationName:"postPassEndTime" type:"timestamp"`
// Amount of time prior to contact start you’d like to receive a CloudWatch
// event indicating an upcoming pass.
- PrePassStartTime *time.Time `locationName:"prePassStartTime" type:"timestamp" timestampFormat:"unix"`
+ PrePassStartTime *time.Time `locationName:"prePassStartTime" type:"timestamp"`
// ARN of a satellite.
SatelliteArn *string `locationName:"satelliteArn" type:"string"`
// Start time of a contact.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// Tags assigned to a contact.
Tags map[string]string `locationName:"tags" type:"map"`
@@ -119,7 +119,8 @@ func (s DescribeContactOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ErrorMessage != nil {
v := *s.ErrorMessage
@@ -149,13 +150,15 @@ func (s DescribeContactOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.PostPassEndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "postPassEndTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "postPassEndTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PrePassStartTime != nil {
v := *s.PrePassStartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "prePassStartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "prePassStartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SatelliteArn != nil {
v := *s.SatelliteArn
@@ -167,7 +170,8 @@ func (s DescribeContactOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Tags != nil {
v := s.Tags
diff --git a/service/groundstation/api_op_GetConfig.go b/service/groundstation/api_op_GetConfig.go
index 545d109acc2..c52ffb2baeb 100644
--- a/service/groundstation/api_op_GetConfig.go
+++ b/service/groundstation/api_op_GetConfig.go
@@ -49,7 +49,7 @@ func (s *GetConfigInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetConfigInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigId != nil {
v := *s.ConfigId
diff --git a/service/groundstation/api_op_GetDataflowEndpointGroup.go b/service/groundstation/api_op_GetDataflowEndpointGroup.go
index 7370717e003..f1ad5b99c80 100644
--- a/service/groundstation/api_op_GetDataflowEndpointGroup.go
+++ b/service/groundstation/api_op_GetDataflowEndpointGroup.go
@@ -41,7 +41,7 @@ func (s *GetDataflowEndpointGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDataflowEndpointGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DataflowEndpointGroupId != nil {
v := *s.DataflowEndpointGroupId
diff --git a/service/groundstation/api_op_GetMinuteUsage.go b/service/groundstation/api_op_GetMinuteUsage.go
index b2cd0c24f6a..741604ec94b 100644
--- a/service/groundstation/api_op_GetMinuteUsage.go
+++ b/service/groundstation/api_op_GetMinuteUsage.go
@@ -50,7 +50,7 @@ func (s *GetMinuteUsageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMinuteUsageInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Month != nil {
v := *s.Month
diff --git a/service/groundstation/api_op_GetMissionProfile.go b/service/groundstation/api_op_GetMissionProfile.go
index 0eaa3e8dc2c..553906e3f17 100644
--- a/service/groundstation/api_op_GetMissionProfile.go
+++ b/service/groundstation/api_op_GetMissionProfile.go
@@ -41,7 +41,7 @@ func (s *GetMissionProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMissionProfileInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MissionProfileId != nil {
v := *s.MissionProfileId
diff --git a/service/groundstation/api_op_GetSatellite.go b/service/groundstation/api_op_GetSatellite.go
index c462982845b..965232d3533 100644
--- a/service/groundstation/api_op_GetSatellite.go
+++ b/service/groundstation/api_op_GetSatellite.go
@@ -42,7 +42,7 @@ func (s *GetSatelliteInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSatelliteInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SatelliteId != nil {
v := *s.SatelliteId
@@ -58,10 +58,10 @@ type GetSatelliteOutput struct {
_ struct{} `type:"structure"`
// When a satellite was created.
- DateCreated *time.Time `locationName:"dateCreated" type:"timestamp" timestampFormat:"unix"`
+ DateCreated *time.Time `locationName:"dateCreated" type:"timestamp"`
// When a satellite was last updated.
- LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" timestampFormat:"unix"`
+ LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp"`
// NORAD satellite ID number.
NoradSatelliteID *int64 `locationName:"noradSatelliteID" min:"1" type:"integer"`
@@ -87,13 +87,15 @@ func (s GetSatelliteOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DateCreated
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "dateCreated", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "dateCreated",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdated != nil {
v := *s.LastUpdated
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdated", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdated",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.NoradSatelliteID != nil {
v := *s.NoradSatelliteID
diff --git a/service/groundstation/api_op_ListConfigs.go b/service/groundstation/api_op_ListConfigs.go
index fbaae5a61c4..a899af5c514 100644
--- a/service/groundstation/api_op_ListConfigs.go
+++ b/service/groundstation/api_op_ListConfigs.go
@@ -29,7 +29,7 @@ func (s ListConfigsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListConfigsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/groundstation/api_op_ListContacts.go b/service/groundstation/api_op_ListContacts.go
index 03b280af644..66dd2f1a7bc 100644
--- a/service/groundstation/api_op_ListContacts.go
+++ b/service/groundstation/api_op_ListContacts.go
@@ -18,7 +18,7 @@ type ListContactsInput struct {
// End time of a contact.
//
// EndTime is a required field
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"`
// Name of a ground station.
GroundStation *string `locationName:"groundStation" type:"string"`
@@ -39,7 +39,7 @@ type ListContactsInput struct {
// Start time of a contact.
//
// StartTime is a required field
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
// Status of a contact reservation.
//
@@ -76,13 +76,14 @@ func (s *ListContactsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListContactsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.GroundStation != nil {
v := *s.GroundStation
@@ -118,7 +119,8 @@ func (s ListContactsInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.StatusList != nil {
v := s.StatusList
diff --git a/service/groundstation/api_op_ListDataflowEndpointGroups.go b/service/groundstation/api_op_ListDataflowEndpointGroups.go
index 773dc4bef7a..f73b4c19236 100644
--- a/service/groundstation/api_op_ListDataflowEndpointGroups.go
+++ b/service/groundstation/api_op_ListDataflowEndpointGroups.go
@@ -29,7 +29,7 @@ func (s ListDataflowEndpointGroupsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDataflowEndpointGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/groundstation/api_op_ListGroundStations.go b/service/groundstation/api_op_ListGroundStations.go
index fa39248cd3d..75b9a936419 100644
--- a/service/groundstation/api_op_ListGroundStations.go
+++ b/service/groundstation/api_op_ListGroundStations.go
@@ -29,7 +29,7 @@ func (s ListGroundStationsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListGroundStationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/groundstation/api_op_ListMissionProfiles.go b/service/groundstation/api_op_ListMissionProfiles.go
index 0baa4455971..e4b457f60f2 100644
--- a/service/groundstation/api_op_ListMissionProfiles.go
+++ b/service/groundstation/api_op_ListMissionProfiles.go
@@ -29,7 +29,7 @@ func (s ListMissionProfilesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListMissionProfilesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/groundstation/api_op_ListSatellites.go b/service/groundstation/api_op_ListSatellites.go
index d60695b3057..b15ecfc59c0 100644
--- a/service/groundstation/api_op_ListSatellites.go
+++ b/service/groundstation/api_op_ListSatellites.go
@@ -29,7 +29,7 @@ func (s ListSatellitesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSatellitesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/groundstation/api_op_ListTagsForResource.go b/service/groundstation/api_op_ListTagsForResource.go
index 4ad8ace8d9a..dc1ea8f2b05 100644
--- a/service/groundstation/api_op_ListTagsForResource.go
+++ b/service/groundstation/api_op_ListTagsForResource.go
@@ -41,7 +41,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/groundstation/api_op_ReserveContact.go b/service/groundstation/api_op_ReserveContact.go
index 8e782245d58..51dbac9271a 100644
--- a/service/groundstation/api_op_ReserveContact.go
+++ b/service/groundstation/api_op_ReserveContact.go
@@ -18,7 +18,7 @@ type ReserveContactInput struct {
// End time of a contact.
//
// EndTime is a required field
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"`
// Name of a ground station.
//
@@ -38,7 +38,7 @@ type ReserveContactInput struct {
// Start time of a contact.
//
// StartTime is a required field
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
// Tags assigned to a contact.
Tags map[string]string `locationName:"tags" type:"map"`
@@ -81,13 +81,14 @@ func (s *ReserveContactInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ReserveContactInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.GroundStation != nil {
v := *s.GroundStation
@@ -111,7 +112,8 @@ func (s ReserveContactInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Tags != nil {
v := s.Tags
diff --git a/service/groundstation/api_op_TagResource.go b/service/groundstation/api_op_TagResource.go
index e370720c23f..351ca5f806b 100644
--- a/service/groundstation/api_op_TagResource.go
+++ b/service/groundstation/api_op_TagResource.go
@@ -44,7 +44,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/groundstation/api_op_UntagResource.go b/service/groundstation/api_op_UntagResource.go
index e5ec80f8cd5..8bd09fbf982 100644
--- a/service/groundstation/api_op_UntagResource.go
+++ b/service/groundstation/api_op_UntagResource.go
@@ -50,7 +50,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/groundstation/api_op_UpdateConfig.go b/service/groundstation/api_op_UpdateConfig.go
index b764f9d9d2e..de33fadfe03 100644
--- a/service/groundstation/api_op_UpdateConfig.go
+++ b/service/groundstation/api_op_UpdateConfig.go
@@ -75,7 +75,7 @@ func (s *UpdateConfigInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateConfigInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigData != nil {
v := s.ConfigData
diff --git a/service/groundstation/api_op_UpdateMissionProfile.go b/service/groundstation/api_op_UpdateMissionProfile.go
index c4df6f1c10e..511756d33dd 100644
--- a/service/groundstation/api_op_UpdateMissionProfile.go
+++ b/service/groundstation/api_op_UpdateMissionProfile.go
@@ -76,7 +76,7 @@ func (s *UpdateMissionProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateMissionProfileInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ContactPostPassDurationSeconds != nil {
v := *s.ContactPostPassDurationSeconds
diff --git a/service/groundstation/api_types.go b/service/groundstation/api_types.go
index 4a6a1965815..512d5b900eb 100644
--- a/service/groundstation/api_types.go
+++ b/service/groundstation/api_types.go
@@ -396,7 +396,7 @@ type ContactData struct {
ContactStatus ContactStatus `locationName:"contactStatus" type:"string" enum:"true"`
// End time of a contact.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// Error message of a contact.
ErrorMessage *string `locationName:"errorMessage" type:"string"`
@@ -412,17 +412,17 @@ type ContactData struct {
// Amount of time after a contact ends that you’d like to receive a CloudWatch
// event indicating the pass has finished.
- PostPassEndTime *time.Time `locationName:"postPassEndTime" type:"timestamp" timestampFormat:"unix"`
+ PostPassEndTime *time.Time `locationName:"postPassEndTime" type:"timestamp"`
// Amount of time prior to contact start you’d like to receive a CloudWatch
// event indicating an upcoming pass.
- PrePassStartTime *time.Time `locationName:"prePassStartTime" type:"timestamp" timestampFormat:"unix"`
+ PrePassStartTime *time.Time `locationName:"prePassStartTime" type:"timestamp"`
// ARN of a satellite.
SatelliteArn *string `locationName:"satelliteArn" type:"string"`
// Start time of a contact.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// Tags assigned to a contact.
Tags map[string]string `locationName:"tags" type:"map"`
@@ -451,7 +451,8 @@ func (s ContactData) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ErrorMessage != nil {
v := *s.ErrorMessage
@@ -481,13 +482,15 @@ func (s ContactData) MarshalFields(e protocol.FieldEncoder) error {
v := *s.PostPassEndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "postPassEndTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "postPassEndTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PrePassStartTime != nil {
v := *s.PrePassStartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "prePassStartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "prePassStartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SatelliteArn != nil {
v := *s.SatelliteArn
@@ -499,7 +502,8 @@ func (s ContactData) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Tags != nil {
v := s.Tags
diff --git a/service/guardduty/api_op_AcceptInvitation.go b/service/guardduty/api_op_AcceptInvitation.go
index e0b7e2f7f62..580002a8bca 100644
--- a/service/guardduty/api_op_AcceptInvitation.go
+++ b/service/guardduty/api_op_AcceptInvitation.go
@@ -58,7 +58,7 @@ func (s *AcceptInvitationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AcceptInvitationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InvitationId != nil {
v := *s.InvitationId
diff --git a/service/guardduty/api_op_ArchiveFindings.go b/service/guardduty/api_op_ArchiveFindings.go
index edbbac313bb..5a8baf3062c 100644
--- a/service/guardduty/api_op_ArchiveFindings.go
+++ b/service/guardduty/api_op_ArchiveFindings.go
@@ -49,7 +49,7 @@ func (s *ArchiveFindingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ArchiveFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FindingIds != nil {
v := s.FindingIds
diff --git a/service/guardduty/api_op_CreateDetector.go b/service/guardduty/api_op_CreateDetector.go
index 89dac96b523..cf14995b70e 100644
--- a/service/guardduty/api_op_CreateDetector.go
+++ b/service/guardduty/api_op_CreateDetector.go
@@ -48,7 +48,7 @@ func (s *CreateDetectorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDetectorInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientToken string
if s.ClientToken != nil {
diff --git a/service/guardduty/api_op_CreateFilter.go b/service/guardduty/api_op_CreateFilter.go
index 7e5c4c1b848..328f26e8d22 100644
--- a/service/guardduty/api_op_CreateFilter.go
+++ b/service/guardduty/api_op_CreateFilter.go
@@ -72,7 +72,7 @@ func (s *CreateFilterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFilterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.Action) > 0 {
v := s.Action
diff --git a/service/guardduty/api_op_CreateIPSet.go b/service/guardduty/api_op_CreateIPSet.go
index 798577df763..c1633e712cb 100644
--- a/service/guardduty/api_op_CreateIPSet.go
+++ b/service/guardduty/api_op_CreateIPSet.go
@@ -81,7 +81,7 @@ func (s *CreateIPSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateIPSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Activate != nil {
v := *s.Activate
diff --git a/service/guardduty/api_op_CreateMembers.go b/service/guardduty/api_op_CreateMembers.go
index 53ad0531c07..d96bbb2922e 100644
--- a/service/guardduty/api_op_CreateMembers.go
+++ b/service/guardduty/api_op_CreateMembers.go
@@ -58,7 +58,7 @@ func (s *CreateMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountDetails != nil {
v := s.AccountDetails
diff --git a/service/guardduty/api_op_CreateSampleFindings.go b/service/guardduty/api_op_CreateSampleFindings.go
index d4749ca6f5c..d24354c2ba5 100644
--- a/service/guardduty/api_op_CreateSampleFindings.go
+++ b/service/guardduty/api_op_CreateSampleFindings.go
@@ -43,7 +43,7 @@ func (s *CreateSampleFindingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSampleFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FindingTypes != nil {
v := s.FindingTypes
diff --git a/service/guardduty/api_op_CreateThreatIntelSet.go b/service/guardduty/api_op_CreateThreatIntelSet.go
index 7fb286d64fe..2f7d973eeff 100644
--- a/service/guardduty/api_op_CreateThreatIntelSet.go
+++ b/service/guardduty/api_op_CreateThreatIntelSet.go
@@ -80,7 +80,7 @@ func (s *CreateThreatIntelSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateThreatIntelSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Activate != nil {
v := *s.Activate
diff --git a/service/guardduty/api_op_DeclineInvitations.go b/service/guardduty/api_op_DeclineInvitations.go
index 8bcbf22ac50..5cd13beb3cd 100644
--- a/service/guardduty/api_op_DeclineInvitations.go
+++ b/service/guardduty/api_op_DeclineInvitations.go
@@ -43,7 +43,7 @@ func (s *DeclineInvitationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeclineInvitationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/guardduty/api_op_DeleteDetector.go b/service/guardduty/api_op_DeleteDetector.go
index 5bb707d5f21..820c6ef8ccd 100644
--- a/service/guardduty/api_op_DeleteDetector.go
+++ b/service/guardduty/api_op_DeleteDetector.go
@@ -39,7 +39,7 @@ func (s *DeleteDetectorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDetectorInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_DeleteFilter.go b/service/guardduty/api_op_DeleteFilter.go
index b8f194c776d..12d19842a86 100644
--- a/service/guardduty/api_op_DeleteFilter.go
+++ b/service/guardduty/api_op_DeleteFilter.go
@@ -46,7 +46,7 @@ func (s *DeleteFilterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFilterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_DeleteIPSet.go b/service/guardduty/api_op_DeleteIPSet.go
index 986920e7513..bbf4babf809 100644
--- a/service/guardduty/api_op_DeleteIPSet.go
+++ b/service/guardduty/api_op_DeleteIPSet.go
@@ -46,7 +46,7 @@ func (s *DeleteIPSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteIPSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_DeleteInvitations.go b/service/guardduty/api_op_DeleteInvitations.go
index 8d7458ae17e..56ab21ef3f4 100644
--- a/service/guardduty/api_op_DeleteInvitations.go
+++ b/service/guardduty/api_op_DeleteInvitations.go
@@ -43,7 +43,7 @@ func (s *DeleteInvitationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteInvitationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/guardduty/api_op_DeleteMembers.go b/service/guardduty/api_op_DeleteMembers.go
index c0411f27753..ce14ebfaf60 100644
--- a/service/guardduty/api_op_DeleteMembers.go
+++ b/service/guardduty/api_op_DeleteMembers.go
@@ -49,7 +49,7 @@ func (s *DeleteMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/guardduty/api_op_DeleteThreatIntelSet.go b/service/guardduty/api_op_DeleteThreatIntelSet.go
index a96227deb20..2a4857ebd1a 100644
--- a/service/guardduty/api_op_DeleteThreatIntelSet.go
+++ b/service/guardduty/api_op_DeleteThreatIntelSet.go
@@ -46,7 +46,7 @@ func (s *DeleteThreatIntelSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteThreatIntelSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_DisassociateFromMasterAccount.go b/service/guardduty/api_op_DisassociateFromMasterAccount.go
index 8d931728070..0ad6c838bf6 100644
--- a/service/guardduty/api_op_DisassociateFromMasterAccount.go
+++ b/service/guardduty/api_op_DisassociateFromMasterAccount.go
@@ -39,7 +39,7 @@ func (s *DisassociateFromMasterAccountInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateFromMasterAccountInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_DisassociateMembers.go b/service/guardduty/api_op_DisassociateMembers.go
index 2dd87242628..8d3a8558b16 100644
--- a/service/guardduty/api_op_DisassociateMembers.go
+++ b/service/guardduty/api_op_DisassociateMembers.go
@@ -50,7 +50,7 @@ func (s *DisassociateMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/guardduty/api_op_GetDetector.go b/service/guardduty/api_op_GetDetector.go
index 8cd1ff6f510..ff4851ea6f7 100644
--- a/service/guardduty/api_op_GetDetector.go
+++ b/service/guardduty/api_op_GetDetector.go
@@ -39,7 +39,7 @@ func (s *GetDetectorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDetectorInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_GetFilter.go b/service/guardduty/api_op_GetFilter.go
index e0a00fcbf82..d6a3ce39275 100644
--- a/service/guardduty/api_op_GetFilter.go
+++ b/service/guardduty/api_op_GetFilter.go
@@ -46,7 +46,7 @@ func (s *GetFilterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFilterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_GetFindings.go b/service/guardduty/api_op_GetFindings.go
index 070c35a95a2..d0a95737c97 100644
--- a/service/guardduty/api_op_GetFindings.go
+++ b/service/guardduty/api_op_GetFindings.go
@@ -52,7 +52,7 @@ func (s *GetFindingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FindingIds != nil {
v := s.FindingIds
diff --git a/service/guardduty/api_op_GetFindingsStatistics.go b/service/guardduty/api_op_GetFindingsStatistics.go
index 7b13716ed70..582fe926d64 100644
--- a/service/guardduty/api_op_GetFindingsStatistics.go
+++ b/service/guardduty/api_op_GetFindingsStatistics.go
@@ -52,7 +52,7 @@ func (s *GetFindingsStatisticsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFindingsStatisticsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FindingCriteria != nil {
v := s.FindingCriteria
diff --git a/service/guardduty/api_op_GetIPSet.go b/service/guardduty/api_op_GetIPSet.go
index 13cc6a3894e..a6de61047ff 100644
--- a/service/guardduty/api_op_GetIPSet.go
+++ b/service/guardduty/api_op_GetIPSet.go
@@ -46,7 +46,7 @@ func (s *GetIPSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIPSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_GetInvitationsCount.go b/service/guardduty/api_op_GetInvitationsCount.go
index 61279bf5b3a..8aea123f981 100644
--- a/service/guardduty/api_op_GetInvitationsCount.go
+++ b/service/guardduty/api_op_GetInvitationsCount.go
@@ -22,7 +22,7 @@ func (s GetInvitationsCountInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetInvitationsCountInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/guardduty/api_op_GetMasterAccount.go b/service/guardduty/api_op_GetMasterAccount.go
index 2f3f83e9788..738ba7b5b10 100644
--- a/service/guardduty/api_op_GetMasterAccount.go
+++ b/service/guardduty/api_op_GetMasterAccount.go
@@ -39,7 +39,7 @@ func (s *GetMasterAccountInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMasterAccountInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_GetMembers.go b/service/guardduty/api_op_GetMembers.go
index 63316ae9126..c15e3807c50 100644
--- a/service/guardduty/api_op_GetMembers.go
+++ b/service/guardduty/api_op_GetMembers.go
@@ -49,7 +49,7 @@ func (s *GetMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/guardduty/api_op_GetThreatIntelSet.go b/service/guardduty/api_op_GetThreatIntelSet.go
index 77a0377dcf9..136ffee5524 100644
--- a/service/guardduty/api_op_GetThreatIntelSet.go
+++ b/service/guardduty/api_op_GetThreatIntelSet.go
@@ -46,7 +46,7 @@ func (s *GetThreatIntelSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetThreatIntelSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_InviteMembers.go b/service/guardduty/api_op_InviteMembers.go
index 1cf1b9342d8..231362d9422 100644
--- a/service/guardduty/api_op_InviteMembers.go
+++ b/service/guardduty/api_op_InviteMembers.go
@@ -58,7 +58,7 @@ func (s *InviteMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InviteMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/guardduty/api_op_ListDetectors.go b/service/guardduty/api_op_ListDetectors.go
index f4f61a18339..834e6ace0fd 100644
--- a/service/guardduty/api_op_ListDetectors.go
+++ b/service/guardduty/api_op_ListDetectors.go
@@ -41,7 +41,7 @@ func (s *ListDetectorsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDetectorsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/guardduty/api_op_ListFilters.go b/service/guardduty/api_op_ListFilters.go
index 330774f0898..1eaf38ab86f 100644
--- a/service/guardduty/api_op_ListFilters.go
+++ b/service/guardduty/api_op_ListFilters.go
@@ -48,7 +48,7 @@ func (s *ListFiltersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFiltersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_ListFindings.go b/service/guardduty/api_op_ListFindings.go
index 6bdefb9fdc2..80da6c31497 100644
--- a/service/guardduty/api_op_ListFindings.go
+++ b/service/guardduty/api_op_ListFindings.go
@@ -59,7 +59,7 @@ func (s *ListFindingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FindingCriteria != nil {
v := s.FindingCriteria
diff --git a/service/guardduty/api_op_ListIPSets.go b/service/guardduty/api_op_ListIPSets.go
index 3ab6d2aefa4..c3521cf195f 100644
--- a/service/guardduty/api_op_ListIPSets.go
+++ b/service/guardduty/api_op_ListIPSets.go
@@ -48,7 +48,7 @@ func (s *ListIPSetsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListIPSetsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_ListInvitations.go b/service/guardduty/api_op_ListInvitations.go
index 5f09bf38af1..5afc3e76847 100644
--- a/service/guardduty/api_op_ListInvitations.go
+++ b/service/guardduty/api_op_ListInvitations.go
@@ -41,7 +41,7 @@ func (s *ListInvitationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListInvitationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/guardduty/api_op_ListMembers.go b/service/guardduty/api_op_ListMembers.go
index 62cd9fdb798..2cb0b2981a5 100644
--- a/service/guardduty/api_op_ListMembers.go
+++ b/service/guardduty/api_op_ListMembers.go
@@ -50,7 +50,7 @@ func (s *ListMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_ListThreatIntelSets.go b/service/guardduty/api_op_ListThreatIntelSets.go
index c15d91fee59..cbea7a2fb24 100644
--- a/service/guardduty/api_op_ListThreatIntelSets.go
+++ b/service/guardduty/api_op_ListThreatIntelSets.go
@@ -48,7 +48,7 @@ func (s *ListThreatIntelSetsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListThreatIntelSetsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DetectorId != nil {
v := *s.DetectorId
diff --git a/service/guardduty/api_op_StartMonitoringMembers.go b/service/guardduty/api_op_StartMonitoringMembers.go
index 5a265e214a7..3ec764a53f0 100644
--- a/service/guardduty/api_op_StartMonitoringMembers.go
+++ b/service/guardduty/api_op_StartMonitoringMembers.go
@@ -50,7 +50,7 @@ func (s *StartMonitoringMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartMonitoringMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/guardduty/api_op_StopMonitoringMembers.go b/service/guardduty/api_op_StopMonitoringMembers.go
index 77d699e622e..c6b07ef1c93 100644
--- a/service/guardduty/api_op_StopMonitoringMembers.go
+++ b/service/guardduty/api_op_StopMonitoringMembers.go
@@ -50,7 +50,7 @@ func (s *StopMonitoringMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StopMonitoringMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/guardduty/api_op_UnarchiveFindings.go b/service/guardduty/api_op_UnarchiveFindings.go
index 699b12133e6..58a9f345161 100644
--- a/service/guardduty/api_op_UnarchiveFindings.go
+++ b/service/guardduty/api_op_UnarchiveFindings.go
@@ -49,7 +49,7 @@ func (s *UnarchiveFindingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UnarchiveFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FindingIds != nil {
v := s.FindingIds
diff --git a/service/guardduty/api_op_UpdateDetector.go b/service/guardduty/api_op_UpdateDetector.go
index d5f8bf0c39a..9c833c6128d 100644
--- a/service/guardduty/api_op_UpdateDetector.go
+++ b/service/guardduty/api_op_UpdateDetector.go
@@ -47,7 +47,7 @@ func (s *UpdateDetectorInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDetectorInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Enable != nil {
v := *s.Enable
diff --git a/service/guardduty/api_op_UpdateFilter.go b/service/guardduty/api_op_UpdateFilter.go
index 94d6eb7fec8..3e3d1ed1fd3 100644
--- a/service/guardduty/api_op_UpdateFilter.go
+++ b/service/guardduty/api_op_UpdateFilter.go
@@ -61,7 +61,7 @@ func (s *UpdateFilterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFilterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.Action) > 0 {
v := s.Action
diff --git a/service/guardduty/api_op_UpdateFindingsFeedback.go b/service/guardduty/api_op_UpdateFindingsFeedback.go
index 364c6991ec7..e65f53a0c84 100644
--- a/service/guardduty/api_op_UpdateFindingsFeedback.go
+++ b/service/guardduty/api_op_UpdateFindingsFeedback.go
@@ -60,7 +60,7 @@ func (s *UpdateFindingsFeedbackInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFindingsFeedbackInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Comments != nil {
v := *s.Comments
diff --git a/service/guardduty/api_op_UpdateIPSet.go b/service/guardduty/api_op_UpdateIPSet.go
index 3e4a05e68a6..367f0d66c3c 100644
--- a/service/guardduty/api_op_UpdateIPSet.go
+++ b/service/guardduty/api_op_UpdateIPSet.go
@@ -56,7 +56,7 @@ func (s *UpdateIPSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateIPSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Activate != nil {
v := *s.Activate
diff --git a/service/guardduty/api_op_UpdateThreatIntelSet.go b/service/guardduty/api_op_UpdateThreatIntelSet.go
index 595ef97dfec..cc4540b8bd4 100644
--- a/service/guardduty/api_op_UpdateThreatIntelSet.go
+++ b/service/guardduty/api_op_UpdateThreatIntelSet.go
@@ -58,7 +58,7 @@ func (s *UpdateThreatIntelSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateThreatIntelSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Activate != nil {
v := *s.Activate
diff --git a/service/health/api_types.go b/service/health/api_types.go
index aa70c14766e..3fbb0678a63 100644
--- a/service/health/api_types.go
+++ b/service/health/api_types.go
@@ -34,7 +34,7 @@ type AffectedEntity struct {
EventArn *string `locationName:"eventArn" type:"string"`
// The most recent time that the entity was updated.
- LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"`
// The most recent status of the entity affected by the event. The possible
// values are IMPAIRED, UNIMPAIRED, and UNKNOWN.
@@ -60,10 +60,10 @@ type DateTimeRange struct {
_ struct{} `type:"structure"`
// The starting date and time of a time range.
- From *time.Time `locationName:"from" type:"timestamp" timestampFormat:"unix"`
+ From *time.Time `locationName:"from" type:"timestamp"`
// The ending date and time of a time range.
- To *time.Time `locationName:"to" type:"timestamp" timestampFormat:"unix"`
+ To *time.Time `locationName:"to" type:"timestamp"`
}
// String returns the string representation
@@ -166,7 +166,7 @@ type Event struct {
AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
// The date and time that the event ended.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The category of the event. Possible values are issue, scheduledChange, and
// accountNotification.
@@ -177,7 +177,7 @@ type Event struct {
EventTypeCode *string `locationName:"eventTypeCode" min:"3" type:"string"`
// The most recent date and time that the event was updated.
- LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"`
// The AWS region name of the event.
Region *string `locationName:"region" type:"string"`
@@ -186,7 +186,7 @@ type Event struct {
Service *string `locationName:"service" min:"2" type:"string"`
// The date and time that the event began.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// The most recent status of the event. Possible values are open, closed, and
// upcoming.
diff --git a/service/iam/api_op_GetCredentialReport.go b/service/iam/api_op_GetCredentialReport.go
index 9bc03a274b0..6c611611dad 100644
--- a/service/iam/api_op_GetCredentialReport.go
+++ b/service/iam/api_op_GetCredentialReport.go
@@ -32,7 +32,7 @@ type GetCredentialReportOutput struct {
// The date and time when the credential report was created, in ISO 8601 date-time
// format (http://www.iso.org/iso/iso8601).
- GeneratedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ GeneratedTime *time.Time `type:"timestamp"`
// The format (MIME type) of the credential report.
ReportFormat ReportFormatType `type:"string" enum:"true"`
diff --git a/service/iam/api_op_GetOpenIDConnectProvider.go b/service/iam/api_op_GetOpenIDConnectProvider.go
index b45c6ce85c5..3b7fa4abd6b 100644
--- a/service/iam/api_op_GetOpenIDConnectProvider.go
+++ b/service/iam/api_op_GetOpenIDConnectProvider.go
@@ -59,7 +59,7 @@ type GetOpenIDConnectProviderOutput struct {
// The date and time when the IAM OIDC provider resource object was created
// in the AWS account.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// A list of certificate thumbprints that are associated with the specified
// IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.
diff --git a/service/iam/api_op_GetSAMLProvider.go b/service/iam/api_op_GetSAMLProvider.go
index 93a1a2c7784..7a09dd638ce 100644
--- a/service/iam/api_op_GetSAMLProvider.go
+++ b/service/iam/api_op_GetSAMLProvider.go
@@ -53,13 +53,13 @@ type GetSAMLProviderOutput struct {
_ struct{} `type:"structure"`
// The date and time when the SAML provider was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// The XML metadata document that includes information about an identity provider.
SAMLMetadataDocument *string `min:"1000" type:"string"`
// The expiration date and time for the SAML provider.
- ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ValidUntil *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/iam/api_op_GetServiceLastAccessedDetails.go b/service/iam/api_op_GetServiceLastAccessedDetails.go
index 501e224b260..325ab5aca55 100644
--- a/service/iam/api_op_GetServiceLastAccessedDetails.go
+++ b/service/iam/api_op_GetServiceLastAccessedDetails.go
@@ -88,13 +88,13 @@ type GetServiceLastAccessedDetailsOutput struct {
// value of IN_PROGRESS.
//
// JobCompletionDate is a required field
- JobCompletionDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ JobCompletionDate *time.Time `type:"timestamp" required:"true"`
// The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
// when the report job was created.
//
// JobCreationDate is a required field
- JobCreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ JobCreationDate *time.Time `type:"timestamp" required:"true"`
// The status of the job.
//
diff --git a/service/iam/api_op_GetServiceLastAccessedDetailsWithEntities.go b/service/iam/api_op_GetServiceLastAccessedDetailsWithEntities.go
index a89029bdc8f..d5bf17e6a99 100644
--- a/service/iam/api_op_GetServiceLastAccessedDetailsWithEntities.go
+++ b/service/iam/api_op_GetServiceLastAccessedDetailsWithEntities.go
@@ -113,13 +113,13 @@ type GetServiceLastAccessedDetailsWithEntitiesOutput struct {
// when the generated report job was completed or failed.
//
// JobCompletionDate is a required field
- JobCompletionDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ JobCompletionDate *time.Time `type:"timestamp" required:"true"`
// The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
// when the report job was created.
//
// JobCreationDate is a required field
- JobCreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ JobCreationDate *time.Time `type:"timestamp" required:"true"`
// The status of the job.
//
diff --git a/service/iam/api_types.go b/service/iam/api_types.go
index 97e8434cefc..b5c1683e36a 100644
--- a/service/iam/api_types.go
+++ b/service/iam/api_types.go
@@ -31,7 +31,7 @@ type AccessKey struct {
AccessKeyId *string `min:"16" type:"string" required:"true"`
// The date when the access key was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// The secret key used to sign requests.
//
@@ -76,7 +76,7 @@ type AccessKeyLastUsed struct {
// * There is no sign-in data associated with the user
//
// LastUsedDate is a required field
- LastUsedDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ LastUsedDate *time.Time `type:"timestamp" required:"true"`
// The AWS region where this access key was most recently used. The value for
// this field is "N/A" in the following situations:
@@ -124,7 +124,7 @@ type AccessKeyMetadata struct {
AccessKeyId *string `min:"16" type:"string"`
// The date when the access key was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// The status of the access key. Active means that the key is valid for API
// calls; Inactive means it is not.
@@ -284,7 +284,7 @@ type EntityDetails struct {
//
// This field is null if no IAM entities attempted to access the service within
// the reporting period (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period).
- LastAuthenticated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastAuthenticated *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -442,7 +442,7 @@ type Group struct {
// when the group was created.
//
// CreateDate is a required field
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreateDate *time.Time `type:"timestamp" required:"true"`
// The stable and unique string identifying the group. For more information
// about IDs, see IAM Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
@@ -489,7 +489,7 @@ type GroupDetail struct {
// The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
// when the group was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// The stable and unique string identifying the group. For more information
// about IDs, see IAM Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
@@ -539,7 +539,7 @@ type InstanceProfile struct {
// The date when the instance profile was created.
//
// CreateDate is a required field
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreateDate *time.Time `type:"timestamp" required:"true"`
// The stable and unique string identifying the instance profile. For more information
// about IDs, see IAM Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
@@ -612,7 +612,7 @@ type LoginProfile struct {
// The date when the password for the user was created.
//
// CreateDate is a required field
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreateDate *time.Time `type:"timestamp" required:"true"`
// Specifies whether the user is required to set a new password on next sign-in.
PasswordResetRequired *bool `type:"boolean"`
@@ -639,7 +639,7 @@ type MFADevice struct {
// The date when the MFA device was enabled for the user.
//
// EnableDate is a required field
- EnableDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ EnableDate *time.Time `type:"timestamp" required:"true"`
// The serial number that uniquely identifies the MFA device. For virtual MFA
// devices, the serial number is the device ARN.
@@ -685,7 +685,7 @@ type ManagedPolicyDetail struct {
// The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
// when the policy was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// The identifier for the version of the policy that is set as the default (operative)
// version.
@@ -734,7 +734,7 @@ type ManagedPolicyDetail struct {
// when the policy was created. When a policy has more than one version, this
// field contains the date and time when the most recent policy version was
// created.
- UpdateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ UpdateDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -848,7 +848,7 @@ type Policy struct {
// The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
// when the policy was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// The identifier for the version of the policy that is set as the default version.
DefaultVersionId *string `type:"string"`
@@ -892,7 +892,7 @@ type Policy struct {
// when the policy was created. When a policy has more than one version, this
// field contains the date and time when the most recent policy version was
// created.
- UpdateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ UpdateDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1062,7 +1062,7 @@ type PolicyVersion struct {
// The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
// when the policy version was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// The policy document.
//
@@ -1181,7 +1181,7 @@ type Role struct {
// when the role was created.
//
// CreateDate is a required field
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreateDate *time.Time `type:"timestamp" required:"true"`
// A description of the role that you provide.
Description *string `type:"string"`
@@ -1253,7 +1253,7 @@ type RoleDetail struct {
// The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
// when the role was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// A list of instance profiles that contain this role.
InstanceProfileList []InstanceProfile `type:"list"`
@@ -1323,10 +1323,10 @@ type SAMLProviderListEntry struct {
Arn *string `min:"20" type:"string"`
// The date and time when the SAML provider was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// The expiration date and time for the SAML provider.
- ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ValidUntil *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1366,7 +1366,7 @@ type SSHPublicKey struct {
// The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
// when the SSH public key was uploaded.
- UploadDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ UploadDate *time.Time `type:"timestamp"`
// The name of the IAM user associated with the SSH public key.
//
@@ -1402,7 +1402,7 @@ type SSHPublicKeyMetadata struct {
// when the SSH public key was uploaded.
//
// UploadDate is a required field
- UploadDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ UploadDate *time.Time `type:"timestamp" required:"true"`
// The name of the IAM user associated with the SSH public key.
//
@@ -1461,7 +1461,7 @@ type ServerCertificateMetadata struct {
Arn *string `min:"20" type:"string" required:"true"`
// The date on which the certificate is set to expire.
- Expiration *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Expiration *time.Time `type:"timestamp"`
// The path to the server certificate. For more information about paths, see
// IAM Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
@@ -1483,7 +1483,7 @@ type ServerCertificateMetadata struct {
ServerCertificateName *string `min:"1" type:"string" required:"true"`
// The date when the server certificate was uploaded.
- UploadDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ UploadDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1505,7 +1505,7 @@ type ServiceLastAccessed struct {
//
// This field is null if no IAM entities attempted to access the service within
// the reporting period (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period).
- LastAuthenticated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastAuthenticated *time.Time `type:"timestamp"`
// The ARN of the authenticated entity (user or role) that last attempted to
// access the service. AWS does not report unauthenticated requests.
@@ -1554,7 +1554,7 @@ type ServiceSpecificCredential struct {
// when the service-specific credential were created.
//
// CreateDate is a required field
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreateDate *time.Time `type:"timestamp" required:"true"`
// The name of the service associated with the service-specific credential.
//
@@ -1605,7 +1605,7 @@ type ServiceSpecificCredentialMetadata struct {
// when the service-specific credential were created.
//
// CreateDate is a required field
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreateDate *time.Time `type:"timestamp" required:"true"`
// The name of the service associated with the service-specific credential.
//
@@ -1664,7 +1664,7 @@ type SigningCertificate struct {
Status StatusType `type:"string" required:"true" enum:"true"`
// The date when the signing certificate was uploaded.
- UploadDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ UploadDate *time.Time `type:"timestamp"`
// The name of the user the signing certificate is associated with.
//
@@ -1782,7 +1782,7 @@ type User struct {
// when the user was created.
//
// CreateDate is a required field
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ CreateDate *time.Time `type:"timestamp" required:"true"`
// The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
// when the user's password was last used to sign in to an AWS website. For
@@ -1803,7 +1803,7 @@ type User struct {
// field contains the date and time the most recent password was used.
//
// This value is returned only in the GetUser and ListUsers operations.
- PasswordLastUsed *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ PasswordLastUsed *time.Time `type:"timestamp"`
// The path to the user. For more information about paths, see IAM Identifiers
// (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
@@ -1863,7 +1863,7 @@ type UserDetail struct {
// The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
// when the user was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreateDate *time.Time `type:"timestamp"`
// A list of IAM groups that the user is in.
GroupList []string `type:"list"`
@@ -1914,7 +1914,7 @@ type VirtualMFADevice struct {
Base32StringSeed []byte `type:"blob"`
// The date and time on which the virtual MFA device was enabled.
- EnableDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EnableDate *time.Time `type:"timestamp"`
// A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
// where $virtualMFADeviceName is one of the create call arguments. AccountName
diff --git a/service/inspector/api_op_DescribeCrossAccountAccessRole.go b/service/inspector/api_op_DescribeCrossAccountAccessRole.go
index fd8068736b2..b3ddfc2c4a3 100644
--- a/service/inspector/api_op_DescribeCrossAccountAccessRole.go
+++ b/service/inspector/api_op_DescribeCrossAccountAccessRole.go
@@ -27,7 +27,7 @@ type DescribeCrossAccountAccessRoleOutput struct {
// The date when the cross-account access role was registered.
//
// RegisteredAt is a required field
- RegisteredAt *time.Time `locationName:"registeredAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ RegisteredAt *time.Time `locationName:"registeredAt" type:"timestamp" required:"true"`
// The ARN that specifies the IAM role that Amazon Inspector uses to access
// your AWS account.
diff --git a/service/inspector/api_types.go b/service/inspector/api_types.go
index f629988d6f4..f060ed39bac 100644
--- a/service/inspector/api_types.go
+++ b/service/inspector/api_types.go
@@ -139,12 +139,12 @@ type AssessmentRun struct {
// The assessment run completion time that corresponds to the rules packages
// evaluation completion time or failure.
- CompletedAt *time.Time `locationName:"completedAt" type:"timestamp" timestampFormat:"unix"`
+ CompletedAt *time.Time `locationName:"completedAt" type:"timestamp"`
// The time when StartAssessmentRun was called.
//
// CreatedAt is a required field
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"`
// A Boolean value (true or false) that specifies whether the process of collecting
// data from the agents is completed.
@@ -179,7 +179,7 @@ type AssessmentRun struct {
RulesPackageArns []string `locationName:"rulesPackageArns" min:"1" type:"list" required:"true"`
// The time when StartAssessmentRun was called.
- StartedAt *time.Time `locationName:"startedAt" type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `locationName:"startedAt" type:"timestamp"`
// The state of the assessment run.
//
@@ -189,7 +189,7 @@ type AssessmentRun struct {
// The last time when the assessment run's state changed.
//
// StateChangedAt is a required field
- StateChangedAt *time.Time `locationName:"stateChangedAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StateChangedAt *time.Time `locationName:"stateChangedAt" type:"timestamp" required:"true"`
// A list of the assessment run state changes.
//
@@ -325,7 +325,7 @@ type AssessmentRunNotification struct {
// The date of the notification.
//
// Date is a required field
- Date *time.Time `locationName:"date" type:"timestamp" timestampFormat:"unix" required:"true"`
+ Date *time.Time `locationName:"date" type:"timestamp" required:"true"`
// The Boolean value that specifies whether the notification represents an error.
//
@@ -365,7 +365,7 @@ type AssessmentRunStateChange struct {
// The last time the assessment run state changed.
//
// StateChangedAt is a required field
- StateChangedAt *time.Time `locationName:"stateChangedAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StateChangedAt *time.Time `locationName:"stateChangedAt" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -387,7 +387,7 @@ type AssessmentTarget struct {
// The time at which the assessment target is created.
//
// CreatedAt is a required field
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"`
// The name of the Amazon Inspector assessment target.
//
@@ -401,7 +401,7 @@ type AssessmentTarget struct {
// The time at which UpdateAssessmentTarget is called.
//
// UpdatedAt is a required field
- UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -464,7 +464,7 @@ type AssessmentTemplate struct {
// The time at which the assessment template is created.
//
// CreatedAt is a required field
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"`
// The duration in seconds specified for this assessment template. The default
// value is 3600 seconds (one hour). The maximum value is 86400 seconds (one
@@ -672,7 +672,7 @@ type EventSubscription struct {
// The time at which SubscribeToEvent is called.
//
// SubscribedAt is a required field
- SubscribedAt *time.Time `locationName:"subscribedAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ SubscribedAt *time.Time `locationName:"subscribedAt" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -804,7 +804,7 @@ type Finding struct {
// The time when the finding was generated.
//
// CreatedAt is a required field
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"`
// The description of the finding.
Description *string `locationName:"description" type:"string"`
@@ -839,7 +839,7 @@ type Finding struct {
// The time when AddAttributesToFindings is called.
//
// UpdatedAt is a required field
- UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"`
// The user-defined attributes that are assigned to the finding.
//
@@ -1027,7 +1027,7 @@ type ResourceGroup struct {
// The time at which resource group is created.
//
// CreatedAt is a required field
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"`
// The tags (key and value pairs) of the resource group. This data type property
// is used in the CreateResourceGroup action.
@@ -1253,10 +1253,10 @@ type TimestampRange struct {
_ struct{} `type:"structure"`
// The minimum value of the timestamp range.
- BeginDate *time.Time `locationName:"beginDate" type:"timestamp" timestampFormat:"unix"`
+ BeginDate *time.Time `locationName:"beginDate" type:"timestamp"`
// The maximum value of the timestamp range.
- EndDate *time.Time `locationName:"endDate" type:"timestamp" timestampFormat:"unix"`
+ EndDate *time.Time `locationName:"endDate" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/iot/api_op_AcceptCertificateTransfer.go b/service/iot/api_op_AcceptCertificateTransfer.go
index 2c56f552b58..0928732f29f 100644
--- a/service/iot/api_op_AcceptCertificateTransfer.go
+++ b/service/iot/api_op_AcceptCertificateTransfer.go
@@ -49,6 +49,7 @@ func (s *AcceptCertificateTransferInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AcceptCertificateTransferInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateId != nil {
v := *s.CertificateId
diff --git a/service/iot/api_op_AddThingToBillingGroup.go b/service/iot/api_op_AddThingToBillingGroup.go
index 0206e7c20b9..5fc50928bb9 100644
--- a/service/iot/api_op_AddThingToBillingGroup.go
+++ b/service/iot/api_op_AddThingToBillingGroup.go
@@ -49,6 +49,7 @@ func (s *AddThingToBillingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AddThingToBillingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BillingGroupArn != nil {
v := *s.BillingGroupArn
diff --git a/service/iot/api_op_AddThingToThingGroup.go b/service/iot/api_op_AddThingToThingGroup.go
index cfafcf20f4a..81793474cc3 100644
--- a/service/iot/api_op_AddThingToThingGroup.go
+++ b/service/iot/api_op_AddThingToThingGroup.go
@@ -55,6 +55,7 @@ func (s *AddThingToThingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AddThingToThingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.OverrideDynamicGroups != nil {
v := *s.OverrideDynamicGroups
diff --git a/service/iot/api_op_AssociateTargetsWithJob.go b/service/iot/api_op_AssociateTargetsWithJob.go
index ea86d22ac09..c735ec45c2d 100644
--- a/service/iot/api_op_AssociateTargetsWithJob.go
+++ b/service/iot/api_op_AssociateTargetsWithJob.go
@@ -59,6 +59,7 @@ func (s *AssociateTargetsWithJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociateTargetsWithJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Comment != nil {
v := *s.Comment
diff --git a/service/iot/api_op_AttachPolicy.go b/service/iot/api_op_AttachPolicy.go
index 4a092306e72..15a18cb08ea 100644
--- a/service/iot/api_op_AttachPolicy.go
+++ b/service/iot/api_op_AttachPolicy.go
@@ -54,6 +54,7 @@ func (s *AttachPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AttachPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Target != nil {
v := *s.Target
diff --git a/service/iot/api_op_AttachPrincipalPolicy.go b/service/iot/api_op_AttachPrincipalPolicy.go
index 83dc30dcec5..9c0395d2296 100644
--- a/service/iot/api_op_AttachPrincipalPolicy.go
+++ b/service/iot/api_op_AttachPrincipalPolicy.go
@@ -55,6 +55,7 @@ func (s *AttachPrincipalPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AttachPrincipalPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Principal != nil {
v := *s.Principal
diff --git a/service/iot/api_op_AttachSecurityProfile.go b/service/iot/api_op_AttachSecurityProfile.go
index 3ab8d38fbcd..32cbb0f8b26 100644
--- a/service/iot/api_op_AttachSecurityProfile.go
+++ b/service/iot/api_op_AttachSecurityProfile.go
@@ -52,6 +52,7 @@ func (s *AttachSecurityProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AttachSecurityProfileInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SecurityProfileName != nil {
v := *s.SecurityProfileName
diff --git a/service/iot/api_op_AttachThingPrincipal.go b/service/iot/api_op_AttachThingPrincipal.go
index f068b26072e..066a855fb8d 100644
--- a/service/iot/api_op_AttachThingPrincipal.go
+++ b/service/iot/api_op_AttachThingPrincipal.go
@@ -53,6 +53,7 @@ func (s *AttachThingPrincipalInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AttachThingPrincipalInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Principal != nil {
v := *s.Principal
diff --git a/service/iot/api_op_CancelAuditTask.go b/service/iot/api_op_CancelAuditTask.go
index 335a940dae3..8385e7f7d58 100644
--- a/service/iot/api_op_CancelAuditTask.go
+++ b/service/iot/api_op_CancelAuditTask.go
@@ -44,6 +44,7 @@ func (s *CancelAuditTaskInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelAuditTaskInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TaskId != nil {
v := *s.TaskId
diff --git a/service/iot/api_op_CancelCertificateTransfer.go b/service/iot/api_op_CancelCertificateTransfer.go
index ecb173b6813..a6b2ce533ad 100644
--- a/service/iot/api_op_CancelCertificateTransfer.go
+++ b/service/iot/api_op_CancelCertificateTransfer.go
@@ -46,6 +46,7 @@ func (s *CancelCertificateTransferInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelCertificateTransferInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateId != nil {
v := *s.CertificateId
diff --git a/service/iot/api_op_CancelJob.go b/service/iot/api_op_CancelJob.go
index 3840eab2601..9da3ea323ce 100644
--- a/service/iot/api_op_CancelJob.go
+++ b/service/iot/api_op_CancelJob.go
@@ -59,6 +59,7 @@ func (s *CancelJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Comment != nil {
v := *s.Comment
diff --git a/service/iot/api_op_CancelJobExecution.go b/service/iot/api_op_CancelJobExecution.go
index ad056c98830..83ee104e004 100644
--- a/service/iot/api_op_CancelJobExecution.go
+++ b/service/iot/api_op_CancelJobExecution.go
@@ -81,6 +81,7 @@ func (s *CancelJobExecutionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelJobExecutionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ExpectedVersion != nil {
v := *s.ExpectedVersion
diff --git a/service/iot/api_op_ClearDefaultAuthorizer.go b/service/iot/api_op_ClearDefaultAuthorizer.go
index 33fc0d67965..65df7da2b1d 100644
--- a/service/iot/api_op_ClearDefaultAuthorizer.go
+++ b/service/iot/api_op_ClearDefaultAuthorizer.go
@@ -21,6 +21,7 @@ func (s ClearDefaultAuthorizerInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ClearDefaultAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/iot/api_op_CreateAuthorizer.go b/service/iot/api_op_CreateAuthorizer.go
index db988f79276..8b4776b0eb7 100644
--- a/service/iot/api_op_CreateAuthorizer.go
+++ b/service/iot/api_op_CreateAuthorizer.go
@@ -77,6 +77,7 @@ func (s *CreateAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthorizerFunctionArn != nil {
v := *s.AuthorizerFunctionArn
diff --git a/service/iot/api_op_CreateBillingGroup.go b/service/iot/api_op_CreateBillingGroup.go
index 64e0a4e9002..ad03b418ef0 100644
--- a/service/iot/api_op_CreateBillingGroup.go
+++ b/service/iot/api_op_CreateBillingGroup.go
@@ -49,6 +49,7 @@ func (s *CreateBillingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateBillingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BillingGroupProperties != nil {
v := s.BillingGroupProperties
diff --git a/service/iot/api_op_CreateCertificateFromCsr.go b/service/iot/api_op_CreateCertificateFromCsr.go
index 4717d8cb448..8fda1991be2 100644
--- a/service/iot/api_op_CreateCertificateFromCsr.go
+++ b/service/iot/api_op_CreateCertificateFromCsr.go
@@ -47,6 +47,7 @@ func (s *CreateCertificateFromCsrInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateCertificateFromCsrInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateSigningRequest != nil {
v := *s.CertificateSigningRequest
diff --git a/service/iot/api_op_CreateDynamicThingGroup.go b/service/iot/api_op_CreateDynamicThingGroup.go
index 2eb3d5cdaca..0dbe008504b 100644
--- a/service/iot/api_op_CreateDynamicThingGroup.go
+++ b/service/iot/api_op_CreateDynamicThingGroup.go
@@ -78,6 +78,7 @@ func (s *CreateDynamicThingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDynamicThingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IndexName != nil {
v := *s.IndexName
diff --git a/service/iot/api_op_CreateJob.go b/service/iot/api_op_CreateJob.go
index 1ecdc043017..3c74c3f4696 100644
--- a/service/iot/api_op_CreateJob.go
+++ b/service/iot/api_op_CreateJob.go
@@ -119,6 +119,7 @@ func (s *CreateJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AbortConfig != nil {
v := s.AbortConfig
diff --git a/service/iot/api_op_CreateKeysAndCertificate.go b/service/iot/api_op_CreateKeysAndCertificate.go
index a9d4498b960..53f531a90ad 100644
--- a/service/iot/api_op_CreateKeysAndCertificate.go
+++ b/service/iot/api_op_CreateKeysAndCertificate.go
@@ -25,6 +25,7 @@ func (s CreateKeysAndCertificateInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateKeysAndCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SetAsActive != nil {
v := *s.SetAsActive
diff --git a/service/iot/api_op_CreateOTAUpdate.go b/service/iot/api_op_CreateOTAUpdate.go
index e525b6b9aba..4bcfbd2e376 100644
--- a/service/iot/api_op_CreateOTAUpdate.go
+++ b/service/iot/api_op_CreateOTAUpdate.go
@@ -112,6 +112,7 @@ func (s *CreateOTAUpdateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateOTAUpdateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AdditionalParameters != nil {
v := s.AdditionalParameters
diff --git a/service/iot/api_op_CreatePolicy.go b/service/iot/api_op_CreatePolicy.go
index 1aecb0fb167..b04904da459 100644
--- a/service/iot/api_op_CreatePolicy.go
+++ b/service/iot/api_op_CreatePolicy.go
@@ -54,6 +54,7 @@ func (s *CreatePolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreatePolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyDocument != nil {
v := *s.PolicyDocument
diff --git a/service/iot/api_op_CreatePolicyVersion.go b/service/iot/api_op_CreatePolicyVersion.go
index bd072b2eb1d..593d22668e6 100644
--- a/service/iot/api_op_CreatePolicyVersion.go
+++ b/service/iot/api_op_CreatePolicyVersion.go
@@ -59,6 +59,7 @@ func (s *CreatePolicyVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreatePolicyVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyDocument != nil {
v := *s.PolicyDocument
diff --git a/service/iot/api_op_CreateRoleAlias.go b/service/iot/api_op_CreateRoleAlias.go
index abc8e435c10..157dbf22a5f 100644
--- a/service/iot/api_op_CreateRoleAlias.go
+++ b/service/iot/api_op_CreateRoleAlias.go
@@ -62,6 +62,7 @@ func (s *CreateRoleAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateRoleAliasInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CredentialDurationSeconds != nil {
v := *s.CredentialDurationSeconds
diff --git a/service/iot/api_op_CreateScheduledAudit.go b/service/iot/api_op_CreateScheduledAudit.go
index 023efc53ff6..afd48b2211c 100644
--- a/service/iot/api_op_CreateScheduledAudit.go
+++ b/service/iot/api_op_CreateScheduledAudit.go
@@ -79,6 +79,7 @@ func (s *CreateScheduledAuditInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateScheduledAuditInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DayOfMonth != nil {
v := *s.DayOfMonth
diff --git a/service/iot/api_op_CreateSecurityProfile.go b/service/iot/api_op_CreateSecurityProfile.go
index 0675addcc8c..ab04bacbc42 100644
--- a/service/iot/api_op_CreateSecurityProfile.go
+++ b/service/iot/api_op_CreateSecurityProfile.go
@@ -77,6 +77,7 @@ func (s *CreateSecurityProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSecurityProfileInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AdditionalMetricsToRetain != nil {
v := s.AdditionalMetricsToRetain
diff --git a/service/iot/api_op_CreateStream.go b/service/iot/api_op_CreateStream.go
index 281fb022d05..bc6422f6c1c 100644
--- a/service/iot/api_op_CreateStream.go
+++ b/service/iot/api_op_CreateStream.go
@@ -82,6 +82,7 @@ func (s *CreateStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/iot/api_op_CreateThing.go b/service/iot/api_op_CreateThing.go
index 7e56a4df9aa..24e9d6d82fc 100644
--- a/service/iot/api_op_CreateThing.go
+++ b/service/iot/api_op_CreateThing.go
@@ -62,6 +62,7 @@ func (s *CreateThingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateThingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AttributePayload != nil {
v := s.AttributePayload
diff --git a/service/iot/api_op_CreateThingGroup.go b/service/iot/api_op_CreateThingGroup.go
index 991bd5b6440..3ad2166566d 100644
--- a/service/iot/api_op_CreateThingGroup.go
+++ b/service/iot/api_op_CreateThingGroup.go
@@ -55,6 +55,7 @@ func (s *CreateThingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateThingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ParentGroupName != nil {
v := *s.ParentGroupName
diff --git a/service/iot/api_op_CreateThingType.go b/service/iot/api_op_CreateThingType.go
index fe5c7e5d2e1..e4f874fdc11 100644
--- a/service/iot/api_op_CreateThingType.go
+++ b/service/iot/api_op_CreateThingType.go
@@ -52,6 +52,7 @@ func (s *CreateThingTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateThingTypeInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/iot/api_op_CreateTopicRule.go b/service/iot/api_op_CreateTopicRule.go
index 466571cd473..ac9df36a4df 100644
--- a/service/iot/api_op_CreateTopicRule.go
+++ b/service/iot/api_op_CreateTopicRule.go
@@ -68,6 +68,7 @@ func (s *CreateTopicRuleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateTopicRuleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := *s.Tags
diff --git a/service/iot/api_op_DeleteAccountAuditConfiguration.go b/service/iot/api_op_DeleteAccountAuditConfiguration.go
index 26c1c542928..9009aa7f084 100644
--- a/service/iot/api_op_DeleteAccountAuditConfiguration.go
+++ b/service/iot/api_op_DeleteAccountAuditConfiguration.go
@@ -24,6 +24,7 @@ func (s DeleteAccountAuditConfigurationInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteAccountAuditConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeleteScheduledAudits != nil {
v := *s.DeleteScheduledAudits
diff --git a/service/iot/api_op_DeleteAuthorizer.go b/service/iot/api_op_DeleteAuthorizer.go
index be2dc6c9287..bb847e4b110 100644
--- a/service/iot/api_op_DeleteAuthorizer.go
+++ b/service/iot/api_op_DeleteAuthorizer.go
@@ -43,6 +43,7 @@ func (s *DeleteAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthorizerName != nil {
v := *s.AuthorizerName
diff --git a/service/iot/api_op_DeleteBillingGroup.go b/service/iot/api_op_DeleteBillingGroup.go
index 1fe877c031a..579a32cc3ec 100644
--- a/service/iot/api_op_DeleteBillingGroup.go
+++ b/service/iot/api_op_DeleteBillingGroup.go
@@ -48,6 +48,7 @@ func (s *DeleteBillingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBillingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BillingGroupName != nil {
v := *s.BillingGroupName
diff --git a/service/iot/api_op_DeleteCACertificate.go b/service/iot/api_op_DeleteCACertificate.go
index 7970601feca..7237fa11f02 100644
--- a/service/iot/api_op_DeleteCACertificate.go
+++ b/service/iot/api_op_DeleteCACertificate.go
@@ -45,6 +45,7 @@ func (s *DeleteCACertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteCACertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateId != nil {
v := *s.CertificateId
diff --git a/service/iot/api_op_DeleteCertificate.go b/service/iot/api_op_DeleteCertificate.go
index 01db00f1dbb..c01c05fea1c 100644
--- a/service/iot/api_op_DeleteCertificate.go
+++ b/service/iot/api_op_DeleteCertificate.go
@@ -49,6 +49,7 @@ func (s *DeleteCertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateId != nil {
v := *s.CertificateId
diff --git a/service/iot/api_op_DeleteDynamicThingGroup.go b/service/iot/api_op_DeleteDynamicThingGroup.go
index ba6713eb51e..7ee532d4b5e 100644
--- a/service/iot/api_op_DeleteDynamicThingGroup.go
+++ b/service/iot/api_op_DeleteDynamicThingGroup.go
@@ -46,6 +46,7 @@ func (s *DeleteDynamicThingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDynamicThingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingGroupName != nil {
v := *s.ThingGroupName
diff --git a/service/iot/api_op_DeleteJob.go b/service/iot/api_op_DeleteJob.go
index 27aedf35b42..46f2d3457b0 100644
--- a/service/iot/api_op_DeleteJob.go
+++ b/service/iot/api_op_DeleteJob.go
@@ -58,6 +58,7 @@ func (s *DeleteJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobId != nil {
v := *s.JobId
diff --git a/service/iot/api_op_DeleteJobExecution.go b/service/iot/api_op_DeleteJobExecution.go
index 5af0025eb8b..b308a0cf49b 100644
--- a/service/iot/api_op_DeleteJobExecution.go
+++ b/service/iot/api_op_DeleteJobExecution.go
@@ -79,6 +79,7 @@ func (s *DeleteJobExecutionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteJobExecutionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ExecutionNumber != nil {
v := *s.ExecutionNumber
diff --git a/service/iot/api_op_DeleteOTAUpdate.go b/service/iot/api_op_DeleteOTAUpdate.go
index 10042d5c5cf..613e4b27b3f 100644
--- a/service/iot/api_op_DeleteOTAUpdate.go
+++ b/service/iot/api_op_DeleteOTAUpdate.go
@@ -51,6 +51,7 @@ func (s *DeleteOTAUpdateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteOTAUpdateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.OtaUpdateId != nil {
v := *s.OtaUpdateId
diff --git a/service/iot/api_op_DeletePolicy.go b/service/iot/api_op_DeletePolicy.go
index 6c3dde55822..0ef5adba4cc 100644
--- a/service/iot/api_op_DeletePolicy.go
+++ b/service/iot/api_op_DeletePolicy.go
@@ -45,6 +45,7 @@ func (s *DeletePolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyName != nil {
v := *s.PolicyName
diff --git a/service/iot/api_op_DeletePolicyVersion.go b/service/iot/api_op_DeletePolicyVersion.go
index e3f2d8618ae..9a7e614dd2f 100644
--- a/service/iot/api_op_DeletePolicyVersion.go
+++ b/service/iot/api_op_DeletePolicyVersion.go
@@ -54,6 +54,7 @@ func (s *DeletePolicyVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePolicyVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyName != nil {
v := *s.PolicyName
diff --git a/service/iot/api_op_DeleteRegistrationCode.go b/service/iot/api_op_DeleteRegistrationCode.go
index 41de4dcd20d..44ad61c3b5a 100644
--- a/service/iot/api_op_DeleteRegistrationCode.go
+++ b/service/iot/api_op_DeleteRegistrationCode.go
@@ -22,6 +22,7 @@ func (s DeleteRegistrationCodeInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteRegistrationCodeInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/iot/api_op_DeleteRoleAlias.go b/service/iot/api_op_DeleteRoleAlias.go
index 6166ebec1cf..19e51d42d93 100644
--- a/service/iot/api_op_DeleteRoleAlias.go
+++ b/service/iot/api_op_DeleteRoleAlias.go
@@ -43,6 +43,7 @@ func (s *DeleteRoleAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteRoleAliasInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RoleAlias != nil {
v := *s.RoleAlias
diff --git a/service/iot/api_op_DeleteScheduledAudit.go b/service/iot/api_op_DeleteScheduledAudit.go
index 6dafc9c26f4..8bdf50795d4 100644
--- a/service/iot/api_op_DeleteScheduledAudit.go
+++ b/service/iot/api_op_DeleteScheduledAudit.go
@@ -43,6 +43,7 @@ func (s *DeleteScheduledAuditInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteScheduledAuditInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ScheduledAuditName != nil {
v := *s.ScheduledAuditName
diff --git a/service/iot/api_op_DeleteSecurityProfile.go b/service/iot/api_op_DeleteSecurityProfile.go
index c98929ac32c..f75d4a3a0b9 100644
--- a/service/iot/api_op_DeleteSecurityProfile.go
+++ b/service/iot/api_op_DeleteSecurityProfile.go
@@ -48,6 +48,7 @@ func (s *DeleteSecurityProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteSecurityProfileInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SecurityProfileName != nil {
v := *s.SecurityProfileName
diff --git a/service/iot/api_op_DeleteStream.go b/service/iot/api_op_DeleteStream.go
index eddb50e3753..8029ec54d14 100644
--- a/service/iot/api_op_DeleteStream.go
+++ b/service/iot/api_op_DeleteStream.go
@@ -43,6 +43,7 @@ func (s *DeleteStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.StreamId != nil {
v := *s.StreamId
diff --git a/service/iot/api_op_DeleteThing.go b/service/iot/api_op_DeleteThing.go
index b1f621f5a90..14545aa3454 100644
--- a/service/iot/api_op_DeleteThing.go
+++ b/service/iot/api_op_DeleteThing.go
@@ -49,6 +49,7 @@ func (s *DeleteThingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteThingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingName != nil {
v := *s.ThingName
diff --git a/service/iot/api_op_DeleteThingGroup.go b/service/iot/api_op_DeleteThingGroup.go
index ed0cc395dfd..e1f4519a078 100644
--- a/service/iot/api_op_DeleteThingGroup.go
+++ b/service/iot/api_op_DeleteThingGroup.go
@@ -46,6 +46,7 @@ func (s *DeleteThingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteThingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingGroupName != nil {
v := *s.ThingGroupName
diff --git a/service/iot/api_op_DeleteThingType.go b/service/iot/api_op_DeleteThingType.go
index f80e97dae64..c8d8dbe14ed 100644
--- a/service/iot/api_op_DeleteThingType.go
+++ b/service/iot/api_op_DeleteThingType.go
@@ -44,6 +44,7 @@ func (s *DeleteThingTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteThingTypeInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingTypeName != nil {
v := *s.ThingTypeName
diff --git a/service/iot/api_op_DeleteTopicRule.go b/service/iot/api_op_DeleteTopicRule.go
index b80a55ff82c..68eea8245fa 100644
--- a/service/iot/api_op_DeleteTopicRule.go
+++ b/service/iot/api_op_DeleteTopicRule.go
@@ -45,6 +45,7 @@ func (s *DeleteTopicRuleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteTopicRuleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RuleName != nil {
v := *s.RuleName
diff --git a/service/iot/api_op_DeleteV2LoggingLevel.go b/service/iot/api_op_DeleteV2LoggingLevel.go
index a6f0c6de4ec..0edc41507e7 100644
--- a/service/iot/api_op_DeleteV2LoggingLevel.go
+++ b/service/iot/api_op_DeleteV2LoggingLevel.go
@@ -49,6 +49,7 @@ func (s *DeleteV2LoggingLevelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteV2LoggingLevelInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TargetName != nil {
v := *s.TargetName
diff --git a/service/iot/api_op_DeprecateThingType.go b/service/iot/api_op_DeprecateThingType.go
index a5f6fc4db12..daaca835926 100644
--- a/service/iot/api_op_DeprecateThingType.go
+++ b/service/iot/api_op_DeprecateThingType.go
@@ -48,6 +48,7 @@ func (s *DeprecateThingTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeprecateThingTypeInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UndoDeprecate != nil {
v := *s.UndoDeprecate
diff --git a/service/iot/api_op_DescribeAccountAuditConfiguration.go b/service/iot/api_op_DescribeAccountAuditConfiguration.go
index e434196051d..bc6ce70faee 100644
--- a/service/iot/api_op_DescribeAccountAuditConfiguration.go
+++ b/service/iot/api_op_DescribeAccountAuditConfiguration.go
@@ -21,6 +21,7 @@ func (s DescribeAccountAuditConfigurationInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeAccountAuditConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/iot/api_op_DescribeAuditTask.go b/service/iot/api_op_DescribeAuditTask.go
index ee6c36e2a6d..b8eeea5eb86 100644
--- a/service/iot/api_op_DescribeAuditTask.go
+++ b/service/iot/api_op_DescribeAuditTask.go
@@ -44,6 +44,7 @@ func (s *DescribeAuditTaskInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeAuditTaskInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TaskId != nil {
v := *s.TaskId
@@ -64,7 +65,7 @@ type DescribeAuditTaskOutput struct {
ScheduledAuditName *string `locationName:"scheduledAuditName" min:"1" type:"string"`
// The time the audit started.
- TaskStartTime *time.Time `locationName:"taskStartTime" type:"timestamp" timestampFormat:"unix"`
+ TaskStartTime *time.Time `locationName:"taskStartTime" type:"timestamp"`
// Statistical information about the audit.
TaskStatistics *TaskStatistics `locationName:"taskStatistics" type:"structure"`
@@ -106,7 +107,8 @@ func (s DescribeAuditTaskOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.TaskStartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "taskStartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "taskStartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.TaskStatistics != nil {
v := s.TaskStatistics
diff --git a/service/iot/api_op_DescribeAuthorizer.go b/service/iot/api_op_DescribeAuthorizer.go
index 4f3092edbe8..28ef0fdef3b 100644
--- a/service/iot/api_op_DescribeAuthorizer.go
+++ b/service/iot/api_op_DescribeAuthorizer.go
@@ -43,6 +43,7 @@ func (s *DescribeAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthorizerName != nil {
v := *s.AuthorizerName
diff --git a/service/iot/api_op_DescribeBillingGroup.go b/service/iot/api_op_DescribeBillingGroup.go
index 3cfc41ab299..659dcbf2a79 100644
--- a/service/iot/api_op_DescribeBillingGroup.go
+++ b/service/iot/api_op_DescribeBillingGroup.go
@@ -43,6 +43,7 @@ func (s *DescribeBillingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeBillingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BillingGroupName != nil {
v := *s.BillingGroupName
diff --git a/service/iot/api_op_DescribeCACertificate.go b/service/iot/api_op_DescribeCACertificate.go
index dd948da498e..7b4c18f9676 100644
--- a/service/iot/api_op_DescribeCACertificate.go
+++ b/service/iot/api_op_DescribeCACertificate.go
@@ -44,6 +44,7 @@ func (s *DescribeCACertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeCACertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateId != nil {
v := *s.CertificateId
diff --git a/service/iot/api_op_DescribeCertificate.go b/service/iot/api_op_DescribeCertificate.go
index c283dd17f40..79c8c8cc43b 100644
--- a/service/iot/api_op_DescribeCertificate.go
+++ b/service/iot/api_op_DescribeCertificate.go
@@ -45,6 +45,7 @@ func (s *DescribeCertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateId != nil {
v := *s.CertificateId
diff --git a/service/iot/api_op_DescribeDefaultAuthorizer.go b/service/iot/api_op_DescribeDefaultAuthorizer.go
index d49d0b3c433..6d46804f396 100644
--- a/service/iot/api_op_DescribeDefaultAuthorizer.go
+++ b/service/iot/api_op_DescribeDefaultAuthorizer.go
@@ -21,6 +21,7 @@ func (s DescribeDefaultAuthorizerInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeDefaultAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/iot/api_op_DescribeEndpoint.go b/service/iot/api_op_DescribeEndpoint.go
index 2393e90ed70..50c235f93bc 100644
--- a/service/iot/api_op_DescribeEndpoint.go
+++ b/service/iot/api_op_DescribeEndpoint.go
@@ -34,6 +34,7 @@ func (s DescribeEndpointInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeEndpointInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndpointType != nil {
v := *s.EndpointType
diff --git a/service/iot/api_op_DescribeEventConfigurations.go b/service/iot/api_op_DescribeEventConfigurations.go
index b8149357665..e2fad1ff847 100644
--- a/service/iot/api_op_DescribeEventConfigurations.go
+++ b/service/iot/api_op_DescribeEventConfigurations.go
@@ -22,6 +22,7 @@ func (s DescribeEventConfigurationsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeEventConfigurationsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -30,13 +31,13 @@ type DescribeEventConfigurationsOutput struct {
_ struct{} `type:"structure"`
// The creation date of the event configuration.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The event configurations.
EventConfigurations map[string]Configuration `locationName:"eventConfigurations" type:"map"`
// The date the event configurations were last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
}
// String returns the string representation
@@ -50,7 +51,8 @@ func (s DescribeEventConfigurationsOutput) MarshalFields(e protocol.FieldEncoder
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.EventConfigurations != nil {
v := s.EventConfigurations
@@ -68,7 +70,8 @@ func (s DescribeEventConfigurationsOutput) MarshalFields(e protocol.FieldEncoder
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/iot/api_op_DescribeIndex.go b/service/iot/api_op_DescribeIndex.go
index df91d737cca..4f23ff82656 100644
--- a/service/iot/api_op_DescribeIndex.go
+++ b/service/iot/api_op_DescribeIndex.go
@@ -43,6 +43,7 @@ func (s *DescribeIndexInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeIndexInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IndexName != nil {
v := *s.IndexName
diff --git a/service/iot/api_op_DescribeJob.go b/service/iot/api_op_DescribeJob.go
index fdb7da34fe3..627882c7f45 100644
--- a/service/iot/api_op_DescribeJob.go
+++ b/service/iot/api_op_DescribeJob.go
@@ -43,6 +43,7 @@ func (s *DescribeJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobId != nil {
v := *s.JobId
diff --git a/service/iot/api_op_DescribeJobExecution.go b/service/iot/api_op_DescribeJobExecution.go
index a91a30da757..4bca682c661 100644
--- a/service/iot/api_op_DescribeJobExecution.go
+++ b/service/iot/api_op_DescribeJobExecution.go
@@ -59,6 +59,7 @@ func (s *DescribeJobExecutionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeJobExecutionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobId != nil {
v := *s.JobId
diff --git a/service/iot/api_op_DescribeRoleAlias.go b/service/iot/api_op_DescribeRoleAlias.go
index 9b523f08984..b68dadf5f5a 100644
--- a/service/iot/api_op_DescribeRoleAlias.go
+++ b/service/iot/api_op_DescribeRoleAlias.go
@@ -43,6 +43,7 @@ func (s *DescribeRoleAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeRoleAliasInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RoleAlias != nil {
v := *s.RoleAlias
diff --git a/service/iot/api_op_DescribeScheduledAudit.go b/service/iot/api_op_DescribeScheduledAudit.go
index 8002eac495f..026e4c09999 100644
--- a/service/iot/api_op_DescribeScheduledAudit.go
+++ b/service/iot/api_op_DescribeScheduledAudit.go
@@ -43,6 +43,7 @@ func (s *DescribeScheduledAuditInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeScheduledAuditInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ScheduledAuditName != nil {
v := *s.ScheduledAuditName
diff --git a/service/iot/api_op_DescribeSecurityProfile.go b/service/iot/api_op_DescribeSecurityProfile.go
index f1a167d0951..5f197062e73 100644
--- a/service/iot/api_op_DescribeSecurityProfile.go
+++ b/service/iot/api_op_DescribeSecurityProfile.go
@@ -44,6 +44,7 @@ func (s *DescribeSecurityProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeSecurityProfileInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SecurityProfileName != nil {
v := *s.SecurityProfileName
@@ -70,10 +71,10 @@ type DescribeSecurityProfileOutput struct {
Behaviors []Behavior `locationName:"behaviors" type:"list"`
// The time the security profile was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The time the security profile was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// The ARN of the security profile.
SecurityProfileArn *string `locationName:"securityProfileArn" type:"string"`
@@ -137,13 +138,15 @@ func (s DescribeSecurityProfileOutput) MarshalFields(e protocol.FieldEncoder) er
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastModifiedDate != nil {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SecurityProfileArn != nil {
v := *s.SecurityProfileArn
diff --git a/service/iot/api_op_DescribeStream.go b/service/iot/api_op_DescribeStream.go
index f730ed241f6..9b6c364efd9 100644
--- a/service/iot/api_op_DescribeStream.go
+++ b/service/iot/api_op_DescribeStream.go
@@ -43,6 +43,7 @@ func (s *DescribeStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.StreamId != nil {
v := *s.StreamId
diff --git a/service/iot/api_op_DescribeThing.go b/service/iot/api_op_DescribeThing.go
index b34cffd5708..2bba6ab039c 100644
--- a/service/iot/api_op_DescribeThing.go
+++ b/service/iot/api_op_DescribeThing.go
@@ -44,6 +44,7 @@ func (s *DescribeThingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeThingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingName != nil {
v := *s.ThingName
diff --git a/service/iot/api_op_DescribeThingGroup.go b/service/iot/api_op_DescribeThingGroup.go
index a7255204859..6a80985bacc 100644
--- a/service/iot/api_op_DescribeThingGroup.go
+++ b/service/iot/api_op_DescribeThingGroup.go
@@ -43,6 +43,7 @@ func (s *DescribeThingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeThingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingGroupName != nil {
v := *s.ThingGroupName
diff --git a/service/iot/api_op_DescribeThingRegistrationTask.go b/service/iot/api_op_DescribeThingRegistrationTask.go
index 191619e05b8..a6597b1a353 100644
--- a/service/iot/api_op_DescribeThingRegistrationTask.go
+++ b/service/iot/api_op_DescribeThingRegistrationTask.go
@@ -41,6 +41,7 @@ func (s *DescribeThingRegistrationTaskInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeThingRegistrationTaskInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TaskId != nil {
v := *s.TaskId
@@ -55,7 +56,7 @@ type DescribeThingRegistrationTaskOutput struct {
_ struct{} `type:"structure"`
// The task creation date.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The number of things that failed to be provisioned.
FailureCount *int64 `locationName:"failureCount" type:"integer"`
@@ -67,7 +68,7 @@ type DescribeThingRegistrationTaskOutput struct {
InputFileKey *string `locationName:"inputFileKey" min:"1" type:"string"`
// The date when the task was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// The message.
Message *string `locationName:"message" type:"string"`
@@ -102,7 +103,8 @@ func (s DescribeThingRegistrationTaskOutput) MarshalFields(e protocol.FieldEncod
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.FailureCount != nil {
v := *s.FailureCount
@@ -126,7 +128,8 @@ func (s DescribeThingRegistrationTaskOutput) MarshalFields(e protocol.FieldEncod
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Message != nil {
v := *s.Message
diff --git a/service/iot/api_op_DescribeThingType.go b/service/iot/api_op_DescribeThingType.go
index 9b2f081e336..7b0cce5bd2c 100644
--- a/service/iot/api_op_DescribeThingType.go
+++ b/service/iot/api_op_DescribeThingType.go
@@ -44,6 +44,7 @@ func (s *DescribeThingTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeThingTypeInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingTypeName != nil {
v := *s.ThingTypeName
diff --git a/service/iot/api_op_DetachPolicy.go b/service/iot/api_op_DetachPolicy.go
index 92d3fa3ce14..f3a37d19791 100644
--- a/service/iot/api_op_DetachPolicy.go
+++ b/service/iot/api_op_DetachPolicy.go
@@ -53,6 +53,7 @@ func (s *DetachPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DetachPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Target != nil {
v := *s.Target
diff --git a/service/iot/api_op_DetachPrincipalPolicy.go b/service/iot/api_op_DetachPrincipalPolicy.go
index ff16ab85265..bf4e20ccb49 100644
--- a/service/iot/api_op_DetachPrincipalPolicy.go
+++ b/service/iot/api_op_DetachPrincipalPolicy.go
@@ -57,6 +57,7 @@ func (s *DetachPrincipalPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DetachPrincipalPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Principal != nil {
v := *s.Principal
diff --git a/service/iot/api_op_DetachSecurityProfile.go b/service/iot/api_op_DetachSecurityProfile.go
index a2e7f14f77b..e2b8946ce88 100644
--- a/service/iot/api_op_DetachSecurityProfile.go
+++ b/service/iot/api_op_DetachSecurityProfile.go
@@ -52,6 +52,7 @@ func (s *DetachSecurityProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DetachSecurityProfileInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SecurityProfileName != nil {
v := *s.SecurityProfileName
diff --git a/service/iot/api_op_DetachThingPrincipal.go b/service/iot/api_op_DetachThingPrincipal.go
index 8713da2d7ca..8cb1de6eab4 100644
--- a/service/iot/api_op_DetachThingPrincipal.go
+++ b/service/iot/api_op_DetachThingPrincipal.go
@@ -55,6 +55,7 @@ func (s *DetachThingPrincipalInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DetachThingPrincipalInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Principal != nil {
v := *s.Principal
diff --git a/service/iot/api_op_DisableTopicRule.go b/service/iot/api_op_DisableTopicRule.go
index 022cabc125b..afb858c0fd1 100644
--- a/service/iot/api_op_DisableTopicRule.go
+++ b/service/iot/api_op_DisableTopicRule.go
@@ -45,6 +45,7 @@ func (s *DisableTopicRuleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisableTopicRuleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RuleName != nil {
v := *s.RuleName
diff --git a/service/iot/api_op_EnableTopicRule.go b/service/iot/api_op_EnableTopicRule.go
index c1ba05448ce..84b1001e5c4 100644
--- a/service/iot/api_op_EnableTopicRule.go
+++ b/service/iot/api_op_EnableTopicRule.go
@@ -45,6 +45,7 @@ func (s *EnableTopicRuleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s EnableTopicRuleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RuleName != nil {
v := *s.RuleName
diff --git a/service/iot/api_op_GetEffectivePolicies.go b/service/iot/api_op_GetEffectivePolicies.go
index a8dc35ff570..0c41fe04130 100644
--- a/service/iot/api_op_GetEffectivePolicies.go
+++ b/service/iot/api_op_GetEffectivePolicies.go
@@ -43,6 +43,7 @@ func (s *GetEffectivePoliciesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetEffectivePoliciesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CognitoIdentityPoolId != nil {
v := *s.CognitoIdentityPoolId
diff --git a/service/iot/api_op_GetIndexingConfiguration.go b/service/iot/api_op_GetIndexingConfiguration.go
index 2b79425a805..cfd1e372acc 100644
--- a/service/iot/api_op_GetIndexingConfiguration.go
+++ b/service/iot/api_op_GetIndexingConfiguration.go
@@ -21,6 +21,7 @@ func (s GetIndexingConfigurationInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIndexingConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/iot/api_op_GetJobDocument.go b/service/iot/api_op_GetJobDocument.go
index 6df56db572f..7003a49e32e 100644
--- a/service/iot/api_op_GetJobDocument.go
+++ b/service/iot/api_op_GetJobDocument.go
@@ -43,6 +43,7 @@ func (s *GetJobDocumentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetJobDocumentInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobId != nil {
v := *s.JobId
diff --git a/service/iot/api_op_GetLoggingOptions.go b/service/iot/api_op_GetLoggingOptions.go
index f02de1c0141..a9b12f34595 100644
--- a/service/iot/api_op_GetLoggingOptions.go
+++ b/service/iot/api_op_GetLoggingOptions.go
@@ -22,6 +22,7 @@ func (s GetLoggingOptionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetLoggingOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/iot/api_op_GetOTAUpdate.go b/service/iot/api_op_GetOTAUpdate.go
index 07b2012b81b..71c8e779fa7 100644
--- a/service/iot/api_op_GetOTAUpdate.go
+++ b/service/iot/api_op_GetOTAUpdate.go
@@ -43,6 +43,7 @@ func (s *GetOTAUpdateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetOTAUpdateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.OtaUpdateId != nil {
v := *s.OtaUpdateId
diff --git a/service/iot/api_op_GetPolicy.go b/service/iot/api_op_GetPolicy.go
index 27e41a414cd..7dc8374d0bf 100644
--- a/service/iot/api_op_GetPolicy.go
+++ b/service/iot/api_op_GetPolicy.go
@@ -45,6 +45,7 @@ func (s *GetPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyName != nil {
v := *s.PolicyName
@@ -60,7 +61,7 @@ type GetPolicyOutput struct {
_ struct{} `type:"structure"`
// The date the policy was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The default policy version ID.
DefaultVersionId *string `locationName:"defaultVersionId" type:"string"`
@@ -69,7 +70,7 @@ type GetPolicyOutput struct {
GenerationId *string `locationName:"generationId" type:"string"`
// The date the policy was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// The policy ARN.
PolicyArn *string `locationName:"policyArn" type:"string"`
@@ -92,7 +93,8 @@ func (s GetPolicyOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DefaultVersionId != nil {
v := *s.DefaultVersionId
@@ -110,7 +112,8 @@ func (s GetPolicyOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PolicyArn != nil {
v := *s.PolicyArn
diff --git a/service/iot/api_op_GetPolicyVersion.go b/service/iot/api_op_GetPolicyVersion.go
index 76e7c017e7e..9f4f67ebb8c 100644
--- a/service/iot/api_op_GetPolicyVersion.go
+++ b/service/iot/api_op_GetPolicyVersion.go
@@ -54,6 +54,7 @@ func (s *GetPolicyVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetPolicyVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyName != nil {
v := *s.PolicyName
@@ -75,7 +76,7 @@ type GetPolicyVersionOutput struct {
_ struct{} `type:"structure"`
// The date the policy version was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The generation ID of the policy version.
GenerationId *string `locationName:"generationId" type:"string"`
@@ -84,7 +85,7 @@ type GetPolicyVersionOutput struct {
IsDefaultVersion *bool `locationName:"isDefaultVersion" type:"boolean"`
// The date the policy version was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// The policy ARN.
PolicyArn *string `locationName:"policyArn" type:"string"`
@@ -110,7 +111,8 @@ func (s GetPolicyVersionOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.GenerationId != nil {
v := *s.GenerationId
@@ -128,7 +130,8 @@ func (s GetPolicyVersionOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PolicyArn != nil {
v := *s.PolicyArn
diff --git a/service/iot/api_op_GetRegistrationCode.go b/service/iot/api_op_GetRegistrationCode.go
index c6b1f3adfa1..5cabb89d7c3 100644
--- a/service/iot/api_op_GetRegistrationCode.go
+++ b/service/iot/api_op_GetRegistrationCode.go
@@ -22,6 +22,7 @@ func (s GetRegistrationCodeInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetRegistrationCodeInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/iot/api_op_GetStatistics.go b/service/iot/api_op_GetStatistics.go
index fa117b337d8..3b0696bc38e 100644
--- a/service/iot/api_op_GetStatistics.go
+++ b/service/iot/api_op_GetStatistics.go
@@ -59,6 +59,7 @@ func (s *GetStatisticsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetStatisticsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AggregationField != nil {
v := *s.AggregationField
diff --git a/service/iot/api_op_GetTopicRule.go b/service/iot/api_op_GetTopicRule.go
index 963efec0bc0..ebfc7167051 100644
--- a/service/iot/api_op_GetTopicRule.go
+++ b/service/iot/api_op_GetTopicRule.go
@@ -44,6 +44,7 @@ func (s *GetTopicRuleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetTopicRuleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RuleName != nil {
v := *s.RuleName
diff --git a/service/iot/api_op_GetV2LoggingOptions.go b/service/iot/api_op_GetV2LoggingOptions.go
index c31f9d049bd..a539e187b22 100644
--- a/service/iot/api_op_GetV2LoggingOptions.go
+++ b/service/iot/api_op_GetV2LoggingOptions.go
@@ -21,6 +21,7 @@ func (s GetV2LoggingOptionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetV2LoggingOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/iot/api_op_ListActiveViolations.go b/service/iot/api_op_ListActiveViolations.go
index 82ddc1eb5dc..7fc6d05e121 100644
--- a/service/iot/api_op_ListActiveViolations.go
+++ b/service/iot/api_op_ListActiveViolations.go
@@ -53,6 +53,7 @@ func (s *ListActiveViolationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListActiveViolationsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListAttachedPolicies.go b/service/iot/api_op_ListAttachedPolicies.go
index 47803482a82..a790e10a6cc 100644
--- a/service/iot/api_op_ListAttachedPolicies.go
+++ b/service/iot/api_op_ListAttachedPolicies.go
@@ -52,6 +52,7 @@ func (s *ListAttachedPoliciesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListAttachedPoliciesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Target != nil {
v := *s.Target
diff --git a/service/iot/api_op_ListAuditFindings.go b/service/iot/api_op_ListAuditFindings.go
index 2eabed92c29..4f37a5a0ee7 100644
--- a/service/iot/api_op_ListAuditFindings.go
+++ b/service/iot/api_op_ListAuditFindings.go
@@ -19,7 +19,7 @@ type ListAuditFindingsInput struct {
// A filter to limit results to those found before the specified time. You must
// specify either the startTime and endTime or the taskId, but not both.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The maximum number of results to return at one time. The default is 25.
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
@@ -32,7 +32,7 @@ type ListAuditFindingsInput struct {
// A filter to limit results to those found after the specified time. You must
// specify either the startTime and endTime or the taskId, but not both.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// A filter to limit results to the audit with the specified ID. You must specify
// either the taskId or the startTime and endTime, but not both.
@@ -67,6 +67,7 @@ func (s *ListAuditFindingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListAuditFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CheckName != nil {
v := *s.CheckName
@@ -78,7 +79,8 @@ func (s ListAuditFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.MaxResults != nil {
v := *s.MaxResults
@@ -102,7 +104,8 @@ func (s ListAuditFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.TaskId != nil {
v := *s.TaskId
diff --git a/service/iot/api_op_ListAuditTasks.go b/service/iot/api_op_ListAuditTasks.go
index b2947119b46..dd4c30b1dbd 100644
--- a/service/iot/api_op_ListAuditTasks.go
+++ b/service/iot/api_op_ListAuditTasks.go
@@ -17,7 +17,7 @@ type ListAuditTasksInput struct {
// The end of the time period.
//
// EndTime is a required field
- EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" required:"true"`
// The maximum number of results to return at one time. The default is 25.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
@@ -30,7 +30,7 @@ type ListAuditTasksInput struct {
// results in an "InvalidRequestException".
//
// StartTime is a required field
- StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" required:"true"`
// A filter to limit the output to audits with the specified completion status:
// can be one of "IN_PROGRESS", "COMPLETED", "FAILED" or "CANCELED".
@@ -69,12 +69,14 @@ func (s *ListAuditTasksInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListAuditTasksInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.MaxResults != nil {
v := *s.MaxResults
@@ -92,7 +94,8 @@ func (s ListAuditTasksInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if len(s.TaskStatus) > 0 {
v := s.TaskStatus
diff --git a/service/iot/api_op_ListAuthorizers.go b/service/iot/api_op_ListAuthorizers.go
index e5245c79a94..340b9fce8ae 100644
--- a/service/iot/api_op_ListAuthorizers.go
+++ b/service/iot/api_op_ListAuthorizers.go
@@ -46,6 +46,7 @@ func (s *ListAuthorizersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListAuthorizersInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AscendingOrder != nil {
v := *s.AscendingOrder
diff --git a/service/iot/api_op_ListBillingGroups.go b/service/iot/api_op_ListBillingGroups.go
index c89b818c39b..d683fe2bc06 100644
--- a/service/iot/api_op_ListBillingGroups.go
+++ b/service/iot/api_op_ListBillingGroups.go
@@ -46,6 +46,7 @@ func (s *ListBillingGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBillingGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListCACertificates.go b/service/iot/api_op_ListCACertificates.go
index 75996118405..ad7461ec048 100644
--- a/service/iot/api_op_ListCACertificates.go
+++ b/service/iot/api_op_ListCACertificates.go
@@ -44,6 +44,7 @@ func (s *ListCACertificatesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListCACertificatesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AscendingOrder != nil {
v := *s.AscendingOrder
diff --git a/service/iot/api_op_ListCertificates.go b/service/iot/api_op_ListCertificates.go
index 6bbbb98c6ca..c7d6c8ed92f 100644
--- a/service/iot/api_op_ListCertificates.go
+++ b/service/iot/api_op_ListCertificates.go
@@ -45,6 +45,7 @@ func (s *ListCertificatesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListCertificatesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AscendingOrder != nil {
v := *s.AscendingOrder
diff --git a/service/iot/api_op_ListCertificatesByCA.go b/service/iot/api_op_ListCertificatesByCA.go
index 7d6541cdbeb..90a96cb87ec 100644
--- a/service/iot/api_op_ListCertificatesByCA.go
+++ b/service/iot/api_op_ListCertificatesByCA.go
@@ -58,6 +58,7 @@ func (s *ListCertificatesByCAInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListCertificatesByCAInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CaCertificateId != nil {
v := *s.CaCertificateId
diff --git a/service/iot/api_op_ListIndices.go b/service/iot/api_op_ListIndices.go
index 7ce71324ffa..57cdfd7106f 100644
--- a/service/iot/api_op_ListIndices.go
+++ b/service/iot/api_op_ListIndices.go
@@ -41,6 +41,7 @@ func (s *ListIndicesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListIndicesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListJobExecutionsForJob.go b/service/iot/api_op_ListJobExecutionsForJob.go
index 3dda2364fd1..f2055b2fc67 100644
--- a/service/iot/api_op_ListJobExecutionsForJob.go
+++ b/service/iot/api_op_ListJobExecutionsForJob.go
@@ -55,6 +55,7 @@ func (s *ListJobExecutionsForJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListJobExecutionsForJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobId != nil {
v := *s.JobId
diff --git a/service/iot/api_op_ListJobExecutionsForThing.go b/service/iot/api_op_ListJobExecutionsForThing.go
index 3296abdab5f..4c4f364cbc4 100644
--- a/service/iot/api_op_ListJobExecutionsForThing.go
+++ b/service/iot/api_op_ListJobExecutionsForThing.go
@@ -56,6 +56,7 @@ func (s *ListJobExecutionsForThingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListJobExecutionsForThingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingName != nil {
v := *s.ThingName
diff --git a/service/iot/api_op_ListJobs.go b/service/iot/api_op_ListJobs.go
index b81ebcf329e..8757dbf7899 100644
--- a/service/iot/api_op_ListJobs.go
+++ b/service/iot/api_op_ListJobs.go
@@ -64,6 +64,7 @@ func (s *ListJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListJobsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListOTAUpdates.go b/service/iot/api_op_ListOTAUpdates.go
index 475d00b41da..6c5ab917c3e 100644
--- a/service/iot/api_op_ListOTAUpdates.go
+++ b/service/iot/api_op_ListOTAUpdates.go
@@ -43,6 +43,7 @@ func (s *ListOTAUpdatesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListOTAUpdatesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListOutgoingCertificates.go b/service/iot/api_op_ListOutgoingCertificates.go
index 199192ca631..bf9f7af37b4 100644
--- a/service/iot/api_op_ListOutgoingCertificates.go
+++ b/service/iot/api_op_ListOutgoingCertificates.go
@@ -45,6 +45,7 @@ func (s *ListOutgoingCertificatesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListOutgoingCertificatesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AscendingOrder != nil {
v := *s.AscendingOrder
diff --git a/service/iot/api_op_ListPolicies.go b/service/iot/api_op_ListPolicies.go
index 551eb9e9989..ba419db42dc 100644
--- a/service/iot/api_op_ListPolicies.go
+++ b/service/iot/api_op_ListPolicies.go
@@ -45,6 +45,7 @@ func (s *ListPoliciesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPoliciesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AscendingOrder != nil {
v := *s.AscendingOrder
diff --git a/service/iot/api_op_ListPolicyPrincipals.go b/service/iot/api_op_ListPolicyPrincipals.go
index 16ac6bff4ba..317da942b4e 100644
--- a/service/iot/api_op_ListPolicyPrincipals.go
+++ b/service/iot/api_op_ListPolicyPrincipals.go
@@ -57,6 +57,7 @@ func (s *ListPolicyPrincipalsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPolicyPrincipalsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyName != nil {
v := *s.PolicyName
diff --git a/service/iot/api_op_ListPolicyVersions.go b/service/iot/api_op_ListPolicyVersions.go
index b4a3f8ff8b0..168076016c7 100644
--- a/service/iot/api_op_ListPolicyVersions.go
+++ b/service/iot/api_op_ListPolicyVersions.go
@@ -44,6 +44,7 @@ func (s *ListPolicyVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPolicyVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyName != nil {
v := *s.PolicyName
diff --git a/service/iot/api_op_ListPrincipalPolicies.go b/service/iot/api_op_ListPrincipalPolicies.go
index 785e839283e..d81f23f7950 100644
--- a/service/iot/api_op_ListPrincipalPolicies.go
+++ b/service/iot/api_op_ListPrincipalPolicies.go
@@ -54,6 +54,7 @@ func (s *ListPrincipalPoliciesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPrincipalPoliciesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Principal != nil {
v := *s.Principal
diff --git a/service/iot/api_op_ListPrincipalThings.go b/service/iot/api_op_ListPrincipalThings.go
index 58328a1b6de..7bd16f2aed0 100644
--- a/service/iot/api_op_ListPrincipalThings.go
+++ b/service/iot/api_op_ListPrincipalThings.go
@@ -50,6 +50,7 @@ func (s *ListPrincipalThingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPrincipalThingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Principal != nil {
v := *s.Principal
diff --git a/service/iot/api_op_ListRoleAliases.go b/service/iot/api_op_ListRoleAliases.go
index ebf68234f19..2d358a6ef2a 100644
--- a/service/iot/api_op_ListRoleAliases.go
+++ b/service/iot/api_op_ListRoleAliases.go
@@ -43,6 +43,7 @@ func (s *ListRoleAliasesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListRoleAliasesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AscendingOrder != nil {
v := *s.AscendingOrder
diff --git a/service/iot/api_op_ListScheduledAudits.go b/service/iot/api_op_ListScheduledAudits.go
index 8f0d651271a..eb5d7814b07 100644
--- a/service/iot/api_op_ListScheduledAudits.go
+++ b/service/iot/api_op_ListScheduledAudits.go
@@ -40,6 +40,7 @@ func (s *ListScheduledAuditsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListScheduledAuditsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListSecurityProfiles.go b/service/iot/api_op_ListSecurityProfiles.go
index cf0cfafb2dc..a325af9a47b 100644
--- a/service/iot/api_op_ListSecurityProfiles.go
+++ b/service/iot/api_op_ListSecurityProfiles.go
@@ -40,6 +40,7 @@ func (s *ListSecurityProfilesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSecurityProfilesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListSecurityProfilesForTarget.go b/service/iot/api_op_ListSecurityProfilesForTarget.go
index 7b3e75c8ef1..c57534bc358 100644
--- a/service/iot/api_op_ListSecurityProfilesForTarget.go
+++ b/service/iot/api_op_ListSecurityProfilesForTarget.go
@@ -53,6 +53,7 @@ func (s *ListSecurityProfilesForTargetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSecurityProfilesForTargetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListStreams.go b/service/iot/api_op_ListStreams.go
index 1c219132e7c..1e0253d7f3d 100644
--- a/service/iot/api_op_ListStreams.go
+++ b/service/iot/api_op_ListStreams.go
@@ -43,6 +43,7 @@ func (s *ListStreamsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListStreamsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AscendingOrder != nil {
v := *s.AscendingOrder
diff --git a/service/iot/api_op_ListTagsForResource.go b/service/iot/api_op_ListTagsForResource.go
index 9cad8cfa436..d747b0f660c 100644
--- a/service/iot/api_op_ListTagsForResource.go
+++ b/service/iot/api_op_ListTagsForResource.go
@@ -43,6 +43,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/iot/api_op_ListTargetsForPolicy.go b/service/iot/api_op_ListTargetsForPolicy.go
index 08d3b85cb12..a05bed5c8e1 100644
--- a/service/iot/api_op_ListTargetsForPolicy.go
+++ b/service/iot/api_op_ListTargetsForPolicy.go
@@ -52,6 +52,7 @@ func (s *ListTargetsForPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTargetsForPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyName != nil {
v := *s.PolicyName
diff --git a/service/iot/api_op_ListTargetsForSecurityProfile.go b/service/iot/api_op_ListTargetsForSecurityProfile.go
index d86e8323455..b0e957710a5 100644
--- a/service/iot/api_op_ListTargetsForSecurityProfile.go
+++ b/service/iot/api_op_ListTargetsForSecurityProfile.go
@@ -52,6 +52,7 @@ func (s *ListTargetsForSecurityProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTargetsForSecurityProfileInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SecurityProfileName != nil {
v := *s.SecurityProfileName
diff --git a/service/iot/api_op_ListThingGroups.go b/service/iot/api_op_ListThingGroups.go
index 9e07a13974a..e446cf5a187 100644
--- a/service/iot/api_op_ListThingGroups.go
+++ b/service/iot/api_op_ListThingGroups.go
@@ -55,6 +55,7 @@ func (s *ListThingGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListThingGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListThingGroupsForThing.go b/service/iot/api_op_ListThingGroupsForThing.go
index 87bcf311bae..877ef837c34 100644
--- a/service/iot/api_op_ListThingGroupsForThing.go
+++ b/service/iot/api_op_ListThingGroupsForThing.go
@@ -52,6 +52,7 @@ func (s *ListThingGroupsForThingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListThingGroupsForThingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingName != nil {
v := *s.ThingName
diff --git a/service/iot/api_op_ListThingPrincipals.go b/service/iot/api_op_ListThingPrincipals.go
index 3a0d2606425..fc89bcef076 100644
--- a/service/iot/api_op_ListThingPrincipals.go
+++ b/service/iot/api_op_ListThingPrincipals.go
@@ -44,6 +44,7 @@ func (s *ListThingPrincipalsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListThingPrincipalsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingName != nil {
v := *s.ThingName
diff --git a/service/iot/api_op_ListThingRegistrationTaskReports.go b/service/iot/api_op_ListThingRegistrationTaskReports.go
index 675d58ce18f..70b2dd82375 100644
--- a/service/iot/api_op_ListThingRegistrationTaskReports.go
+++ b/service/iot/api_op_ListThingRegistrationTaskReports.go
@@ -57,6 +57,7 @@ func (s *ListThingRegistrationTaskReportsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListThingRegistrationTaskReportsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TaskId != nil {
v := *s.TaskId
diff --git a/service/iot/api_op_ListThingRegistrationTasks.go b/service/iot/api_op_ListThingRegistrationTasks.go
index b15e49f9750..d6b48692a5d 100644
--- a/service/iot/api_op_ListThingRegistrationTasks.go
+++ b/service/iot/api_op_ListThingRegistrationTasks.go
@@ -43,6 +43,7 @@ func (s *ListThingRegistrationTasksInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListThingRegistrationTasksInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListThingTypes.go b/service/iot/api_op_ListThingTypes.go
index fd3eaae0980..4412da9745f 100644
--- a/service/iot/api_op_ListThingTypes.go
+++ b/service/iot/api_op_ListThingTypes.go
@@ -47,6 +47,7 @@ func (s *ListThingTypesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListThingTypesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListThings.go b/service/iot/api_op_ListThings.go
index 787923a5b02..a7011d2e5e2 100644
--- a/service/iot/api_op_ListThings.go
+++ b/service/iot/api_op_ListThings.go
@@ -53,6 +53,7 @@ func (s *ListThingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListThingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AttributeName != nil {
v := *s.AttributeName
diff --git a/service/iot/api_op_ListThingsInBillingGroup.go b/service/iot/api_op_ListThingsInBillingGroup.go
index 069f90f4a35..b9d532064aa 100644
--- a/service/iot/api_op_ListThingsInBillingGroup.go
+++ b/service/iot/api_op_ListThingsInBillingGroup.go
@@ -52,6 +52,7 @@ func (s *ListThingsInBillingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListThingsInBillingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BillingGroupName != nil {
v := *s.BillingGroupName
diff --git a/service/iot/api_op_ListThingsInThingGroup.go b/service/iot/api_op_ListThingsInThingGroup.go
index 3c8ebd06f04..90840c377e3 100644
--- a/service/iot/api_op_ListThingsInThingGroup.go
+++ b/service/iot/api_op_ListThingsInThingGroup.go
@@ -55,6 +55,7 @@ func (s *ListThingsInThingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListThingsInThingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingGroupName != nil {
v := *s.ThingGroupName
diff --git a/service/iot/api_op_ListTopicRules.go b/service/iot/api_op_ListTopicRules.go
index 36a26a9b4d0..8a806df5cc0 100644
--- a/service/iot/api_op_ListTopicRules.go
+++ b/service/iot/api_op_ListTopicRules.go
@@ -47,6 +47,7 @@ func (s *ListTopicRulesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTopicRulesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListV2LoggingLevels.go b/service/iot/api_op_ListV2LoggingLevels.go
index e37c21acef8..0da6fcba65e 100644
--- a/service/iot/api_op_ListV2LoggingLevels.go
+++ b/service/iot/api_op_ListV2LoggingLevels.go
@@ -44,6 +44,7 @@ func (s *ListV2LoggingLevelsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListV2LoggingLevelsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot/api_op_ListViolationEvents.go b/service/iot/api_op_ListViolationEvents.go
index 953e2d52faf..b8eb1e8e634 100644
--- a/service/iot/api_op_ListViolationEvents.go
+++ b/service/iot/api_op_ListViolationEvents.go
@@ -17,7 +17,7 @@ type ListViolationEventsInput struct {
// The end time for the alerts to be listed.
//
// EndTime is a required field
- EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" required:"true"`
// The maximum number of results to return at one time.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
@@ -32,7 +32,7 @@ type ListViolationEventsInput struct {
// The start time for the alerts to be listed.
//
// StartTime is a required field
- StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" required:"true"`
// A filter to limit results to those alerts caused by the specified thing.
ThingName *string `location:"querystring" locationName:"thingName" min:"1" type:"string"`
@@ -72,12 +72,14 @@ func (s *ListViolationEventsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListViolationEventsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.MaxResults != nil {
v := *s.MaxResults
@@ -101,7 +103,8 @@ func (s ListViolationEventsInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.ThingName != nil {
v := *s.ThingName
diff --git a/service/iot/api_op_RegisterCACertificate.go b/service/iot/api_op_RegisterCACertificate.go
index a70a49352fe..a2e01ae7480 100644
--- a/service/iot/api_op_RegisterCACertificate.go
+++ b/service/iot/api_op_RegisterCACertificate.go
@@ -70,6 +70,7 @@ func (s *RegisterCACertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RegisterCACertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CaCertificate != nil {
v := *s.CaCertificate
diff --git a/service/iot/api_op_RegisterCertificate.go b/service/iot/api_op_RegisterCertificate.go
index 57b716c2eb7..24b05d2cd28 100644
--- a/service/iot/api_op_RegisterCertificate.go
+++ b/service/iot/api_op_RegisterCertificate.go
@@ -56,6 +56,7 @@ func (s *RegisterCertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RegisterCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CaCertificatePem != nil {
v := *s.CaCertificatePem
diff --git a/service/iot/api_op_RegisterThing.go b/service/iot/api_op_RegisterThing.go
index 50bcd7dd670..58be6057262 100644
--- a/service/iot/api_op_RegisterThing.go
+++ b/service/iot/api_op_RegisterThing.go
@@ -45,6 +45,7 @@ func (s *RegisterThingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RegisterThingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Parameters != nil {
v := s.Parameters
diff --git a/service/iot/api_op_RejectCertificateTransfer.go b/service/iot/api_op_RejectCertificateTransfer.go
index 44ad87c1227..79f62a42b96 100644
--- a/service/iot/api_op_RejectCertificateTransfer.go
+++ b/service/iot/api_op_RejectCertificateTransfer.go
@@ -49,6 +49,7 @@ func (s *RejectCertificateTransferInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RejectCertificateTransferInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RejectReason != nil {
v := *s.RejectReason
diff --git a/service/iot/api_op_RemoveThingFromBillingGroup.go b/service/iot/api_op_RemoveThingFromBillingGroup.go
index 18983681bfd..0ce3923fd22 100644
--- a/service/iot/api_op_RemoveThingFromBillingGroup.go
+++ b/service/iot/api_op_RemoveThingFromBillingGroup.go
@@ -49,6 +49,7 @@ func (s *RemoveThingFromBillingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemoveThingFromBillingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BillingGroupArn != nil {
v := *s.BillingGroupArn
diff --git a/service/iot/api_op_RemoveThingFromThingGroup.go b/service/iot/api_op_RemoveThingFromThingGroup.go
index a04ffcfaa83..1639a422f35 100644
--- a/service/iot/api_op_RemoveThingFromThingGroup.go
+++ b/service/iot/api_op_RemoveThingFromThingGroup.go
@@ -49,6 +49,7 @@ func (s *RemoveThingFromThingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemoveThingFromThingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingArn != nil {
v := *s.ThingArn
diff --git a/service/iot/api_op_ReplaceTopicRule.go b/service/iot/api_op_ReplaceTopicRule.go
index 0007253535b..8817142e534 100644
--- a/service/iot/api_op_ReplaceTopicRule.go
+++ b/service/iot/api_op_ReplaceTopicRule.go
@@ -59,6 +59,7 @@ func (s *ReplaceTopicRuleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ReplaceTopicRuleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RuleName != nil {
v := *s.RuleName
diff --git a/service/iot/api_op_SearchIndex.go b/service/iot/api_op_SearchIndex.go
index 2e7df365f6b..f4eb0d0dcfc 100644
--- a/service/iot/api_op_SearchIndex.go
+++ b/service/iot/api_op_SearchIndex.go
@@ -62,6 +62,7 @@ func (s *SearchIndexInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SearchIndexInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IndexName != nil {
v := *s.IndexName
diff --git a/service/iot/api_op_SetDefaultAuthorizer.go b/service/iot/api_op_SetDefaultAuthorizer.go
index 5b2db99fcfd..2c3b2318f9b 100644
--- a/service/iot/api_op_SetDefaultAuthorizer.go
+++ b/service/iot/api_op_SetDefaultAuthorizer.go
@@ -43,6 +43,7 @@ func (s *SetDefaultAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SetDefaultAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthorizerName != nil {
v := *s.AuthorizerName
diff --git a/service/iot/api_op_SetDefaultPolicyVersion.go b/service/iot/api_op_SetDefaultPolicyVersion.go
index 87c703a4a2a..ed65a80eb2a 100644
--- a/service/iot/api_op_SetDefaultPolicyVersion.go
+++ b/service/iot/api_op_SetDefaultPolicyVersion.go
@@ -54,6 +54,7 @@ func (s *SetDefaultPolicyVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SetDefaultPolicyVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyName != nil {
v := *s.PolicyName
diff --git a/service/iot/api_op_SetLoggingOptions.go b/service/iot/api_op_SetLoggingOptions.go
index fd6da743fc8..fcc6f50a936 100644
--- a/service/iot/api_op_SetLoggingOptions.go
+++ b/service/iot/api_op_SetLoggingOptions.go
@@ -47,6 +47,7 @@ func (s *SetLoggingOptionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SetLoggingOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LoggingOptionsPayload != nil {
v := s.LoggingOptionsPayload
diff --git a/service/iot/api_op_SetV2LoggingLevel.go b/service/iot/api_op_SetV2LoggingLevel.go
index d8b936c63cb..f965db70e29 100644
--- a/service/iot/api_op_SetV2LoggingLevel.go
+++ b/service/iot/api_op_SetV2LoggingLevel.go
@@ -54,6 +54,7 @@ func (s *SetV2LoggingLevelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SetV2LoggingLevelInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.LogLevel) > 0 {
v := s.LogLevel
diff --git a/service/iot/api_op_SetV2LoggingOptions.go b/service/iot/api_op_SetV2LoggingOptions.go
index 8b3dbad8518..99e539465ee 100644
--- a/service/iot/api_op_SetV2LoggingOptions.go
+++ b/service/iot/api_op_SetV2LoggingOptions.go
@@ -31,6 +31,7 @@ func (s SetV2LoggingOptionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SetV2LoggingOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.DefaultLogLevel) > 0 {
v := s.DefaultLogLevel
diff --git a/service/iot/api_op_StartOnDemandAuditTask.go b/service/iot/api_op_StartOnDemandAuditTask.go
index e7adcfd5211..50a76bad4e4 100644
--- a/service/iot/api_op_StartOnDemandAuditTask.go
+++ b/service/iot/api_op_StartOnDemandAuditTask.go
@@ -43,6 +43,7 @@ func (s *StartOnDemandAuditTaskInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartOnDemandAuditTaskInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TargetCheckNames != nil {
v := s.TargetCheckNames
diff --git a/service/iot/api_op_StartThingRegistrationTask.go b/service/iot/api_op_StartThingRegistrationTask.go
index 77aba13b71d..954932d5d15 100644
--- a/service/iot/api_op_StartThingRegistrationTask.go
+++ b/service/iot/api_op_StartThingRegistrationTask.go
@@ -78,6 +78,7 @@ func (s *StartThingRegistrationTaskInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartThingRegistrationTaskInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InputFileBucket != nil {
v := *s.InputFileBucket
diff --git a/service/iot/api_op_StopThingRegistrationTask.go b/service/iot/api_op_StopThingRegistrationTask.go
index 616e6d1a2b5..f0376f5bf74 100644
--- a/service/iot/api_op_StopThingRegistrationTask.go
+++ b/service/iot/api_op_StopThingRegistrationTask.go
@@ -40,6 +40,7 @@ func (s *StopThingRegistrationTaskInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StopThingRegistrationTaskInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TaskId != nil {
v := *s.TaskId
diff --git a/service/iot/api_op_TagResource.go b/service/iot/api_op_TagResource.go
index 6cc99921075..8a64d3ae986 100644
--- a/service/iot/api_op_TagResource.go
+++ b/service/iot/api_op_TagResource.go
@@ -49,6 +49,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/iot/api_op_TestAuthorization.go b/service/iot/api_op_TestAuthorization.go
index f38d9fd291c..e74d8b60bb7 100644
--- a/service/iot/api_op_TestAuthorization.go
+++ b/service/iot/api_op_TestAuthorization.go
@@ -61,6 +61,7 @@ func (s *TestAuthorizationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TestAuthorizationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthInfos != nil {
v := s.AuthInfos
diff --git a/service/iot/api_op_TestInvokeAuthorizer.go b/service/iot/api_op_TestInvokeAuthorizer.go
index 3fc8277424c..f6dea5ce505 100644
--- a/service/iot/api_op_TestInvokeAuthorizer.go
+++ b/service/iot/api_op_TestInvokeAuthorizer.go
@@ -68,6 +68,7 @@ func (s *TestInvokeAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TestInvokeAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Token != nil {
v := *s.Token
diff --git a/service/iot/api_op_TransferCertificate.go b/service/iot/api_op_TransferCertificate.go
index 350278100f8..5d4ce67a948 100644
--- a/service/iot/api_op_TransferCertificate.go
+++ b/service/iot/api_op_TransferCertificate.go
@@ -60,6 +60,7 @@ func (s *TransferCertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TransferCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TransferMessage != nil {
v := *s.TransferMessage
diff --git a/service/iot/api_op_UntagResource.go b/service/iot/api_op_UntagResource.go
index f8c7d210926..3f109ec3268 100644
--- a/service/iot/api_op_UntagResource.go
+++ b/service/iot/api_op_UntagResource.go
@@ -49,6 +49,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/iot/api_op_UpdateAccountAuditConfiguration.go b/service/iot/api_op_UpdateAccountAuditConfiguration.go
index ea1403a4fb3..7e332d2ed97 100644
--- a/service/iot/api_op_UpdateAccountAuditConfiguration.go
+++ b/service/iot/api_op_UpdateAccountAuditConfiguration.go
@@ -66,6 +66,7 @@ func (s *UpdateAccountAuditConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAccountAuditConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuditCheckConfigurations != nil {
v := s.AuditCheckConfigurations
diff --git a/service/iot/api_op_UpdateAuthorizer.go b/service/iot/api_op_UpdateAuthorizer.go
index 49c8b2f9c85..48ec5cc1620 100644
--- a/service/iot/api_op_UpdateAuthorizer.go
+++ b/service/iot/api_op_UpdateAuthorizer.go
@@ -58,6 +58,7 @@ func (s *UpdateAuthorizerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAuthorizerInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthorizerFunctionArn != nil {
v := *s.AuthorizerFunctionArn
diff --git a/service/iot/api_op_UpdateBillingGroup.go b/service/iot/api_op_UpdateBillingGroup.go
index 751185a7620..3267dd37b7b 100644
--- a/service/iot/api_op_UpdateBillingGroup.go
+++ b/service/iot/api_op_UpdateBillingGroup.go
@@ -57,6 +57,7 @@ func (s *UpdateBillingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateBillingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BillingGroupProperties != nil {
v := s.BillingGroupProperties
diff --git a/service/iot/api_op_UpdateCACertificate.go b/service/iot/api_op_UpdateCACertificate.go
index ae4cdf3fc74..267fa46a01a 100644
--- a/service/iot/api_op_UpdateCACertificate.go
+++ b/service/iot/api_op_UpdateCACertificate.go
@@ -66,6 +66,7 @@ func (s *UpdateCACertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateCACertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RegistrationConfig != nil {
v := s.RegistrationConfig
diff --git a/service/iot/api_op_UpdateCertificate.go b/service/iot/api_op_UpdateCertificate.go
index 9a363a3d2d7..59310399c48 100644
--- a/service/iot/api_op_UpdateCertificate.go
+++ b/service/iot/api_op_UpdateCertificate.go
@@ -61,6 +61,7 @@ func (s *UpdateCertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CertificateId != nil {
v := *s.CertificateId
diff --git a/service/iot/api_op_UpdateDynamicThingGroup.go b/service/iot/api_op_UpdateDynamicThingGroup.go
index 6ff42600cbf..abe928b2831 100644
--- a/service/iot/api_op_UpdateDynamicThingGroup.go
+++ b/service/iot/api_op_UpdateDynamicThingGroup.go
@@ -75,6 +75,7 @@ func (s *UpdateDynamicThingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDynamicThingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ExpectedVersion != nil {
v := *s.ExpectedVersion
diff --git a/service/iot/api_op_UpdateEventConfigurations.go b/service/iot/api_op_UpdateEventConfigurations.go
index 56c7858e095..65333b522f2 100644
--- a/service/iot/api_op_UpdateEventConfigurations.go
+++ b/service/iot/api_op_UpdateEventConfigurations.go
@@ -24,6 +24,7 @@ func (s UpdateEventConfigurationsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateEventConfigurationsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EventConfigurations != nil {
v := s.EventConfigurations
diff --git a/service/iot/api_op_UpdateIndexingConfiguration.go b/service/iot/api_op_UpdateIndexingConfiguration.go
index 3274b5502f3..e4bb305360c 100644
--- a/service/iot/api_op_UpdateIndexingConfiguration.go
+++ b/service/iot/api_op_UpdateIndexingConfiguration.go
@@ -47,6 +47,7 @@ func (s *UpdateIndexingConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateIndexingConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingGroupIndexingConfiguration != nil {
v := s.ThingGroupIndexingConfiguration
diff --git a/service/iot/api_op_UpdateJob.go b/service/iot/api_op_UpdateJob.go
index 46692bc2705..95759ec43db 100644
--- a/service/iot/api_op_UpdateJob.go
+++ b/service/iot/api_op_UpdateJob.go
@@ -77,6 +77,7 @@ func (s *UpdateJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateJobInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AbortConfig != nil {
v := s.AbortConfig
diff --git a/service/iot/api_op_UpdateRoleAlias.go b/service/iot/api_op_UpdateRoleAlias.go
index a883b506ac9..f07c7748c26 100644
--- a/service/iot/api_op_UpdateRoleAlias.go
+++ b/service/iot/api_op_UpdateRoleAlias.go
@@ -55,6 +55,7 @@ func (s *UpdateRoleAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateRoleAliasInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CredentialDurationSeconds != nil {
v := *s.CredentialDurationSeconds
diff --git a/service/iot/api_op_UpdateScheduledAudit.go b/service/iot/api_op_UpdateScheduledAudit.go
index 4629863e0b6..253dc933141 100644
--- a/service/iot/api_op_UpdateScheduledAudit.go
+++ b/service/iot/api_op_UpdateScheduledAudit.go
@@ -65,6 +65,7 @@ func (s *UpdateScheduledAuditInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateScheduledAuditInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DayOfMonth != nil {
v := *s.DayOfMonth
diff --git a/service/iot/api_op_UpdateSecurityProfile.go b/service/iot/api_op_UpdateSecurityProfile.go
index 2ec7e82323a..5c945869679 100644
--- a/service/iot/api_op_UpdateSecurityProfile.go
+++ b/service/iot/api_op_UpdateSecurityProfile.go
@@ -92,6 +92,7 @@ func (s *UpdateSecurityProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateSecurityProfileInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AdditionalMetricsToRetain != nil {
v := s.AdditionalMetricsToRetain
@@ -184,10 +185,10 @@ type UpdateSecurityProfileOutput struct {
Behaviors []Behavior `locationName:"behaviors" type:"list"`
// The time the security profile was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The time the security profile was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// The ARN of the security profile that was updated.
SecurityProfileArn *string `locationName:"securityProfileArn" type:"string"`
@@ -249,13 +250,15 @@ func (s UpdateSecurityProfileOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastModifiedDate != nil {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SecurityProfileArn != nil {
v := *s.SecurityProfileArn
diff --git a/service/iot/api_op_UpdateStream.go b/service/iot/api_op_UpdateStream.go
index ba3b97e30d1..2ddafec05fc 100644
--- a/service/iot/api_op_UpdateStream.go
+++ b/service/iot/api_op_UpdateStream.go
@@ -67,6 +67,7 @@ func (s *UpdateStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/iot/api_op_UpdateThing.go b/service/iot/api_op_UpdateThing.go
index 3bc9071368f..92b1d332c27 100644
--- a/service/iot/api_op_UpdateThing.go
+++ b/service/iot/api_op_UpdateThing.go
@@ -66,6 +66,7 @@ func (s *UpdateThingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateThingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AttributePayload != nil {
v := s.AttributePayload
diff --git a/service/iot/api_op_UpdateThingGroup.go b/service/iot/api_op_UpdateThingGroup.go
index b3906a659da..1deae43214b 100644
--- a/service/iot/api_op_UpdateThingGroup.go
+++ b/service/iot/api_op_UpdateThingGroup.go
@@ -56,6 +56,7 @@ func (s *UpdateThingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateThingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ExpectedVersion != nil {
v := *s.ExpectedVersion
diff --git a/service/iot/api_op_UpdateThingGroupsForThing.go b/service/iot/api_op_UpdateThingGroupsForThing.go
index ae375e0a7b8..6d9de9f8106 100644
--- a/service/iot/api_op_UpdateThingGroupsForThing.go
+++ b/service/iot/api_op_UpdateThingGroupsForThing.go
@@ -49,6 +49,7 @@ func (s *UpdateThingGroupsForThingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateThingGroupsForThingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.OverrideDynamicGroups != nil {
v := *s.OverrideDynamicGroups
diff --git a/service/iot/api_op_ValidateSecurityProfileBehaviors.go b/service/iot/api_op_ValidateSecurityProfileBehaviors.go
index ff26bf9455d..0c798824879 100644
--- a/service/iot/api_op_ValidateSecurityProfileBehaviors.go
+++ b/service/iot/api_op_ValidateSecurityProfileBehaviors.go
@@ -49,6 +49,7 @@ func (s *ValidateSecurityProfileBehaviorsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ValidateSecurityProfileBehaviorsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Behaviors != nil {
v := s.Behaviors
diff --git a/service/iot/api_types.go b/service/iot/api_types.go
index 0f6d1e5aa6d..49af31342a5 100644
--- a/service/iot/api_types.go
+++ b/service/iot/api_types.go
@@ -414,7 +414,7 @@ type ActiveViolation struct {
Behavior *Behavior `locationName:"behavior" type:"structure"`
// The time the most recent violation occurred.
- LastViolationTime *time.Time `locationName:"lastViolationTime" type:"timestamp" timestampFormat:"unix"`
+ LastViolationTime *time.Time `locationName:"lastViolationTime" type:"timestamp"`
// The value of the metric (the measurement) which caused the most recent violation.
LastViolationValue *MetricValue `locationName:"lastViolationValue" type:"structure"`
@@ -429,7 +429,7 @@ type ActiveViolation struct {
ViolationId *string `locationName:"violationId" min:"1" type:"string"`
// The time the violation started.
- ViolationStartTime *time.Time `locationName:"violationStartTime" type:"timestamp" timestampFormat:"unix"`
+ ViolationStartTime *time.Time `locationName:"violationStartTime" type:"timestamp"`
}
// String returns the string representation
@@ -449,7 +449,8 @@ func (s ActiveViolation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastViolationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastViolationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastViolationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastViolationValue != nil {
v := s.LastViolationValue
@@ -479,7 +480,8 @@ func (s ActiveViolation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ViolationStartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "violationStartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "violationStartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -724,7 +726,7 @@ type AuditFinding struct {
CheckName *string `locationName:"checkName" type:"string"`
// The time the result (finding) was discovered.
- FindingTime *time.Time `locationName:"findingTime" type:"timestamp" timestampFormat:"unix"`
+ FindingTime *time.Time `locationName:"findingTime" type:"timestamp"`
// The resource that was found to be non-compliant with the audit check.
NonCompliantResource *NonCompliantResource `locationName:"nonCompliantResource" type:"structure"`
@@ -745,7 +747,7 @@ type AuditFinding struct {
TaskId *string `locationName:"taskId" min:"1" type:"string"`
// The time the audit started.
- TaskStartTime *time.Time `locationName:"taskStartTime" type:"timestamp" timestampFormat:"unix"`
+ TaskStartTime *time.Time `locationName:"taskStartTime" type:"timestamp"`
}
// String returns the string representation
@@ -765,7 +767,8 @@ func (s AuditFinding) MarshalFields(e protocol.FieldEncoder) error {
v := *s.FindingTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "findingTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "findingTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.NonCompliantResource != nil {
v := s.NonCompliantResource
@@ -813,7 +816,8 @@ func (s AuditFinding) MarshalFields(e protocol.FieldEncoder) error {
v := *s.TaskStartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "taskStartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "taskStartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -1038,10 +1042,10 @@ type AuthorizerDescription struct {
AuthorizerName *string `locationName:"authorizerName" min:"1" type:"string"`
// The UNIX timestamp of when the authorizer was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The UNIX timestamp of when the authorizer was last updated.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// The status of the authorizer.
Status AuthorizerStatus `locationName:"status" type:"string" enum:"true"`
@@ -1083,13 +1087,15 @@ func (s AuthorizerDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastModifiedDate != nil {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
@@ -1355,7 +1361,7 @@ type BillingGroupMetadata struct {
_ struct{} `type:"structure"`
// The date the billing group was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
}
// String returns the string representation
@@ -1369,7 +1375,8 @@ func (s BillingGroupMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -1409,7 +1416,7 @@ type CACertificate struct {
CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
// The date the CA certificate was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The status of the CA certificate.
//
@@ -1440,7 +1447,8 @@ func (s CACertificate) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
@@ -1469,7 +1477,7 @@ type CACertificateDescription struct {
CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"`
// The date the CA certificate was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The customer version of the CA certificate.
CustomerVersion *int64 `locationName:"customerVersion" min:"1" type:"integer"`
@@ -1478,7 +1486,7 @@ type CACertificateDescription struct {
GenerationId *string `locationName:"generationId" type:"string"`
// The date the CA certificate was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// The owner of the CA certificate.
OwnedBy *string `locationName:"ownedBy" min:"12" type:"string"`
@@ -1525,7 +1533,8 @@ func (s CACertificateDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CustomerVersion != nil {
v := *s.CustomerVersion
@@ -1543,7 +1552,8 @@ func (s CACertificateDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.OwnedBy != nil {
v := *s.OwnedBy
@@ -1578,7 +1588,7 @@ type Certificate struct {
CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
// The date and time the certificate was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The status of the certificate.
//
@@ -1609,7 +1619,8 @@ func (s Certificate) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
@@ -1637,7 +1648,7 @@ type CertificateDescription struct {
CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"`
// The date and time the certificate was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The customer version of the certificate.
CustomerVersion *int64 `locationName:"customerVersion" min:"1" type:"integer"`
@@ -1646,7 +1657,7 @@ type CertificateDescription struct {
GenerationId *string `locationName:"generationId" type:"string"`
// The date and time the certificate was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// The ID of the AWS account that owns the certificate.
OwnedBy *string `locationName:"ownedBy" min:"12" type:"string"`
@@ -1699,7 +1710,8 @@ func (s CertificateDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CustomerVersion != nil {
v := *s.CustomerVersion
@@ -1717,7 +1729,8 @@ func (s CertificateDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.OwnedBy != nil {
v := *s.OwnedBy
@@ -1757,10 +1770,10 @@ type CertificateValidity struct {
_ struct{} `type:"structure"`
// The certificate is not valid after this date.
- NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"unix"`
+ NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`
// The certificate is not valid before this date.
- NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"unix"`
+ NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`
}
// String returns the string representation
@@ -1774,13 +1787,15 @@ func (s CertificateValidity) MarshalFields(e protocol.FieldEncoder) error {
v := *s.NotAfter
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "notAfter", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "notAfter",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.NotBefore != nil {
v := *s.NotBefore
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "notBefore", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "notBefore",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -3071,10 +3086,10 @@ type Job struct {
Comment *string `locationName:"comment" type:"string"`
// The time, in seconds since the epoch, when the job was completed.
- CompletedAt *time.Time `locationName:"completedAt" type:"timestamp" timestampFormat:"unix"`
+ CompletedAt *time.Time `locationName:"completedAt" type:"timestamp"`
// The time, in seconds since the epoch, when the job was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// A short text description of the job.
Description *string `locationName:"description" type:"string"`
@@ -3096,7 +3111,7 @@ type Job struct {
JobProcessDetails *JobProcessDetails `locationName:"jobProcessDetails" type:"structure"`
// The time, in seconds since the epoch, when the job was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// Configuration for pre-signed S3 URLs.
PresignedUrlConfig *PresignedUrlConfig `locationName:"presignedUrlConfig" type:"structure"`
@@ -3149,13 +3164,15 @@ func (s Job) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CompletedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "completedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "completedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatedAt != nil {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -3197,7 +3214,8 @@ func (s Job) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PresignedUrlConfig != nil {
v := s.PresignedUrlConfig
@@ -3269,13 +3287,13 @@ type JobExecution struct {
JobId *string `locationName:"jobId" min:"1" type:"string"`
// The time, in seconds since the epoch, when the job execution was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The time, in seconds since the epoch, when the job execution was queued.
- QueuedAt *time.Time `locationName:"queuedAt" type:"timestamp" timestampFormat:"unix"`
+ QueuedAt *time.Time `locationName:"queuedAt" type:"timestamp"`
// The time, in seconds since the epoch, when the job execution started.
- StartedAt *time.Time `locationName:"startedAt" type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `locationName:"startedAt" type:"timestamp"`
// The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED,
// TIMED_OUT, CANCELED, or REJECTED).
@@ -3327,19 +3345,22 @@ func (s JobExecution) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.QueuedAt != nil {
v := *s.QueuedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "queuedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "queuedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.StartedAt != nil {
v := *s.StartedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
@@ -3408,13 +3429,13 @@ type JobExecutionSummary struct {
ExecutionNumber *int64 `locationName:"executionNumber" type:"long"`
// The time, in seconds since the epoch, when the job execution was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The time, in seconds since the epoch, when the job execution was queued.
- QueuedAt *time.Time `locationName:"queuedAt" type:"timestamp" timestampFormat:"unix"`
+ QueuedAt *time.Time `locationName:"queuedAt" type:"timestamp"`
// The time, in seconds since the epoch, when the job execution started.
- StartedAt *time.Time `locationName:"startedAt" type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `locationName:"startedAt" type:"timestamp"`
// The status of the job execution.
Status JobExecutionStatus `locationName:"status" type:"string" enum:"true"`
@@ -3437,19 +3458,22 @@ func (s JobExecutionSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.QueuedAt != nil {
v := *s.QueuedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "queuedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "queuedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.StartedAt != nil {
v := *s.StartedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
@@ -3690,10 +3714,10 @@ type JobSummary struct {
_ struct{} `type:"structure"`
// The time, in seconds since the epoch, when the job completed.
- CompletedAt *time.Time `locationName:"completedAt" type:"timestamp" timestampFormat:"unix"`
+ CompletedAt *time.Time `locationName:"completedAt" type:"timestamp"`
// The time, in seconds since the epoch, when the job was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The job ARN.
JobArn *string `locationName:"jobArn" type:"string"`
@@ -3702,7 +3726,7 @@ type JobSummary struct {
JobId *string `locationName:"jobId" min:"1" type:"string"`
// The time, in seconds since the epoch, when the job was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The job summary status.
Status JobStatus `locationName:"status" type:"string" enum:"true"`
@@ -3730,13 +3754,15 @@ func (s JobSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CompletedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "completedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "completedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatedAt != nil {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.JobArn != nil {
v := *s.JobArn
@@ -3754,7 +3780,8 @@ func (s JobSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
@@ -4252,7 +4279,7 @@ type OTAUpdateInfo struct {
AwsJobExecutionsRolloutConfig *AwsJobExecutionsRolloutConfig `locationName:"awsJobExecutionsRolloutConfig" type:"structure"`
// The date when the OTA update was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// A description of the OTA update.
Description *string `locationName:"description" type:"string"`
@@ -4261,7 +4288,7 @@ type OTAUpdateInfo struct {
ErrorInfo *ErrorInfo `locationName:"errorInfo" type:"structure"`
// The date when the OTA update was last updated.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// The OTA update ARN.
OtaUpdateArn *string `locationName:"otaUpdateArn" type:"string"`
@@ -4328,7 +4355,8 @@ func (s OTAUpdateInfo) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -4346,7 +4374,8 @@ func (s OTAUpdateInfo) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.OtaUpdateArn != nil {
v := *s.OtaUpdateArn
@@ -4404,7 +4433,7 @@ type OTAUpdateSummary struct {
_ struct{} `type:"structure"`
// The date when the OTA update was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The OTA update ARN.
OtaUpdateArn *string `locationName:"otaUpdateArn" type:"string"`
@@ -4424,7 +4453,8 @@ func (s OTAUpdateSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.OtaUpdateArn != nil {
v := *s.OtaUpdateArn
@@ -4452,10 +4482,10 @@ type OutgoingCertificate struct {
CertificateId *string `locationName:"certificateId" min:"64" type:"string"`
// The certificate creation date.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The date the transfer was initiated.
- TransferDate *time.Time `locationName:"transferDate" type:"timestamp" timestampFormat:"unix"`
+ TransferDate *time.Time `locationName:"transferDate" type:"timestamp"`
// The transfer message.
TransferMessage *string `locationName:"transferMessage" type:"string"`
@@ -4487,13 +4517,15 @@ func (s OutgoingCertificate) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.TransferDate != nil {
v := *s.TransferDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "transferDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "transferDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.TransferMessage != nil {
v := *s.TransferMessage
@@ -4548,7 +4580,7 @@ type PolicyVersion struct {
_ struct{} `type:"structure"`
// The date and time the policy was created.
- CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"unix"`
+ CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
// Specifies whether the policy version is the default.
IsDefaultVersion *bool `locationName:"isDefaultVersion" type:"boolean"`
@@ -4568,7 +4600,8 @@ func (s PolicyVersion) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreateDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.IsDefaultVersion != nil {
v := *s.IsDefaultVersion
@@ -5024,13 +5057,13 @@ type RoleAliasDescription struct {
_ struct{} `type:"structure"`
// The UNIX timestamp of when the role alias was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The number of seconds for which the credential is valid.
CredentialDurationSeconds *int64 `locationName:"credentialDurationSeconds" min:"900" type:"integer"`
// The UNIX timestamp of when the role alias was last modified.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
// The role alias owner.
Owner *string `locationName:"owner" min:"12" type:"string"`
@@ -5056,7 +5089,8 @@ func (s RoleAliasDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CredentialDurationSeconds != nil {
v := *s.CredentialDurationSeconds
@@ -5068,7 +5102,8 @@ func (s RoleAliasDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModifiedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastModifiedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastModifiedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Owner != nil {
v := *s.Owner
@@ -5956,7 +5991,7 @@ type StreamInfo struct {
_ struct{} `type:"structure"`
// The date when the stream was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The description of the stream.
Description *string `locationName:"description" type:"string"`
@@ -5965,7 +6000,7 @@ type StreamInfo struct {
Files []StreamFile `locationName:"files" min:"1" type:"list"`
// The date when the stream was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// An IAM role AWS IoT assumes to access your S3 files.
RoleArn *string `locationName:"roleArn" min:"20" type:"string"`
@@ -5991,7 +6026,8 @@ func (s StreamInfo) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -6015,7 +6051,8 @@ func (s StreamInfo) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.RoleArn != nil {
v := *s.RoleArn
@@ -6515,7 +6552,7 @@ type ThingGroupMetadata struct {
_ struct{} `type:"structure"`
// The UNIX timestamp of when the thing group was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// The parent thing group name.
ParentGroupName *string `locationName:"parentGroupName" min:"1" type:"string"`
@@ -6535,7 +6572,8 @@ func (s ThingGroupMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ParentGroupName != nil {
v := *s.ParentGroupName
@@ -6712,14 +6750,14 @@ type ThingTypeMetadata struct {
_ struct{} `type:"structure"`
// The date and time when the thing type was created.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
// Whether the thing type is deprecated. If true, no new things could be associated
// with this type.
Deprecated *bool `locationName:"deprecated" type:"boolean"`
// The date and time when the thing type was deprecated.
- DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp" timestampFormat:"unix"`
+ DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp"`
}
// String returns the string representation
@@ -6733,7 +6771,8 @@ func (s ThingTypeMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Deprecated != nil {
v := *s.Deprecated
@@ -6745,7 +6784,8 @@ func (s ThingTypeMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DeprecationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "deprecationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "deprecationDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -6833,7 +6873,7 @@ type TopicRule struct {
AwsIotSqlVersion *string `locationName:"awsIotSqlVersion" type:"string"`
// The date and time the rule was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The description of the rule.
Description *string `locationName:"description" type:"string"`
@@ -6881,7 +6921,8 @@ func (s TopicRule) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -6921,7 +6962,7 @@ type TopicRuleListItem struct {
_ struct{} `type:"structure"`
// The date and time the rule was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The rule ARN.
RuleArn *string `locationName:"ruleArn" type:"string"`
@@ -6947,7 +6988,8 @@ func (s TopicRuleListItem) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.RuleArn != nil {
v := *s.RuleArn
@@ -7092,16 +7134,16 @@ type TransferData struct {
_ struct{} `type:"structure"`
// The date the transfer was accepted.
- AcceptDate *time.Time `locationName:"acceptDate" type:"timestamp" timestampFormat:"unix"`
+ AcceptDate *time.Time `locationName:"acceptDate" type:"timestamp"`
// The date the transfer was rejected.
- RejectDate *time.Time `locationName:"rejectDate" type:"timestamp" timestampFormat:"unix"`
+ RejectDate *time.Time `locationName:"rejectDate" type:"timestamp"`
// The reason why the transfer was rejected.
RejectReason *string `locationName:"rejectReason" type:"string"`
// The date the transfer took place.
- TransferDate *time.Time `locationName:"transferDate" type:"timestamp" timestampFormat:"unix"`
+ TransferDate *time.Time `locationName:"transferDate" type:"timestamp"`
// The transfer message.
TransferMessage *string `locationName:"transferMessage" type:"string"`
@@ -7118,13 +7160,15 @@ func (s TransferData) MarshalFields(e protocol.FieldEncoder) error {
v := *s.AcceptDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "acceptDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "acceptDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.RejectDate != nil {
v := *s.RejectDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "rejectDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "rejectDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.RejectReason != nil {
v := *s.RejectReason
@@ -7136,7 +7180,8 @@ func (s TransferData) MarshalFields(e protocol.FieldEncoder) error {
v := *s.TransferDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "transferDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "transferDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.TransferMessage != nil {
v := *s.TransferMessage
@@ -7188,7 +7233,7 @@ type ViolationEvent struct {
ThingName *string `locationName:"thingName" min:"1" type:"string"`
// The time the violation event occurred.
- ViolationEventTime *time.Time `locationName:"violationEventTime" type:"timestamp" timestampFormat:"unix"`
+ ViolationEventTime *time.Time `locationName:"violationEventTime" type:"timestamp"`
// The type of violation event.
ViolationEventType ViolationEventType `locationName:"violationEventType" type:"string" enum:"true"`
@@ -7232,7 +7277,8 @@ func (s ViolationEvent) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ViolationEventTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "violationEventTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "violationEventTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.ViolationEventType) > 0 {
v := s.ViolationEventType
diff --git a/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go b/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go
index bf1cc27e1dc..1a8fcf5e55f 100644
--- a/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go
+++ b/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go
@@ -39,7 +39,7 @@ func (s *ClaimDevicesByClaimCodeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ClaimDevicesByClaimCodeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClaimCode != nil {
v := *s.ClaimCode
diff --git a/service/iot1clickdevicesservice/api_op_DescribeDevice.go b/service/iot1clickdevicesservice/api_op_DescribeDevice.go
index 9140971ced8..14fb7826271 100644
--- a/service/iot1clickdevicesservice/api_op_DescribeDevice.go
+++ b/service/iot1clickdevicesservice/api_op_DescribeDevice.go
@@ -39,7 +39,7 @@ func (s *DescribeDeviceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeDeviceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceId != nil {
v := *s.DeviceId
diff --git a/service/iot1clickdevicesservice/api_op_FinalizeDeviceClaim.go b/service/iot1clickdevicesservice/api_op_FinalizeDeviceClaim.go
index 1d2fcad9539..d9d9731a0e9 100644
--- a/service/iot1clickdevicesservice/api_op_FinalizeDeviceClaim.go
+++ b/service/iot1clickdevicesservice/api_op_FinalizeDeviceClaim.go
@@ -41,7 +41,7 @@ func (s *FinalizeDeviceClaimInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s FinalizeDeviceClaimInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/iot1clickdevicesservice/api_op_GetDeviceMethods.go b/service/iot1clickdevicesservice/api_op_GetDeviceMethods.go
index c00868a619f..b6473d1c4db 100644
--- a/service/iot1clickdevicesservice/api_op_GetDeviceMethods.go
+++ b/service/iot1clickdevicesservice/api_op_GetDeviceMethods.go
@@ -39,7 +39,7 @@ func (s *GetDeviceMethodsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDeviceMethodsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceId != nil {
v := *s.DeviceId
diff --git a/service/iot1clickdevicesservice/api_op_InitiateDeviceClaim.go b/service/iot1clickdevicesservice/api_op_InitiateDeviceClaim.go
index 8ec793889e5..60b2aafd434 100644
--- a/service/iot1clickdevicesservice/api_op_InitiateDeviceClaim.go
+++ b/service/iot1clickdevicesservice/api_op_InitiateDeviceClaim.go
@@ -39,7 +39,7 @@ func (s *InitiateDeviceClaimInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InitiateDeviceClaimInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceId != nil {
v := *s.DeviceId
diff --git a/service/iot1clickdevicesservice/api_op_InvokeDeviceMethod.go b/service/iot1clickdevicesservice/api_op_InvokeDeviceMethod.go
index 70d63574f89..320ec7a2509 100644
--- a/service/iot1clickdevicesservice/api_op_InvokeDeviceMethod.go
+++ b/service/iot1clickdevicesservice/api_op_InvokeDeviceMethod.go
@@ -45,7 +45,7 @@ func (s *InvokeDeviceMethodInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InvokeDeviceMethodInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceMethod != nil {
v := s.DeviceMethod
diff --git a/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go b/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go
index c024a5c7fa5..2912c81e72c 100644
--- a/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go
+++ b/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go
@@ -19,14 +19,14 @@ type ListDeviceEventsInput struct {
DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"`
// FromTimeStamp is a required field
- FromTimeStamp *time.Time `location:"querystring" locationName:"fromTimeStamp" type:"timestamp" timestampFormat:"unix" required:"true"`
+ FromTimeStamp *time.Time `location:"querystring" locationName:"fromTimeStamp" type:"timestamp" timestampFormat:"iso8601" required:"true"`
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
// ToTimeStamp is a required field
- ToTimeStamp *time.Time `location:"querystring" locationName:"toTimeStamp" type:"timestamp" timestampFormat:"unix" required:"true"`
+ ToTimeStamp *time.Time `location:"querystring" locationName:"toTimeStamp" type:"timestamp" timestampFormat:"iso8601" required:"true"`
}
// String returns the string representation
@@ -61,7 +61,7 @@ func (s *ListDeviceEventsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDeviceEventsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceId != nil {
v := *s.DeviceId
@@ -73,7 +73,8 @@ func (s ListDeviceEventsInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.FromTimeStamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "fromTimeStamp", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "fromTimeStamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
if s.MaxResults != nil {
v := *s.MaxResults
@@ -91,7 +92,8 @@ func (s ListDeviceEventsInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ToTimeStamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "toTimeStamp", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "toTimeStamp",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
return nil
}
diff --git a/service/iot1clickdevicesservice/api_op_ListDevices.go b/service/iot1clickdevicesservice/api_op_ListDevices.go
index d9b175508c9..a41a4d00b02 100644
--- a/service/iot1clickdevicesservice/api_op_ListDevices.go
+++ b/service/iot1clickdevicesservice/api_op_ListDevices.go
@@ -41,7 +41,7 @@ func (s *ListDevicesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDevicesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceType != nil {
v := *s.DeviceType
diff --git a/service/iot1clickdevicesservice/api_op_ListTagsForResource.go b/service/iot1clickdevicesservice/api_op_ListTagsForResource.go
index 76a371a3a56..d40a081bf0d 100644
--- a/service/iot1clickdevicesservice/api_op_ListTagsForResource.go
+++ b/service/iot1clickdevicesservice/api_op_ListTagsForResource.go
@@ -39,7 +39,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/iot1clickdevicesservice/api_op_TagResource.go b/service/iot1clickdevicesservice/api_op_TagResource.go
index 6a8d57c5fb1..9d690255c94 100644
--- a/service/iot1clickdevicesservice/api_op_TagResource.go
+++ b/service/iot1clickdevicesservice/api_op_TagResource.go
@@ -47,7 +47,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/iot1clickdevicesservice/api_op_UnclaimDevice.go b/service/iot1clickdevicesservice/api_op_UnclaimDevice.go
index 603779794be..3168951b604 100644
--- a/service/iot1clickdevicesservice/api_op_UnclaimDevice.go
+++ b/service/iot1clickdevicesservice/api_op_UnclaimDevice.go
@@ -39,7 +39,7 @@ func (s *UnclaimDeviceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UnclaimDeviceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceId != nil {
v := *s.DeviceId
diff --git a/service/iot1clickdevicesservice/api_op_UntagResource.go b/service/iot1clickdevicesservice/api_op_UntagResource.go
index cd389fe4871..4dfd8aea750 100644
--- a/service/iot1clickdevicesservice/api_op_UntagResource.go
+++ b/service/iot1clickdevicesservice/api_op_UntagResource.go
@@ -47,7 +47,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go b/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go
index ad51d4951c5..6ecfccd2e96 100644
--- a/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go
+++ b/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go
@@ -42,7 +42,7 @@ func (s *UpdateDeviceStateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDeviceStateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Enabled != nil {
v := *s.Enabled
diff --git a/service/iot1clickprojects/api_op_AssociateDeviceWithPlacement.go b/service/iot1clickprojects/api_op_AssociateDeviceWithPlacement.go
index 0cc01592b92..fec92a4caea 100644
--- a/service/iot1clickprojects/api_op_AssociateDeviceWithPlacement.go
+++ b/service/iot1clickprojects/api_op_AssociateDeviceWithPlacement.go
@@ -83,7 +83,7 @@ func (s *AssociateDeviceWithPlacementInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociateDeviceWithPlacementInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceId != nil {
v := *s.DeviceId
diff --git a/service/iot1clickprojects/api_op_CreatePlacement.go b/service/iot1clickprojects/api_op_CreatePlacement.go
index 6d26967265b..b7e09708ab0 100644
--- a/service/iot1clickprojects/api_op_CreatePlacement.go
+++ b/service/iot1clickprojects/api_op_CreatePlacement.go
@@ -60,7 +60,7 @@ func (s *CreatePlacementInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreatePlacementInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Attributes != nil {
v := s.Attributes
diff --git a/service/iot1clickprojects/api_op_CreateProject.go b/service/iot1clickprojects/api_op_CreateProject.go
index 44ba28acbba..9ee6dff0e05 100644
--- a/service/iot1clickprojects/api_op_CreateProject.go
+++ b/service/iot1clickprojects/api_op_CreateProject.go
@@ -61,7 +61,7 @@ func (s *CreateProjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateProjectInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/iot1clickprojects/api_op_DeletePlacement.go b/service/iot1clickprojects/api_op_DeletePlacement.go
index 5f714280bc0..ffe1bec04d7 100644
--- a/service/iot1clickprojects/api_op_DeletePlacement.go
+++ b/service/iot1clickprojects/api_op_DeletePlacement.go
@@ -56,7 +56,7 @@ func (s *DeletePlacementInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePlacementInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PlacementName != nil {
v := *s.PlacementName
diff --git a/service/iot1clickprojects/api_op_DeleteProject.go b/service/iot1clickprojects/api_op_DeleteProject.go
index 277339e5dba..9029812b98e 100644
--- a/service/iot1clickprojects/api_op_DeleteProject.go
+++ b/service/iot1clickprojects/api_op_DeleteProject.go
@@ -44,7 +44,7 @@ func (s *DeleteProjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteProjectInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProjectName != nil {
v := *s.ProjectName
diff --git a/service/iot1clickprojects/api_op_DescribePlacement.go b/service/iot1clickprojects/api_op_DescribePlacement.go
index d4e4102647a..b6d875145f9 100644
--- a/service/iot1clickprojects/api_op_DescribePlacement.go
+++ b/service/iot1clickprojects/api_op_DescribePlacement.go
@@ -56,7 +56,7 @@ func (s *DescribePlacementInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribePlacementInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PlacementName != nil {
v := *s.PlacementName
diff --git a/service/iot1clickprojects/api_op_DescribeProject.go b/service/iot1clickprojects/api_op_DescribeProject.go
index 6bfc5d31e84..429bb5b7864 100644
--- a/service/iot1clickprojects/api_op_DescribeProject.go
+++ b/service/iot1clickprojects/api_op_DescribeProject.go
@@ -44,7 +44,7 @@ func (s *DescribeProjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeProjectInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProjectName != nil {
v := *s.ProjectName
diff --git a/service/iot1clickprojects/api_op_DisassociateDeviceFromPlacement.go b/service/iot1clickprojects/api_op_DisassociateDeviceFromPlacement.go
index c1c77f19771..3daeb0cb6e6 100644
--- a/service/iot1clickprojects/api_op_DisassociateDeviceFromPlacement.go
+++ b/service/iot1clickprojects/api_op_DisassociateDeviceFromPlacement.go
@@ -68,7 +68,7 @@ func (s *DisassociateDeviceFromPlacementInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateDeviceFromPlacementInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceTemplateName != nil {
v := *s.DeviceTemplateName
diff --git a/service/iot1clickprojects/api_op_GetDevicesInPlacement.go b/service/iot1clickprojects/api_op_GetDevicesInPlacement.go
index 3cd52bb1d61..53a23e2e3a8 100644
--- a/service/iot1clickprojects/api_op_GetDevicesInPlacement.go
+++ b/service/iot1clickprojects/api_op_GetDevicesInPlacement.go
@@ -56,7 +56,7 @@ func (s *GetDevicesInPlacementInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDevicesInPlacementInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PlacementName != nil {
v := *s.PlacementName
diff --git a/service/iot1clickprojects/api_op_ListPlacements.go b/service/iot1clickprojects/api_op_ListPlacements.go
index d84167902a0..1d6bd86736c 100644
--- a/service/iot1clickprojects/api_op_ListPlacements.go
+++ b/service/iot1clickprojects/api_op_ListPlacements.go
@@ -57,7 +57,7 @@ func (s *ListPlacementsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPlacementsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProjectName != nil {
v := *s.ProjectName
diff --git a/service/iot1clickprojects/api_op_ListProjects.go b/service/iot1clickprojects/api_op_ListProjects.go
index 08b4171f821..da8a4478af2 100644
--- a/service/iot1clickprojects/api_op_ListProjects.go
+++ b/service/iot1clickprojects/api_op_ListProjects.go
@@ -45,7 +45,7 @@ func (s *ListProjectsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListProjectsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iot1clickprojects/api_op_ListTagsForResource.go b/service/iot1clickprojects/api_op_ListTagsForResource.go
index a9c791c3579..5b32d385504 100644
--- a/service/iot1clickprojects/api_op_ListTagsForResource.go
+++ b/service/iot1clickprojects/api_op_ListTagsForResource.go
@@ -41,7 +41,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/iot1clickprojects/api_op_TagResource.go b/service/iot1clickprojects/api_op_TagResource.go
index 2142f5658c0..aca0c41a6da 100644
--- a/service/iot1clickprojects/api_op_TagResource.go
+++ b/service/iot1clickprojects/api_op_TagResource.go
@@ -55,7 +55,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/iot1clickprojects/api_op_UntagResource.go b/service/iot1clickprojects/api_op_UntagResource.go
index 39e205f033e..7a4cc65aff4 100644
--- a/service/iot1clickprojects/api_op_UntagResource.go
+++ b/service/iot1clickprojects/api_op_UntagResource.go
@@ -53,7 +53,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/iot1clickprojects/api_op_UpdatePlacement.go b/service/iot1clickprojects/api_op_UpdatePlacement.go
index 54ad20c56b4..590fee24f2e 100644
--- a/service/iot1clickprojects/api_op_UpdatePlacement.go
+++ b/service/iot1clickprojects/api_op_UpdatePlacement.go
@@ -60,7 +60,7 @@ func (s *UpdatePlacementInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdatePlacementInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Attributes != nil {
v := s.Attributes
diff --git a/service/iot1clickprojects/api_op_UpdateProject.go b/service/iot1clickprojects/api_op_UpdateProject.go
index b5429ee545a..a102daf6e67 100644
--- a/service/iot1clickprojects/api_op_UpdateProject.go
+++ b/service/iot1clickprojects/api_op_UpdateProject.go
@@ -53,7 +53,7 @@ func (s *UpdateProjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateProjectInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/iot1clickprojects/api_types.go b/service/iot1clickprojects/api_types.go
index c874e10b44d..68d540a6024 100644
--- a/service/iot1clickprojects/api_types.go
+++ b/service/iot1clickprojects/api_types.go
@@ -67,7 +67,7 @@ type PlacementDescription struct {
// The date when the placement was initially created, in UNIX epoch time format.
//
// CreatedDate is a required field
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" required:"true"`
// The name of the placement.
//
@@ -84,7 +84,7 @@ type PlacementDescription struct {
// same.
//
// UpdatedDate is a required field
- UpdatedDate *time.Time `locationName:"updatedDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdatedDate *time.Time `locationName:"updatedDate" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -110,7 +110,8 @@ func (s PlacementDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PlacementName != nil {
v := *s.PlacementName
@@ -128,7 +129,8 @@ func (s PlacementDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "updatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "updatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -141,7 +143,7 @@ type PlacementSummary struct {
// The date when the placement was originally created, in UNIX epoch time format.
//
// CreatedDate is a required field
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" required:"true"`
// The name of the placement being summarized.
//
@@ -158,7 +160,7 @@ type PlacementSummary struct {
// same.
//
// UpdatedDate is a required field
- UpdatedDate *time.Time `locationName:"updatedDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdatedDate *time.Time `locationName:"updatedDate" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -172,7 +174,8 @@ func (s PlacementSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PlacementName != nil {
v := *s.PlacementName
@@ -190,7 +193,8 @@ func (s PlacementSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "updatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "updatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -255,7 +259,7 @@ type ProjectDescription struct {
// The date when the project was originally created, in UNIX epoch time format.
//
// CreatedDate is a required field
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" required:"true"`
// The description of the project.
Description *string `locationName:"description" type:"string"`
@@ -275,7 +279,7 @@ type ProjectDescription struct {
// the project was not updated, then createdDate and updatedDate are the same.
//
// UpdatedDate is a required field
- UpdatedDate *time.Time `locationName:"updatedDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdatedDate *time.Time `locationName:"updatedDate" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -295,7 +299,8 @@ func (s ProjectDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -331,7 +336,8 @@ func (s ProjectDescription) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "updatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "updatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -348,7 +354,7 @@ type ProjectSummary struct {
// The date when the project was originally created, in UNIX epoch time format.
//
// CreatedDate is a required field
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" required:"true"`
// The name of the project being summarized.
//
@@ -362,7 +368,7 @@ type ProjectSummary struct {
// the project was not updated, then createdDate and updatedDate are the same.
//
// UpdatedDate is a required field
- UpdatedDate *time.Time `locationName:"updatedDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdatedDate *time.Time `locationName:"updatedDate" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -382,7 +388,8 @@ func (s ProjectSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ProjectName != nil {
v := *s.ProjectName
@@ -406,7 +413,8 @@ func (s ProjectSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "updatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "updatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/iotanalytics/api_op_BatchPutMessage.go b/service/iotanalytics/api_op_BatchPutMessage.go
index b0614b96593..5dba0371629 100644
--- a/service/iotanalytics/api_op_BatchPutMessage.go
+++ b/service/iotanalytics/api_op_BatchPutMessage.go
@@ -82,6 +82,7 @@ func (s *BatchPutMessageInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchPutMessageInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelName != nil {
v := *s.ChannelName
diff --git a/service/iotanalytics/api_op_CancelPipelineReprocessing.go b/service/iotanalytics/api_op_CancelPipelineReprocessing.go
index ea3a380c1b8..7edab7cb03a 100644
--- a/service/iotanalytics/api_op_CancelPipelineReprocessing.go
+++ b/service/iotanalytics/api_op_CancelPipelineReprocessing.go
@@ -53,6 +53,7 @@ func (s *CancelPipelineReprocessingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelPipelineReprocessingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PipelineName != nil {
v := *s.PipelineName
diff --git a/service/iotanalytics/api_op_CreateChannel.go b/service/iotanalytics/api_op_CreateChannel.go
index 3e2be0edbbb..0c663cb1c03 100644
--- a/service/iotanalytics/api_op_CreateChannel.go
+++ b/service/iotanalytics/api_op_CreateChannel.go
@@ -66,6 +66,7 @@ func (s *CreateChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateChannelInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelName != nil {
v := *s.ChannelName
diff --git a/service/iotanalytics/api_op_CreateDataset.go b/service/iotanalytics/api_op_CreateDataset.go
index f079c56caab..fd2383faf1c 100644
--- a/service/iotanalytics/api_op_CreateDataset.go
+++ b/service/iotanalytics/api_op_CreateDataset.go
@@ -123,6 +123,7 @@ func (s *CreateDatasetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDatasetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Actions != nil {
v := s.Actions
diff --git a/service/iotanalytics/api_op_CreateDatasetContent.go b/service/iotanalytics/api_op_CreateDatasetContent.go
index 20edd0694c0..e659698e7fd 100644
--- a/service/iotanalytics/api_op_CreateDatasetContent.go
+++ b/service/iotanalytics/api_op_CreateDatasetContent.go
@@ -44,6 +44,7 @@ func (s *CreateDatasetContentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDatasetContentInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
diff --git a/service/iotanalytics/api_op_CreateDatastore.go b/service/iotanalytics/api_op_CreateDatastore.go
index 42899872476..969795f101a 100644
--- a/service/iotanalytics/api_op_CreateDatastore.go
+++ b/service/iotanalytics/api_op_CreateDatastore.go
@@ -66,6 +66,7 @@ func (s *CreateDatastoreInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDatastoreInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatastoreName != nil {
v := *s.DatastoreName
diff --git a/service/iotanalytics/api_op_CreatePipeline.go b/service/iotanalytics/api_op_CreatePipeline.go
index f1ec281f0e9..c703fbb978e 100644
--- a/service/iotanalytics/api_op_CreatePipeline.go
+++ b/service/iotanalytics/api_op_CreatePipeline.go
@@ -88,6 +88,7 @@ func (s *CreatePipelineInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreatePipelineInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PipelineActivities != nil {
v := s.PipelineActivities
diff --git a/service/iotanalytics/api_op_DeleteChannel.go b/service/iotanalytics/api_op_DeleteChannel.go
index c375f6267d6..8ef011e3e97 100644
--- a/service/iotanalytics/api_op_DeleteChannel.go
+++ b/service/iotanalytics/api_op_DeleteChannel.go
@@ -45,6 +45,7 @@ func (s *DeleteChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteChannelInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelName != nil {
v := *s.ChannelName
diff --git a/service/iotanalytics/api_op_DeleteDataset.go b/service/iotanalytics/api_op_DeleteDataset.go
index b590404fbfe..0aea7637f60 100644
--- a/service/iotanalytics/api_op_DeleteDataset.go
+++ b/service/iotanalytics/api_op_DeleteDataset.go
@@ -45,6 +45,7 @@ func (s *DeleteDatasetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDatasetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
diff --git a/service/iotanalytics/api_op_DeleteDatasetContent.go b/service/iotanalytics/api_op_DeleteDatasetContent.go
index 37ae871b2d2..48783f89c8a 100644
--- a/service/iotanalytics/api_op_DeleteDatasetContent.go
+++ b/service/iotanalytics/api_op_DeleteDatasetContent.go
@@ -53,6 +53,7 @@ func (s *DeleteDatasetContentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDatasetContentInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
diff --git a/service/iotanalytics/api_op_DeleteDatastore.go b/service/iotanalytics/api_op_DeleteDatastore.go
index c170d9520f9..a80ed6ab124 100644
--- a/service/iotanalytics/api_op_DeleteDatastore.go
+++ b/service/iotanalytics/api_op_DeleteDatastore.go
@@ -45,6 +45,7 @@ func (s *DeleteDatastoreInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDatastoreInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatastoreName != nil {
v := *s.DatastoreName
diff --git a/service/iotanalytics/api_op_DeletePipeline.go b/service/iotanalytics/api_op_DeletePipeline.go
index d90ae99e763..c176af62f98 100644
--- a/service/iotanalytics/api_op_DeletePipeline.go
+++ b/service/iotanalytics/api_op_DeletePipeline.go
@@ -45,6 +45,7 @@ func (s *DeletePipelineInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePipelineInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PipelineName != nil {
v := *s.PipelineName
diff --git a/service/iotanalytics/api_op_DescribeChannel.go b/service/iotanalytics/api_op_DescribeChannel.go
index 81409d704d2..552963f68b1 100644
--- a/service/iotanalytics/api_op_DescribeChannel.go
+++ b/service/iotanalytics/api_op_DescribeChannel.go
@@ -48,6 +48,7 @@ func (s *DescribeChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeChannelInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelName != nil {
v := *s.ChannelName
diff --git a/service/iotanalytics/api_op_DescribeDataset.go b/service/iotanalytics/api_op_DescribeDataset.go
index 38a27ae479d..11f5844f441 100644
--- a/service/iotanalytics/api_op_DescribeDataset.go
+++ b/service/iotanalytics/api_op_DescribeDataset.go
@@ -44,6 +44,7 @@ func (s *DescribeDatasetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeDatasetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
diff --git a/service/iotanalytics/api_op_DescribeDatastore.go b/service/iotanalytics/api_op_DescribeDatastore.go
index ea8773c8383..e11970f46d9 100644
--- a/service/iotanalytics/api_op_DescribeDatastore.go
+++ b/service/iotanalytics/api_op_DescribeDatastore.go
@@ -48,6 +48,7 @@ func (s *DescribeDatastoreInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeDatastoreInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatastoreName != nil {
v := *s.DatastoreName
diff --git a/service/iotanalytics/api_op_DescribeLoggingOptions.go b/service/iotanalytics/api_op_DescribeLoggingOptions.go
index e666490be71..3b83a199dff 100644
--- a/service/iotanalytics/api_op_DescribeLoggingOptions.go
+++ b/service/iotanalytics/api_op_DescribeLoggingOptions.go
@@ -22,6 +22,7 @@ func (s DescribeLoggingOptionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeLoggingOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/iotanalytics/api_op_DescribePipeline.go b/service/iotanalytics/api_op_DescribePipeline.go
index 09ce64d542e..6119eb7c3fd 100644
--- a/service/iotanalytics/api_op_DescribePipeline.go
+++ b/service/iotanalytics/api_op_DescribePipeline.go
@@ -44,6 +44,7 @@ func (s *DescribePipelineInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribePipelineInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PipelineName != nil {
v := *s.PipelineName
diff --git a/service/iotanalytics/api_op_GetDatasetContent.go b/service/iotanalytics/api_op_GetDatasetContent.go
index 60832810ae5..434ee2aa284 100644
--- a/service/iotanalytics/api_op_GetDatasetContent.go
+++ b/service/iotanalytics/api_op_GetDatasetContent.go
@@ -54,6 +54,7 @@ func (s *GetDatasetContentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDatasetContentInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
@@ -81,7 +82,7 @@ type GetDatasetContentOutput struct {
Status *DatasetContentStatus `locationName:"status" type:"structure"`
// The time when the request was made.
- Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
}
// String returns the string representation
@@ -113,7 +114,8 @@ func (s GetDatasetContentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Timestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "timestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "timestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/iotanalytics/api_op_ListChannels.go b/service/iotanalytics/api_op_ListChannels.go
index ae6da17a9da..f1a6ef24ee0 100644
--- a/service/iotanalytics/api_op_ListChannels.go
+++ b/service/iotanalytics/api_op_ListChannels.go
@@ -43,6 +43,7 @@ func (s *ListChannelsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListChannelsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iotanalytics/api_op_ListDatasetContents.go b/service/iotanalytics/api_op_ListDatasetContents.go
index 240a012ab29..5c176008058 100644
--- a/service/iotanalytics/api_op_ListDatasetContents.go
+++ b/service/iotanalytics/api_op_ListDatasetContents.go
@@ -29,12 +29,12 @@ type ListDatasetContentsInput struct {
// A filter to limit results to those data set contents whose creation is scheduled
// before the given time. See the field triggers.schedule in the CreateDataset
// request. (timestamp)
- ScheduledBefore *time.Time `location:"querystring" locationName:"scheduledBefore" type:"timestamp" timestampFormat:"unix"`
+ ScheduledBefore *time.Time `location:"querystring" locationName:"scheduledBefore" type:"timestamp"`
// A filter to limit results to those data set contents whose creation is scheduled
// on or after the given time. See the field triggers.schedule in the CreateDataset
// request. (timestamp)
- ScheduledOnOrAfter *time.Time `location:"querystring" locationName:"scheduledOnOrAfter" type:"timestamp" timestampFormat:"unix"`
+ ScheduledOnOrAfter *time.Time `location:"querystring" locationName:"scheduledOnOrAfter" type:"timestamp"`
}
// String returns the string representation
@@ -64,6 +64,7 @@ func (s *ListDatasetContentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDatasetContentsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DatasetName != nil {
v := *s.DatasetName
@@ -87,13 +88,15 @@ func (s ListDatasetContentsInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ScheduledBefore
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "scheduledBefore", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "scheduledBefore",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.ScheduledOnOrAfter != nil {
v := *s.ScheduledOnOrAfter
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "scheduledOnOrAfter", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "scheduledOnOrAfter",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
diff --git a/service/iotanalytics/api_op_ListDatasets.go b/service/iotanalytics/api_op_ListDatasets.go
index 4945bace0aa..10647e44a68 100644
--- a/service/iotanalytics/api_op_ListDatasets.go
+++ b/service/iotanalytics/api_op_ListDatasets.go
@@ -43,6 +43,7 @@ func (s *ListDatasetsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDatasetsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iotanalytics/api_op_ListDatastores.go b/service/iotanalytics/api_op_ListDatastores.go
index 7fe4c8c4c20..874be3c4d16 100644
--- a/service/iotanalytics/api_op_ListDatastores.go
+++ b/service/iotanalytics/api_op_ListDatastores.go
@@ -43,6 +43,7 @@ func (s *ListDatastoresInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDatastoresInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iotanalytics/api_op_ListPipelines.go b/service/iotanalytics/api_op_ListPipelines.go
index 7156dcf4ed9..510afd97ea9 100644
--- a/service/iotanalytics/api_op_ListPipelines.go
+++ b/service/iotanalytics/api_op_ListPipelines.go
@@ -43,6 +43,7 @@ func (s *ListPipelinesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPipelinesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/iotanalytics/api_op_ListTagsForResource.go b/service/iotanalytics/api_op_ListTagsForResource.go
index 7e6566e4ba7..a204a65df3a 100644
--- a/service/iotanalytics/api_op_ListTagsForResource.go
+++ b/service/iotanalytics/api_op_ListTagsForResource.go
@@ -44,6 +44,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/iotanalytics/api_op_PutLoggingOptions.go b/service/iotanalytics/api_op_PutLoggingOptions.go
index dcae0680866..2ae91095d78 100644
--- a/service/iotanalytics/api_op_PutLoggingOptions.go
+++ b/service/iotanalytics/api_op_PutLoggingOptions.go
@@ -47,6 +47,7 @@ func (s *PutLoggingOptionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutLoggingOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LoggingOptions != nil {
v := s.LoggingOptions
diff --git a/service/iotanalytics/api_op_RunPipelineActivity.go b/service/iotanalytics/api_op_RunPipelineActivity.go
index bcd29bf7468..53b19f43d0b 100644
--- a/service/iotanalytics/api_op_RunPipelineActivity.go
+++ b/service/iotanalytics/api_op_RunPipelineActivity.go
@@ -62,6 +62,7 @@ func (s *RunPipelineActivityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RunPipelineActivityInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Payloads != nil {
v := s.Payloads
diff --git a/service/iotanalytics/api_op_SampleChannelData.go b/service/iotanalytics/api_op_SampleChannelData.go
index 55acf951d7c..493a929f122 100644
--- a/service/iotanalytics/api_op_SampleChannelData.go
+++ b/service/iotanalytics/api_op_SampleChannelData.go
@@ -21,14 +21,14 @@ type SampleChannelDataInput struct {
ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"`
// The end of the time window from which sample messages are retrieved.
- EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp"`
// The number of sample messages to be retrieved. The limit is 10, the default
// is also 10.
MaxMessages *int64 `location:"querystring" locationName:"maxMessages" min:"1" type:"integer"`
// The start of the time window from which sample messages are retrieved.
- StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp"`
}
// String returns the string representation
@@ -58,6 +58,7 @@ func (s *SampleChannelDataInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SampleChannelDataInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelName != nil {
v := *s.ChannelName
@@ -69,7 +70,8 @@ func (s SampleChannelDataInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.MaxMessages != nil {
v := *s.MaxMessages
@@ -81,7 +83,8 @@ func (s SampleChannelDataInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
diff --git a/service/iotanalytics/api_op_StartPipelineReprocessing.go b/service/iotanalytics/api_op_StartPipelineReprocessing.go
index bb4ebbcd304..78fdfdd897f 100644
--- a/service/iotanalytics/api_op_StartPipelineReprocessing.go
+++ b/service/iotanalytics/api_op_StartPipelineReprocessing.go
@@ -16,7 +16,7 @@ type StartPipelineReprocessingInput struct {
_ struct{} `type:"structure"`
// The end time (exclusive) of raw message data that is reprocessed.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The name of the pipeline on which to start reprocessing.
//
@@ -24,7 +24,7 @@ type StartPipelineReprocessingInput struct {
PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
// The start time (inclusive) of raw message data that is reprocessed.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
}
// String returns the string representation
@@ -51,18 +51,21 @@ func (s *StartPipelineReprocessingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartPipelineReprocessingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.StartTime != nil {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PipelineName != nil {
v := *s.PipelineName
diff --git a/service/iotanalytics/api_op_TagResource.go b/service/iotanalytics/api_op_TagResource.go
index 155ce498220..a8d92d66053 100644
--- a/service/iotanalytics/api_op_TagResource.go
+++ b/service/iotanalytics/api_op_TagResource.go
@@ -64,6 +64,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/iotanalytics/api_op_UntagResource.go b/service/iotanalytics/api_op_UntagResource.go
index 14413315eda..7dfb1b26323 100644
--- a/service/iotanalytics/api_op_UntagResource.go
+++ b/service/iotanalytics/api_op_UntagResource.go
@@ -56,6 +56,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/iotanalytics/api_op_UpdateChannel.go b/service/iotanalytics/api_op_UpdateChannel.go
index 8514d7bea68..2101ba2356a 100644
--- a/service/iotanalytics/api_op_UpdateChannel.go
+++ b/service/iotanalytics/api_op_UpdateChannel.go
@@ -53,6 +53,7 @@ func (s *UpdateChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateChannelInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RetentionPeriod != nil {
v := s.RetentionPeriod
diff --git a/service/iotanalytics/api_op_UpdateDataset.go b/service/iotanalytics/api_op_UpdateDataset.go
index efbe086355a..d29ab6844e6 100644
--- a/service/iotanalytics/api_op_UpdateDataset.go
+++ b/service/iotanalytics/api_op_UpdateDataset.go
@@ -106,6 +106,7 @@ func (s *UpdateDatasetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDatasetInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Actions != nil {
v := s.Actions
diff --git a/service/iotanalytics/api_op_UpdateDatastore.go b/service/iotanalytics/api_op_UpdateDatastore.go
index 65cd0b5a85b..58646dce588 100644
--- a/service/iotanalytics/api_op_UpdateDatastore.go
+++ b/service/iotanalytics/api_op_UpdateDatastore.go
@@ -53,6 +53,7 @@ func (s *UpdateDatastoreInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDatastoreInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RetentionPeriod != nil {
v := s.RetentionPeriod
diff --git a/service/iotanalytics/api_op_UpdatePipeline.go b/service/iotanalytics/api_op_UpdatePipeline.go
index 02415786a8d..25199659d69 100644
--- a/service/iotanalytics/api_op_UpdatePipeline.go
+++ b/service/iotanalytics/api_op_UpdatePipeline.go
@@ -76,6 +76,7 @@ func (s *UpdatePipelineInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdatePipelineInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PipelineActivities != nil {
v := s.PipelineActivities
diff --git a/service/iotanalytics/api_types.go b/service/iotanalytics/api_types.go
index c1ab4c15e34..55311b54c95 100644
--- a/service/iotanalytics/api_types.go
+++ b/service/iotanalytics/api_types.go
@@ -153,10 +153,10 @@ type Channel struct {
Arn *string `locationName:"arn" type:"string"`
// When the channel was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// When the channel was last updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
// The name of the channel.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -185,13 +185,15 @@ func (s Channel) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdateTime != nil {
v := *s.LastUpdateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -322,10 +324,10 @@ type ChannelSummary struct {
ChannelName *string `locationName:"channelName" min:"1" type:"string"`
// When the channel was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The last time the channel was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
// The status of the channel.
Status ChannelStatus `locationName:"status" type:"string" enum:"true"`
@@ -348,13 +350,15 @@ func (s ChannelSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdateTime != nil {
v := *s.LastUpdateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
@@ -490,10 +494,10 @@ type Dataset struct {
ContentDeliveryRules []DatasetContentDeliveryRule `locationName:"contentDeliveryRules" type:"list"`
// When the data set was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The last time the data set was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
// The name of the data set.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -556,13 +560,15 @@ func (s Dataset) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdateTime != nil {
v := *s.LastUpdateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -859,10 +865,10 @@ type DatasetContentSummary struct {
_ struct{} `type:"structure"`
// The actual time the creation of the data set contents was started.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The time the creation of the data set contents was scheduled to start.
- ScheduleTime *time.Time `locationName:"scheduleTime" type:"timestamp" timestampFormat:"unix"`
+ ScheduleTime *time.Time `locationName:"scheduleTime" type:"timestamp"`
// The status of the data set contents.
Status *DatasetContentStatus `locationName:"status" type:"structure"`
@@ -882,13 +888,15 @@ func (s DatasetContentSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ScheduleTime != nil {
v := *s.ScheduleTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "scheduleTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "scheduleTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Status != nil {
v := s.Status
@@ -993,13 +1001,13 @@ type DatasetSummary struct {
Actions []DatasetActionSummary `locationName:"actions" min:"1" type:"list"`
// The time the data set was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The name of the data set.
DatasetName *string `locationName:"datasetName" min:"1" type:"string"`
// The last time the data set was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
// The status of the data set.
Status DatasetStatus `locationName:"status" type:"string" enum:"true"`
@@ -1033,7 +1041,8 @@ func (s DatasetSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DatasetName != nil {
v := *s.DatasetName
@@ -1045,7 +1054,8 @@ func (s DatasetSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
@@ -1127,10 +1137,10 @@ type Datastore struct {
Arn *string `locationName:"arn" type:"string"`
// When the data store was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The last time the data store was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
// The name of the data store.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -1171,13 +1181,15 @@ func (s Datastore) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdateTime != nil {
v := *s.LastUpdateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -1293,13 +1305,13 @@ type DatastoreSummary struct {
_ struct{} `type:"structure"`
// When the data store was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The name of the data store.
DatastoreName *string `locationName:"datastoreName" min:"1" type:"string"`
// The last time the data store was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
// The status of the data store.
Status DatastoreStatus `locationName:"status" type:"string" enum:"true"`
@@ -1316,7 +1328,8 @@ func (s DatastoreSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DatastoreName != nil {
v := *s.DatastoreName
@@ -1328,7 +1341,8 @@ func (s DatastoreSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Status) > 0 {
v := s.Status
@@ -1633,7 +1647,7 @@ type EstimatedResourceSize struct {
_ struct{} `type:"structure"`
// The time when the estimate of the size of the resource was made.
- EstimatedOn *time.Time `locationName:"estimatedOn" type:"timestamp" timestampFormat:"unix"`
+ EstimatedOn *time.Time `locationName:"estimatedOn" type:"timestamp"`
// The estimated size of the resource in bytes.
EstimatedSizeInBytes *float64 `locationName:"estimatedSizeInBytes" type:"double"`
@@ -1650,7 +1664,8 @@ func (s EstimatedResourceSize) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EstimatedOn
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "estimatedOn", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "estimatedOn",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.EstimatedSizeInBytes != nil {
v := *s.EstimatedSizeInBytes
@@ -2245,10 +2260,10 @@ type Pipeline struct {
Arn *string `locationName:"arn" type:"string"`
// When the pipeline was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The last time the pipeline was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
// The name of the pipeline.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -2286,13 +2301,15 @@ func (s Pipeline) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdateTime != nil {
v := *s.LastUpdateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -2489,10 +2506,10 @@ type PipelineSummary struct {
_ struct{} `type:"structure"`
// When the pipeline was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// When the pipeline was last updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
// The name of the pipeline.
PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
@@ -2512,13 +2529,15 @@ func (s PipelineSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdateTime != nil {
v := *s.LastUpdateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.PipelineName != nil {
v := *s.PipelineName
@@ -2669,7 +2688,7 @@ type ReprocessingSummary struct {
_ struct{} `type:"structure"`
// The time the pipeline reprocessing was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The 'reprocessingId' returned by "StartPipelineReprocessing".
Id *string `locationName:"id" type:"string"`
@@ -2689,7 +2708,8 @@ func (s ReprocessingSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Id != nil {
v := *s.Id
diff --git a/service/iotdataplane/api_op_DeleteThingShadow.go b/service/iotdataplane/api_op_DeleteThingShadow.go
index 1a8685fbe98..db6f9cb688e 100644
--- a/service/iotdataplane/api_op_DeleteThingShadow.go
+++ b/service/iotdataplane/api_op_DeleteThingShadow.go
@@ -44,6 +44,7 @@ func (s *DeleteThingShadowInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteThingShadowInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingName != nil {
v := *s.ThingName
diff --git a/service/iotdataplane/api_op_GetThingShadow.go b/service/iotdataplane/api_op_GetThingShadow.go
index 07d6769f76b..8dd43f84af8 100644
--- a/service/iotdataplane/api_op_GetThingShadow.go
+++ b/service/iotdataplane/api_op_GetThingShadow.go
@@ -44,6 +44,7 @@ func (s *GetThingShadowInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetThingShadowInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingName != nil {
v := *s.ThingName
diff --git a/service/iotjobsdataplane/api_op_DescribeJobExecution.go b/service/iotjobsdataplane/api_op_DescribeJobExecution.go
index 4d89baff7d5..3a416c84dec 100644
--- a/service/iotjobsdataplane/api_op_DescribeJobExecution.go
+++ b/service/iotjobsdataplane/api_op_DescribeJobExecution.go
@@ -61,6 +61,7 @@ func (s *DescribeJobExecutionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeJobExecutionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobId != nil {
v := *s.JobId
diff --git a/service/iotjobsdataplane/api_op_GetPendingJobExecutions.go b/service/iotjobsdataplane/api_op_GetPendingJobExecutions.go
index 76f08299e2c..09878466e14 100644
--- a/service/iotjobsdataplane/api_op_GetPendingJobExecutions.go
+++ b/service/iotjobsdataplane/api_op_GetPendingJobExecutions.go
@@ -44,6 +44,7 @@ func (s *GetPendingJobExecutionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetPendingJobExecutionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ThingName != nil {
v := *s.ThingName
diff --git a/service/iotjobsdataplane/api_op_StartNextPendingJobExecution.go b/service/iotjobsdataplane/api_op_StartNextPendingJobExecution.go
index 8c8dd4ab5e8..55124a73ef4 100644
--- a/service/iotjobsdataplane/api_op_StartNextPendingJobExecution.go
+++ b/service/iotjobsdataplane/api_op_StartNextPendingJobExecution.go
@@ -58,6 +58,7 @@ func (s *StartNextPendingJobExecutionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartNextPendingJobExecutionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.StatusDetails != nil {
v := s.StatusDetails
diff --git a/service/iotjobsdataplane/api_op_UpdateJobExecution.go b/service/iotjobsdataplane/api_op_UpdateJobExecution.go
index 4f53d052fa1..26495e167b1 100644
--- a/service/iotjobsdataplane/api_op_UpdateJobExecution.go
+++ b/service/iotjobsdataplane/api_op_UpdateJobExecution.go
@@ -100,6 +100,7 @@ func (s *UpdateJobExecutionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateJobExecutionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ExecutionNumber != nil {
v := *s.ExecutionNumber
diff --git a/service/kafka/api_op_CreateCluster.go b/service/kafka/api_op_CreateCluster.go
index 3d25e1ddd46..5514fcd4411 100644
--- a/service/kafka/api_op_CreateCluster.go
+++ b/service/kafka/api_op_CreateCluster.go
@@ -103,7 +103,7 @@ func (s *CreateClusterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateClusterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BrokerNodeGroupInfo != nil {
v := s.BrokerNodeGroupInfo
diff --git a/service/kafka/api_op_CreateConfiguration.go b/service/kafka/api_op_CreateConfiguration.go
index 24213d18465..60191b7ebcf 100644
--- a/service/kafka/api_op_CreateConfiguration.go
+++ b/service/kafka/api_op_CreateConfiguration.go
@@ -69,7 +69,7 @@ func (s *CreateConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
@@ -113,7 +113,7 @@ type CreateConfigurationOutput struct {
Arn *string `locationName:"arn" type:"string"`
// The time when the configuration was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
// Latest revision of the configuration.
LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
@@ -139,7 +139,8 @@ func (s CreateConfigurationOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.LatestRevision != nil {
v := s.LatestRevision
diff --git a/service/kafka/api_op_DeleteCluster.go b/service/kafka/api_op_DeleteCluster.go
index d63eb02be63..6e0f39f29e8 100644
--- a/service/kafka/api_op_DeleteCluster.go
+++ b/service/kafka/api_op_DeleteCluster.go
@@ -41,7 +41,7 @@ func (s *DeleteClusterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteClusterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClusterArn != nil {
v := *s.ClusterArn
diff --git a/service/kafka/api_op_DescribeCluster.go b/service/kafka/api_op_DescribeCluster.go
index ee5c77e3b42..7fe5c73eaad 100644
--- a/service/kafka/api_op_DescribeCluster.go
+++ b/service/kafka/api_op_DescribeCluster.go
@@ -39,7 +39,7 @@ func (s *DescribeClusterInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeClusterInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClusterArn != nil {
v := *s.ClusterArn
diff --git a/service/kafka/api_op_DescribeConfiguration.go b/service/kafka/api_op_DescribeConfiguration.go
index 42f3f9ec262..7d687dcfae5 100644
--- a/service/kafka/api_op_DescribeConfiguration.go
+++ b/service/kafka/api_op_DescribeConfiguration.go
@@ -40,7 +40,7 @@ func (s *DescribeConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Arn != nil {
v := *s.Arn
@@ -60,7 +60,7 @@ type DescribeConfigurationOutput struct {
Arn *string `locationName:"arn" type:"string"`
// The time when the configuration was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
// The description of the configuration.
Description *string `locationName:"description" type:"string"`
@@ -92,7 +92,8 @@ func (s DescribeConfigurationOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/kafka/api_op_DescribeConfigurationRevision.go b/service/kafka/api_op_DescribeConfigurationRevision.go
index c5622bec91f..c85813f44b2 100644
--- a/service/kafka/api_op_DescribeConfigurationRevision.go
+++ b/service/kafka/api_op_DescribeConfigurationRevision.go
@@ -47,7 +47,7 @@ func (s *DescribeConfigurationRevisionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeConfigurationRevisionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Arn != nil {
v := *s.Arn
@@ -73,7 +73,7 @@ type DescribeConfigurationRevisionOutput struct {
Arn *string `locationName:"arn" type:"string"`
// The time when the configuration was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
// The description of the configuration.
Description *string `locationName:"description" type:"string"`
@@ -106,7 +106,8 @@ func (s DescribeConfigurationRevisionOutput) MarshalFields(e protocol.FieldEncod
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/kafka/api_op_GetBootstrapBrokers.go b/service/kafka/api_op_GetBootstrapBrokers.go
index 97de322111e..0bfcf46e625 100644
--- a/service/kafka/api_op_GetBootstrapBrokers.go
+++ b/service/kafka/api_op_GetBootstrapBrokers.go
@@ -39,7 +39,7 @@ func (s *GetBootstrapBrokersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBootstrapBrokersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClusterArn != nil {
v := *s.ClusterArn
diff --git a/service/kafka/api_op_ListClusters.go b/service/kafka/api_op_ListClusters.go
index c795be8b3ac..62ee1586fb3 100644
--- a/service/kafka/api_op_ListClusters.go
+++ b/service/kafka/api_op_ListClusters.go
@@ -41,7 +41,7 @@ func (s *ListClustersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListClustersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClusterNameFilter != nil {
v := *s.ClusterNameFilter
diff --git a/service/kafka/api_op_ListConfigurations.go b/service/kafka/api_op_ListConfigurations.go
index 7094d1c17d2..e1a988226f6 100644
--- a/service/kafka/api_op_ListConfigurations.go
+++ b/service/kafka/api_op_ListConfigurations.go
@@ -26,7 +26,7 @@ func (s ListConfigurationsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListConfigurationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/kafka/api_op_ListNodes.go b/service/kafka/api_op_ListNodes.go
index b6c181b8eb6..7c64f7fd900 100644
--- a/service/kafka/api_op_ListNodes.go
+++ b/service/kafka/api_op_ListNodes.go
@@ -46,7 +46,7 @@ func (s *ListNodesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListNodesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClusterArn != nil {
v := *s.ClusterArn
diff --git a/service/kafka/api_op_ListTagsForResource.go b/service/kafka/api_op_ListTagsForResource.go
index 63a630c5ac6..8b777577f19 100644
--- a/service/kafka/api_op_ListTagsForResource.go
+++ b/service/kafka/api_op_ListTagsForResource.go
@@ -39,7 +39,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/kafka/api_op_TagResource.go b/service/kafka/api_op_TagResource.go
index 20ac732eb2c..7a4d9581064 100644
--- a/service/kafka/api_op_TagResource.go
+++ b/service/kafka/api_op_TagResource.go
@@ -50,7 +50,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/kafka/api_op_UntagResource.go b/service/kafka/api_op_UntagResource.go
index 8d4fb60b919..25c009b87a7 100644
--- a/service/kafka/api_op_UntagResource.go
+++ b/service/kafka/api_op_UntagResource.go
@@ -47,7 +47,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/kafka/api_types.go b/service/kafka/api_types.go
index f61bb2abece..20fc2569903 100644
--- a/service/kafka/api_types.go
+++ b/service/kafka/api_types.go
@@ -243,7 +243,7 @@ type ClusterInfo struct {
ClusterName *string `locationName:"clusterName" type:"string"`
// The time when the cluster was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
// Information about the version of software currently deployed on the Kafka
// brokers in the cluster.
@@ -298,7 +298,8 @@ func (s ClusterInfo) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.CurrentBrokerSoftwareInfo != nil {
v := s.CurrentBrokerSoftwareInfo
@@ -356,7 +357,7 @@ type Configuration struct {
Arn *string `locationName:"arn" type:"string" required:"true"`
// CreationTime is a required field
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The description of the configuration.
//
@@ -394,7 +395,8 @@ func (s Configuration) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -493,7 +495,7 @@ type ConfigurationRevision struct {
// The time when the configuration revision was created.
//
// CreationTime is a required field
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The description of the configuration revision.
Description *string `locationName:"description" type:"string"`
@@ -515,7 +517,8 @@ func (s ConfigurationRevision) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/kinesis/api_op_GetShardIterator.go b/service/kinesis/api_op_GetShardIterator.go
index d9ef6e509f7..90506e1909a 100644
--- a/service/kinesis/api_op_GetShardIterator.go
+++ b/service/kinesis/api_op_GetShardIterator.go
@@ -59,7 +59,7 @@ type GetShardIteratorInput struct {
// iterator returned is for the next (later) record. If the time stamp is older
// than the current trim horizon, the iterator returned is for the oldest untrimmed
// data record (TRIM_HORIZON).
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/kinesis/api_op_ListShards.go b/service/kinesis/api_op_ListShards.go
index 71df22f71e0..a3db0e8c623 100644
--- a/service/kinesis/api_op_ListShards.go
+++ b/service/kinesis/api_op_ListShards.go
@@ -60,7 +60,7 @@ type ListShardsInput struct {
// for.
//
// You cannot specify this parameter if you specify the NextToken parameter.
- StreamCreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StreamCreationTimestamp *time.Time `type:"timestamp"`
// The name of the data stream whose shards you want to list.
//
diff --git a/service/kinesis/api_op_ListStreamConsumers.go b/service/kinesis/api_op_ListStreamConsumers.go
index ee93ead5b93..2465b1e7a88 100644
--- a/service/kinesis/api_op_ListStreamConsumers.go
+++ b/service/kinesis/api_op_ListStreamConsumers.go
@@ -55,7 +55,7 @@ type ListStreamConsumersInput struct {
// for.
//
// You can't specify this parameter if you specify the NextToken parameter.
- StreamCreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StreamCreationTimestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/kinesis/api_types.go b/service/kinesis/api_types.go
index 376f7183dd7..93c34067fb0 100644
--- a/service/kinesis/api_types.go
+++ b/service/kinesis/api_types.go
@@ -29,7 +29,7 @@ type Consumer struct {
ConsumerARN *string `min:"1" type:"string" required:"true"`
// ConsumerCreationTimestamp is a required field
- ConsumerCreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ ConsumerCreationTimestamp *time.Time `type:"timestamp" required:"true"`
// The name of the consumer is something you choose when you register the consumer.
//
@@ -64,7 +64,7 @@ type ConsumerDescription struct {
ConsumerARN *string `min:"1" type:"string" required:"true"`
// ConsumerCreationTimestamp is a required field
- ConsumerCreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ ConsumerCreationTimestamp *time.Time `type:"timestamp" required:"true"`
// The name of the consumer is something you choose when you register the consumer.
//
@@ -241,7 +241,7 @@ type Record struct {
_ struct{} `type:"structure"`
// The approximate time that the record was inserted into the stream.
- ApproximateArrivalTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ApproximateArrivalTimestamp *time.Time `type:"timestamp"`
// The data blob. The data in the blob is both opaque and immutable to Kinesis
// Data Streams, which does not inspect, interpret, or change the data in the
@@ -390,7 +390,7 @@ type StreamDescription struct {
// The approximate time that the stream was created.
//
// StreamCreationTimestamp is a required field
- StreamCreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StreamCreationTimestamp *time.Time `type:"timestamp" required:"true"`
// The name of the stream being described.
//
@@ -477,7 +477,7 @@ type StreamDescriptionSummary struct {
// The approximate time that the stream was created.
//
// StreamCreationTimestamp is a required field
- StreamCreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StreamCreationTimestamp *time.Time `type:"timestamp" required:"true"`
// The name of the stream being described.
//
diff --git a/service/kinesisanalytics/api_op_DeleteApplication.go b/service/kinesisanalytics/api_op_DeleteApplication.go
index c59018c5481..e0b47bdd9f5 100644
--- a/service/kinesisanalytics/api_op_DeleteApplication.go
+++ b/service/kinesisanalytics/api_op_DeleteApplication.go
@@ -22,7 +22,7 @@ type DeleteApplicationInput struct {
// You can use the DescribeApplication operation to get this value.
//
// CreateTimestamp is a required field
- CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreateTimestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/kinesisanalytics/api_types.go b/service/kinesisanalytics/api_types.go
index d5ad987dd16..40273a382e9 100644
--- a/service/kinesisanalytics/api_types.go
+++ b/service/kinesisanalytics/api_types.go
@@ -58,14 +58,14 @@ type ApplicationDetail struct {
CloudWatchLoggingOptionDescriptions []CloudWatchLoggingOptionDescription `type:"list"`
// Time stamp when the application version was created.
- CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateTimestamp *time.Time `type:"timestamp"`
// Describes the application input configuration. For more information, see
// Configuring Application Input (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
InputDescriptions []InputDescription `type:"list"`
// Time stamp when the application was last updated.
- LastUpdateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTimestamp *time.Time `type:"timestamp"`
// Describes the application output configuration. For more information, see
// Configuring Application Output (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
diff --git a/service/kinesisanalyticsv2/api_op_DeleteApplication.go b/service/kinesisanalyticsv2/api_op_DeleteApplication.go
index 4c844655c79..d1c057eaa6c 100644
--- a/service/kinesisanalyticsv2/api_op_DeleteApplication.go
+++ b/service/kinesisanalyticsv2/api_op_DeleteApplication.go
@@ -22,7 +22,7 @@ type DeleteApplicationInput struct {
// Use the DescribeApplication operation to get this value.
//
// CreateTimestamp is a required field
- CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreateTimestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/kinesisanalyticsv2/api_op_DeleteApplicationSnapshot.go b/service/kinesisanalyticsv2/api_op_DeleteApplicationSnapshot.go
index e64d360cd24..cd010dd89ed 100644
--- a/service/kinesisanalyticsv2/api_op_DeleteApplicationSnapshot.go
+++ b/service/kinesisanalyticsv2/api_op_DeleteApplicationSnapshot.go
@@ -23,7 +23,7 @@ type DeleteApplicationSnapshotInput struct {
// this value using or .
//
// SnapshotCreationTimestamp is a required field
- SnapshotCreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ SnapshotCreationTimestamp *time.Time `type:"timestamp" required:"true"`
// The identifier for the snapshot delete.
//
diff --git a/service/kinesisanalyticsv2/api_types.go b/service/kinesisanalyticsv2/api_types.go
index 71c23700f5b..291e1d73860 100644
--- a/service/kinesisanalyticsv2/api_types.go
+++ b/service/kinesisanalyticsv2/api_types.go
@@ -306,10 +306,10 @@ type ApplicationDetail struct {
CloudWatchLoggingOptionDescriptions []CloudWatchLoggingOptionDescription `type:"list"`
// The current timestamp when the application was created.
- CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateTimestamp *time.Time `type:"timestamp"`
// The current timestamp when the application was last updated.
- LastUpdateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTimestamp *time.Time `type:"timestamp"`
// The runtime environment for the application (SQL-1.0 or FLINK-1_6).
//
@@ -3260,7 +3260,7 @@ type SnapshotDetails struct {
ApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
// The timestamp of the application snapshot.
- SnapshotCreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SnapshotCreationTimestamp *time.Time `type:"timestamp"`
// The identifier for the application snapshot.
//
diff --git a/service/kinesisvideo/api_op_CreateStream.go b/service/kinesisvideo/api_op_CreateStream.go
index 376c94e0b70..e2c8e25e9c7 100644
--- a/service/kinesisvideo/api_op_CreateStream.go
+++ b/service/kinesisvideo/api_op_CreateStream.go
@@ -98,6 +98,7 @@ func (s *CreateStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DataRetentionInHours != nil {
v := *s.DataRetentionInHours
diff --git a/service/kinesisvideo/api_op_DeleteStream.go b/service/kinesisvideo/api_op_DeleteStream.go
index 47b302e5c9e..129450ef071 100644
--- a/service/kinesisvideo/api_op_DeleteStream.go
+++ b/service/kinesisvideo/api_op_DeleteStream.go
@@ -55,6 +55,7 @@ func (s *DeleteStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CurrentVersion != nil {
v := *s.CurrentVersion
diff --git a/service/kinesisvideo/api_op_DescribeStream.go b/service/kinesisvideo/api_op_DescribeStream.go
index c2ee69047cd..b021f8fe60b 100644
--- a/service/kinesisvideo/api_op_DescribeStream.go
+++ b/service/kinesisvideo/api_op_DescribeStream.go
@@ -44,6 +44,7 @@ func (s *DescribeStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.StreamARN != nil {
v := *s.StreamARN
diff --git a/service/kinesisvideo/api_op_GetDataEndpoint.go b/service/kinesisvideo/api_op_GetDataEndpoint.go
index 2bfaa48baf7..5da42a79107 100644
--- a/service/kinesisvideo/api_op_GetDataEndpoint.go
+++ b/service/kinesisvideo/api_op_GetDataEndpoint.go
@@ -54,6 +54,7 @@ func (s *GetDataEndpointInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDataEndpointInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.APIName) > 0 {
v := s.APIName
diff --git a/service/kinesisvideo/api_op_ListStreams.go b/service/kinesisvideo/api_op_ListStreams.go
index be88ad9760b..f4bd7ce65c1 100644
--- a/service/kinesisvideo/api_op_ListStreams.go
+++ b/service/kinesisvideo/api_op_ListStreams.go
@@ -52,6 +52,7 @@ func (s *ListStreamsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListStreamsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/kinesisvideo/api_op_ListTagsForStream.go b/service/kinesisvideo/api_op_ListTagsForStream.go
index f2122ddd819..4062d60ac6d 100644
--- a/service/kinesisvideo/api_op_ListTagsForStream.go
+++ b/service/kinesisvideo/api_op_ListTagsForStream.go
@@ -49,6 +49,7 @@ func (s *ListTagsForStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/kinesisvideo/api_op_TagStream.go b/service/kinesisvideo/api_op_TagStream.go
index 1c970c070fb..bf8147ad8e7 100644
--- a/service/kinesisvideo/api_op_TagStream.go
+++ b/service/kinesisvideo/api_op_TagStream.go
@@ -58,6 +58,7 @@ func (s *TagStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.StreamARN != nil {
v := *s.StreamARN
diff --git a/service/kinesisvideo/api_op_UntagStream.go b/service/kinesisvideo/api_op_UntagStream.go
index 702792a40bc..7fd240481ca 100644
--- a/service/kinesisvideo/api_op_UntagStream.go
+++ b/service/kinesisvideo/api_op_UntagStream.go
@@ -57,6 +57,7 @@ func (s *UntagStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.StreamARN != nil {
v := *s.StreamARN
diff --git a/service/kinesisvideo/api_op_UpdateDataRetention.go b/service/kinesisvideo/api_op_UpdateDataRetention.go
index 106b708561a..de39e652350 100644
--- a/service/kinesisvideo/api_op_UpdateDataRetention.go
+++ b/service/kinesisvideo/api_op_UpdateDataRetention.go
@@ -79,6 +79,7 @@ func (s *UpdateDataRetentionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDataRetentionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CurrentVersion != nil {
v := *s.CurrentVersion
diff --git a/service/kinesisvideo/api_op_UpdateStream.go b/service/kinesisvideo/api_op_UpdateStream.go
index d0a3d5890bd..728154d1430 100644
--- a/service/kinesisvideo/api_op_UpdateStream.go
+++ b/service/kinesisvideo/api_op_UpdateStream.go
@@ -79,6 +79,7 @@ func (s *UpdateStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateStreamInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CurrentVersion != nil {
v := *s.CurrentVersion
diff --git a/service/kinesisvideo/api_types.go b/service/kinesisvideo/api_types.go
index 7fe08acf184..5a72e503591 100644
--- a/service/kinesisvideo/api_types.go
+++ b/service/kinesisvideo/api_types.go
@@ -19,7 +19,7 @@ type StreamInfo struct {
_ struct{} `type:"structure"`
// A time stamp that indicates when the stream was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// How long the stream retains data, in hours.
DataRetentionInHours *int64 `type:"integer"`
@@ -58,7 +58,8 @@ func (s StreamInfo) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DataRetentionInHours != nil {
v := *s.DataRetentionInHours
diff --git a/service/kinesisvideoarchivedmedia/api_op_GetHLSStreamingSessionURL.go b/service/kinesisvideoarchivedmedia/api_op_GetHLSStreamingSessionURL.go
index 3504d2d744b..88a6ab60371 100644
--- a/service/kinesisvideoarchivedmedia/api_op_GetHLSStreamingSessionURL.go
+++ b/service/kinesisvideoarchivedmedia/api_op_GetHLSStreamingSessionURL.go
@@ -170,6 +170,7 @@ func (s *GetHLSStreamingSessionURLInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetHLSStreamingSessionURLInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ContainerFormat) > 0 {
v := s.ContainerFormat
diff --git a/service/kinesisvideoarchivedmedia/api_op_GetMediaForFragmentList.go b/service/kinesisvideoarchivedmedia/api_op_GetMediaForFragmentList.go
index c711b36cd99..fa1c6f7b46f 100644
--- a/service/kinesisvideoarchivedmedia/api_op_GetMediaForFragmentList.go
+++ b/service/kinesisvideoarchivedmedia/api_op_GetMediaForFragmentList.go
@@ -58,6 +58,7 @@ func (s *GetMediaForFragmentListInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMediaForFragmentListInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Fragments != nil {
v := s.Fragments
diff --git a/service/kinesisvideoarchivedmedia/api_op_ListFragments.go b/service/kinesisvideoarchivedmedia/api_op_ListFragments.go
index 65f2a4cbc60..b47fa83205a 100644
--- a/service/kinesisvideoarchivedmedia/api_op_ListFragments.go
+++ b/service/kinesisvideoarchivedmedia/api_op_ListFragments.go
@@ -68,6 +68,7 @@ func (s *ListFragmentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFragmentsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FragmentSelector != nil {
v := s.FragmentSelector
diff --git a/service/kinesisvideoarchivedmedia/api_types.go b/service/kinesisvideoarchivedmedia/api_types.go
index ecfbe703071..754bf60c5a7 100644
--- a/service/kinesisvideoarchivedmedia/api_types.go
+++ b/service/kinesisvideoarchivedmedia/api_types.go
@@ -29,10 +29,10 @@ type Fragment struct {
FragmentSizeInBytes *int64 `type:"long"`
// The timestamp from the producer corresponding to the fragment.
- ProducerTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ProducerTimestamp *time.Time `type:"timestamp"`
// The timestamp from the AWS server corresponding to the fragment.
- ServerTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ServerTimestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -64,13 +64,15 @@ func (s Fragment) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ProducerTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ProducerTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ProducerTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ServerTimestamp != nil {
v := *s.ServerTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ServerTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ServerTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -234,7 +236,7 @@ type HLSTimestampRange struct {
// This value is inclusive. The EndTimestamp is compared to the (starting) timestamp
// of the fragment. Fragments that start before the EndTimestamp value and continue
// past it are included in the session.
- EndTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTimestamp *time.Time `type:"timestamp"`
// The start of the timestamp range for the requested media.
//
@@ -244,7 +246,7 @@ type HLSTimestampRange struct {
// This value is inclusive. Fragments that start before the StartTimestamp and
// continue past it are included in the session. If FragmentSelectorType is
// SERVER_TIMESTAMP, the StartTimestamp must be later than the stream head.
- StartTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTimestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -258,13 +260,15 @@ func (s HLSTimestampRange) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "EndTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "EndTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.StartTimestamp != nil {
v := *s.StartTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -277,12 +281,12 @@ type TimestampRange struct {
// The ending timestamp in the range of timestamps for which to return fragments.
//
// EndTimestamp is a required field
- EndTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTimestamp *time.Time `type:"timestamp" required:"true"`
// The starting timestamp in the range of timestamps for which to return fragments.
//
// StartTimestamp is a required field
- StartTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTimestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -314,13 +318,15 @@ func (s TimestampRange) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "EndTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "EndTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.StartTimestamp != nil {
v := *s.StartTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/kinesisvideomedia/api_op_GetMedia.go b/service/kinesisvideomedia/api_op_GetMedia.go
index dbeb733624d..4350599c33e 100644
--- a/service/kinesisvideomedia/api_op_GetMedia.go
+++ b/service/kinesisvideomedia/api_op_GetMedia.go
@@ -61,6 +61,7 @@ func (s *GetMediaInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMediaInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.StartSelector != nil {
v := s.StartSelector
diff --git a/service/kinesisvideomedia/api_types.go b/service/kinesisvideomedia/api_types.go
index 624325912ff..f6a1572e42c 100644
--- a/service/kinesisvideomedia/api_types.go
+++ b/service/kinesisvideomedia/api_types.go
@@ -64,7 +64,7 @@ type StartSelector struct {
// A timestamp value. This value is required if you choose the PRODUCER_TIMESTAMP
// or the SERVER_TIMESTAMP as the startSelectorType. The GetMedia API then starts
// with the chunk containing the fragment that has the specified timestamp.
- StartTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTimestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -115,7 +115,8 @@ func (s StartSelector) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/kms/api_op_GetParametersForImport.go b/service/kms/api_op_GetParametersForImport.go
index 5cc03d7b975..7706bfb7c5b 100644
--- a/service/kms/api_op_GetParametersForImport.go
+++ b/service/kms/api_op_GetParametersForImport.go
@@ -89,7 +89,7 @@ type GetParametersForImportOutput struct {
// The time at which the import token and public key are no longer valid. After
// this time, you cannot use them to make an ImportKeyMaterial request and you
// must send another GetParametersForImport request to get new ones.
- ParametersValidTo *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ParametersValidTo *time.Time `type:"timestamp"`
// The public key to use to encrypt the key material before importing it with
// ImportKeyMaterial.
diff --git a/service/kms/api_op_ImportKeyMaterial.go b/service/kms/api_op_ImportKeyMaterial.go
index c8d8c1adc2a..85b0ac94eca 100644
--- a/service/kms/api_op_ImportKeyMaterial.go
+++ b/service/kms/api_op_ImportKeyMaterial.go
@@ -57,7 +57,7 @@ type ImportKeyMaterialInput struct {
// expires, AWS KMS deletes the key material and the CMK becomes unusable. You
// must omit this parameter when the ExpirationModel parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE.
// Otherwise it is required.
- ValidTo *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ValidTo *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/kms/api_op_ScheduleKeyDeletion.go b/service/kms/api_op_ScheduleKeyDeletion.go
index 18425b28f57..81a79df4e37 100644
--- a/service/kms/api_op_ScheduleKeyDeletion.go
+++ b/service/kms/api_op_ScheduleKeyDeletion.go
@@ -67,7 +67,7 @@ type ScheduleKeyDeletionOutput struct {
_ struct{} `type:"structure"`
// The date and time after which AWS KMS deletes the customer master key (CMK).
- DeletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeletionDate *time.Time `type:"timestamp"`
// The unique identifier of the customer master key (CMK) for which deletion
// is scheduled.
diff --git a/service/kms/api_types.go b/service/kms/api_types.go
index b3afad04e0d..ef89015e7f7 100644
--- a/service/kms/api_types.go
+++ b/service/kms/api_types.go
@@ -90,7 +90,7 @@ type CustomKeyStoresListEntry struct {
ConnectionState ConnectionStateType `type:"string" enum:"true"`
// The date and time when the custom key store was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A unique identifier for the custom key store.
CustomKeyStoreId *string `min:"1" type:"string"`
@@ -173,7 +173,7 @@ type GrantListEntry struct {
Constraints *GrantConstraints `type:"structure"`
// The date and time when the grant was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The unique identifier for the grant.
GrantId *string `min:"1" type:"string"`
@@ -245,7 +245,7 @@ type KeyMetadata struct {
CloudHsmClusterId *string `min:"19" type:"string"`
// The date and time when the CMK was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A unique identifier for the custom key store (https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html)
// that contains the CMK. This value is present only when the CMK is created
@@ -254,7 +254,7 @@ type KeyMetadata struct {
// The date and time after which AWS KMS deletes the CMK. This value is present
// only when KeyState is PendingDeletion.
- DeletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeletionDate *time.Time `type:"timestamp"`
// The description of the CMK.
Description *string `type:"string"`
@@ -301,7 +301,7 @@ type KeyMetadata struct {
// expires, AWS KMS deletes the key material and the CMK becomes unusable. This
// value is present only for CMKs whose Origin is EXTERNAL and whose ExpirationModel
// is KEY_MATERIAL_EXPIRES, otherwise this value is omitted.
- ValidTo *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ValidTo *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/lambda/api_op_AddLayerVersionPermission.go b/service/lambda/api_op_AddLayerVersionPermission.go
index 7f15487c07f..e40a9a17414 100644
--- a/service/lambda/api_op_AddLayerVersionPermission.go
+++ b/service/lambda/api_op_AddLayerVersionPermission.go
@@ -92,6 +92,7 @@ func (s *AddLayerVersionPermissionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AddLayerVersionPermissionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Action != nil {
v := *s.Action
diff --git a/service/lambda/api_op_AddPermission.go b/service/lambda/api_op_AddPermission.go
index 3094bf27f35..d033c39f784 100644
--- a/service/lambda/api_op_AddPermission.go
+++ b/service/lambda/api_op_AddPermission.go
@@ -117,6 +117,7 @@ func (s *AddPermissionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AddPermissionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Action != nil {
v := *s.Action
diff --git a/service/lambda/api_op_CreateAlias.go b/service/lambda/api_op_CreateAlias.go
index 1ad46751ae4..83b38251755 100644
--- a/service/lambda/api_op_CreateAlias.go
+++ b/service/lambda/api_op_CreateAlias.go
@@ -86,6 +86,7 @@ func (s *CreateAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateAliasInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/lambda/api_op_CreateEventSourceMapping.go b/service/lambda/api_op_CreateEventSourceMapping.go
index b90d201af6d..3340a7e3237 100644
--- a/service/lambda/api_op_CreateEventSourceMapping.go
+++ b/service/lambda/api_op_CreateEventSourceMapping.go
@@ -62,7 +62,7 @@ type CreateEventSourceMappingInput struct {
StartingPosition EventSourcePosition `type:"string" enum:"true"`
// With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.
- StartingPositionTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartingPositionTimestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -96,6 +96,7 @@ func (s *CreateEventSourceMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BatchSize != nil {
v := *s.BatchSize
@@ -131,7 +132,8 @@ func (s CreateEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) er
v := *s.StartingPositionTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartingPositionTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartingPositionTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -152,7 +154,7 @@ type CreateEventSourceMappingOutput struct {
FunctionArn *string `type:"string"`
// The date that the event source mapping was last updated.
- LastModified *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModified *time.Time `type:"timestamp"`
// The result of the last AWS Lambda invocation of your Lambda function.
LastProcessingResult *string `type:"string"`
@@ -197,7 +199,8 @@ func (s CreateEventSourceMappingOutput) MarshalFields(e protocol.FieldEncoder) e
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastProcessingResult != nil {
v := *s.LastProcessingResult
diff --git a/service/lambda/api_op_CreateFunction.go b/service/lambda/api_op_CreateFunction.go
index fb0911a55c1..d0cdaa3d7b2 100644
--- a/service/lambda/api_op_CreateFunction.go
+++ b/service/lambda/api_op_CreateFunction.go
@@ -151,6 +151,7 @@ func (s *CreateFunctionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFunctionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Code != nil {
v := s.Code
diff --git a/service/lambda/api_op_DeleteAlias.go b/service/lambda/api_op_DeleteAlias.go
index 560e4bf30cf..88a65b0d6eb 100644
--- a/service/lambda/api_op_DeleteAlias.go
+++ b/service/lambda/api_op_DeleteAlias.go
@@ -68,6 +68,7 @@ func (s *DeleteAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteAliasInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionName != nil {
v := *s.FunctionName
diff --git a/service/lambda/api_op_DeleteEventSourceMapping.go b/service/lambda/api_op_DeleteEventSourceMapping.go
index e87aefca8f6..0e190e7a46c 100644
--- a/service/lambda/api_op_DeleteEventSourceMapping.go
+++ b/service/lambda/api_op_DeleteEventSourceMapping.go
@@ -42,6 +42,7 @@ func (s *DeleteEventSourceMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UUID != nil {
v := *s.UUID
@@ -68,7 +69,7 @@ type DeleteEventSourceMappingOutput struct {
FunctionArn *string `type:"string"`
// The date that the event source mapping was last updated.
- LastModified *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModified *time.Time `type:"timestamp"`
// The result of the last AWS Lambda invocation of your Lambda function.
LastProcessingResult *string `type:"string"`
@@ -113,7 +114,8 @@ func (s DeleteEventSourceMappingOutput) MarshalFields(e protocol.FieldEncoder) e
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastProcessingResult != nil {
v := *s.LastProcessingResult
diff --git a/service/lambda/api_op_DeleteFunction.go b/service/lambda/api_op_DeleteFunction.go
index 92f3fa30456..8feb1275b23 100644
--- a/service/lambda/api_op_DeleteFunction.go
+++ b/service/lambda/api_op_DeleteFunction.go
@@ -64,6 +64,7 @@ func (s *DeleteFunctionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFunctionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionName != nil {
v := *s.FunctionName
diff --git a/service/lambda/api_op_DeleteFunctionConcurrency.go b/service/lambda/api_op_DeleteFunctionConcurrency.go
index 6a0671bec9f..3ae3ededb41 100644
--- a/service/lambda/api_op_DeleteFunctionConcurrency.go
+++ b/service/lambda/api_op_DeleteFunctionConcurrency.go
@@ -56,6 +56,7 @@ func (s *DeleteFunctionConcurrencyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFunctionConcurrencyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionName != nil {
v := *s.FunctionName
diff --git a/service/lambda/api_op_DeleteLayerVersion.go b/service/lambda/api_op_DeleteLayerVersion.go
index cab2e9f23da..91b793f2149 100644
--- a/service/lambda/api_op_DeleteLayerVersion.go
+++ b/service/lambda/api_op_DeleteLayerVersion.go
@@ -54,6 +54,7 @@ func (s *DeleteLayerVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteLayerVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LayerName != nil {
v := *s.LayerName
diff --git a/service/lambda/api_op_GetAccountSettings.go b/service/lambda/api_op_GetAccountSettings.go
index 6c10690e099..66af0343d0f 100644
--- a/service/lambda/api_op_GetAccountSettings.go
+++ b/service/lambda/api_op_GetAccountSettings.go
@@ -22,6 +22,7 @@ func (s GetAccountSettingsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAccountSettingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/lambda/api_op_GetAlias.go b/service/lambda/api_op_GetAlias.go
index cbd333318ae..5c09f1514bb 100644
--- a/service/lambda/api_op_GetAlias.go
+++ b/service/lambda/api_op_GetAlias.go
@@ -67,6 +67,7 @@ func (s *GetAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAliasInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionName != nil {
v := *s.FunctionName
diff --git a/service/lambda/api_op_GetEventSourceMapping.go b/service/lambda/api_op_GetEventSourceMapping.go
index 07f57de0a9e..a69e14d93e2 100644
--- a/service/lambda/api_op_GetEventSourceMapping.go
+++ b/service/lambda/api_op_GetEventSourceMapping.go
@@ -42,6 +42,7 @@ func (s *GetEventSourceMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.UUID != nil {
v := *s.UUID
@@ -68,7 +69,7 @@ type GetEventSourceMappingOutput struct {
FunctionArn *string `type:"string"`
// The date that the event source mapping was last updated.
- LastModified *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModified *time.Time `type:"timestamp"`
// The result of the last AWS Lambda invocation of your Lambda function.
LastProcessingResult *string `type:"string"`
@@ -113,7 +114,8 @@ func (s GetEventSourceMappingOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastProcessingResult != nil {
v := *s.LastProcessingResult
diff --git a/service/lambda/api_op_GetFunction.go b/service/lambda/api_op_GetFunction.go
index aac8f543d58..f4753af9cab 100644
--- a/service/lambda/api_op_GetFunction.go
+++ b/service/lambda/api_op_GetFunction.go
@@ -63,6 +63,7 @@ func (s *GetFunctionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFunctionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionName != nil {
v := *s.FunctionName
diff --git a/service/lambda/api_op_GetFunctionConfiguration.go b/service/lambda/api_op_GetFunctionConfiguration.go
index f0efce3315b..9bb01af7576 100644
--- a/service/lambda/api_op_GetFunctionConfiguration.go
+++ b/service/lambda/api_op_GetFunctionConfiguration.go
@@ -63,6 +63,7 @@ func (s *GetFunctionConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFunctionConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionName != nil {
v := *s.FunctionName
diff --git a/service/lambda/api_op_GetLayerVersion.go b/service/lambda/api_op_GetLayerVersion.go
index 5596222db60..f2a79f2b5ac 100644
--- a/service/lambda/api_op_GetLayerVersion.go
+++ b/service/lambda/api_op_GetLayerVersion.go
@@ -53,6 +53,7 @@ func (s *GetLayerVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetLayerVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LayerName != nil {
v := *s.LayerName
diff --git a/service/lambda/api_op_GetLayerVersionByArn.go b/service/lambda/api_op_GetLayerVersionByArn.go
index 93454f52050..3a459825a6f 100644
--- a/service/lambda/api_op_GetLayerVersionByArn.go
+++ b/service/lambda/api_op_GetLayerVersionByArn.go
@@ -44,6 +44,7 @@ func (s *GetLayerVersionByArnInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetLayerVersionByArnInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Arn != nil {
v := *s.Arn
diff --git a/service/lambda/api_op_GetLayerVersionPolicy.go b/service/lambda/api_op_GetLayerVersionPolicy.go
index 920a361f931..ba742b8f50a 100644
--- a/service/lambda/api_op_GetLayerVersionPolicy.go
+++ b/service/lambda/api_op_GetLayerVersionPolicy.go
@@ -53,6 +53,7 @@ func (s *GetLayerVersionPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetLayerVersionPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LayerName != nil {
v := *s.LayerName
diff --git a/service/lambda/api_op_GetPolicy.go b/service/lambda/api_op_GetPolicy.go
index 403a812d2de..92bcb639cdb 100644
--- a/service/lambda/api_op_GetPolicy.go
+++ b/service/lambda/api_op_GetPolicy.go
@@ -62,6 +62,7 @@ func (s *GetPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionName != nil {
v := *s.FunctionName
diff --git a/service/lambda/api_op_ListAliases.go b/service/lambda/api_op_ListAliases.go
index 8442810ac33..8110ec9192e 100644
--- a/service/lambda/api_op_ListAliases.go
+++ b/service/lambda/api_op_ListAliases.go
@@ -71,6 +71,7 @@ func (s *ListAliasesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListAliasesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionName != nil {
v := *s.FunctionName
diff --git a/service/lambda/api_op_ListEventSourceMappings.go b/service/lambda/api_op_ListEventSourceMappings.go
index 778029f735f..b4384b9edb5 100644
--- a/service/lambda/api_op_ListEventSourceMappings.go
+++ b/service/lambda/api_op_ListEventSourceMappings.go
@@ -69,6 +69,7 @@ func (s *ListEventSourceMappingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListEventSourceMappingsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EventSourceArn != nil {
v := *s.EventSourceArn
diff --git a/service/lambda/api_op_ListFunctions.go b/service/lambda/api_op_ListFunctions.go
index 0bb90c9cd98..b4dc5400c65 100644
--- a/service/lambda/api_op_ListFunctions.go
+++ b/service/lambda/api_op_ListFunctions.go
@@ -50,6 +50,7 @@ func (s *ListFunctionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFunctionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.FunctionVersion) > 0 {
v := s.FunctionVersion
diff --git a/service/lambda/api_op_ListLayerVersions.go b/service/lambda/api_op_ListLayerVersions.go
index a30df3ec72a..f633705f36b 100644
--- a/service/lambda/api_op_ListLayerVersions.go
+++ b/service/lambda/api_op_ListLayerVersions.go
@@ -56,6 +56,7 @@ func (s *ListLayerVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListLayerVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LayerName != nil {
v := *s.LayerName
diff --git a/service/lambda/api_op_ListLayers.go b/service/lambda/api_op_ListLayers.go
index 89b2874bc1b..6eae797a74f 100644
--- a/service/lambda/api_op_ListLayers.go
+++ b/service/lambda/api_op_ListLayers.go
@@ -44,6 +44,7 @@ func (s *ListLayersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListLayersInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.CompatibleRuntime) > 0 {
v := s.CompatibleRuntime
diff --git a/service/lambda/api_op_ListTags.go b/service/lambda/api_op_ListTags.go
index cf6f97d5c39..141d19c5a60 100644
--- a/service/lambda/api_op_ListTags.go
+++ b/service/lambda/api_op_ListTags.go
@@ -41,6 +41,7 @@ func (s *ListTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Resource != nil {
v := *s.Resource
diff --git a/service/lambda/api_op_ListVersionsByFunction.go b/service/lambda/api_op_ListVersionsByFunction.go
index 9763331903d..742a6e1ea56 100644
--- a/service/lambda/api_op_ListVersionsByFunction.go
+++ b/service/lambda/api_op_ListVersionsByFunction.go
@@ -65,6 +65,7 @@ func (s *ListVersionsByFunctionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListVersionsByFunctionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionName != nil {
v := *s.FunctionName
diff --git a/service/lambda/api_op_PublishLayerVersion.go b/service/lambda/api_op_PublishLayerVersion.go
index 66164b25c72..6aced615779 100644
--- a/service/lambda/api_op_PublishLayerVersion.go
+++ b/service/lambda/api_op_PublishLayerVersion.go
@@ -75,6 +75,7 @@ func (s *PublishLayerVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PublishLayerVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CompatibleRuntimes != nil {
v := s.CompatibleRuntimes
diff --git a/service/lambda/api_op_PublishVersion.go b/service/lambda/api_op_PublishVersion.go
index 4fbafbff1fb..b58b2fe5079 100644
--- a/service/lambda/api_op_PublishVersion.go
+++ b/service/lambda/api_op_PublishVersion.go
@@ -70,6 +70,7 @@ func (s *PublishVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PublishVersionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CodeSha256 != nil {
v := *s.CodeSha256
diff --git a/service/lambda/api_op_PutFunctionConcurrency.go b/service/lambda/api_op_PutFunctionConcurrency.go
index bba34e29aee..aa1c4928ac2 100644
--- a/service/lambda/api_op_PutFunctionConcurrency.go
+++ b/service/lambda/api_op_PutFunctionConcurrency.go
@@ -64,6 +64,7 @@ func (s *PutFunctionConcurrencyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutFunctionConcurrencyInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ReservedConcurrentExecutions != nil {
v := *s.ReservedConcurrentExecutions
diff --git a/service/lambda/api_op_RemoveLayerVersionPermission.go b/service/lambda/api_op_RemoveLayerVersionPermission.go
index 8fcc1d5a771..8b5bcc1ca6c 100644
--- a/service/lambda/api_op_RemoveLayerVersionPermission.go
+++ b/service/lambda/api_op_RemoveLayerVersionPermission.go
@@ -70,6 +70,7 @@ func (s *RemoveLayerVersionPermissionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemoveLayerVersionPermissionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.LayerName != nil {
v := *s.LayerName
diff --git a/service/lambda/api_op_RemovePermission.go b/service/lambda/api_op_RemovePermission.go
index 504e59c944c..cb5b0a6dfd1 100644
--- a/service/lambda/api_op_RemovePermission.go
+++ b/service/lambda/api_op_RemovePermission.go
@@ -81,6 +81,7 @@ func (s *RemovePermissionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemovePermissionInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FunctionName != nil {
v := *s.FunctionName
diff --git a/service/lambda/api_op_TagResource.go b/service/lambda/api_op_TagResource.go
index 911a6b5a162..93f841ef90d 100644
--- a/service/lambda/api_op_TagResource.go
+++ b/service/lambda/api_op_TagResource.go
@@ -51,6 +51,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/lambda/api_op_UntagResource.go b/service/lambda/api_op_UntagResource.go
index 5576438b759..c1408ba54a8 100644
--- a/service/lambda/api_op_UntagResource.go
+++ b/service/lambda/api_op_UntagResource.go
@@ -51,6 +51,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Resource != nil {
v := *s.Resource
diff --git a/service/lambda/api_op_UpdateAlias.go b/service/lambda/api_op_UpdateAlias.go
index 71fc1f34b49..5fca6878637 100644
--- a/service/lambda/api_op_UpdateAlias.go
+++ b/service/lambda/api_op_UpdateAlias.go
@@ -85,6 +85,7 @@ func (s *UpdateAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAliasInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/lambda/api_op_UpdateEventSourceMapping.go b/service/lambda/api_op_UpdateEventSourceMapping.go
index ea48961e62b..d641ffed505 100644
--- a/service/lambda/api_op_UpdateEventSourceMapping.go
+++ b/service/lambda/api_op_UpdateEventSourceMapping.go
@@ -76,6 +76,7 @@ func (s *UpdateEventSourceMappingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BatchSize != nil {
v := *s.BatchSize
@@ -120,7 +121,7 @@ type UpdateEventSourceMappingOutput struct {
FunctionArn *string `type:"string"`
// The date that the event source mapping was last updated.
- LastModified *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModified *time.Time `type:"timestamp"`
// The result of the last AWS Lambda invocation of your Lambda function.
LastProcessingResult *string `type:"string"`
@@ -165,7 +166,8 @@ func (s UpdateEventSourceMappingOutput) MarshalFields(e protocol.FieldEncoder) e
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastProcessingResult != nil {
v := *s.LastProcessingResult
diff --git a/service/lambda/api_op_UpdateFunctionCode.go b/service/lambda/api_op_UpdateFunctionCode.go
index 8ab734be78f..a744652ae94 100644
--- a/service/lambda/api_op_UpdateFunctionCode.go
+++ b/service/lambda/api_op_UpdateFunctionCode.go
@@ -93,6 +93,7 @@ func (s *UpdateFunctionCodeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFunctionCodeInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DryRun != nil {
v := *s.DryRun
diff --git a/service/lambda/api_op_UpdateFunctionConfiguration.go b/service/lambda/api_op_UpdateFunctionConfiguration.go
index df2bc8cc638..6ffd5f37bf5 100644
--- a/service/lambda/api_op_UpdateFunctionConfiguration.go
+++ b/service/lambda/api_op_UpdateFunctionConfiguration.go
@@ -118,6 +118,7 @@ func (s *UpdateFunctionConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFunctionConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeadLetterConfig != nil {
v := s.DeadLetterConfig
diff --git a/service/lambda/api_types.go b/service/lambda/api_types.go
index e348027e04d..051df3eac76 100644
--- a/service/lambda/api_types.go
+++ b/service/lambda/api_types.go
@@ -389,7 +389,7 @@ type EventSourceMappingConfiguration struct {
FunctionArn *string `type:"string"`
// The date that the event source mapping was last updated.
- LastModified *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModified *time.Time `type:"timestamp"`
// The result of the last AWS Lambda invocation of your Lambda function.
LastProcessingResult *string `type:"string"`
@@ -434,7 +434,8 @@ func (s EventSourceMappingConfiguration) MarshalFields(e protocol.FieldEncoder)
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastProcessingResult != nil {
v := *s.LastProcessingResult
diff --git a/service/lexmodelbuildingservice/api_op_CreateBotVersion.go b/service/lexmodelbuildingservice/api_op_CreateBotVersion.go
index 8fd90796a21..74ec625c9a7 100644
--- a/service/lexmodelbuildingservice/api_op_CreateBotVersion.go
+++ b/service/lexmodelbuildingservice/api_op_CreateBotVersion.go
@@ -53,7 +53,7 @@ func (s *CreateBotVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateBotVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Checksum != nil {
v := *s.Checksum
@@ -111,7 +111,7 @@ type CreateBotVersionOutput struct {
ClarificationPrompt *Prompt `locationName:"clarificationPrompt" type:"structure"`
// The date when the bot version was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the bot.
Description *string `locationName:"description" type:"string"`
@@ -128,7 +128,7 @@ type CreateBotVersionOutput struct {
Intents []Intent `locationName:"intents" type:"list"`
// The date when the $LATEST version of this bot was updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// Specifies the target locale for the bot.
Locale Locale `locationName:"locale" type:"string" enum:"true"`
@@ -185,7 +185,8 @@ func (s CreateBotVersionOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -221,7 +222,8 @@ func (s CreateBotVersionOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Locale) > 0 {
v := s.Locale
diff --git a/service/lexmodelbuildingservice/api_op_CreateIntentVersion.go b/service/lexmodelbuildingservice/api_op_CreateIntentVersion.go
index 8a25b0ca397..c825aa709d3 100644
--- a/service/lexmodelbuildingservice/api_op_CreateIntentVersion.go
+++ b/service/lexmodelbuildingservice/api_op_CreateIntentVersion.go
@@ -53,7 +53,7 @@ func (s *CreateIntentVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateIntentVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Checksum != nil {
v := *s.Checksum
@@ -86,7 +86,7 @@ type CreateIntentVersionOutput struct {
ConfirmationPrompt *Prompt `locationName:"confirmationPrompt" type:"structure"`
// The date that the intent was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the intent.
Description *string `locationName:"description" type:"string"`
@@ -102,7 +102,7 @@ type CreateIntentVersionOutput struct {
FulfillmentActivity *FulfillmentActivity `locationName:"fulfillmentActivity" type:"structure"`
// The date that the intent was updated.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the intent.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -154,7 +154,8 @@ func (s CreateIntentVersionOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -184,7 +185,8 @@ func (s CreateIntentVersionOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_CreateSlotTypeVersion.go b/service/lexmodelbuildingservice/api_op_CreateSlotTypeVersion.go
index 2c10e9a92d1..bf1d2355b32 100644
--- a/service/lexmodelbuildingservice/api_op_CreateSlotTypeVersion.go
+++ b/service/lexmodelbuildingservice/api_op_CreateSlotTypeVersion.go
@@ -53,7 +53,7 @@ func (s *CreateSlotTypeVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSlotTypeVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Checksum != nil {
v := *s.Checksum
@@ -78,7 +78,7 @@ type CreateSlotTypeVersionOutput struct {
Checksum *string `locationName:"checksum" type:"string"`
// The date that the slot type was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the slot type.
Description *string `locationName:"description" type:"string"`
@@ -89,7 +89,7 @@ type CreateSlotTypeVersionOutput struct {
// The date that the slot type was updated. When you create a resource, the
// creation date and last update date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the slot type.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -119,7 +119,8 @@ func (s CreateSlotTypeVersionOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -143,7 +144,8 @@ func (s CreateSlotTypeVersionOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_DeleteBot.go b/service/lexmodelbuildingservice/api_op_DeleteBot.go
index d538605adef..9fd4299240f 100644
--- a/service/lexmodelbuildingservice/api_op_DeleteBot.go
+++ b/service/lexmodelbuildingservice/api_op_DeleteBot.go
@@ -45,7 +45,7 @@ func (s *DeleteBotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBotInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_DeleteBotAlias.go b/service/lexmodelbuildingservice/api_op_DeleteBotAlias.go
index c703f14bd5e..136307dcba6 100644
--- a/service/lexmodelbuildingservice/api_op_DeleteBotAlias.go
+++ b/service/lexmodelbuildingservice/api_op_DeleteBotAlias.go
@@ -57,7 +57,7 @@ func (s *DeleteBotAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBotAliasInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BotName != nil {
v := *s.BotName
diff --git a/service/lexmodelbuildingservice/api_op_DeleteBotChannelAssociation.go b/service/lexmodelbuildingservice/api_op_DeleteBotChannelAssociation.go
index 4b43fe5c0c2..6341dfe80a6 100644
--- a/service/lexmodelbuildingservice/api_op_DeleteBotChannelAssociation.go
+++ b/service/lexmodelbuildingservice/api_op_DeleteBotChannelAssociation.go
@@ -70,7 +70,7 @@ func (s *DeleteBotChannelAssociationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBotChannelAssociationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BotAlias != nil {
v := *s.BotAlias
diff --git a/service/lexmodelbuildingservice/api_op_DeleteBotVersion.go b/service/lexmodelbuildingservice/api_op_DeleteBotVersion.go
index 889bf09e9fd..33261c17139 100644
--- a/service/lexmodelbuildingservice/api_op_DeleteBotVersion.go
+++ b/service/lexmodelbuildingservice/api_op_DeleteBotVersion.go
@@ -58,7 +58,7 @@ func (s *DeleteBotVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBotVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_DeleteIntent.go b/service/lexmodelbuildingservice/api_op_DeleteIntent.go
index 08374ea8181..1435a14124f 100644
--- a/service/lexmodelbuildingservice/api_op_DeleteIntent.go
+++ b/service/lexmodelbuildingservice/api_op_DeleteIntent.go
@@ -45,7 +45,7 @@ func (s *DeleteIntentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteIntentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_DeleteIntentVersion.go b/service/lexmodelbuildingservice/api_op_DeleteIntentVersion.go
index d672aedef33..362c240afb0 100644
--- a/service/lexmodelbuildingservice/api_op_DeleteIntentVersion.go
+++ b/service/lexmodelbuildingservice/api_op_DeleteIntentVersion.go
@@ -58,7 +58,7 @@ func (s *DeleteIntentVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteIntentVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_DeleteSlotType.go b/service/lexmodelbuildingservice/api_op_DeleteSlotType.go
index 9c85806eb2b..23cc81ae93d 100644
--- a/service/lexmodelbuildingservice/api_op_DeleteSlotType.go
+++ b/service/lexmodelbuildingservice/api_op_DeleteSlotType.go
@@ -45,7 +45,7 @@ func (s *DeleteSlotTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteSlotTypeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_DeleteSlotTypeVersion.go b/service/lexmodelbuildingservice/api_op_DeleteSlotTypeVersion.go
index f3cd12a3ebc..91cf1d76429 100644
--- a/service/lexmodelbuildingservice/api_op_DeleteSlotTypeVersion.go
+++ b/service/lexmodelbuildingservice/api_op_DeleteSlotTypeVersion.go
@@ -58,7 +58,7 @@ func (s *DeleteSlotTypeVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteSlotTypeVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_DeleteUtterances.go b/service/lexmodelbuildingservice/api_op_DeleteUtterances.go
index 4bd871e01b4..b2fb4016e6c 100644
--- a/service/lexmodelbuildingservice/api_op_DeleteUtterances.go
+++ b/service/lexmodelbuildingservice/api_op_DeleteUtterances.go
@@ -60,7 +60,7 @@ func (s *DeleteUtterancesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteUtterancesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BotName != nil {
v := *s.BotName
diff --git a/service/lexmodelbuildingservice/api_op_GetBot.go b/service/lexmodelbuildingservice/api_op_GetBot.go
index 9d185ced699..77950742743 100644
--- a/service/lexmodelbuildingservice/api_op_GetBot.go
+++ b/service/lexmodelbuildingservice/api_op_GetBot.go
@@ -54,7 +54,7 @@ func (s *GetBotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBotInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
@@ -113,7 +113,7 @@ type GetBotOutput struct {
ClarificationPrompt *Prompt `locationName:"clarificationPrompt" type:"structure"`
// The date that the bot was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the bot.
Description *string `locationName:"description" type:"string"`
@@ -130,7 +130,7 @@ type GetBotOutput struct {
// The date that the bot was updated. When you create a resource, the creation
// date and last updated date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The target locale for the bot.
Locale Locale `locationName:"locale" type:"string" enum:"true"`
@@ -187,7 +187,8 @@ func (s GetBotOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -223,7 +224,8 @@ func (s GetBotOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Locale) > 0 {
v := s.Locale
diff --git a/service/lexmodelbuildingservice/api_op_GetBotAlias.go b/service/lexmodelbuildingservice/api_op_GetBotAlias.go
index 2193c876ba3..2fc8ac0327d 100644
--- a/service/lexmodelbuildingservice/api_op_GetBotAlias.go
+++ b/service/lexmodelbuildingservice/api_op_GetBotAlias.go
@@ -57,7 +57,7 @@ func (s *GetBotAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBotAliasInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BotName != nil {
v := *s.BotName
@@ -88,14 +88,14 @@ type GetBotAliasOutput struct {
Checksum *string `locationName:"checksum" type:"string"`
// The date that the bot alias was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the bot alias.
Description *string `locationName:"description" type:"string"`
// The date that the bot alias was updated. When you create a resource, the
// creation date and the last updated date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the bot alias.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -130,7 +130,8 @@ func (s GetBotAliasOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -142,7 +143,8 @@ func (s GetBotAliasOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_GetBotAliases.go b/service/lexmodelbuildingservice/api_op_GetBotAliases.go
index 1e96978affc..0ac56be190c 100644
--- a/service/lexmodelbuildingservice/api_op_GetBotAliases.go
+++ b/service/lexmodelbuildingservice/api_op_GetBotAliases.go
@@ -64,7 +64,7 @@ func (s *GetBotAliasesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBotAliasesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BotName != nil {
v := *s.BotName
diff --git a/service/lexmodelbuildingservice/api_op_GetBotChannelAssociation.go b/service/lexmodelbuildingservice/api_op_GetBotChannelAssociation.go
index f8acb208237..3560233fa58 100644
--- a/service/lexmodelbuildingservice/api_op_GetBotChannelAssociation.go
+++ b/service/lexmodelbuildingservice/api_op_GetBotChannelAssociation.go
@@ -71,7 +71,7 @@ func (s *GetBotChannelAssociationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBotChannelAssociationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BotAlias != nil {
v := *s.BotAlias
@@ -110,7 +110,7 @@ type GetBotChannelAssociationOutput struct {
BotName *string `locationName:"botName" min:"2" type:"string"`
// The date that the association between the bot and the channel was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the association between the bot and the channel.
Description *string `locationName:"description" type:"string"`
@@ -171,7 +171,8 @@ func (s GetBotChannelAssociationOutput) MarshalFields(e protocol.FieldEncoder) e
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/lexmodelbuildingservice/api_op_GetBotChannelAssociations.go b/service/lexmodelbuildingservice/api_op_GetBotChannelAssociations.go
index 77945373f37..31f070e42e6 100644
--- a/service/lexmodelbuildingservice/api_op_GetBotChannelAssociations.go
+++ b/service/lexmodelbuildingservice/api_op_GetBotChannelAssociations.go
@@ -79,7 +79,7 @@ func (s *GetBotChannelAssociationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBotChannelAssociationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BotAlias != nil {
v := *s.BotAlias
diff --git a/service/lexmodelbuildingservice/api_op_GetBotVersions.go b/service/lexmodelbuildingservice/api_op_GetBotVersions.go
index d46339f3a9c..1d626be1d41 100644
--- a/service/lexmodelbuildingservice/api_op_GetBotVersions.go
+++ b/service/lexmodelbuildingservice/api_op_GetBotVersions.go
@@ -57,7 +57,7 @@ func (s *GetBotVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBotVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_GetBots.go b/service/lexmodelbuildingservice/api_op_GetBots.go
index feab9008c2b..92696fb2258 100644
--- a/service/lexmodelbuildingservice/api_op_GetBots.go
+++ b/service/lexmodelbuildingservice/api_op_GetBots.go
@@ -53,7 +53,7 @@ func (s *GetBotsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBotsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/lexmodelbuildingservice/api_op_GetBuiltinIntent.go b/service/lexmodelbuildingservice/api_op_GetBuiltinIntent.go
index 1c34aa0a1be..59ee99cc3fa 100644
--- a/service/lexmodelbuildingservice/api_op_GetBuiltinIntent.go
+++ b/service/lexmodelbuildingservice/api_op_GetBuiltinIntent.go
@@ -43,7 +43,7 @@ func (s *GetBuiltinIntentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBuiltinIntentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Signature != nil {
v := *s.Signature
diff --git a/service/lexmodelbuildingservice/api_op_GetBuiltinIntents.go b/service/lexmodelbuildingservice/api_op_GetBuiltinIntents.go
index d6aefd09de8..29f97b40ba5 100644
--- a/service/lexmodelbuildingservice/api_op_GetBuiltinIntents.go
+++ b/service/lexmodelbuildingservice/api_op_GetBuiltinIntents.go
@@ -53,7 +53,7 @@ func (s *GetBuiltinIntentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBuiltinIntentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.Locale) > 0 {
v := s.Locale
diff --git a/service/lexmodelbuildingservice/api_op_GetBuiltinSlotTypes.go b/service/lexmodelbuildingservice/api_op_GetBuiltinSlotTypes.go
index d6cc464a71e..d76e25ea611 100644
--- a/service/lexmodelbuildingservice/api_op_GetBuiltinSlotTypes.go
+++ b/service/lexmodelbuildingservice/api_op_GetBuiltinSlotTypes.go
@@ -53,7 +53,7 @@ func (s *GetBuiltinSlotTypesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBuiltinSlotTypesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.Locale) > 0 {
v := s.Locale
diff --git a/service/lexmodelbuildingservice/api_op_GetExport.go b/service/lexmodelbuildingservice/api_op_GetExport.go
index 5f9faeca174..7c696be0a56 100644
--- a/service/lexmodelbuildingservice/api_op_GetExport.go
+++ b/service/lexmodelbuildingservice/api_op_GetExport.go
@@ -72,7 +72,7 @@ func (s *GetExportInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetExportInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ExportType) > 0 {
v := s.ExportType
diff --git a/service/lexmodelbuildingservice/api_op_GetImport.go b/service/lexmodelbuildingservice/api_op_GetImport.go
index 980ce5c3087..baf94dab216 100644
--- a/service/lexmodelbuildingservice/api_op_GetImport.go
+++ b/service/lexmodelbuildingservice/api_op_GetImport.go
@@ -42,7 +42,7 @@ func (s *GetImportInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetImportInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ImportId != nil {
v := *s.ImportId
@@ -58,7 +58,7 @@ type GetImportOutput struct {
_ struct{} `type:"structure"`
// A timestamp for the date and time that the import job was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A string that describes why an import job failed to complete.
FailureReason []string `locationName:"failureReason" type:"list"`
@@ -92,7 +92,8 @@ func (s GetImportOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.FailureReason != nil {
v := s.FailureReason
diff --git a/service/lexmodelbuildingservice/api_op_GetIntent.go b/service/lexmodelbuildingservice/api_op_GetIntent.go
index b2ef513933d..0d449d234cf 100644
--- a/service/lexmodelbuildingservice/api_op_GetIntent.go
+++ b/service/lexmodelbuildingservice/api_op_GetIntent.go
@@ -57,7 +57,7 @@ func (s *GetIntentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIntentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
@@ -90,7 +90,7 @@ type GetIntentOutput struct {
ConfirmationPrompt *Prompt `locationName:"confirmationPrompt" type:"structure"`
// The date that the intent was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the intent.
Description *string `locationName:"description" type:"string"`
@@ -108,7 +108,7 @@ type GetIntentOutput struct {
// The date that the intent was updated. When you create a resource, the creation
// date and the last updated date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the intent.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -159,7 +159,8 @@ func (s GetIntentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -189,7 +190,8 @@ func (s GetIntentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_GetIntentVersions.go b/service/lexmodelbuildingservice/api_op_GetIntentVersions.go
index 24614290dfb..0962c244929 100644
--- a/service/lexmodelbuildingservice/api_op_GetIntentVersions.go
+++ b/service/lexmodelbuildingservice/api_op_GetIntentVersions.go
@@ -57,7 +57,7 @@ func (s *GetIntentVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIntentVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_GetIntents.go b/service/lexmodelbuildingservice/api_op_GetIntents.go
index befbb182ff8..cc062181b67 100644
--- a/service/lexmodelbuildingservice/api_op_GetIntents.go
+++ b/service/lexmodelbuildingservice/api_op_GetIntents.go
@@ -52,7 +52,7 @@ func (s *GetIntentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetIntentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/lexmodelbuildingservice/api_op_GetSlotType.go b/service/lexmodelbuildingservice/api_op_GetSlotType.go
index f0179267261..de05f633f01 100644
--- a/service/lexmodelbuildingservice/api_op_GetSlotType.go
+++ b/service/lexmodelbuildingservice/api_op_GetSlotType.go
@@ -57,7 +57,7 @@ func (s *GetSlotTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSlotTypeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
@@ -82,7 +82,7 @@ type GetSlotTypeOutput struct {
Checksum *string `locationName:"checksum" type:"string"`
// The date that the slot type was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the slot type.
Description *string `locationName:"description" type:"string"`
@@ -93,7 +93,7 @@ type GetSlotTypeOutput struct {
// The date that the slot type was updated. When you create a resource, the
// creation date and last update date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the slot type.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -123,7 +123,8 @@ func (s GetSlotTypeOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -147,7 +148,8 @@ func (s GetSlotTypeOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_GetSlotTypeVersions.go b/service/lexmodelbuildingservice/api_op_GetSlotTypeVersions.go
index 0681dc3dba7..36a0c72133d 100644
--- a/service/lexmodelbuildingservice/api_op_GetSlotTypeVersions.go
+++ b/service/lexmodelbuildingservice/api_op_GetSlotTypeVersions.go
@@ -57,7 +57,7 @@ func (s *GetSlotTypeVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSlotTypeVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_GetSlotTypes.go b/service/lexmodelbuildingservice/api_op_GetSlotTypes.go
index 3a9be2dc0af..63d9a4bbc64 100644
--- a/service/lexmodelbuildingservice/api_op_GetSlotTypes.go
+++ b/service/lexmodelbuildingservice/api_op_GetSlotTypes.go
@@ -53,7 +53,7 @@ func (s *GetSlotTypesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSlotTypesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/lexmodelbuildingservice/api_op_GetUtterancesView.go b/service/lexmodelbuildingservice/api_op_GetUtterancesView.go
index 3e640dd3b43..a74b0923e1c 100644
--- a/service/lexmodelbuildingservice/api_op_GetUtterancesView.go
+++ b/service/lexmodelbuildingservice/api_op_GetUtterancesView.go
@@ -66,7 +66,7 @@ func (s *GetUtterancesViewInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUtterancesViewInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BotName != nil {
v := *s.BotName
diff --git a/service/lexmodelbuildingservice/api_op_PutBot.go b/service/lexmodelbuildingservice/api_op_PutBot.go
index 8ad0f32c0b4..573d4bf2e68 100644
--- a/service/lexmodelbuildingservice/api_op_PutBot.go
+++ b/service/lexmodelbuildingservice/api_op_PutBot.go
@@ -188,7 +188,7 @@ func (s *PutBotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutBotInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AbortStatement != nil {
v := s.AbortStatement
@@ -314,7 +314,7 @@ type PutBotOutput struct {
CreateVersion *bool `locationName:"createVersion" type:"boolean"`
// The date that the bot was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the bot.
Description *string `locationName:"description" type:"string"`
@@ -332,7 +332,7 @@ type PutBotOutput struct {
// The date that the bot was updated. When you create a resource, the creation
// date and last updated date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The target locale for the bot.
Locale Locale `locationName:"locale" type:"string" enum:"true"`
@@ -399,7 +399,8 @@ func (s PutBotOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -435,7 +436,8 @@ func (s PutBotOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Locale) > 0 {
v := s.Locale
diff --git a/service/lexmodelbuildingservice/api_op_PutBotAlias.go b/service/lexmodelbuildingservice/api_op_PutBotAlias.go
index 7325c506e78..4b1001594d5 100644
--- a/service/lexmodelbuildingservice/api_op_PutBotAlias.go
+++ b/service/lexmodelbuildingservice/api_op_PutBotAlias.go
@@ -83,7 +83,7 @@ func (s *PutBotAliasInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutBotAliasInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BotVersion != nil {
v := *s.BotVersion
@@ -132,14 +132,14 @@ type PutBotAliasOutput struct {
Checksum *string `locationName:"checksum" type:"string"`
// The date that the bot alias was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the alias.
Description *string `locationName:"description" type:"string"`
// The date that the bot alias was updated. When you create a resource, the
// creation date and the last updated date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the alias.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -174,7 +174,8 @@ func (s PutBotAliasOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -186,7 +187,8 @@ func (s PutBotAliasOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_PutIntent.go b/service/lexmodelbuildingservice/api_op_PutIntent.go
index ae8eb7a266e..90309ebdaf1 100644
--- a/service/lexmodelbuildingservice/api_op_PutIntent.go
+++ b/service/lexmodelbuildingservice/api_op_PutIntent.go
@@ -195,7 +195,7 @@ func (s *PutIntentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutIntentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Checksum != nil {
v := *s.Checksum
@@ -308,7 +308,7 @@ type PutIntentOutput struct {
CreateVersion *bool `locationName:"createVersion" type:"boolean"`
// The date that the intent was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the intent.
Description *string `locationName:"description" type:"string"`
@@ -328,7 +328,7 @@ type PutIntentOutput struct {
// The date that the intent was updated. When you create a resource, the creation
// date and last update dates are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the intent.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -385,7 +385,8 @@ func (s PutIntentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -415,7 +416,8 @@ func (s PutIntentOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_PutSlotType.go b/service/lexmodelbuildingservice/api_op_PutSlotType.go
index 4d11808c37c..487830165cb 100644
--- a/service/lexmodelbuildingservice/api_op_PutSlotType.go
+++ b/service/lexmodelbuildingservice/api_op_PutSlotType.go
@@ -105,7 +105,7 @@ func (s *PutSlotTypeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutSlotTypeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Checksum != nil {
v := *s.Checksum
@@ -162,7 +162,7 @@ type PutSlotTypeOutput struct {
CreateVersion *bool `locationName:"createVersion" type:"boolean"`
// The date that the slot type was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the slot type.
Description *string `locationName:"description" type:"string"`
@@ -173,7 +173,7 @@ type PutSlotTypeOutput struct {
// The date that the slot type was updated. When you create a slot type, the
// creation date and last update date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the slot type.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -210,7 +210,8 @@ func (s PutSlotTypeOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -234,7 +235,8 @@ func (s PutSlotTypeOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/lexmodelbuildingservice/api_op_StartImport.go b/service/lexmodelbuildingservice/api_op_StartImport.go
index 429f3d92b25..bd605f2500d 100644
--- a/service/lexmodelbuildingservice/api_op_StartImport.go
+++ b/service/lexmodelbuildingservice/api_op_StartImport.go
@@ -76,7 +76,7 @@ func (s *StartImportInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartImportInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.MergeStrategy) > 0 {
v := s.MergeStrategy
@@ -104,7 +104,7 @@ type StartImportOutput struct {
_ struct{} `type:"structure"`
// A timestamp for the date and time that the import job was requested.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// The identifier for the specific import job.
ImportId *string `locationName:"importId" type:"string"`
@@ -134,7 +134,8 @@ func (s StartImportOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ImportId != nil {
v := *s.ImportId
diff --git a/service/lexmodelbuildingservice/api_types.go b/service/lexmodelbuildingservice/api_types.go
index 815b8e60ae7..414d746c9e6 100644
--- a/service/lexmodelbuildingservice/api_types.go
+++ b/service/lexmodelbuildingservice/api_types.go
@@ -29,14 +29,14 @@ type BotAliasMetadata struct {
Checksum *string `locationName:"checksum" type:"string"`
// The date that the bot alias was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the bot alias.
Description *string `locationName:"description" type:"string"`
// The date that the bot alias was updated. When you create a resource, the
// creation date and last updated date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the bot alias.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -71,7 +71,8 @@ func (s BotAliasMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -83,7 +84,8 @@ func (s BotAliasMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -115,7 +117,7 @@ type BotChannelAssociation struct {
// The date that the association between the Amazon Lex bot and the channel
// was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A text description of the association you are creating.
Description *string `locationName:"description" type:"string"`
@@ -177,7 +179,8 @@ func (s BotChannelAssociation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -218,14 +221,14 @@ type BotMetadata struct {
_ struct{} `type:"structure"`
// The date that the bot was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the bot.
Description *string `locationName:"description" type:"string"`
// The date that the bot was updated. When you create a bot, the creation date
// and last updated date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the bot.
Name *string `locationName:"name" min:"2" type:"string"`
@@ -248,7 +251,8 @@ func (s BotMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -260,7 +264,8 @@ func (s BotMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -735,14 +740,14 @@ type IntentMetadata struct {
_ struct{} `type:"structure"`
// The date that the intent was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the intent.
Description *string `locationName:"description" type:"string"`
// The date that the intent was updated. When you create an intent, the creation
// date and last updated date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the intent.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -762,7 +767,8 @@ func (s IntentMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -774,7 +780,8 @@ func (s IntentMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -1153,14 +1160,14 @@ type SlotTypeMetadata struct {
_ struct{} `type:"structure"`
// The date that the slot type was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// A description of the slot type.
Description *string `locationName:"description" type:"string"`
// The date that the slot type was updated. When you create a resource, the
// creation date and last updated date are the same.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// The name of the slot type.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -1180,7 +1187,8 @@ func (s SlotTypeMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -1192,7 +1200,8 @@ func (s SlotTypeMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -1294,10 +1303,10 @@ type UtteranceData struct {
DistinctUsers *int64 `locationName:"distinctUsers" type:"integer"`
// The date that the utterance was first recorded.
- FirstUtteredDate *time.Time `locationName:"firstUtteredDate" type:"timestamp" timestampFormat:"unix"`
+ FirstUtteredDate *time.Time `locationName:"firstUtteredDate" type:"timestamp"`
// The date that the utterance was last recorded.
- LastUtteredDate *time.Time `locationName:"lastUtteredDate" type:"timestamp" timestampFormat:"unix"`
+ LastUtteredDate *time.Time `locationName:"lastUtteredDate" type:"timestamp"`
// The text that was entered by the user or the text representation of an audio
// clip.
@@ -1327,13 +1336,15 @@ func (s UtteranceData) MarshalFields(e protocol.FieldEncoder) error {
v := *s.FirstUtteredDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "firstUtteredDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "firstUtteredDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUtteredDate != nil {
v := *s.LastUtteredDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUtteredDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUtteredDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.UtteranceString != nil {
v := *s.UtteranceString
diff --git a/service/lexruntimeservice/api_op_PostText.go b/service/lexruntimeservice/api_op_PostText.go
index 821b8a76e33..b7bd6ea9ce7 100644
--- a/service/lexruntimeservice/api_op_PostText.go
+++ b/service/lexruntimeservice/api_op_PostText.go
@@ -109,7 +109,7 @@ func (s *PostTextInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PostTextInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InputText != nil {
v := *s.InputText
diff --git a/service/licensemanager/api_types.go b/service/licensemanager/api_types.go
index 039fa10f8fc..000cbae83fc 100644
--- a/service/licensemanager/api_types.go
+++ b/service/licensemanager/api_types.go
@@ -152,7 +152,7 @@ type LicenseConfigurationAssociation struct {
_ struct{} `type:"structure"`
// Time when the license configuration was associated with the resource.
- AssociationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AssociationTime *time.Time `type:"timestamp"`
// ARN of the resource associated with the license configuration.
ResourceArn *string `type:"string"`
@@ -175,7 +175,7 @@ type LicenseConfigurationUsage struct {
_ struct{} `type:"structure"`
// Time when the license configuration was initially associated with a resource.
- AssociationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AssociationTime *time.Time `type:"timestamp"`
// Number of licenses consumed out of the total provisioned in the license configuration.
ConsumedLicenses *int64 `type:"long"`
diff --git a/service/lightsail/api_op_CreateRelationalDatabaseFromSnapshot.go b/service/lightsail/api_op_CreateRelationalDatabaseFromSnapshot.go
index 795eb5b6217..52a42eb64a7 100644
--- a/service/lightsail/api_op_CreateRelationalDatabaseFromSnapshot.go
+++ b/service/lightsail/api_op_CreateRelationalDatabaseFromSnapshot.go
@@ -65,7 +65,7 @@ type CreateRelationalDatabaseFromSnapshotInput struct {
// * Specified in the Unix time format. For example, if you wish to use a
// restore time of October 1, 2018, at 8 PM UTC, then you input 1538424000
// as the restore time.
- RestoreTime *time.Time `locationName:"restoreTime" type:"timestamp" timestampFormat:"unix"`
+ RestoreTime *time.Time `locationName:"restoreTime" type:"timestamp"`
// The name of the source database.
SourceRelationalDatabaseName *string `locationName:"sourceRelationalDatabaseName" type:"string"`
diff --git a/service/lightsail/api_op_GetInstanceMetricData.go b/service/lightsail/api_op_GetInstanceMetricData.go
index 7e139a1c272..e054b3655cd 100644
--- a/service/lightsail/api_op_GetInstanceMetricData.go
+++ b/service/lightsail/api_op_GetInstanceMetricData.go
@@ -17,7 +17,7 @@ type GetInstanceMetricDataInput struct {
// The end time of the time period.
//
// EndTime is a required field
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"`
// The name of the instance for which you want to get metrics data.
//
@@ -37,7 +37,7 @@ type GetInstanceMetricDataInput struct {
// The start time of the time period.
//
// StartTime is a required field
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
// The instance statistics.
//
diff --git a/service/lightsail/api_op_GetLoadBalancerMetricData.go b/service/lightsail/api_op_GetLoadBalancerMetricData.go
index d55b8b9c767..922dd62980a 100644
--- a/service/lightsail/api_op_GetLoadBalancerMetricData.go
+++ b/service/lightsail/api_op_GetLoadBalancerMetricData.go
@@ -17,7 +17,7 @@ type GetLoadBalancerMetricDataInput struct {
// The end time of the period.
//
// EndTime is a required field
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"`
// The name of the load balancer.
//
@@ -97,7 +97,7 @@ type GetLoadBalancerMetricDataInput struct {
// The start time of the period.
//
// StartTime is a required field
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
// An array of statistics that you want to request metrics for. Valid values
// are listed below.
diff --git a/service/lightsail/api_op_GetRelationalDatabaseLogEvents.go b/service/lightsail/api_op_GetRelationalDatabaseLogEvents.go
index c232c0cd840..af166a34bda 100644
--- a/service/lightsail/api_op_GetRelationalDatabaseLogEvents.go
+++ b/service/lightsail/api_op_GetRelationalDatabaseLogEvents.go
@@ -23,7 +23,7 @@ type GetRelationalDatabaseLogEventsInput struct {
// * Specified in the Unix time format. For example, if you wish to use an
// end time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as
// the end time.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The name of the log stream.
//
@@ -58,7 +58,7 @@ type GetRelationalDatabaseLogEventsInput struct {
// * Specified in the Unix time format. For example, if you wish to use a
// start time of October 1, 2018, at 8 PM UTC, then you input 1538424000
// as the start time.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/lightsail/api_op_GetRelationalDatabaseMasterUserPassword.go b/service/lightsail/api_op_GetRelationalDatabaseMasterUserPassword.go
index 1fc76f83da9..385b5672130 100644
--- a/service/lightsail/api_op_GetRelationalDatabaseMasterUserPassword.go
+++ b/service/lightsail/api_op_GetRelationalDatabaseMasterUserPassword.go
@@ -55,7 +55,7 @@ type GetRelationalDatabaseMasterUserPasswordOutput struct {
// The timestamp when the specified version of the master user password was
// created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The master user password for the password version specified.
MasterUserPassword *string `locationName:"masterUserPassword" type:"string"`
diff --git a/service/lightsail/api_op_GetRelationalDatabaseMetricData.go b/service/lightsail/api_op_GetRelationalDatabaseMetricData.go
index fce69e28a98..247448ec7a6 100644
--- a/service/lightsail/api_op_GetRelationalDatabaseMetricData.go
+++ b/service/lightsail/api_op_GetRelationalDatabaseMetricData.go
@@ -25,7 +25,7 @@ type GetRelationalDatabaseMetricDataInput struct {
// the end time.
//
// EndTime is a required field
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"`
// The name of the metric data to return.
//
@@ -53,7 +53,7 @@ type GetRelationalDatabaseMetricDataInput struct {
// as the start time.
//
// StartTime is a required field
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
// The array of statistics for your metric data request.
//
diff --git a/service/lightsail/api_types.go b/service/lightsail/api_types.go
index 4dfa85c1065..c2cf766d5ca 100644
--- a/service/lightsail/api_types.go
+++ b/service/lightsail/api_types.go
@@ -150,7 +150,7 @@ type CloudFormationStackRecord struct {
Arn *string `locationName:"arn" type:"string"`
// The date when the CloudFormation stack record was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// A list of objects describing the destination service, which is AWS CloudFormation,
// and the Amazon Resource Name (ARN) of the AWS CloudFormation stack.
@@ -236,7 +236,7 @@ type Disk struct {
AttachmentState *string `locationName:"attachmentState" deprecated:"true" type:"string"`
// The date when the disk was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// (Deprecated) The number of GB in use by the disk.
//
@@ -337,7 +337,7 @@ type DiskSnapshot struct {
Arn *string `locationName:"arn" type:"string"`
// The date when the disk snapshot was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The Amazon Resource Name (ARN) of the source disk from which the disk snapshot
// was created.
@@ -410,7 +410,7 @@ type Domain struct {
Arn *string `locationName:"arn" type:"string"`
// The date when the domain recordset was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// An array of key-value pairs containing information about the domain entries.
DomainEntries []DomainEntry `locationName:"domainEntries" type:"list"`
@@ -505,7 +505,7 @@ type ExportSnapshotRecord struct {
Arn *string `locationName:"arn" type:"string"`
// The date when the export snapshot record was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// A list of objects describing the destination of the export snapshot record.
DestinationInfo *DestinationInfo `locationName:"destinationInfo" type:"structure"`
@@ -541,7 +541,7 @@ type ExportSnapshotRecordSourceInfo struct {
Arn *string `locationName:"arn" type:"string"`
// The date when the source instance or disk snapshot was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// A list of objects describing a disk snapshot.
DiskSnapshotInfo *DiskSnapshotInfo `locationName:"diskSnapshotInfo" type:"structure"`
@@ -595,18 +595,18 @@ type HostKeyAttributes struct {
// The returned RDP certificate is not valid after this point in time.
//
// This value is listed only for RDP certificates.
- NotValidAfter *time.Time `locationName:"notValidAfter" type:"timestamp" timestampFormat:"unix"`
+ NotValidAfter *time.Time `locationName:"notValidAfter" type:"timestamp"`
// The returned RDP certificate is valid after this point in time.
//
// This value is listed only for RDP certificates.
- NotValidBefore *time.Time `locationName:"notValidBefore" type:"timestamp" timestampFormat:"unix"`
+ NotValidBefore *time.Time `locationName:"notValidBefore" type:"timestamp"`
// The public SSH host key or the RDP certificate.
PublicKey *string `locationName:"publicKey" type:"string"`
// The time that the SSH host key or RDP certificate was recorded by Lightsail.
- WitnessedAt *time.Time `locationName:"witnessedAt" type:"timestamp" timestampFormat:"unix"`
+ WitnessedAt *time.Time `locationName:"witnessedAt" type:"timestamp"`
}
// String returns the string representation
@@ -632,7 +632,7 @@ type Instance struct {
BundleId *string `locationName:"bundleId" type:"string"`
// The timestamp when the instance was created (e.g., 1479734909.17).
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The size of the vCPU and the amount of RAM for the instance.
Hardware *InstanceHardware `locationName:"hardware" type:"structure"`
@@ -698,7 +698,7 @@ type InstanceAccessDetails struct {
CertKey *string `locationName:"certKey" type:"string"`
// For SSH access, the date on which the temporary keys expire.
- ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp" timestampFormat:"unix"`
+ ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp"`
// Describes the public SSH host keys or the RDP certificate.
HostKeys []HostKeyAttributes `locationName:"hostKeys" type:"list"`
@@ -1027,7 +1027,7 @@ type InstanceSnapshot struct {
Arn *string `locationName:"arn" type:"string"`
// The timestamp when the snapshot was created (e.g., 1479907467.024).
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// An array of disk objects containing information about all block storage disks.
FromAttachedDisks []Disk `locationName:"fromAttachedDisks" type:"list"`
@@ -1126,7 +1126,7 @@ type KeyPair struct {
Arn *string `locationName:"arn" type:"string"`
// The timestamp when the key pair was created (e.g., 1479816991.349).
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The RSA fingerprint of the key pair.
Fingerprint *string `locationName:"fingerprint" type:"string"`
@@ -1168,7 +1168,7 @@ type LoadBalancer struct {
ConfigurationOptions map[string]string `locationName:"configurationOptions" type:"map"`
// The date when your load balancer was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The DNS name of your Lightsail load balancer.
DnsName *string `locationName:"dnsName" type:"string"`
@@ -1238,7 +1238,7 @@ type LoadBalancerTlsCertificate struct {
Arn *string `locationName:"arn" type:"string"`
// The time when you created your SSL/TLS certificate.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The domain name for your SSL/TLS certificate.
DomainName *string `locationName:"domainName" type:"string"`
@@ -1254,7 +1254,7 @@ type LoadBalancerTlsCertificate struct {
IsAttached *bool `locationName:"isAttached" type:"boolean"`
// The time when the SSL/TLS certificate was issued.
- IssuedAt *time.Time `locationName:"issuedAt" type:"timestamp" timestampFormat:"unix"`
+ IssuedAt *time.Time `locationName:"issuedAt" type:"timestamp"`
// The issuer of the certificate.
Issuer *string `locationName:"issuer" type:"string"`
@@ -1273,10 +1273,10 @@ type LoadBalancerTlsCertificate struct {
Name *string `locationName:"name" type:"string"`
// The timestamp when the SSL/TLS certificate expires.
- NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"unix"`
+ NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`
// The timestamp when the SSL/TLS certificate is first valid.
- NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"unix"`
+ NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`
// An object containing information about the status of Lightsail's managed
// renewal for the certificate.
@@ -1310,7 +1310,7 @@ type LoadBalancerTlsCertificate struct {
RevocationReason LoadBalancerTlsCertificateRevocationReason `locationName:"revocationReason" type:"string" enum:"true"`
// The timestamp when the SSL/TLS certificate was revoked.
- RevokedAt *time.Time `locationName:"revokedAt" type:"timestamp" timestampFormat:"unix"`
+ RevokedAt *time.Time `locationName:"revokedAt" type:"timestamp"`
// The serial number of the certificate.
Serial *string `locationName:"serial" type:"string"`
@@ -1436,7 +1436,7 @@ type LogEvent struct {
_ struct{} `type:"structure"`
// The timestamp when the database log event was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The message of the database log event.
Message *string `locationName:"message" type:"string"`
@@ -1468,7 +1468,7 @@ type MetricDatapoint struct {
Sum *float64 `locationName:"sum" type:"double"`
// The timestamp (e.g., 1479816991.349).
- Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
// The unit.
Unit MetricUnit `locationName:"unit" type:"string" enum:"true"`
@@ -1500,7 +1500,7 @@ type Operation struct {
_ struct{} `type:"structure"`
// The timestamp when the operation was initialized (e.g., 1479816991.349).
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The error code.
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -1533,7 +1533,7 @@ type Operation struct {
Status OperationStatus `locationName:"status" type:"string" enum:"true"`
// The timestamp when the status was changed (e.g., 1479816991.349).
- StatusChangedAt *time.Time `locationName:"statusChangedAt" type:"timestamp" timestampFormat:"unix"`
+ StatusChangedAt *time.Time `locationName:"statusChangedAt" type:"timestamp"`
}
// String returns the string representation
@@ -1586,7 +1586,7 @@ type PendingMaintenanceAction struct {
Action *string `locationName:"action" type:"string"`
// The effective date of the pending database maintenance action.
- CurrentApplyDate *time.Time `locationName:"currentApplyDate" type:"timestamp" timestampFormat:"unix"`
+ CurrentApplyDate *time.Time `locationName:"currentApplyDate" type:"timestamp"`
// Additional detail about the pending database maintenance action.
Description *string `locationName:"description" type:"string"`
@@ -1681,7 +1681,7 @@ type RelationalDatabase struct {
BackupRetentionEnabled *bool `locationName:"backupRetentionEnabled" type:"boolean"`
// The timestamp when the database was created. Formatted in Unix time.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The database software (for example, MySQL).
Engine *string `locationName:"engine" type:"string"`
@@ -1694,7 +1694,7 @@ type RelationalDatabase struct {
// The latest point in time to which the database can be restored. Formatted
// in Unix time.
- LatestRestorableTime *time.Time `locationName:"latestRestorableTime" type:"timestamp" timestampFormat:"unix"`
+ LatestRestorableTime *time.Time `locationName:"latestRestorableTime" type:"timestamp"`
// The Region name and Availability Zone where the database is located.
Location *ResourceLocation `locationName:"location" type:"structure"`
@@ -1861,7 +1861,7 @@ type RelationalDatabaseEvent struct {
_ struct{} `type:"structure"`
// The timestamp when the database event was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The category that the database event belongs to.
EventCategories []string `locationName:"eventCategories" type:"list"`
@@ -1944,7 +1944,7 @@ type RelationalDatabaseSnapshot struct {
Arn *string `locationName:"arn" type:"string"`
// The timestamp when the database snapshot was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The software of the database snapshot (for example, MySQL)
Engine *string `locationName:"engine" type:"string"`
@@ -2026,7 +2026,7 @@ type StaticIp struct {
AttachedTo *string `locationName:"attachedTo" type:"string"`
// The timestamp when the static IP was created (e.g., 1479735304.222).
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The static IP address.
IpAddress *string `locationName:"ipAddress" type:"string"`
diff --git a/service/machinelearning/api_op_GetBatchPrediction.go b/service/machinelearning/api_op_GetBatchPrediction.go
index 7da4d10bad3..8a699a57821 100644
--- a/service/machinelearning/api_op_GetBatchPrediction.go
+++ b/service/machinelearning/api_op_GetBatchPrediction.go
@@ -60,7 +60,7 @@ type GetBatchPredictionOutput struct {
// The time when the BatchPrediction was created. The time is expressed in epoch
// time.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The AWS user account that invoked the BatchPrediction. The account type can
// be either an AWS root account or an AWS Identity and Access Management (IAM)
@@ -70,7 +70,7 @@ type GetBatchPredictionOutput struct {
// The epoch time when Amazon Machine Learning marked the BatchPrediction as
// COMPLETED or FAILED. FinishedAt is only available when the BatchPrediction
// is in the COMPLETED or FAILED state.
- FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FinishedAt *time.Time `type:"timestamp"`
// The location of the data file or directory in Amazon Simple Storage Service
// (Amazon S3).
@@ -82,7 +82,7 @@ type GetBatchPredictionOutput struct {
// The time of the most recent edit to BatchPrediction. The time is expressed
// in epoch time.
- LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `type:"timestamp"`
// A link to the file that contains logs of the CreateBatchPrediction operation.
LogUri *string `type:"string"`
@@ -105,7 +105,7 @@ type GetBatchPredictionOutput struct {
// The epoch time when Amazon Machine Learning marked the BatchPrediction as
// INPROGRESS. StartedAt isn't available if the BatchPrediction is in the PENDING
// state.
- StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `type:"timestamp"`
// The status of the BatchPrediction, which can be one of the following values:
//
diff --git a/service/machinelearning/api_op_GetDataSource.go b/service/machinelearning/api_op_GetDataSource.go
index 21114a05d35..0e007e259de 100644
--- a/service/machinelearning/api_op_GetDataSource.go
+++ b/service/machinelearning/api_op_GetDataSource.go
@@ -64,7 +64,7 @@ type GetDataSourceOutput struct {
// The time that the DataSource was created. The time is expressed in epoch
// time.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The AWS user account from which the DataSource was created. The account type
// can be either an AWS root account or an AWS Identity and Access Management
@@ -94,11 +94,11 @@ type GetDataSourceOutput struct {
// The epoch time when Amazon Machine Learning marked the DataSource as COMPLETED
// or FAILED. FinishedAt is only available when the DataSource is in the COMPLETED
// or FAILED state.
- FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FinishedAt *time.Time `type:"timestamp"`
// The time of the most recent edit to the DataSource. The time is expressed
// in epoch time.
- LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `type:"timestamp"`
// A link to the file containing logs of CreateDataSourceFrom* operations.
LogUri *string `type:"string"`
@@ -125,7 +125,7 @@ type GetDataSourceOutput struct {
// The epoch time when Amazon Machine Learning marked the DataSource as INPROGRESS.
// StartedAt isn't available if the DataSource is in the PENDING state.
- StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `type:"timestamp"`
// The current status of the DataSource. This element can have one of the following
// values:
diff --git a/service/machinelearning/api_op_GetEvaluation.go b/service/machinelearning/api_op_GetEvaluation.go
index 430b7bc0685..8ad478d31b0 100644
--- a/service/machinelearning/api_op_GetEvaluation.go
+++ b/service/machinelearning/api_op_GetEvaluation.go
@@ -53,7 +53,7 @@ type GetEvaluationOutput struct {
// The time that the Evaluation was created. The time is expressed in epoch
// time.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The AWS user account that invoked the evaluation. The account type can be
// either an AWS root account or an AWS Identity and Access Management (IAM)
@@ -69,7 +69,7 @@ type GetEvaluationOutput struct {
// The epoch time when Amazon Machine Learning marked the Evaluation as COMPLETED
// or FAILED. FinishedAt is only available when the Evaluation is in the COMPLETED
// or FAILED state.
- FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FinishedAt *time.Time `type:"timestamp"`
// The location of the data file or directory in Amazon Simple Storage Service
// (Amazon S3).
@@ -77,7 +77,7 @@ type GetEvaluationOutput struct {
// The time of the most recent edit to the Evaluation. The time is expressed
// in epoch time.
- LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `type:"timestamp"`
// A link to the file that contains logs of the CreateEvaluation operation.
LogUri *string `type:"string"`
@@ -111,7 +111,7 @@ type GetEvaluationOutput struct {
// The epoch time when Amazon Machine Learning marked the Evaluation as INPROGRESS.
// StartedAt isn't available if the Evaluation is in the PENDING state.
- StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `type:"timestamp"`
// The status of the evaluation. This element can have one of the following
// values:
diff --git a/service/machinelearning/api_op_GetMLModel.go b/service/machinelearning/api_op_GetMLModel.go
index 1fe031ac5d2..043e9cae38f 100644
--- a/service/machinelearning/api_op_GetMLModel.go
+++ b/service/machinelearning/api_op_GetMLModel.go
@@ -59,7 +59,7 @@ type GetMLModelOutput struct {
ComputeTime *int64 `type:"long"`
// The time that the MLModel was created. The time is expressed in epoch time.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The AWS user account from which the MLModel was created. The account type
// can be either an AWS root account or an AWS Identity and Access Management
@@ -72,7 +72,7 @@ type GetMLModelOutput struct {
// The epoch time when Amazon Machine Learning marked the MLModel as COMPLETED
// or FAILED. FinishedAt is only available when the MLModel is in the COMPLETED
// or FAILED state.
- FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FinishedAt *time.Time `type:"timestamp"`
// The location of the data file or directory in Amazon Simple Storage Service
// (Amazon S3).
@@ -80,7 +80,7 @@ type GetMLModelOutput struct {
// The time of the most recent edit to the MLModel. The time is expressed in
// epoch time.
- LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `type:"timestamp"`
// A link to the file that contains logs of the CreateMLModel operation.
LogUri *string `type:"string"`
@@ -128,14 +128,14 @@ type GetMLModelOutput struct {
// The time of the most recent edit to the ScoreThreshold. The time is expressed
// in epoch time.
- ScoreThresholdLastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ScoreThresholdLastUpdatedAt *time.Time `type:"timestamp"`
// Long integer type that is a 64-bit signed number.
SizeInBytes *int64 `type:"long"`
// The epoch time when Amazon Machine Learning marked the MLModel as INPROGRESS.
// StartedAt isn't available if the MLModel is in the PENDING state.
- StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `type:"timestamp"`
// The current status of the MLModel. This element can have one of the following
// values:
diff --git a/service/machinelearning/api_types.go b/service/machinelearning/api_types.go
index 22ba2b23ba6..5bf9bbcb292 100644
--- a/service/machinelearning/api_types.go
+++ b/service/machinelearning/api_types.go
@@ -31,7 +31,7 @@ type BatchPrediction struct {
// The time that the BatchPrediction was created. The time is expressed in epoch
// time.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The AWS user account that invoked the BatchPrediction. The account type can
// be either an AWS root account or an AWS Identity and Access Management (IAM)
@@ -39,7 +39,7 @@ type BatchPrediction struct {
CreatedByIamUser *string `type:"string"`
// A timestamp represented in epoch time.
- FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FinishedAt *time.Time `type:"timestamp"`
// The location of the data file or directory in Amazon Simple Storage Service
// (Amazon S3).
@@ -50,7 +50,7 @@ type BatchPrediction struct {
// The time of the most recent edit to the BatchPrediction. The time is expressed
// in epoch time.
- LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `type:"timestamp"`
// The ID of the MLModel that generated predictions for the BatchPrediction
// request.
@@ -69,7 +69,7 @@ type BatchPrediction struct {
OutputUri *string `type:"string"`
// A timestamp represented in epoch time.
- StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `type:"timestamp"`
// The status of the BatchPrediction. This element can have one of the following
// values:
@@ -112,7 +112,7 @@ type DataSource struct {
// The time that the DataSource was created. The time is expressed in epoch
// time.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The AWS user account from which the DataSource was created. The account type
// can be either an AWS root account or an AWS Identity and Access Management
@@ -135,11 +135,11 @@ type DataSource struct {
DataSourceId *string `min:"1" type:"string"`
// A timestamp represented in epoch time.
- FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FinishedAt *time.Time `type:"timestamp"`
// The time of the most recent edit to the BatchPrediction. The time is expressed
// in epoch time.
- LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `type:"timestamp"`
// A description of the most recent details about creating the DataSource.
Message *string `type:"string"`
@@ -161,7 +161,7 @@ type DataSource struct {
RoleARN *string `min:"1" type:"string"`
// A timestamp represented in epoch time.
- StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `type:"timestamp"`
// The current status of the DataSource. This element can have one of the following
// values:
@@ -197,7 +197,7 @@ type Evaluation struct {
// The time that the Evaluation was created. The time is expressed in epoch
// time.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The AWS user account that invoked the evaluation. The account type can be
// either an AWS root account or an AWS Identity and Access Management (IAM)
@@ -211,7 +211,7 @@ type Evaluation struct {
EvaluationId *string `min:"1" type:"string"`
// A timestamp represented in epoch time.
- FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FinishedAt *time.Time `type:"timestamp"`
// The location and name of the data in Amazon Simple Storage Server (Amazon
// S3) that is used in the evaluation.
@@ -219,7 +219,7 @@ type Evaluation struct {
// The time of the most recent edit to the Evaluation. The time is expressed
// in epoch time.
- LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `type:"timestamp"`
// The ID of the MLModel that is the focus of the evaluation.
MLModelId *string `min:"1" type:"string"`
@@ -249,7 +249,7 @@ type Evaluation struct {
PerformanceMetrics *PerformanceMetrics `type:"structure"`
// A timestamp represented in epoch time.
- StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `type:"timestamp"`
// The status of the evaluation. This element can have one of the following
// values:
@@ -290,7 +290,7 @@ type MLModel struct {
ComputeTime *int64 `type:"long"`
// The time that the MLModel was created. The time is expressed in epoch time.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The AWS user account from which the MLModel was created. The account type
// can be either an AWS root account or an AWS Identity and Access Management
@@ -301,7 +301,7 @@ type MLModel struct {
EndpointInfo *RealtimeEndpointInfo `type:"structure"`
// A timestamp represented in epoch time.
- FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FinishedAt *time.Time `type:"timestamp"`
// The location of the data file or directory in Amazon Simple Storage Service
// (Amazon S3).
@@ -309,7 +309,7 @@ type MLModel struct {
// The time of the most recent edit to the MLModel. The time is expressed in
// epoch time.
- LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `type:"timestamp"`
// The ID assigned to the MLModel at creation.
MLModelId *string `min:"1" type:"string"`
@@ -336,13 +336,13 @@ type MLModel struct {
// The time of the most recent edit to the ScoreThreshold. The time is expressed
// in epoch time.
- ScoreThresholdLastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ScoreThresholdLastUpdatedAt *time.Time `type:"timestamp"`
// Long integer type that is a 64-bit signed number.
SizeInBytes *int64 `type:"long"`
// A timestamp represented in epoch time.
- StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartedAt *time.Time `type:"timestamp"`
// The current status of an MLModel. This element can have one of the following
// values:
@@ -826,7 +826,7 @@ type RealtimeEndpointInfo struct {
// The time that the request to create the real-time endpoint for the MLModel
// was received. The time is expressed in epoch time.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The current status of the real-time endpoint for the MLModel. This element
// can have one of the following values:
diff --git a/service/managedblockchain/api_op_CreateMember.go b/service/managedblockchain/api_op_CreateMember.go
index 77ed58f8ff6..b9f22f25b87 100644
--- a/service/managedblockchain/api_op_CreateMember.go
+++ b/service/managedblockchain/api_op_CreateMember.go
@@ -87,7 +87,7 @@ func (s *CreateMemberInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateMemberInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientRequestToken string
if s.ClientRequestToken != nil {
diff --git a/service/managedblockchain/api_op_CreateNetwork.go b/service/managedblockchain/api_op_CreateNetwork.go
index 0c8ec9fb3df..7965656401b 100644
--- a/service/managedblockchain/api_op_CreateNetwork.go
+++ b/service/managedblockchain/api_op_CreateNetwork.go
@@ -120,7 +120,7 @@ func (s *CreateNetworkInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateNetworkInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientRequestToken string
if s.ClientRequestToken != nil {
diff --git a/service/managedblockchain/api_op_CreateNode.go b/service/managedblockchain/api_op_CreateNode.go
index 0b1602ae4c4..d04bd130e5e 100644
--- a/service/managedblockchain/api_op_CreateNode.go
+++ b/service/managedblockchain/api_op_CreateNode.go
@@ -86,7 +86,7 @@ func (s *CreateNodeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateNodeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientRequestToken string
if s.ClientRequestToken != nil {
diff --git a/service/managedblockchain/api_op_CreateProposal.go b/service/managedblockchain/api_op_CreateProposal.go
index 41d466fcce3..e81269eda96 100644
--- a/service/managedblockchain/api_op_CreateProposal.go
+++ b/service/managedblockchain/api_op_CreateProposal.go
@@ -94,7 +94,7 @@ func (s *CreateProposalInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateProposalInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Actions != nil {
v := s.Actions
diff --git a/service/managedblockchain/api_op_DeleteMember.go b/service/managedblockchain/api_op_DeleteMember.go
index 07c3d5acc8b..ed59724a5a3 100644
--- a/service/managedblockchain/api_op_DeleteMember.go
+++ b/service/managedblockchain/api_op_DeleteMember.go
@@ -56,7 +56,7 @@ func (s *DeleteMemberInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteMemberInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MemberId != nil {
v := *s.MemberId
diff --git a/service/managedblockchain/api_op_DeleteNode.go b/service/managedblockchain/api_op_DeleteNode.go
index 0897535ed26..0974033f690 100644
--- a/service/managedblockchain/api_op_DeleteNode.go
+++ b/service/managedblockchain/api_op_DeleteNode.go
@@ -68,7 +68,7 @@ func (s *DeleteNodeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteNodeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MemberId != nil {
v := *s.MemberId
diff --git a/service/managedblockchain/api_op_GetMember.go b/service/managedblockchain/api_op_GetMember.go
index ad6a08720f9..73682eefc6c 100644
--- a/service/managedblockchain/api_op_GetMember.go
+++ b/service/managedblockchain/api_op_GetMember.go
@@ -56,7 +56,7 @@ func (s *GetMemberInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMemberInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MemberId != nil {
v := *s.MemberId
diff --git a/service/managedblockchain/api_op_GetNetwork.go b/service/managedblockchain/api_op_GetNetwork.go
index 448d43f90d2..200f2c1abb7 100644
--- a/service/managedblockchain/api_op_GetNetwork.go
+++ b/service/managedblockchain/api_op_GetNetwork.go
@@ -44,7 +44,7 @@ func (s *GetNetworkInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetNetworkInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NetworkId != nil {
v := *s.NetworkId
diff --git a/service/managedblockchain/api_op_GetNode.go b/service/managedblockchain/api_op_GetNode.go
index 8f5b10da043..07e0b1f8f24 100644
--- a/service/managedblockchain/api_op_GetNode.go
+++ b/service/managedblockchain/api_op_GetNode.go
@@ -68,7 +68,7 @@ func (s *GetNodeInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetNodeInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MemberId != nil {
v := *s.MemberId
diff --git a/service/managedblockchain/api_op_GetProposal.go b/service/managedblockchain/api_op_GetProposal.go
index 8be3a145305..f7c3a3a3c60 100644
--- a/service/managedblockchain/api_op_GetProposal.go
+++ b/service/managedblockchain/api_op_GetProposal.go
@@ -56,7 +56,7 @@ func (s *GetProposalInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetProposalInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NetworkId != nil {
v := *s.NetworkId
diff --git a/service/managedblockchain/api_op_ListInvitations.go b/service/managedblockchain/api_op_ListInvitations.go
index c031fcf2c71..a3171dcddf0 100644
--- a/service/managedblockchain/api_op_ListInvitations.go
+++ b/service/managedblockchain/api_op_ListInvitations.go
@@ -41,7 +41,7 @@ func (s *ListInvitationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListInvitationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/managedblockchain/api_op_ListMembers.go b/service/managedblockchain/api_op_ListMembers.go
index dc42c084594..ad13965e473 100644
--- a/service/managedblockchain/api_op_ListMembers.go
+++ b/service/managedblockchain/api_op_ListMembers.go
@@ -65,7 +65,7 @@ func (s *ListMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NetworkId != nil {
v := *s.NetworkId
diff --git a/service/managedblockchain/api_op_ListNetworks.go b/service/managedblockchain/api_op_ListNetworks.go
index f57dfa36aab..2adc03d7cff 100644
--- a/service/managedblockchain/api_op_ListNetworks.go
+++ b/service/managedblockchain/api_op_ListNetworks.go
@@ -52,7 +52,7 @@ func (s *ListNetworksInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListNetworksInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.Framework) > 0 {
v := s.Framework
diff --git a/service/managedblockchain/api_op_ListNodes.go b/service/managedblockchain/api_op_ListNodes.go
index 979de70eb80..6c10ee13f42 100644
--- a/service/managedblockchain/api_op_ListNodes.go
+++ b/service/managedblockchain/api_op_ListNodes.go
@@ -69,7 +69,7 @@ func (s *ListNodesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListNodesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MemberId != nil {
v := *s.MemberId
diff --git a/service/managedblockchain/api_op_ListProposalVotes.go b/service/managedblockchain/api_op_ListProposalVotes.go
index 22c156351e4..ff9e8cfaa3d 100644
--- a/service/managedblockchain/api_op_ListProposalVotes.go
+++ b/service/managedblockchain/api_op_ListProposalVotes.go
@@ -65,7 +65,7 @@ func (s *ListProposalVotesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListProposalVotesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NetworkId != nil {
v := *s.NetworkId
diff --git a/service/managedblockchain/api_op_ListProposals.go b/service/managedblockchain/api_op_ListProposals.go
index d0e4b7d802a..37088c62de5 100644
--- a/service/managedblockchain/api_op_ListProposals.go
+++ b/service/managedblockchain/api_op_ListProposals.go
@@ -53,7 +53,7 @@ func (s *ListProposalsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListProposalsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NetworkId != nil {
v := *s.NetworkId
diff --git a/service/managedblockchain/api_op_RejectInvitation.go b/service/managedblockchain/api_op_RejectInvitation.go
index 4977ebf16fb..c6b61143b6b 100644
--- a/service/managedblockchain/api_op_RejectInvitation.go
+++ b/service/managedblockchain/api_op_RejectInvitation.go
@@ -44,7 +44,7 @@ func (s *RejectInvitationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RejectInvitationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InvitationId != nil {
v := *s.InvitationId
diff --git a/service/managedblockchain/api_op_VoteOnProposal.go b/service/managedblockchain/api_op_VoteOnProposal.go
index 3c31ccff3d3..f71836072b0 100644
--- a/service/managedblockchain/api_op_VoteOnProposal.go
+++ b/service/managedblockchain/api_op_VoteOnProposal.go
@@ -76,7 +76,7 @@ func (s *VoteOnProposalInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s VoteOnProposalInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.Vote) > 0 {
v := s.Vote
diff --git a/service/managedblockchain/api_types.go b/service/managedblockchain/api_types.go
index 25492a673fb..367d97ff4fe 100644
--- a/service/managedblockchain/api_types.go
+++ b/service/managedblockchain/api_types.go
@@ -88,13 +88,13 @@ type Invitation struct {
_ struct{} `type:"structure"`
// The date and time that the invitation was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The date and time that the invitation expires. This is the CreationDate plus
// the ProposalDurationInHours that is specified in the ProposalThresholdPolicy.
// After this date and time, the invitee can no longer create a member and join
// the network using this InvitationId.
- ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The unique identifier for the invitation.
InvitationId *string `min:"1" type:"string"`
@@ -131,13 +131,15 @@ func (s Invitation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.ExpirationDate != nil {
v := *s.ExpirationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ExpirationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ExpirationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.InvitationId != nil {
v := *s.InvitationId
@@ -208,7 +210,7 @@ type Member struct {
_ struct{} `type:"structure"`
// The date and time that the member was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// An optional description for the member.
Description *string `type:"string"`
@@ -258,7 +260,8 @@ func (s Member) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -549,7 +552,7 @@ type MemberSummary struct {
_ struct{} `type:"structure"`
// The date and time that the member was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// An optional description of the member.
Description *string `type:"string"`
@@ -596,7 +599,8 @@ func (s MemberSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -637,7 +641,7 @@ type Network struct {
_ struct{} `type:"structure"`
// The date and time that the network was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// Attributes of the blockchain framework for the network.
Description *string `type:"string"`
@@ -680,7 +684,8 @@ func (s Network) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -890,7 +895,7 @@ type NetworkSummary struct {
_ struct{} `type:"structure"`
// The date and time that the network was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// An optional description of the network.
Description *string `type:"string"`
@@ -922,7 +927,8 @@ func (s NetworkSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -972,7 +978,7 @@ type Node struct {
AvailabilityZone *string `type:"string"`
// The date and time that the node was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// Attributes of the blockchain framework being used.
FrameworkAttributes *NodeFrameworkAttributes `type:"structure"`
@@ -1010,7 +1016,8 @@ func (s Node) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.FrameworkAttributes != nil {
v := s.FrameworkAttributes
@@ -1179,7 +1186,7 @@ type NodeSummary struct {
AvailabilityZone *string `type:"string"`
// The date and time that the node was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The unique identifier of the node.
Id *string `min:"1" type:"string"`
@@ -1208,7 +1215,8 @@ func (s NodeSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Id != nil {
v := *s.Id
@@ -1240,7 +1248,7 @@ type Proposal struct {
Actions *ProposalActions `type:"structure"`
// The date and time that the proposal was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The description of the proposal.
Description *string `type:"string"`
@@ -1250,7 +1258,7 @@ type Proposal struct {
// After this date and time, if members have not cast enough votes to determine
// the outcome according to the voting policy, the proposal is EXPIRED and Actions
// are not carried out.
- ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The unique identifier of the network for which the proposal is made.
NetworkId *string `min:"1" type:"string"`
@@ -1312,7 +1320,8 @@ func (s Proposal) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -1324,7 +1333,8 @@ func (s Proposal) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ExpirationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ExpirationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ExpirationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.NetworkId != nil {
v := *s.NetworkId
@@ -1456,7 +1466,7 @@ type ProposalSummary struct {
_ struct{} `type:"structure"`
// The date and time that the proposal was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The description of the proposal.
Description *string `type:"string"`
@@ -1466,7 +1476,7 @@ type ProposalSummary struct {
// After this date and time, if members have not cast enough votes to determine
// the outcome according to the voting policy, the proposal is EXPIRED and Actions
// are not carried out.
- ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The unique identifier of the proposal.
ProposalId *string `min:"1" type:"string"`
@@ -1509,7 +1519,8 @@ func (s ProposalSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -1521,7 +1532,8 @@ func (s ProposalSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ExpirationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ExpirationDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ExpirationDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.ProposalId != nil {
v := *s.ProposalId
diff --git a/service/marketplacecommerceanalytics/api_op_GenerateDataSet.go b/service/marketplacecommerceanalytics/api_op_GenerateDataSet.go
index a267ce6aaf2..68f8078737a 100644
--- a/service/marketplacecommerceanalytics/api_op_GenerateDataSet.go
+++ b/service/marketplacecommerceanalytics/api_op_GenerateDataSet.go
@@ -28,7 +28,7 @@ type GenerateDataSetInput struct {
// granularity for the desired month (the day value will be ignored).
//
// DataSetPublicationDate is a required field
- DataSetPublicationDate *time.Time `locationName:"dataSetPublicationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ DataSetPublicationDate *time.Time `locationName:"dataSetPublicationDate" type:"timestamp" required:"true"`
// The desired data set type.
//
diff --git a/service/marketplacecommerceanalytics/api_op_StartSupportDataExport.go b/service/marketplacecommerceanalytics/api_op_StartSupportDataExport.go
index 577edc6c038..7f128100440 100644
--- a/service/marketplacecommerceanalytics/api_op_StartSupportDataExport.go
+++ b/service/marketplacecommerceanalytics/api_op_StartSupportDataExport.go
@@ -53,7 +53,7 @@ type StartSupportDataExportInput struct {
// only affects the customer_support_contacts_data data set type.
//
// FromDate is a required field
- FromDate *time.Time `locationName:"fromDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ FromDate *time.Time `locationName:"fromDate" type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the Role with an attached permissions policy
// to interact with the provided AWS services.
diff --git a/service/marketplaceentitlementservice/api_types.go b/service/marketplaceentitlementservice/api_types.go
index 22fc6d5d899..0038bffd3c3 100644
--- a/service/marketplaceentitlementservice/api_types.go
+++ b/service/marketplaceentitlementservice/api_types.go
@@ -34,7 +34,7 @@ type Entitlement struct {
// the expiration date is the date at which the customer will renew or cancel
// their contract. Customers who are opting to renew their contract will still
// have entitlements with an expiration date.
- ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `type:"timestamp"`
// The product code for which the given entitlement applies. Product codes are
// provided by AWS Marketplace when the product listing is created.
diff --git a/service/marketplacemetering/api_op_MeterUsage.go b/service/marketplacemetering/api_op_MeterUsage.go
index 30f37f87499..92de47dd32f 100644
--- a/service/marketplacemetering/api_op_MeterUsage.go
+++ b/service/marketplacemetering/api_op_MeterUsage.go
@@ -31,7 +31,7 @@ type MeterUsageInput struct {
// is not before the start of the software usage.
//
// Timestamp is a required field
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ Timestamp *time.Time `type:"timestamp" required:"true"`
// It will be one of the fcp dimension name provided during the publishing of
// the product.
diff --git a/service/marketplacemetering/api_op_RegisterUsage.go b/service/marketplacemetering/api_op_RegisterUsage.go
index 8e0ae35154a..9d0be4a9090 100644
--- a/service/marketplacemetering/api_op_RegisterUsage.go
+++ b/service/marketplacemetering/api_op_RegisterUsage.go
@@ -65,7 +65,7 @@ type RegisterUsageOutput struct {
_ struct{} `type:"structure"`
// (Optional) Only included when public key version has expired
- PublicKeyRotationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ PublicKeyRotationTimestamp *time.Time `type:"timestamp"`
// JWT Token
Signature *string `type:"string"`
diff --git a/service/marketplacemetering/api_types.go b/service/marketplacemetering/api_types.go
index c495c6ec493..6945b5c98de 100644
--- a/service/marketplacemetering/api_types.go
+++ b/service/marketplacemetering/api_types.go
@@ -44,7 +44,7 @@ type UsageRecord struct {
// the timestamp value is not before the start of the software usage.
//
// Timestamp is a required field
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ Timestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/mediaconnect/api_op_AddFlowOutputs.go b/service/mediaconnect/api_op_AddFlowOutputs.go
index c089610005b..e99ead71088 100644
--- a/service/mediaconnect/api_op_AddFlowOutputs.go
+++ b/service/mediaconnect/api_op_AddFlowOutputs.go
@@ -57,7 +57,7 @@ func (s *AddFlowOutputsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AddFlowOutputsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Outputs != nil {
v := s.Outputs
diff --git a/service/mediaconnect/api_op_CreateFlow.go b/service/mediaconnect/api_op_CreateFlow.go
index 974b3d19adf..c1439951690 100644
--- a/service/mediaconnect/api_op_CreateFlow.go
+++ b/service/mediaconnect/api_op_CreateFlow.go
@@ -82,7 +82,7 @@ func (s *CreateFlowInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFlowInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AvailabilityZone != nil {
v := *s.AvailabilityZone
diff --git a/service/mediaconnect/api_op_DeleteFlow.go b/service/mediaconnect/api_op_DeleteFlow.go
index b2c43994fcb..e24b3b213ff 100644
--- a/service/mediaconnect/api_op_DeleteFlow.go
+++ b/service/mediaconnect/api_op_DeleteFlow.go
@@ -39,7 +39,7 @@ func (s *DeleteFlowInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFlowInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FlowArn != nil {
v := *s.FlowArn
diff --git a/service/mediaconnect/api_op_DescribeFlow.go b/service/mediaconnect/api_op_DescribeFlow.go
index e221c335395..8a96d46a603 100644
--- a/service/mediaconnect/api_op_DescribeFlow.go
+++ b/service/mediaconnect/api_op_DescribeFlow.go
@@ -39,7 +39,7 @@ func (s *DescribeFlowInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeFlowInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FlowArn != nil {
v := *s.FlowArn
diff --git a/service/mediaconnect/api_op_GrantFlowEntitlements.go b/service/mediaconnect/api_op_GrantFlowEntitlements.go
index 831f6f0b73d..4d8be8705e0 100644
--- a/service/mediaconnect/api_op_GrantFlowEntitlements.go
+++ b/service/mediaconnect/api_op_GrantFlowEntitlements.go
@@ -57,7 +57,7 @@ func (s *GrantFlowEntitlementsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GrantFlowEntitlementsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Entitlements != nil {
v := s.Entitlements
diff --git a/service/mediaconnect/api_op_ListEntitlements.go b/service/mediaconnect/api_op_ListEntitlements.go
index 89f37048706..2bee9abd250 100644
--- a/service/mediaconnect/api_op_ListEntitlements.go
+++ b/service/mediaconnect/api_op_ListEntitlements.go
@@ -39,7 +39,7 @@ func (s *ListEntitlementsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListEntitlementsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mediaconnect/api_op_ListFlows.go b/service/mediaconnect/api_op_ListFlows.go
index ef7d212be49..99c18302f5d 100644
--- a/service/mediaconnect/api_op_ListFlows.go
+++ b/service/mediaconnect/api_op_ListFlows.go
@@ -39,7 +39,7 @@ func (s *ListFlowsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFlowsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mediaconnect/api_op_ListTagsForResource.go b/service/mediaconnect/api_op_ListTagsForResource.go
index e52fc61fa64..0833f0a1216 100644
--- a/service/mediaconnect/api_op_ListTagsForResource.go
+++ b/service/mediaconnect/api_op_ListTagsForResource.go
@@ -39,7 +39,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/mediaconnect/api_op_RemoveFlowOutput.go b/service/mediaconnect/api_op_RemoveFlowOutput.go
index 59ba1639407..f4345969b6f 100644
--- a/service/mediaconnect/api_op_RemoveFlowOutput.go
+++ b/service/mediaconnect/api_op_RemoveFlowOutput.go
@@ -46,7 +46,7 @@ func (s *RemoveFlowOutputInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemoveFlowOutputInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FlowArn != nil {
v := *s.FlowArn
diff --git a/service/mediaconnect/api_op_RevokeFlowEntitlement.go b/service/mediaconnect/api_op_RevokeFlowEntitlement.go
index de5a3e90627..3f247093060 100644
--- a/service/mediaconnect/api_op_RevokeFlowEntitlement.go
+++ b/service/mediaconnect/api_op_RevokeFlowEntitlement.go
@@ -46,7 +46,7 @@ func (s *RevokeFlowEntitlementInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RevokeFlowEntitlementInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EntitlementArn != nil {
v := *s.EntitlementArn
diff --git a/service/mediaconnect/api_op_StartFlow.go b/service/mediaconnect/api_op_StartFlow.go
index 1b38998c862..70e0d7b00ee 100644
--- a/service/mediaconnect/api_op_StartFlow.go
+++ b/service/mediaconnect/api_op_StartFlow.go
@@ -39,7 +39,7 @@ func (s *StartFlowInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartFlowInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FlowArn != nil {
v := *s.FlowArn
diff --git a/service/mediaconnect/api_op_StopFlow.go b/service/mediaconnect/api_op_StopFlow.go
index 9474bb6ebce..48a84c30549 100644
--- a/service/mediaconnect/api_op_StopFlow.go
+++ b/service/mediaconnect/api_op_StopFlow.go
@@ -39,7 +39,7 @@ func (s *StopFlowInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StopFlowInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FlowArn != nil {
v := *s.FlowArn
diff --git a/service/mediaconnect/api_op_TagResource.go b/service/mediaconnect/api_op_TagResource.go
index 525fffddb45..5803b3d127c 100644
--- a/service/mediaconnect/api_op_TagResource.go
+++ b/service/mediaconnect/api_op_TagResource.go
@@ -52,7 +52,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/mediaconnect/api_op_UntagResource.go b/service/mediaconnect/api_op_UntagResource.go
index 43d1c40fb2e..8bd7c6ce089 100644
--- a/service/mediaconnect/api_op_UntagResource.go
+++ b/service/mediaconnect/api_op_UntagResource.go
@@ -47,7 +47,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/mediaconnect/api_op_UpdateFlowEntitlement.go b/service/mediaconnect/api_op_UpdateFlowEntitlement.go
index 4d0bb2d98eb..2f45f4f0f36 100644
--- a/service/mediaconnect/api_op_UpdateFlowEntitlement.go
+++ b/service/mediaconnect/api_op_UpdateFlowEntitlement.go
@@ -61,7 +61,7 @@ func (s *UpdateFlowEntitlementInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFlowEntitlementInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/mediaconnect/api_op_UpdateFlowOutput.go b/service/mediaconnect/api_op_UpdateFlowOutput.go
index d1bb7190282..69759001a32 100644
--- a/service/mediaconnect/api_op_UpdateFlowOutput.go
+++ b/service/mediaconnect/api_op_UpdateFlowOutput.go
@@ -74,7 +74,7 @@ func (s *UpdateFlowOutputInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFlowOutputInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/mediaconnect/api_op_UpdateFlowSource.go b/service/mediaconnect/api_op_UpdateFlowSource.go
index cea4492e6d8..b0b0b93a6c0 100644
--- a/service/mediaconnect/api_op_UpdateFlowSource.go
+++ b/service/mediaconnect/api_op_UpdateFlowSource.go
@@ -80,7 +80,7 @@ func (s *UpdateFlowSourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFlowSourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Decryption != nil {
v := s.Decryption
diff --git a/service/mediaconvert/api_op_AssociateCertificate.go b/service/mediaconvert/api_op_AssociateCertificate.go
index 8dcfeb1adf8..b448213efd6 100644
--- a/service/mediaconvert/api_op_AssociateCertificate.go
+++ b/service/mediaconvert/api_op_AssociateCertificate.go
@@ -44,7 +44,7 @@ func (s *AssociateCertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociateCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Arn != nil {
v := *s.Arn
diff --git a/service/mediaconvert/api_op_CancelJob.go b/service/mediaconvert/api_op_CancelJob.go
index 87456ffb808..bb2e89ee852 100644
--- a/service/mediaconvert/api_op_CancelJob.go
+++ b/service/mediaconvert/api_op_CancelJob.go
@@ -42,7 +42,7 @@ func (s *CancelJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediaconvert/api_op_CreateJob.go b/service/mediaconvert/api_op_CreateJob.go
index 753215f4ad2..dfec4eb1a4a 100644
--- a/service/mediaconvert/api_op_CreateJob.go
+++ b/service/mediaconvert/api_op_CreateJob.go
@@ -98,7 +98,7 @@ func (s *CreateJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccelerationSettings != nil {
v := s.AccelerationSettings
diff --git a/service/mediaconvert/api_op_CreateJobTemplate.go b/service/mediaconvert/api_op_CreateJobTemplate.go
index ed3d226aa20..cd17e855994 100644
--- a/service/mediaconvert/api_op_CreateJobTemplate.go
+++ b/service/mediaconvert/api_op_CreateJobTemplate.go
@@ -90,7 +90,7 @@ func (s *CreateJobTemplateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateJobTemplateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccelerationSettings != nil {
v := s.AccelerationSettings
diff --git a/service/mediaconvert/api_op_CreatePreset.go b/service/mediaconvert/api_op_CreatePreset.go
index 9034aae4dcc..fd4889f9b61 100644
--- a/service/mediaconvert/api_op_CreatePreset.go
+++ b/service/mediaconvert/api_op_CreatePreset.go
@@ -67,7 +67,7 @@ func (s *CreatePresetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreatePresetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Category != nil {
v := *s.Category
diff --git a/service/mediaconvert/api_op_CreateQueue.go b/service/mediaconvert/api_op_CreateQueue.go
index ab4f5b771a4..62c91566168 100644
--- a/service/mediaconvert/api_op_CreateQueue.go
+++ b/service/mediaconvert/api_op_CreateQueue.go
@@ -70,7 +70,7 @@ func (s *CreateQueueInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateQueueInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/mediaconvert/api_op_DeleteJobTemplate.go b/service/mediaconvert/api_op_DeleteJobTemplate.go
index ac58944580c..930605cff90 100644
--- a/service/mediaconvert/api_op_DeleteJobTemplate.go
+++ b/service/mediaconvert/api_op_DeleteJobTemplate.go
@@ -42,7 +42,7 @@ func (s *DeleteJobTemplateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteJobTemplateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/mediaconvert/api_op_DeletePreset.go b/service/mediaconvert/api_op_DeletePreset.go
index ce65e96b1f3..a565b9b397f 100644
--- a/service/mediaconvert/api_op_DeletePreset.go
+++ b/service/mediaconvert/api_op_DeletePreset.go
@@ -42,7 +42,7 @@ func (s *DeletePresetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePresetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/mediaconvert/api_op_DeleteQueue.go b/service/mediaconvert/api_op_DeleteQueue.go
index 24ea8a59980..31d08f323e9 100644
--- a/service/mediaconvert/api_op_DeleteQueue.go
+++ b/service/mediaconvert/api_op_DeleteQueue.go
@@ -43,7 +43,7 @@ func (s *DeleteQueueInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteQueueInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/mediaconvert/api_op_DescribeEndpoints.go b/service/mediaconvert/api_op_DescribeEndpoints.go
index ca2c923c037..bd49ae540c3 100644
--- a/service/mediaconvert/api_op_DescribeEndpoints.go
+++ b/service/mediaconvert/api_op_DescribeEndpoints.go
@@ -38,7 +38,7 @@ func (s DescribeEndpointsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeEndpointsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mediaconvert/api_op_DisassociateCertificate.go b/service/mediaconvert/api_op_DisassociateCertificate.go
index 50c43090d5c..e67be748888 100644
--- a/service/mediaconvert/api_op_DisassociateCertificate.go
+++ b/service/mediaconvert/api_op_DisassociateCertificate.go
@@ -44,7 +44,7 @@ func (s *DisassociateCertificateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateCertificateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Arn != nil {
v := *s.Arn
diff --git a/service/mediaconvert/api_op_GetJob.go b/service/mediaconvert/api_op_GetJob.go
index 1e2def1a83c..4e5dcf36a77 100644
--- a/service/mediaconvert/api_op_GetJob.go
+++ b/service/mediaconvert/api_op_GetJob.go
@@ -42,7 +42,7 @@ func (s *GetJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediaconvert/api_op_GetJobTemplate.go b/service/mediaconvert/api_op_GetJobTemplate.go
index 0d0ce108946..a6a52da4ac1 100644
--- a/service/mediaconvert/api_op_GetJobTemplate.go
+++ b/service/mediaconvert/api_op_GetJobTemplate.go
@@ -42,7 +42,7 @@ func (s *GetJobTemplateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetJobTemplateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/mediaconvert/api_op_GetPreset.go b/service/mediaconvert/api_op_GetPreset.go
index f8ef772cc28..311bf0760f9 100644
--- a/service/mediaconvert/api_op_GetPreset.go
+++ b/service/mediaconvert/api_op_GetPreset.go
@@ -42,7 +42,7 @@ func (s *GetPresetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetPresetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/mediaconvert/api_op_GetQueue.go b/service/mediaconvert/api_op_GetQueue.go
index a949b60147a..f1b5b4921e8 100644
--- a/service/mediaconvert/api_op_GetQueue.go
+++ b/service/mediaconvert/api_op_GetQueue.go
@@ -42,7 +42,7 @@ func (s *GetQueueInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetQueueInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/mediaconvert/api_op_ListJobTemplates.go b/service/mediaconvert/api_op_ListJobTemplates.go
index 4545074c59c..a4dc2f7c97a 100644
--- a/service/mediaconvert/api_op_ListJobTemplates.go
+++ b/service/mediaconvert/api_op_ListJobTemplates.go
@@ -60,7 +60,7 @@ func (s *ListJobTemplatesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListJobTemplatesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Category != nil {
v := *s.Category
diff --git a/service/mediaconvert/api_op_ListJobs.go b/service/mediaconvert/api_op_ListJobs.go
index f7b4134a8cc..fac6c92186a 100644
--- a/service/mediaconvert/api_op_ListJobs.go
+++ b/service/mediaconvert/api_op_ListJobs.go
@@ -56,7 +56,7 @@ func (s *ListJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mediaconvert/api_op_ListPresets.go b/service/mediaconvert/api_op_ListPresets.go
index efce4e24e83..a4ab1e85047 100644
--- a/service/mediaconvert/api_op_ListPresets.go
+++ b/service/mediaconvert/api_op_ListPresets.go
@@ -59,7 +59,7 @@ func (s *ListPresetsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPresetsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Category != nil {
v := *s.Category
diff --git a/service/mediaconvert/api_op_ListQueues.go b/service/mediaconvert/api_op_ListQueues.go
index a735cbc1bd7..4c33e28885f 100644
--- a/service/mediaconvert/api_op_ListQueues.go
+++ b/service/mediaconvert/api_op_ListQueues.go
@@ -53,7 +53,7 @@ func (s *ListQueuesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListQueuesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ListBy) > 0 {
v := s.ListBy
diff --git a/service/mediaconvert/api_op_ListTagsForResource.go b/service/mediaconvert/api_op_ListTagsForResource.go
index 0a82c43816c..cc8dbd407d5 100644
--- a/service/mediaconvert/api_op_ListTagsForResource.go
+++ b/service/mediaconvert/api_op_ListTagsForResource.go
@@ -45,7 +45,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Arn != nil {
v := *s.Arn
diff --git a/service/mediaconvert/api_op_TagResource.go b/service/mediaconvert/api_op_TagResource.go
index b6731762a77..8e17b23585c 100644
--- a/service/mediaconvert/api_op_TagResource.go
+++ b/service/mediaconvert/api_op_TagResource.go
@@ -55,7 +55,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Arn != nil {
v := *s.Arn
diff --git a/service/mediaconvert/api_op_UntagResource.go b/service/mediaconvert/api_op_UntagResource.go
index e459bafe933..c1e2bebd006 100644
--- a/service/mediaconvert/api_op_UntagResource.go
+++ b/service/mediaconvert/api_op_UntagResource.go
@@ -47,7 +47,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TagKeys != nil {
v := s.TagKeys
diff --git a/service/mediaconvert/api_op_UpdateJobTemplate.go b/service/mediaconvert/api_op_UpdateJobTemplate.go
index 70e14d2ded9..722d8265ff0 100644
--- a/service/mediaconvert/api_op_UpdateJobTemplate.go
+++ b/service/mediaconvert/api_op_UpdateJobTemplate.go
@@ -79,7 +79,7 @@ func (s *UpdateJobTemplateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateJobTemplateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccelerationSettings != nil {
v := s.AccelerationSettings
diff --git a/service/mediaconvert/api_op_UpdatePreset.go b/service/mediaconvert/api_op_UpdatePreset.go
index 56e20d6f241..5642f896cda 100644
--- a/service/mediaconvert/api_op_UpdatePreset.go
+++ b/service/mediaconvert/api_op_UpdatePreset.go
@@ -58,7 +58,7 @@ func (s *UpdatePresetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdatePresetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Category != nil {
v := *s.Category
diff --git a/service/mediaconvert/api_op_UpdateQueue.go b/service/mediaconvert/api_op_UpdateQueue.go
index b8bd6c776f1..b9951aa4655 100644
--- a/service/mediaconvert/api_op_UpdateQueue.go
+++ b/service/mediaconvert/api_op_UpdateQueue.go
@@ -64,7 +64,7 @@ func (s *UpdateQueueInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateQueueInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/mediaconvert/api_types.go b/service/mediaconvert/api_types.go
index a70e9c403cc..6ce85c3ce5c 100644
--- a/service/mediaconvert/api_types.go
+++ b/service/mediaconvert/api_types.go
@@ -6437,7 +6437,7 @@ type Job struct {
BillingTagsSource BillingTagsSource `locationName:"billingTagsSource" type:"string" enum:"true"`
// The time, in Unix epoch format in seconds, when the job got created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unixTimestamp"`
// A job's phase can be PROBING, TRANSCODING OR UPLOADING
CurrentPhase JobPhase `locationName:"currentPhase" type:"string" enum:"true"`
@@ -6537,7 +6537,8 @@ func (s Job) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if len(s.CurrentPhase) > 0 {
v := s.CurrentPhase
@@ -6823,13 +6824,13 @@ type JobTemplate struct {
Category *string `locationName:"category" type:"string"`
// The timestamp in epoch seconds for Job template creation.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unixTimestamp"`
// An optional description you create for each job template.
Description *string `locationName:"description" type:"string"`
// The timestamp in epoch seconds when the Job template was last updated.
- LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" timestampFormat:"unix"`
+ LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" timestampFormat:"unixTimestamp"`
// A name you create for each job template. Each name must be unique within
// your account.
@@ -6887,7 +6888,8 @@ func (s JobTemplate) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -6899,7 +6901,8 @@ func (s JobTemplate) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdated
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdated", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdated",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -9391,13 +9394,13 @@ type Preset struct {
Category *string `locationName:"category" type:"string"`
// The timestamp in epoch seconds for preset creation.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unixTimestamp"`
// An optional description you create for each preset.
Description *string `locationName:"description" type:"string"`
// The timestamp in epoch seconds when the preset was last updated.
- LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" timestampFormat:"unix"`
+ LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" timestampFormat:"unixTimestamp"`
// A name you create for each preset. Each name must be unique within your account.
//
@@ -9437,7 +9440,8 @@ func (s Preset) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -9449,7 +9453,8 @@ func (s Preset) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdated
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdated", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdated",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -9757,13 +9762,13 @@ type Queue struct {
Arn *string `locationName:"arn" type:"string"`
// The timestamp in epoch seconds for when you created the queue.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unixTimestamp"`
// An optional description that you create for each queue.
Description *string `locationName:"description" type:"string"`
// The timestamp in epoch seconds for when you most recently updated the queue.
- LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" timestampFormat:"unix"`
+ LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" timestampFormat:"unixTimestamp"`
// A name that you create for each queue. Each name must be unique within your
// account.
@@ -9816,7 +9821,8 @@ func (s Queue) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -9828,7 +9834,8 @@ func (s Queue) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdated
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdated", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdated",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -10023,11 +10030,11 @@ type ReservationPlan struct {
// The timestamp in epoch seconds for when the current pricing plan term for
// this reserved queue expires.
- ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp" timestampFormat:"unix"`
+ ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp" timestampFormat:"unixTimestamp"`
// The timestamp in epoch seconds for when you set up the current pricing plan
// for this reserved queue.
- PurchasedAt *time.Time `locationName:"purchasedAt" type:"timestamp" timestampFormat:"unix"`
+ PurchasedAt *time.Time `locationName:"purchasedAt" type:"timestamp" timestampFormat:"unixTimestamp"`
// Specifies whether the term of your reserved queue pricing plan is automatically
// extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term.
@@ -10062,13 +10069,15 @@ func (s ReservationPlan) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ExpiresAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "expiresAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "expiresAt",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if s.PurchasedAt != nil {
v := *s.PurchasedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "purchasedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "purchasedAt",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if len(s.RenewalType) > 0 {
v := s.RenewalType
@@ -10703,13 +10712,13 @@ type Timing struct {
_ struct{} `type:"structure"`
// The time, in Unix epoch format, that the transcoding job finished
- FinishTime *time.Time `locationName:"finishTime" type:"timestamp" timestampFormat:"unix"`
+ FinishTime *time.Time `locationName:"finishTime" type:"timestamp" timestampFormat:"unixTimestamp"`
// The time, in Unix epoch format, that transcoding for the job began.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unixTimestamp"`
// The time, in Unix epoch format, that you submitted the job.
- SubmitTime *time.Time `locationName:"submitTime" type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `locationName:"submitTime" type:"timestamp" timestampFormat:"unixTimestamp"`
}
// String returns the string representation
@@ -10723,19 +10732,22 @@ func (s Timing) MarshalFields(e protocol.FieldEncoder) error {
v := *s.FinishTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "finishTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "finishTime",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if s.StartTime != nil {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "startTime",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
if s.SubmitTime != nil {
v := *s.SubmitTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "submitTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "submitTime",
+ protocol.TimeValue{V: v, Format: "unixTimestamp", QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/medialive/api_op_BatchUpdateSchedule.go b/service/medialive/api_op_BatchUpdateSchedule.go
index 80e89fb8caa..1d8c2c098e5 100644
--- a/service/medialive/api_op_BatchUpdateSchedule.go
+++ b/service/medialive/api_op_BatchUpdateSchedule.go
@@ -57,7 +57,7 @@ func (s *BatchUpdateScheduleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchUpdateScheduleInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Creates != nil {
v := s.Creates
diff --git a/service/medialive/api_op_CreateChannel.go b/service/medialive/api_op_CreateChannel.go
index 604c41d09d3..47d5e1ecc31 100644
--- a/service/medialive/api_op_CreateChannel.go
+++ b/service/medialive/api_op_CreateChannel.go
@@ -78,7 +78,7 @@ func (s *CreateChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ChannelClass) > 0 {
v := s.ChannelClass
diff --git a/service/medialive/api_op_CreateInput.go b/service/medialive/api_op_CreateInput.go
index a6907c065b5..b3b35d659ce 100644
--- a/service/medialive/api_op_CreateInput.go
+++ b/service/medialive/api_op_CreateInput.go
@@ -61,7 +61,7 @@ func (s *CreateInputInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateInputInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Destinations != nil {
v := s.Destinations
diff --git a/service/medialive/api_op_CreateInputSecurityGroup.go b/service/medialive/api_op_CreateInputSecurityGroup.go
index 89f65d6ab98..9731f7584b7 100644
--- a/service/medialive/api_op_CreateInputSecurityGroup.go
+++ b/service/medialive/api_op_CreateInputSecurityGroup.go
@@ -26,7 +26,7 @@ func (s CreateInputSecurityGroupInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateInputSecurityGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/medialive/api_op_CreateTags.go b/service/medialive/api_op_CreateTags.go
index 607108aece1..fa2e846e904 100644
--- a/service/medialive/api_op_CreateTags.go
+++ b/service/medialive/api_op_CreateTags.go
@@ -42,7 +42,7 @@ func (s *CreateTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateTagsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/medialive/api_op_DeleteChannel.go b/service/medialive/api_op_DeleteChannel.go
index 83332fae116..6bb01569b70 100644
--- a/service/medialive/api_op_DeleteChannel.go
+++ b/service/medialive/api_op_DeleteChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelId != nil {
v := *s.ChannelId
diff --git a/service/medialive/api_op_DeleteInput.go b/service/medialive/api_op_DeleteInput.go
index e28b95c90fd..a6f1495d1e6 100644
--- a/service/medialive/api_op_DeleteInput.go
+++ b/service/medialive/api_op_DeleteInput.go
@@ -39,7 +39,7 @@ func (s *DeleteInputInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteInputInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InputId != nil {
v := *s.InputId
diff --git a/service/medialive/api_op_DeleteInputSecurityGroup.go b/service/medialive/api_op_DeleteInputSecurityGroup.go
index 1658fc6a639..13d13312e62 100644
--- a/service/medialive/api_op_DeleteInputSecurityGroup.go
+++ b/service/medialive/api_op_DeleteInputSecurityGroup.go
@@ -39,7 +39,7 @@ func (s *DeleteInputSecurityGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteInputSecurityGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InputSecurityGroupId != nil {
v := *s.InputSecurityGroupId
diff --git a/service/medialive/api_op_DeleteReservation.go b/service/medialive/api_op_DeleteReservation.go
index ac145e5354b..5b1d43d17fd 100644
--- a/service/medialive/api_op_DeleteReservation.go
+++ b/service/medialive/api_op_DeleteReservation.go
@@ -39,7 +39,7 @@ func (s *DeleteReservationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteReservationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ReservationId != nil {
v := *s.ReservationId
diff --git a/service/medialive/api_op_DeleteSchedule.go b/service/medialive/api_op_DeleteSchedule.go
index 89b41310a99..c9df99565cb 100644
--- a/service/medialive/api_op_DeleteSchedule.go
+++ b/service/medialive/api_op_DeleteSchedule.go
@@ -39,7 +39,7 @@ func (s *DeleteScheduleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteScheduleInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelId != nil {
v := *s.ChannelId
diff --git a/service/medialive/api_op_DeleteTags.go b/service/medialive/api_op_DeleteTags.go
index 69a74f80b10..10b56de2660 100644
--- a/service/medialive/api_op_DeleteTags.go
+++ b/service/medialive/api_op_DeleteTags.go
@@ -47,7 +47,7 @@ func (s *DeleteTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteTagsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/medialive/api_op_DescribeChannel.go b/service/medialive/api_op_DescribeChannel.go
index 0a0b111ce24..be7f57eabff 100644
--- a/service/medialive/api_op_DescribeChannel.go
+++ b/service/medialive/api_op_DescribeChannel.go
@@ -39,7 +39,7 @@ func (s *DescribeChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelId != nil {
v := *s.ChannelId
diff --git a/service/medialive/api_op_DescribeInput.go b/service/medialive/api_op_DescribeInput.go
index 62fa028078c..427318f511f 100644
--- a/service/medialive/api_op_DescribeInput.go
+++ b/service/medialive/api_op_DescribeInput.go
@@ -39,7 +39,7 @@ func (s *DescribeInputInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeInputInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InputId != nil {
v := *s.InputId
diff --git a/service/medialive/api_op_DescribeInputSecurityGroup.go b/service/medialive/api_op_DescribeInputSecurityGroup.go
index 8a40a8e5714..6775af4e5b5 100644
--- a/service/medialive/api_op_DescribeInputSecurityGroup.go
+++ b/service/medialive/api_op_DescribeInputSecurityGroup.go
@@ -39,7 +39,7 @@ func (s *DescribeInputSecurityGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeInputSecurityGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InputSecurityGroupId != nil {
v := *s.InputSecurityGroupId
diff --git a/service/medialive/api_op_DescribeOffering.go b/service/medialive/api_op_DescribeOffering.go
index a75db0d44e5..98ef4a26f88 100644
--- a/service/medialive/api_op_DescribeOffering.go
+++ b/service/medialive/api_op_DescribeOffering.go
@@ -39,7 +39,7 @@ func (s *DescribeOfferingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeOfferingInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.OfferingId != nil {
v := *s.OfferingId
diff --git a/service/medialive/api_op_DescribeReservation.go b/service/medialive/api_op_DescribeReservation.go
index 42221ae376b..8f8f61cdd75 100644
--- a/service/medialive/api_op_DescribeReservation.go
+++ b/service/medialive/api_op_DescribeReservation.go
@@ -39,7 +39,7 @@ func (s *DescribeReservationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeReservationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ReservationId != nil {
v := *s.ReservationId
diff --git a/service/medialive/api_op_DescribeSchedule.go b/service/medialive/api_op_DescribeSchedule.go
index bb47b31cd8e..034e7d6fdeb 100644
--- a/service/medialive/api_op_DescribeSchedule.go
+++ b/service/medialive/api_op_DescribeSchedule.go
@@ -46,7 +46,7 @@ func (s *DescribeScheduleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeScheduleInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelId != nil {
v := *s.ChannelId
diff --git a/service/medialive/api_op_ListChannels.go b/service/medialive/api_op_ListChannels.go
index cd736aaf4ce..e937029c552 100644
--- a/service/medialive/api_op_ListChannels.go
+++ b/service/medialive/api_op_ListChannels.go
@@ -39,7 +39,7 @@ func (s *ListChannelsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListChannelsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/medialive/api_op_ListInputSecurityGroups.go b/service/medialive/api_op_ListInputSecurityGroups.go
index 0a02ddcc80f..e9c6293f2e1 100644
--- a/service/medialive/api_op_ListInputSecurityGroups.go
+++ b/service/medialive/api_op_ListInputSecurityGroups.go
@@ -39,7 +39,7 @@ func (s *ListInputSecurityGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListInputSecurityGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/medialive/api_op_ListInputs.go b/service/medialive/api_op_ListInputs.go
index b5f03d4ad70..16e9fffa124 100644
--- a/service/medialive/api_op_ListInputs.go
+++ b/service/medialive/api_op_ListInputs.go
@@ -39,7 +39,7 @@ func (s *ListInputsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListInputsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/medialive/api_op_ListOfferings.go b/service/medialive/api_op_ListOfferings.go
index a39bddabd4b..8765a226446 100644
--- a/service/medialive/api_op_ListOfferings.go
+++ b/service/medialive/api_op_ListOfferings.go
@@ -57,7 +57,7 @@ func (s *ListOfferingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListOfferingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelClass != nil {
v := *s.ChannelClass
diff --git a/service/medialive/api_op_ListReservations.go b/service/medialive/api_op_ListReservations.go
index ea4c9d66d56..1ecb5cd0b1c 100644
--- a/service/medialive/api_op_ListReservations.go
+++ b/service/medialive/api_op_ListReservations.go
@@ -55,7 +55,7 @@ func (s *ListReservationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListReservationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelClass != nil {
v := *s.ChannelClass
diff --git a/service/medialive/api_op_ListTagsForResource.go b/service/medialive/api_op_ListTagsForResource.go
index ff8af3fc494..4f59206ebd9 100644
--- a/service/medialive/api_op_ListTagsForResource.go
+++ b/service/medialive/api_op_ListTagsForResource.go
@@ -39,7 +39,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/medialive/api_op_PurchaseOffering.go b/service/medialive/api_op_PurchaseOffering.go
index 3b4b25a545f..120d34c2024 100644
--- a/service/medialive/api_op_PurchaseOffering.go
+++ b/service/medialive/api_op_PurchaseOffering.go
@@ -57,7 +57,7 @@ func (s *PurchaseOfferingInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PurchaseOfferingInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Count != nil {
v := *s.Count
diff --git a/service/medialive/api_op_StartChannel.go b/service/medialive/api_op_StartChannel.go
index 8d9ad616fbf..cb6f85b7333 100644
--- a/service/medialive/api_op_StartChannel.go
+++ b/service/medialive/api_op_StartChannel.go
@@ -39,7 +39,7 @@ func (s *StartChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelId != nil {
v := *s.ChannelId
diff --git a/service/medialive/api_op_StopChannel.go b/service/medialive/api_op_StopChannel.go
index 5889f6bf534..05b9528ab02 100644
--- a/service/medialive/api_op_StopChannel.go
+++ b/service/medialive/api_op_StopChannel.go
@@ -39,7 +39,7 @@ func (s *StopChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StopChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelId != nil {
v := *s.ChannelId
diff --git a/service/medialive/api_op_UpdateChannel.go b/service/medialive/api_op_UpdateChannel.go
index ced83bba5cf..b97a3943b1c 100644
--- a/service/medialive/api_op_UpdateChannel.go
+++ b/service/medialive/api_op_UpdateChannel.go
@@ -75,7 +75,7 @@ func (s *UpdateChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Destinations != nil {
v := s.Destinations
diff --git a/service/medialive/api_op_UpdateChannelClass.go b/service/medialive/api_op_UpdateChannelClass.go
index 1394f496059..6cda438d930 100644
--- a/service/medialive/api_op_UpdateChannelClass.go
+++ b/service/medialive/api_op_UpdateChannelClass.go
@@ -58,7 +58,7 @@ func (s *UpdateChannelClassInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateChannelClassInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.ChannelClass) > 0 {
v := s.ChannelClass
diff --git a/service/medialive/api_op_UpdateInput.go b/service/medialive/api_op_UpdateInput.go
index 8b0cc82474d..e2a670cf348 100644
--- a/service/medialive/api_op_UpdateInput.go
+++ b/service/medialive/api_op_UpdateInput.go
@@ -51,7 +51,7 @@ func (s *UpdateInputInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateInputInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Destinations != nil {
v := s.Destinations
diff --git a/service/medialive/api_op_UpdateInputSecurityGroup.go b/service/medialive/api_op_UpdateInputSecurityGroup.go
index cad51d58e9f..5e5fb4047e8 100644
--- a/service/medialive/api_op_UpdateInputSecurityGroup.go
+++ b/service/medialive/api_op_UpdateInputSecurityGroup.go
@@ -43,7 +43,7 @@ func (s *UpdateInputSecurityGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateInputSecurityGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/medialive/api_op_UpdateReservation.go b/service/medialive/api_op_UpdateReservation.go
index 85567f7c7f7..d19a837a5d0 100644
--- a/service/medialive/api_op_UpdateReservation.go
+++ b/service/medialive/api_op_UpdateReservation.go
@@ -41,7 +41,7 @@ func (s *UpdateReservationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateReservationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/mediapackage/api_op_CreateChannel.go b/service/mediapackage/api_op_CreateChannel.go
index 3cff05e9cb2..7a6c93fcbb4 100644
--- a/service/mediapackage/api_op_CreateChannel.go
+++ b/service/mediapackage/api_op_CreateChannel.go
@@ -44,7 +44,7 @@ func (s *CreateChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/mediapackage/api_op_CreateOriginEndpoint.go b/service/mediapackage/api_op_CreateOriginEndpoint.go
index ea5f365e602..d9c4a972f72 100644
--- a/service/mediapackage/api_op_CreateOriginEndpoint.go
+++ b/service/mediapackage/api_op_CreateOriginEndpoint.go
@@ -91,7 +91,7 @@ func (s *CreateOriginEndpointInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateOriginEndpointInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelId != nil {
v := *s.ChannelId
diff --git a/service/mediapackage/api_op_DeleteChannel.go b/service/mediapackage/api_op_DeleteChannel.go
index cb06c86464d..7d2d62dc40c 100644
--- a/service/mediapackage/api_op_DeleteChannel.go
+++ b/service/mediapackage/api_op_DeleteChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackage/api_op_DeleteOriginEndpoint.go b/service/mediapackage/api_op_DeleteOriginEndpoint.go
index 8129e002ccb..273c96adce8 100644
--- a/service/mediapackage/api_op_DeleteOriginEndpoint.go
+++ b/service/mediapackage/api_op_DeleteOriginEndpoint.go
@@ -39,7 +39,7 @@ func (s *DeleteOriginEndpointInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteOriginEndpointInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackage/api_op_DescribeChannel.go b/service/mediapackage/api_op_DescribeChannel.go
index 33163f62169..d577e40422b 100644
--- a/service/mediapackage/api_op_DescribeChannel.go
+++ b/service/mediapackage/api_op_DescribeChannel.go
@@ -39,7 +39,7 @@ func (s *DescribeChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackage/api_op_DescribeOriginEndpoint.go b/service/mediapackage/api_op_DescribeOriginEndpoint.go
index 4bad521d4c9..85209247f0f 100644
--- a/service/mediapackage/api_op_DescribeOriginEndpoint.go
+++ b/service/mediapackage/api_op_DescribeOriginEndpoint.go
@@ -39,7 +39,7 @@ func (s *DescribeOriginEndpointInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeOriginEndpointInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackage/api_op_ListChannels.go b/service/mediapackage/api_op_ListChannels.go
index 008240be3dc..3ef5c5a1e79 100644
--- a/service/mediapackage/api_op_ListChannels.go
+++ b/service/mediapackage/api_op_ListChannels.go
@@ -39,7 +39,7 @@ func (s *ListChannelsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListChannelsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mediapackage/api_op_ListOriginEndpoints.go b/service/mediapackage/api_op_ListOriginEndpoints.go
index 5f2677e52b9..b94a05983a4 100644
--- a/service/mediapackage/api_op_ListOriginEndpoints.go
+++ b/service/mediapackage/api_op_ListOriginEndpoints.go
@@ -41,7 +41,7 @@ func (s *ListOriginEndpointsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListOriginEndpointsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ChannelId != nil {
v := *s.ChannelId
diff --git a/service/mediapackage/api_op_ListTagsForResource.go b/service/mediapackage/api_op_ListTagsForResource.go
index 8b3ecb468ec..0fedf995ef6 100644
--- a/service/mediapackage/api_op_ListTagsForResource.go
+++ b/service/mediapackage/api_op_ListTagsForResource.go
@@ -39,7 +39,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/mediapackage/api_op_RotateChannelCredentials.go b/service/mediapackage/api_op_RotateChannelCredentials.go
index 5edaabbf6ce..1933e099d43 100644
--- a/service/mediapackage/api_op_RotateChannelCredentials.go
+++ b/service/mediapackage/api_op_RotateChannelCredentials.go
@@ -39,7 +39,7 @@ func (s *RotateChannelCredentialsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RotateChannelCredentialsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackage/api_op_RotateIngestEndpointCredentials.go b/service/mediapackage/api_op_RotateIngestEndpointCredentials.go
index b68f2e079fd..6d28f909e19 100644
--- a/service/mediapackage/api_op_RotateIngestEndpointCredentials.go
+++ b/service/mediapackage/api_op_RotateIngestEndpointCredentials.go
@@ -46,7 +46,7 @@ func (s *RotateIngestEndpointCredentialsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RotateIngestEndpointCredentialsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackage/api_op_TagResource.go b/service/mediapackage/api_op_TagResource.go
index ab72a003ece..bbf9627377b 100644
--- a/service/mediapackage/api_op_TagResource.go
+++ b/service/mediapackage/api_op_TagResource.go
@@ -47,7 +47,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/mediapackage/api_op_UntagResource.go b/service/mediapackage/api_op_UntagResource.go
index db5bfe81033..8dde1c54266 100644
--- a/service/mediapackage/api_op_UntagResource.go
+++ b/service/mediapackage/api_op_UntagResource.go
@@ -47,7 +47,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/mediapackage/api_op_UpdateChannel.go b/service/mediapackage/api_op_UpdateChannel.go
index fcdd1d789ce..7de65d2193e 100644
--- a/service/mediapackage/api_op_UpdateChannel.go
+++ b/service/mediapackage/api_op_UpdateChannel.go
@@ -41,7 +41,7 @@ func (s *UpdateChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/mediapackage/api_op_UpdateOriginEndpoint.go b/service/mediapackage/api_op_UpdateOriginEndpoint.go
index 67820665030..aef9cc360b4 100644
--- a/service/mediapackage/api_op_UpdateOriginEndpoint.go
+++ b/service/mediapackage/api_op_UpdateOriginEndpoint.go
@@ -81,7 +81,7 @@ func (s *UpdateOriginEndpointInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateOriginEndpointInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CmafPackage != nil {
v := s.CmafPackage
diff --git a/service/mediapackagevod/api_op_CreateAsset.go b/service/mediapackagevod/api_op_CreateAsset.go
index 4b1c8d9f80e..64c1047e3e6 100644
--- a/service/mediapackagevod/api_op_CreateAsset.go
+++ b/service/mediapackagevod/api_op_CreateAsset.go
@@ -62,7 +62,7 @@ func (s *CreateAssetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateAssetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackagevod/api_op_CreatePackagingConfiguration.go b/service/mediapackagevod/api_op_CreatePackagingConfiguration.go
index 0677f34949b..2bab2005365 100644
--- a/service/mediapackagevod/api_op_CreatePackagingConfiguration.go
+++ b/service/mediapackagevod/api_op_CreatePackagingConfiguration.go
@@ -78,7 +78,7 @@ func (s *CreatePackagingConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreatePackagingConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CmafPackage != nil {
v := s.CmafPackage
diff --git a/service/mediapackagevod/api_op_CreatePackagingGroup.go b/service/mediapackagevod/api_op_CreatePackagingGroup.go
index 410efc2978b..36239e2b42e 100644
--- a/service/mediapackagevod/api_op_CreatePackagingGroup.go
+++ b/service/mediapackagevod/api_op_CreatePackagingGroup.go
@@ -39,7 +39,7 @@ func (s *CreatePackagingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreatePackagingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackagevod/api_op_DeleteAsset.go b/service/mediapackagevod/api_op_DeleteAsset.go
index ba25fb938d1..a54b035ce6b 100644
--- a/service/mediapackagevod/api_op_DeleteAsset.go
+++ b/service/mediapackagevod/api_op_DeleteAsset.go
@@ -39,7 +39,7 @@ func (s *DeleteAssetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteAssetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackagevod/api_op_DeletePackagingConfiguration.go b/service/mediapackagevod/api_op_DeletePackagingConfiguration.go
index 3fae7c32790..fea78aa0d1a 100644
--- a/service/mediapackagevod/api_op_DeletePackagingConfiguration.go
+++ b/service/mediapackagevod/api_op_DeletePackagingConfiguration.go
@@ -39,7 +39,7 @@ func (s *DeletePackagingConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePackagingConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackagevod/api_op_DeletePackagingGroup.go b/service/mediapackagevod/api_op_DeletePackagingGroup.go
index 88ffbcf174f..6ff367be398 100644
--- a/service/mediapackagevod/api_op_DeletePackagingGroup.go
+++ b/service/mediapackagevod/api_op_DeletePackagingGroup.go
@@ -39,7 +39,7 @@ func (s *DeletePackagingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePackagingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackagevod/api_op_DescribeAsset.go b/service/mediapackagevod/api_op_DescribeAsset.go
index 7b403a6b8fa..43bafa095fb 100644
--- a/service/mediapackagevod/api_op_DescribeAsset.go
+++ b/service/mediapackagevod/api_op_DescribeAsset.go
@@ -39,7 +39,7 @@ func (s *DescribeAssetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeAssetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackagevod/api_op_DescribePackagingConfiguration.go b/service/mediapackagevod/api_op_DescribePackagingConfiguration.go
index ef00f8835de..5525decc378 100644
--- a/service/mediapackagevod/api_op_DescribePackagingConfiguration.go
+++ b/service/mediapackagevod/api_op_DescribePackagingConfiguration.go
@@ -39,7 +39,7 @@ func (s *DescribePackagingConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribePackagingConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackagevod/api_op_DescribePackagingGroup.go b/service/mediapackagevod/api_op_DescribePackagingGroup.go
index f924bafb623..873883b7ebc 100644
--- a/service/mediapackagevod/api_op_DescribePackagingGroup.go
+++ b/service/mediapackagevod/api_op_DescribePackagingGroup.go
@@ -39,7 +39,7 @@ func (s *DescribePackagingGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribePackagingGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Id != nil {
v := *s.Id
diff --git a/service/mediapackagevod/api_op_ListAssets.go b/service/mediapackagevod/api_op_ListAssets.go
index 25951b8604c..d5a8ca06f07 100644
--- a/service/mediapackagevod/api_op_ListAssets.go
+++ b/service/mediapackagevod/api_op_ListAssets.go
@@ -41,7 +41,7 @@ func (s *ListAssetsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListAssetsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mediapackagevod/api_op_ListPackagingConfigurations.go b/service/mediapackagevod/api_op_ListPackagingConfigurations.go
index 2136f1f153a..27c9f6ae15a 100644
--- a/service/mediapackagevod/api_op_ListPackagingConfigurations.go
+++ b/service/mediapackagevod/api_op_ListPackagingConfigurations.go
@@ -41,7 +41,7 @@ func (s *ListPackagingConfigurationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPackagingConfigurationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mediapackagevod/api_op_ListPackagingGroups.go b/service/mediapackagevod/api_op_ListPackagingGroups.go
index 5d3bc0bfe4e..8d974ad7d26 100644
--- a/service/mediapackagevod/api_op_ListPackagingGroups.go
+++ b/service/mediapackagevod/api_op_ListPackagingGroups.go
@@ -39,7 +39,7 @@ func (s *ListPackagingGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPackagingGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mediastore/api_types.go b/service/mediastore/api_types.go
index 62b878374e6..f2685063fa8 100644
--- a/service/mediastore/api_types.go
+++ b/service/mediastore/api_types.go
@@ -34,7 +34,7 @@ type Container struct {
AccessLoggingEnabled *bool `type:"boolean"`
// Unix timestamp.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The DNS endpoint of the container. Use the endpoint to identify the specific
// container when sending requests to the data plane. The service assigns this
diff --git a/service/mediastoredata/api_op_DeleteObject.go b/service/mediastoredata/api_op_DeleteObject.go
index f92415950d2..bb57a1f3197 100644
--- a/service/mediastoredata/api_op_DeleteObject.go
+++ b/service/mediastoredata/api_op_DeleteObject.go
@@ -45,6 +45,7 @@ func (s *DeleteObjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteObjectInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Path != nil {
v := *s.Path
diff --git a/service/mediastoredata/api_op_DescribeObject.go b/service/mediastoredata/api_op_DescribeObject.go
index 68514f7c6ce..138c4b39fdf 100644
--- a/service/mediastoredata/api_op_DescribeObject.go
+++ b/service/mediastoredata/api_op_DescribeObject.go
@@ -46,6 +46,7 @@ func (s *DescribeObjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeObjectInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Path != nil {
v := *s.Path
@@ -77,7 +78,7 @@ type DescribeObjectOutput struct {
ETag *string `location:"header" locationName:"ETag" min:"1" type:"string"`
// The date and time that the object was last modified.
- LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp" timestampFormat:"rfc822"`
+ LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp"`
}
// String returns the string representation
@@ -115,7 +116,8 @@ func (s DescribeObjectOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "Last-Modified", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "Last-Modified",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
diff --git a/service/mediastoredata/api_op_GetObject.go b/service/mediastoredata/api_op_GetObject.go
index 72c0239268c..7990b2fcada 100644
--- a/service/mediastoredata/api_op_GetObject.go
+++ b/service/mediastoredata/api_op_GetObject.go
@@ -75,6 +75,7 @@ func (s *GetObjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetObjectInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Range != nil {
v := *s.Range
@@ -118,7 +119,7 @@ type GetObjectOutput struct {
ETag *string `location:"header" locationName:"ETag" min:"1" type:"string"`
// The date and time that the object was last modified.
- LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp" timestampFormat:"rfc822"`
+ LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp"`
// The HTML status code of the request. Status codes ranging from 200 to 299
// indicate success. All other status codes indicate the type of error that
@@ -169,7 +170,8 @@ func (s GetObjectOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "Last-Modified", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "Last-Modified",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
// Skipping Body Output type's body not valid.
// ignoring invalid encode state, StatusCode. StatusCode
diff --git a/service/mediastoredata/api_op_ListItems.go b/service/mediastoredata/api_op_ListItems.go
index cc4a9903f62..dc18fc3b519 100644
--- a/service/mediastoredata/api_op_ListItems.go
+++ b/service/mediastoredata/api_op_ListItems.go
@@ -59,6 +59,7 @@ func (s *ListItemsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListItemsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mediastoredata/api_types.go b/service/mediastoredata/api_types.go
index a09fd3a1991..7c614297a0f 100644
--- a/service/mediastoredata/api_types.go
+++ b/service/mediastoredata/api_types.go
@@ -28,7 +28,7 @@ type Item struct {
ETag *string `min:"1" type:"string"`
// The date and time that the item was last modified.
- LastModified *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModified *time.Time `type:"timestamp"`
// The name of the item.
Name *string `type:"string"`
@@ -66,7 +66,8 @@ func (s Item) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/mediatailor/api_op_DeletePlaybackConfiguration.go b/service/mediatailor/api_op_DeletePlaybackConfiguration.go
index 374fc7db06b..d1ea0f29f6a 100644
--- a/service/mediatailor/api_op_DeletePlaybackConfiguration.go
+++ b/service/mediatailor/api_op_DeletePlaybackConfiguration.go
@@ -39,7 +39,7 @@ func (s *DeletePlaybackConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeletePlaybackConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/mediatailor/api_op_GetPlaybackConfiguration.go b/service/mediatailor/api_op_GetPlaybackConfiguration.go
index 0422f187862..e35533d20e3 100644
--- a/service/mediatailor/api_op_GetPlaybackConfiguration.go
+++ b/service/mediatailor/api_op_GetPlaybackConfiguration.go
@@ -39,7 +39,7 @@ func (s *GetPlaybackConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetPlaybackConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/mediatailor/api_op_ListPlaybackConfigurations.go b/service/mediatailor/api_op_ListPlaybackConfigurations.go
index f2ad95ada40..9fdfe283e21 100644
--- a/service/mediatailor/api_op_ListPlaybackConfigurations.go
+++ b/service/mediatailor/api_op_ListPlaybackConfigurations.go
@@ -39,7 +39,7 @@ func (s *ListPlaybackConfigurationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPlaybackConfigurationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mediatailor/api_op_ListTagsForResource.go b/service/mediatailor/api_op_ListTagsForResource.go
index fbf13dcd8e5..365da176740 100644
--- a/service/mediatailor/api_op_ListTagsForResource.go
+++ b/service/mediatailor/api_op_ListTagsForResource.go
@@ -39,7 +39,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/mediatailor/api_op_PutPlaybackConfiguration.go b/service/mediatailor/api_op_PutPlaybackConfiguration.go
index 135b74484c2..12a963edc17 100644
--- a/service/mediatailor/api_op_PutPlaybackConfiguration.go
+++ b/service/mediatailor/api_op_PutPlaybackConfiguration.go
@@ -60,7 +60,7 @@ func (s PutPlaybackConfigurationInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutPlaybackConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AdDecisionServerUrl != nil {
v := *s.AdDecisionServerUrl
diff --git a/service/mediatailor/api_op_TagResource.go b/service/mediatailor/api_op_TagResource.go
index 734ea5cb6a5..4be17438f19 100644
--- a/service/mediatailor/api_op_TagResource.go
+++ b/service/mediatailor/api_op_TagResource.go
@@ -47,7 +47,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/mediatailor/api_op_UntagResource.go b/service/mediatailor/api_op_UntagResource.go
index e5f6e9359de..129d9c0e08a 100644
--- a/service/mediatailor/api_op_UntagResource.go
+++ b/service/mediatailor/api_op_UntagResource.go
@@ -47,7 +47,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/migrationhub/api_op_DescribeApplicationState.go b/service/migrationhub/api_op_DescribeApplicationState.go
index 3eb132bdaf0..7b4e6cc06bc 100644
--- a/service/migrationhub/api_op_DescribeApplicationState.go
+++ b/service/migrationhub/api_op_DescribeApplicationState.go
@@ -50,7 +50,7 @@ type DescribeApplicationStateOutput struct {
ApplicationStatus ApplicationStatus `type:"string" enum:"true"`
// The timestamp when the application status was last updated.
- LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/migrationhub/api_op_NotifyMigrationTaskState.go b/service/migrationhub/api_op_NotifyMigrationTaskState.go
index 5f335dd59c1..3e4e31fb31a 100644
--- a/service/migrationhub/api_op_NotifyMigrationTaskState.go
+++ b/service/migrationhub/api_op_NotifyMigrationTaskState.go
@@ -43,7 +43,7 @@ type NotifyMigrationTaskStateInput struct {
// The timestamp when the task was gathered.
//
// UpdateDateTime is a required field
- UpdateDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdateDateTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/migrationhub/api_types.go b/service/migrationhub/api_types.go
index cca35ae88d2..1a02c296b83 100644
--- a/service/migrationhub/api_types.go
+++ b/service/migrationhub/api_types.go
@@ -104,7 +104,7 @@ type MigrationTask struct {
Task *Task `type:"structure"`
// The timestamp when the task was gathered.
- UpdateDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdateDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -134,7 +134,7 @@ type MigrationTaskSummary struct {
StatusDetail *string `type:"string"`
// The timestamp when the task was gathered.
- UpdateDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdateDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/mobile/api_op_DeleteProject.go b/service/mobile/api_op_DeleteProject.go
index 2f520d8d53c..654401cd686 100644
--- a/service/mobile/api_op_DeleteProject.go
+++ b/service/mobile/api_op_DeleteProject.go
@@ -42,7 +42,7 @@ func (s *DeleteProjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteProjectInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProjectId != nil {
v := *s.ProjectId
diff --git a/service/mobile/api_op_DescribeBundle.go b/service/mobile/api_op_DescribeBundle.go
index 1873237a9b4..d0e57009ca2 100644
--- a/service/mobile/api_op_DescribeBundle.go
+++ b/service/mobile/api_op_DescribeBundle.go
@@ -42,7 +42,7 @@ func (s *DescribeBundleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeBundleInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BundleId != nil {
v := *s.BundleId
diff --git a/service/mobile/api_op_DescribeProject.go b/service/mobile/api_op_DescribeProject.go
index 34394f20a2d..474d7edceeb 100644
--- a/service/mobile/api_op_DescribeProject.go
+++ b/service/mobile/api_op_DescribeProject.go
@@ -47,7 +47,7 @@ func (s *DescribeProjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeProjectInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProjectId != nil {
v := *s.ProjectId
diff --git a/service/mobile/api_op_ExportBundle.go b/service/mobile/api_op_ExportBundle.go
index c430a06202a..de5214cb5d8 100644
--- a/service/mobile/api_op_ExportBundle.go
+++ b/service/mobile/api_op_ExportBundle.go
@@ -49,7 +49,7 @@ func (s *ExportBundleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ExportBundleInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BundleId != nil {
v := *s.BundleId
diff --git a/service/mobile/api_op_ExportProject.go b/service/mobile/api_op_ExportProject.go
index 5918493db46..6bdd3dcbe7c 100644
--- a/service/mobile/api_op_ExportProject.go
+++ b/service/mobile/api_op_ExportProject.go
@@ -42,7 +42,7 @@ func (s *ExportProjectInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ExportProjectInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProjectId != nil {
v := *s.ProjectId
diff --git a/service/mobile/api_op_ListBundles.go b/service/mobile/api_op_ListBundles.go
index bcf2b09caa7..0cf2d3b918a 100644
--- a/service/mobile/api_op_ListBundles.go
+++ b/service/mobile/api_op_ListBundles.go
@@ -31,7 +31,7 @@ func (s ListBundlesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBundlesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mobile/api_op_ListProjects.go b/service/mobile/api_op_ListProjects.go
index 375d1759b97..8f9c6ae5e3a 100644
--- a/service/mobile/api_op_ListProjects.go
+++ b/service/mobile/api_op_ListProjects.go
@@ -31,7 +31,7 @@ func (s ListProjectsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListProjectsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mobile/api_types.go b/service/mobile/api_types.go
index 2c0cf273021..78687310e87 100644
--- a/service/mobile/api_types.go
+++ b/service/mobile/api_types.go
@@ -98,10 +98,10 @@ type ProjectDetails struct {
ConsoleUrl *string `locationName:"consoleUrl" type:"string"`
// Date the project was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
// Date of the last modification of the project.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
// Name of the project.
Name *string `locationName:"name" type:"string"`
@@ -136,13 +136,15 @@ func (s ProjectDetails) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdatedDate != nil {
v := *s.LastUpdatedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/mobileanalytics/api_op_PutEvents.go b/service/mobileanalytics/api_op_PutEvents.go
index bc8d1027dd1..aabe11b4725 100644
--- a/service/mobileanalytics/api_op_PutEvents.go
+++ b/service/mobileanalytics/api_op_PutEvents.go
@@ -63,6 +63,7 @@ func (s *PutEventsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutEventsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Events != nil {
v := s.Events
diff --git a/service/mq/api_op_CreateBroker.go b/service/mq/api_op_CreateBroker.go
index c270f0be3c6..788ae2c4967 100644
--- a/service/mq/api_op_CreateBroker.go
+++ b/service/mq/api_op_CreateBroker.go
@@ -58,7 +58,7 @@ func (s CreateBrokerInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateBrokerInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AutoMinorVersionUpgrade != nil {
v := *s.AutoMinorVersionUpgrade
diff --git a/service/mq/api_op_CreateConfiguration.go b/service/mq/api_op_CreateConfiguration.go
index 32861e24e80..2d1c183c526 100644
--- a/service/mq/api_op_CreateConfiguration.go
+++ b/service/mq/api_op_CreateConfiguration.go
@@ -32,7 +32,7 @@ func (s CreateConfigurationInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.EngineType) > 0 {
v := s.EngineType
@@ -73,7 +73,7 @@ type CreateConfigurationOutput struct {
Arn *string `locationName:"arn" type:"string"`
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
Id *string `locationName:"id" type:"string"`
@@ -100,7 +100,8 @@ func (s CreateConfigurationOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.Created
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "created", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "created",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Id != nil {
v := *s.Id
diff --git a/service/mq/api_op_CreateTags.go b/service/mq/api_op_CreateTags.go
index 172c60c4ec0..34ddca26268 100644
--- a/service/mq/api_op_CreateTags.go
+++ b/service/mq/api_op_CreateTags.go
@@ -42,7 +42,7 @@ func (s *CreateTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateTagsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/mq/api_op_CreateUser.go b/service/mq/api_op_CreateUser.go
index 9d3de6dea47..31c45116839 100644
--- a/service/mq/api_op_CreateUser.go
+++ b/service/mq/api_op_CreateUser.go
@@ -52,7 +52,7 @@ func (s *CreateUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConsoleAccess != nil {
v := *s.ConsoleAccess
diff --git a/service/mq/api_op_DeleteBroker.go b/service/mq/api_op_DeleteBroker.go
index f3dd1d61b93..4e663c928a3 100644
--- a/service/mq/api_op_DeleteBroker.go
+++ b/service/mq/api_op_DeleteBroker.go
@@ -39,7 +39,7 @@ func (s *DeleteBrokerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBrokerInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BrokerId != nil {
v := *s.BrokerId
diff --git a/service/mq/api_op_DeleteTags.go b/service/mq/api_op_DeleteTags.go
index 2f9a74e359a..cf4305949d3 100644
--- a/service/mq/api_op_DeleteTags.go
+++ b/service/mq/api_op_DeleteTags.go
@@ -47,7 +47,7 @@ func (s *DeleteTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteTagsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/mq/api_op_DeleteUser.go b/service/mq/api_op_DeleteUser.go
index 799e96753ff..76a2ef355f9 100644
--- a/service/mq/api_op_DeleteUser.go
+++ b/service/mq/api_op_DeleteUser.go
@@ -46,7 +46,7 @@ func (s *DeleteUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BrokerId != nil {
v := *s.BrokerId
diff --git a/service/mq/api_op_DescribeBroker.go b/service/mq/api_op_DescribeBroker.go
index 1233e772f5f..6c91a805643 100644
--- a/service/mq/api_op_DescribeBroker.go
+++ b/service/mq/api_op_DescribeBroker.go
@@ -40,7 +40,7 @@ func (s *DescribeBrokerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeBrokerInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BrokerId != nil {
v := *s.BrokerId
@@ -71,7 +71,7 @@ type DescribeBrokerOutput struct {
// Broker configuration information
Configurations *Configurations `locationName:"configurations" type:"structure"`
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
// The deployment mode of the broker.
DeploymentMode DeploymentMode `locationName:"deploymentMode" type:"string" enum:"true"`
@@ -163,7 +163,8 @@ func (s DescribeBrokerOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Created
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "created", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "created",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if len(s.DeploymentMode) > 0 {
v := s.DeploymentMode
diff --git a/service/mq/api_op_DescribeBrokerEngineTypes.go b/service/mq/api_op_DescribeBrokerEngineTypes.go
index 53d42156da3..cee0d8db6b8 100644
--- a/service/mq/api_op_DescribeBrokerEngineTypes.go
+++ b/service/mq/api_op_DescribeBrokerEngineTypes.go
@@ -41,7 +41,7 @@ func (s *DescribeBrokerEngineTypesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeBrokerEngineTypesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EngineType != nil {
v := *s.EngineType
diff --git a/service/mq/api_op_DescribeBrokerInstanceOptions.go b/service/mq/api_op_DescribeBrokerInstanceOptions.go
index 89d1e155abd..1a46e54f83e 100644
--- a/service/mq/api_op_DescribeBrokerInstanceOptions.go
+++ b/service/mq/api_op_DescribeBrokerInstanceOptions.go
@@ -43,7 +43,7 @@ func (s *DescribeBrokerInstanceOptionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeBrokerInstanceOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EngineType != nil {
v := *s.EngineType
diff --git a/service/mq/api_op_DescribeConfiguration.go b/service/mq/api_op_DescribeConfiguration.go
index ea0c016d1e9..69e71400881 100644
--- a/service/mq/api_op_DescribeConfiguration.go
+++ b/service/mq/api_op_DescribeConfiguration.go
@@ -40,7 +40,7 @@ func (s *DescribeConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationId != nil {
v := *s.ConfigurationId
@@ -57,7 +57,7 @@ type DescribeConfigurationOutput struct {
Arn *string `locationName:"arn" type:"string"`
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
Description *string `locationName:"description" type:"string"`
@@ -93,7 +93,8 @@ func (s DescribeConfigurationOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.Created
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "created", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "created",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/mq/api_op_DescribeConfigurationRevision.go b/service/mq/api_op_DescribeConfigurationRevision.go
index 41c1632d669..2092d1ec745 100644
--- a/service/mq/api_op_DescribeConfigurationRevision.go
+++ b/service/mq/api_op_DescribeConfigurationRevision.go
@@ -47,7 +47,7 @@ func (s *DescribeConfigurationRevisionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeConfigurationRevisionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationId != nil {
v := *s.ConfigurationId
@@ -70,7 +70,7 @@ type DescribeConfigurationRevisionOutput struct {
ConfigurationId *string `locationName:"configurationId" type:"string"`
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
Data *string `locationName:"data" type:"string"`
@@ -94,7 +94,8 @@ func (s DescribeConfigurationRevisionOutput) MarshalFields(e protocol.FieldEncod
v := *s.Created
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "created", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "created",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Data != nil {
v := *s.Data
diff --git a/service/mq/api_op_DescribeUser.go b/service/mq/api_op_DescribeUser.go
index 3d18b2ccece..636c55da52e 100644
--- a/service/mq/api_op_DescribeUser.go
+++ b/service/mq/api_op_DescribeUser.go
@@ -46,7 +46,7 @@ func (s *DescribeUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BrokerId != nil {
v := *s.BrokerId
diff --git a/service/mq/api_op_ListBrokers.go b/service/mq/api_op_ListBrokers.go
index a00cf83373f..b9bc85aaefe 100644
--- a/service/mq/api_op_ListBrokers.go
+++ b/service/mq/api_op_ListBrokers.go
@@ -39,7 +39,7 @@ func (s *ListBrokersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListBrokersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mq/api_op_ListConfigurationRevisions.go b/service/mq/api_op_ListConfigurationRevisions.go
index a5dbce64eff..4543f4fdbca 100644
--- a/service/mq/api_op_ListConfigurationRevisions.go
+++ b/service/mq/api_op_ListConfigurationRevisions.go
@@ -46,7 +46,7 @@ func (s *ListConfigurationRevisionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListConfigurationRevisionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationId != nil {
v := *s.ConfigurationId
diff --git a/service/mq/api_op_ListConfigurations.go b/service/mq/api_op_ListConfigurations.go
index 3030485cdef..19d23b4187f 100644
--- a/service/mq/api_op_ListConfigurations.go
+++ b/service/mq/api_op_ListConfigurations.go
@@ -39,7 +39,7 @@ func (s *ListConfigurationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListConfigurationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/mq/api_op_ListTags.go b/service/mq/api_op_ListTags.go
index 7eba9353e7f..611887e4b1a 100644
--- a/service/mq/api_op_ListTags.go
+++ b/service/mq/api_op_ListTags.go
@@ -39,7 +39,7 @@ func (s *ListTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/mq/api_op_ListUsers.go b/service/mq/api_op_ListUsers.go
index 1bf945eb40c..56175606df0 100644
--- a/service/mq/api_op_ListUsers.go
+++ b/service/mq/api_op_ListUsers.go
@@ -46,7 +46,7 @@ func (s *ListUsersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListUsersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BrokerId != nil {
v := *s.BrokerId
diff --git a/service/mq/api_op_RebootBroker.go b/service/mq/api_op_RebootBroker.go
index 92e0dcf853b..8a5d5a8d67b 100644
--- a/service/mq/api_op_RebootBroker.go
+++ b/service/mq/api_op_RebootBroker.go
@@ -39,7 +39,7 @@ func (s *RebootBrokerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RebootBrokerInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BrokerId != nil {
v := *s.BrokerId
diff --git a/service/mq/api_op_UpdateBroker.go b/service/mq/api_op_UpdateBroker.go
index 3b0955f0500..78b8968ed53 100644
--- a/service/mq/api_op_UpdateBroker.go
+++ b/service/mq/api_op_UpdateBroker.go
@@ -49,7 +49,7 @@ func (s *UpdateBrokerInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateBrokerInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AutoMinorVersionUpgrade != nil {
v := *s.AutoMinorVersionUpgrade
diff --git a/service/mq/api_op_UpdateConfiguration.go b/service/mq/api_op_UpdateConfiguration.go
index a305aa3daa8..248ccbd7ccc 100644
--- a/service/mq/api_op_UpdateConfiguration.go
+++ b/service/mq/api_op_UpdateConfiguration.go
@@ -44,7 +44,7 @@ func (s *UpdateConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Data != nil {
v := *s.Data
@@ -73,7 +73,7 @@ type UpdateConfigurationOutput struct {
Arn *string `locationName:"arn" type:"string"`
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
Id *string `locationName:"id" type:"string"`
@@ -102,7 +102,8 @@ func (s UpdateConfigurationOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.Created
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "created", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "created",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Id != nil {
v := *s.Id
diff --git a/service/mq/api_op_UpdateUser.go b/service/mq/api_op_UpdateUser.go
index e2a61d0c4f0..e17f7bb86cd 100644
--- a/service/mq/api_op_UpdateUser.go
+++ b/service/mq/api_op_UpdateUser.go
@@ -52,7 +52,7 @@ func (s *UpdateUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConsoleAccess != nil {
v := *s.ConsoleAccess
diff --git a/service/mq/api_types.go b/service/mq/api_types.go
index c02d766d895..e3d2bd22378 100644
--- a/service/mq/api_types.go
+++ b/service/mq/api_types.go
@@ -212,7 +212,7 @@ type BrokerSummary struct {
BrokerState BrokerState `locationName:"brokerState" type:"string" enum:"true"`
// The time when the broker was created.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
// Required. The deployment mode of the broker.
DeploymentMode DeploymentMode `locationName:"deploymentMode" type:"string" enum:"true"`
@@ -256,7 +256,8 @@ func (s BrokerSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Created
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "created", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "created",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if len(s.DeploymentMode) > 0 {
v := s.DeploymentMode
@@ -282,7 +283,7 @@ type Configuration struct {
Arn *string `locationName:"arn" type:"string"`
// Required. The date and time of the configuration revision.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
// Required. The description of the configuration.
Description *string `locationName:"description" type:"string"`
@@ -327,7 +328,8 @@ func (s Configuration) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Created
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "created", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "created",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -420,7 +422,7 @@ type ConfigurationRevision struct {
_ struct{} `type:"structure"`
// Required. The date and time of the configuration revision.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
+ Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
// The description of the configuration revision.
Description *string `locationName:"description" type:"string"`
@@ -440,7 +442,8 @@ func (s ConfigurationRevision) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Created
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "created", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "created",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.Description != nil {
v := *s.Description
diff --git a/service/mturk/api_op_UpdateExpirationForHIT.go b/service/mturk/api_op_UpdateExpirationForHIT.go
index fe5563f9c0c..9b9982c1c8f 100644
--- a/service/mturk/api_op_UpdateExpirationForHIT.go
+++ b/service/mturk/api_op_UpdateExpirationForHIT.go
@@ -17,7 +17,7 @@ type UpdateExpirationForHITInput struct {
// The date and time at which you want the HIT to expire
//
// ExpireAt is a required field
- ExpireAt *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ ExpireAt *time.Time `type:"timestamp" required:"true"`
// The HIT to update.
//
diff --git a/service/mturk/api_types.go b/service/mturk/api_types.go
index eb3589d4bc1..a98eba339df 100644
--- a/service/mturk/api_types.go
+++ b/service/mturk/api_types.go
@@ -21,7 +21,7 @@ type Assignment struct {
_ struct{} `type:"structure"`
// The date and time the Worker accepted the assignment.
- AcceptTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AcceptTime *time.Time `type:"timestamp"`
// The Worker's answers submitted for the HIT contained in a QuestionFormAnswers
// document, if the Worker provides an answer. If the Worker does not provide
@@ -33,7 +33,7 @@ type Assignment struct {
// ApprovalTime is the date and time the Requester approved the results. This
// value is omitted from the assignment if the Requester has not yet approved
// the results.
- ApprovalTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ApprovalTime *time.Time `type:"timestamp"`
// A unique identifier for the assignment.
AssignmentId *string `min:"1" type:"string"`
@@ -47,19 +47,19 @@ type Assignment struct {
// This value is derived from the auto-approval delay specified by the Requester
// in the HIT. This value is omitted from the assignment if the Worker has not
// yet submitted results.
- AutoApprovalTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AutoApprovalTime *time.Time `type:"timestamp"`
// The date and time of the deadline for the assignment. This value is derived
// from the deadline specification for the HIT and the date and time the Worker
// accepted the HIT.
- Deadline *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Deadline *time.Time `type:"timestamp"`
// The ID of the HIT.
HITId *string `min:"1" type:"string"`
// If the Worker has submitted results and the Requester has rejected the results,
// RejectionTime is the date and time the Requester rejected the results.
- RejectionTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RejectionTime *time.Time `type:"timestamp"`
// The feedback string included with the call to the ApproveAssignment operation
// or the RejectAssignment operation, if the Requester approved or rejected
@@ -69,7 +69,7 @@ type Assignment struct {
// If the Worker has submitted results, SubmitTime is the date and time the
// assignment was submitted. This value is omitted from the assignment if the
// Worker has not yet submitted results.
- SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `type:"timestamp"`
// The ID of the Worker who accepted the HIT.
WorkerId *string `min:"1" type:"string"`
@@ -92,7 +92,7 @@ type BonusPayment struct {
BonusAmount *string `type:"string"`
// The date and time of when the bonus was granted.
- GrantTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ GrantTime *time.Time `type:"timestamp"`
// The Reason text given when the bonus was granted, if any.
Reason *string `type:"string"`
@@ -124,13 +124,13 @@ type HIT struct {
AutoApprovalDelayInSeconds *int64 `type:"long"`
// The date and time the HIT was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// A general description of the HIT.
Description *string `type:"string"`
// The date and time the HIT expires.
- Expiration *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Expiration *time.Time `type:"timestamp"`
// The ID of the HIT Group of this HIT.
HITGroupId *string `min:"1" type:"string"`
@@ -422,7 +422,7 @@ type Qualification struct {
// Qualification was revoked, and then re-granted based on a new Qualification
// request, GrantTime is the date and time of the last call to the AcceptQualificationRequest
// operation.
- GrantTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ GrantTime *time.Time `type:"timestamp"`
// The value (score) of the Qualification, if the Qualification has an integer
// value.
@@ -469,7 +469,7 @@ type QualificationRequest struct {
// is either the time the Worker submitted answers for a Qualification test,
// or the time the Worker requested the Qualification if the Qualification type
// does not have a test.
- SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmitTime *time.Time `type:"timestamp"`
// The contents of the Qualification test that was presented to the Worker,
// if the type has a test and the Worker has submitted answers. This value is
@@ -612,7 +612,7 @@ type QualificationType struct {
AutoGrantedValue *int64 `type:"integer"`
// The date and time the Qualification type was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// A long description for the Qualification type.
Description *string `type:"string"`
@@ -681,7 +681,7 @@ type ReviewActionDetail struct {
ActionName *string `type:"string"`
// The date when the action was completed.
- CompleteTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompleteTime *time.Time `type:"timestamp"`
// Present only when the Results have a FAILED Status.
ErrorCode *string `type:"string"`
diff --git a/service/neptune/api_op_DescribeEvents.go b/service/neptune/api_op_DescribeEvents.go
index b673e2f4e2c..2ef728d3192 100644
--- a/service/neptune/api_op_DescribeEvents.go
+++ b/service/neptune/api_op_DescribeEvents.go
@@ -25,7 +25,7 @@ type DescribeEventsInput struct {
// page. (http://en.wikipedia.org/wiki/ISO_8601)
//
// Example: 2009-07-08T18:00Z
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// A list of event categories that trigger notifications for a event notification
// subscription.
@@ -78,7 +78,7 @@ type DescribeEventsInput struct {
// page. (http://en.wikipedia.org/wiki/ISO_8601)
//
// Example: 2009-07-08T18:00Z
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/neptune/api_op_RestoreDBClusterToPointInTime.go b/service/neptune/api_op_RestoreDBClusterToPointInTime.go
index 6eb412d9400..ed665d80f84 100644
--- a/service/neptune/api_op_RestoreDBClusterToPointInTime.go
+++ b/service/neptune/api_op_RestoreDBClusterToPointInTime.go
@@ -98,7 +98,7 @@ type RestoreDBClusterToPointInTimeInput struct {
// * Cannot be specified if RestoreType parameter is copy-on-write
//
// Example: 2015-03-07T23:45:00Z
- RestoreToTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ RestoreToTime *time.Time `type:"timestamp"`
// The type of restore to be performed. The only type of restore currently supported
// is full-copy (the default).
diff --git a/service/neptune/api_types.go b/service/neptune/api_types.go
index a5091dfd77a..a08eda141c7 100644
--- a/service/neptune/api_types.go
+++ b/service/neptune/api_types.go
@@ -94,7 +94,7 @@ type DBCluster struct {
// Specifies the time when the DB cluster was created, in Universal Coordinated
// Time (UTC).
- ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ClusterCreateTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) for the DB cluster.
DBClusterArn *string `type:"string"`
@@ -128,7 +128,7 @@ type DBCluster struct {
// Specifies the earliest time to which a database can be restored with point-in-time
// restore.
- EarliestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EarliestRestorableTime *time.Time `type:"timestamp"`
// Specifies the connection endpoint for the primary instance of the DB cluster.
Endpoint *string `type:"string"`
@@ -152,7 +152,7 @@ type DBCluster struct {
// Specifies the latest time to which a database can be restored with point-in-time
// restore.
- LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LatestRestorableTime *time.Time `type:"timestamp"`
// Contains the master username for the DB cluster.
MasterUsername *string `type:"string"`
@@ -326,7 +326,7 @@ type DBClusterSnapshot struct {
// Specifies the time when the DB cluster was created, in Universal Coordinated
// Time (UTC).
- ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ClusterCreateTime *time.Time `type:"timestamp"`
// Specifies the DB cluster identifier of the DB cluster that this DB cluster
// snapshot was created from.
@@ -367,7 +367,7 @@ type DBClusterSnapshot struct {
// Provides the time when the snapshot was taken, in Universal Coordinated Time
// (UTC).
- SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ SnapshotCreateTime *time.Time `type:"timestamp"`
// Provides the type of the DB cluster snapshot.
SnapshotType *string `type:"string"`
@@ -594,7 +594,7 @@ type DBInstance struct {
IAMDatabaseAuthenticationEnabled *bool `type:"boolean"`
// Provides the date and time the DB instance was created.
- InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ InstanceCreateTime *time.Time `type:"timestamp"`
// Specifies the Provisioned IOPS (I/O operations per second) value.
Iops *int64 `type:"integer"`
@@ -604,7 +604,7 @@ type DBInstance struct {
// Specifies the latest time to which a database can be restored with point-in-time
// restore.
- LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LatestRestorableTime *time.Time `type:"timestamp"`
// License model information for this DB instance.
LicenseModel *string `type:"string"`
@@ -918,7 +918,7 @@ type Event struct {
_ struct{} `type:"structure"`
// Specifies the date and time of the event.
- Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Date *time.Time `type:"timestamp"`
// Specifies the category for the event.
EventCategories []string `locationNameList:"EventCategory" type:"list"`
@@ -1219,14 +1219,14 @@ type PendingMaintenanceAction struct {
// action is applied to the resource during its first maintenance window after
// this date. If this date is specified, any next-maintenance opt-in requests
// are ignored.
- AutoAppliedAfterDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ AutoAppliedAfterDate *time.Time `type:"timestamp"`
// The effective date when the pending maintenance action is applied to the
// resource. This date takes into account opt-in requests received from the
// ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate, and the ForcedApplyDate.
// This value is blank if an opt-in request has not been received and nothing
// has been specified as AutoAppliedAfterDate or ForcedApplyDate.
- CurrentApplyDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CurrentApplyDate *time.Time `type:"timestamp"`
// A description providing more detail about the maintenance action.
Description *string `type:"string"`
@@ -1235,7 +1235,7 @@ type PendingMaintenanceAction struct {
// action is applied to the resource on this date regardless of the maintenance
// window for the resource. If this date is specified, any immediate opt-in
// requests are ignored.
- ForcedApplyDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ForcedApplyDate *time.Time `type:"timestamp"`
// Indicates the type of opt-in request that has been received for the resource.
OptInStatus *string `type:"string"`
diff --git a/service/opsworkscm/api_types.go b/service/opsworkscm/api_types.go
index 5541bbf5251..bee2e32a49f 100644
--- a/service/opsworkscm/api_types.go
+++ b/service/opsworkscm/api_types.go
@@ -55,7 +55,7 @@ type Backup struct {
BackupType BackupType `type:"string" enum:"true"`
// The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// A user-provided description for a manual backup. This field is empty for
// automated backups.
@@ -164,7 +164,7 @@ type Server struct {
CloudFormationStackArn *string `type:"string"`
// Time stamp of server creation. Example 2016-07-29T13:38:47.520Z
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// Disables automated backups. The number of stored backups is dependent on
// the value of PreferredBackupCount.
@@ -271,7 +271,7 @@ type ServerEvent struct {
_ struct{} `type:"structure"`
// The time when the event occurred.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The Amazon S3 URL of the event's log file.
LogUrl *string `type:"string"`
diff --git a/service/organizations/api_types.go b/service/organizations/api_types.go
index 69c4dfb4126..c304a94b7fc 100644
--- a/service/organizations/api_types.go
+++ b/service/organizations/api_types.go
@@ -40,7 +40,7 @@ type Account struct {
JoinedMethod AccountJoinedMethod `type:"string" enum:"true"`
// The date the account became a part of the organization.
- JoinedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ JoinedTimestamp *time.Time `type:"timestamp"`
// The friendly name of the account.
//
@@ -102,7 +102,7 @@ type CreateAccountStatus struct {
AccountName *string `min:"1" type:"string"`
// The date and time that the account was created and the request completed.
- CompletedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletedTimestamp *time.Time `type:"timestamp"`
// If the request failed, a description of the reason for the failure.
//
@@ -133,7 +133,7 @@ type CreateAccountStatus struct {
Id *string `type:"string"`
// The date and time that the request was made for the account creation.
- RequestedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RequestedTimestamp *time.Time `type:"timestamp"`
// The status of the request.
State CreateAccountState `type:"string" enum:"true"`
@@ -152,7 +152,7 @@ type EnabledServicePrincipal struct {
// The date that the service principal was enabled for integration with AWS
// Organizations.
- DateEnabled *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DateEnabled *time.Time `type:"timestamp"`
// The name of the service principal. This is typically in the form of a URL,
// such as: servicename.amazonaws.com.
@@ -204,7 +204,7 @@ type Handshake struct {
// The date and time that the handshake expires. If the recipient of the handshake
// request fails to respond before the specified date and time, the handshake
// becomes inactive and is no longer valid.
- ExpirationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpirationTimestamp *time.Time `type:"timestamp"`
// The unique identifier (ID) of a handshake. The originating account creates
// the ID when it initiates the handshake.
@@ -217,7 +217,7 @@ type Handshake struct {
Parties []HandshakeParty `type:"list"`
// The date and time that the handshake request was made.
- RequestedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RequestedTimestamp *time.Time `type:"timestamp"`
// Additional information that is needed to process the handshake.
Resources []HandshakeResource `type:"list"`
diff --git a/service/pi/api_op_DescribeDimensionKeys.go b/service/pi/api_op_DescribeDimensionKeys.go
index 1088db31adc..857a622386b 100644
--- a/service/pi/api_op_DescribeDimensionKeys.go
+++ b/service/pi/api_op_DescribeDimensionKeys.go
@@ -21,7 +21,7 @@ type DescribeDimensionKeysInput struct {
// The value for EndTime must be later than the value for StartTime.
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// One or more filters to apply in the request. Restrictions:
//
@@ -108,7 +108,7 @@ type DescribeDimensionKeysInput struct {
// The value for StartTime must be earlier than the value for EndTime.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -166,12 +166,12 @@ type DescribeDimensionKeysOutput struct {
// The end time for the returned dimension keys, after alignment to a granular
// boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater
// than or equal to the value of the user-specified Endtime.
- AlignedEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AlignedEndTime *time.Time `type:"timestamp"`
// The start time for the returned dimension keys, after alignment to a granular
// boundary (as specified by PeriodInSeconds). AlignedStartTime will be less
// than or equal to the value of the user-specified StartTime.
- AlignedStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AlignedStartTime *time.Time `type:"timestamp"`
// The dimension keys that were requested.
Keys []DimensionKeyDescription `type:"list"`
diff --git a/service/pi/api_op_GetResourceMetrics.go b/service/pi/api_op_GetResourceMetrics.go
index a8fc5d43a24..3a2bd157381 100644
--- a/service/pi/api_op_GetResourceMetrics.go
+++ b/service/pi/api_op_GetResourceMetrics.go
@@ -22,7 +22,7 @@ type GetResourceMetricsInput struct {
// The value for EndTime must be later than the value for StartTime.
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// An immutable, AWS Region-unique identifier for a data source. Performance
// Insights gathers metrics from this data source.
@@ -81,7 +81,7 @@ type GetResourceMetricsInput struct {
// The value for StartTime must be earlier than the value for EndTime.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -135,12 +135,12 @@ type GetResourceMetricsOutput struct {
// The end time for the returned metrics, after alignment to a granular boundary
// (as specified by PeriodInSeconds). AlignedEndTime will be greater than or
// equal to the value of the user-specified Endtime.
- AlignedEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AlignedEndTime *time.Time `type:"timestamp"`
// The start time for the returned metrics, after alignment to a granular boundary
// (as specified by PeriodInSeconds). AlignedStartTime will be less than or
// equal to the value of the user-specified StartTime.
- AlignedStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ AlignedStartTime *time.Time `type:"timestamp"`
// An immutable, AWS Region-unique identifier for a data source. Performance
// Insights gathers metrics from this data source.
diff --git a/service/pi/api_types.go b/service/pi/api_types.go
index ae95354fcde..fa3c740f2da 100644
--- a/service/pi/api_types.go
+++ b/service/pi/api_types.go
@@ -21,7 +21,7 @@ type DataPoint struct {
// The time, in epoch format, associated with a particular Value.
//
// Timestamp is a required field
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ Timestamp *time.Time `type:"timestamp" required:"true"`
// The actual value associated with a particular Timestamp.
//
diff --git a/service/pinpoint/api_op_CreateApp.go b/service/pinpoint/api_op_CreateApp.go
index 3ba57ccd6e3..f562d4f2573 100644
--- a/service/pinpoint/api_op_CreateApp.go
+++ b/service/pinpoint/api_op_CreateApp.go
@@ -41,7 +41,7 @@ func (s *CreateAppInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateAppInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CreateApplicationRequest != nil {
v := s.CreateApplicationRequest
diff --git a/service/pinpoint/api_op_CreateCampaign.go b/service/pinpoint/api_op_CreateCampaign.go
index e70124f574c..8000f6e3b9b 100644
--- a/service/pinpoint/api_op_CreateCampaign.go
+++ b/service/pinpoint/api_op_CreateCampaign.go
@@ -48,7 +48,7 @@ func (s *CreateCampaignInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateCampaignInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_CreateExportJob.go b/service/pinpoint/api_op_CreateExportJob.go
index d6bb87266f3..9c6f70c2a54 100644
--- a/service/pinpoint/api_op_CreateExportJob.go
+++ b/service/pinpoint/api_op_CreateExportJob.go
@@ -48,7 +48,7 @@ func (s *CreateExportJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateExportJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_CreateImportJob.go b/service/pinpoint/api_op_CreateImportJob.go
index c3c4237af6c..9cac3802dfd 100644
--- a/service/pinpoint/api_op_CreateImportJob.go
+++ b/service/pinpoint/api_op_CreateImportJob.go
@@ -48,7 +48,7 @@ func (s *CreateImportJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateImportJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_CreateSegment.go b/service/pinpoint/api_op_CreateSegment.go
index 6b46b94f3f9..3d38e5df44f 100644
--- a/service/pinpoint/api_op_CreateSegment.go
+++ b/service/pinpoint/api_op_CreateSegment.go
@@ -48,7 +48,7 @@ func (s *CreateSegmentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSegmentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteAdmChannel.go b/service/pinpoint/api_op_DeleteAdmChannel.go
index 5f107a4e2d8..7596efc5b06 100644
--- a/service/pinpoint/api_op_DeleteAdmChannel.go
+++ b/service/pinpoint/api_op_DeleteAdmChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteAdmChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteAdmChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteApnsChannel.go b/service/pinpoint/api_op_DeleteApnsChannel.go
index 870d74ea0b6..a06a86ca1ee 100644
--- a/service/pinpoint/api_op_DeleteApnsChannel.go
+++ b/service/pinpoint/api_op_DeleteApnsChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteApnsChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteApnsChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteApnsSandboxChannel.go b/service/pinpoint/api_op_DeleteApnsSandboxChannel.go
index 375c0053650..a2f335eb9a6 100644
--- a/service/pinpoint/api_op_DeleteApnsSandboxChannel.go
+++ b/service/pinpoint/api_op_DeleteApnsSandboxChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteApnsSandboxChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteApnsSandboxChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteApnsVoipChannel.go b/service/pinpoint/api_op_DeleteApnsVoipChannel.go
index 832393385af..1e3850f0b0b 100644
--- a/service/pinpoint/api_op_DeleteApnsVoipChannel.go
+++ b/service/pinpoint/api_op_DeleteApnsVoipChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteApnsVoipChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteApnsVoipChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteApnsVoipSandboxChannel.go b/service/pinpoint/api_op_DeleteApnsVoipSandboxChannel.go
index 158dcb2a98f..0c387c7c653 100644
--- a/service/pinpoint/api_op_DeleteApnsVoipSandboxChannel.go
+++ b/service/pinpoint/api_op_DeleteApnsVoipSandboxChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteApnsVoipSandboxChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteApnsVoipSandboxChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteApp.go b/service/pinpoint/api_op_DeleteApp.go
index 81293eaa3ae..2966f6f3243 100644
--- a/service/pinpoint/api_op_DeleteApp.go
+++ b/service/pinpoint/api_op_DeleteApp.go
@@ -39,7 +39,7 @@ func (s *DeleteAppInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteAppInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteBaiduChannel.go b/service/pinpoint/api_op_DeleteBaiduChannel.go
index 09761776247..5f5fb7007e0 100644
--- a/service/pinpoint/api_op_DeleteBaiduChannel.go
+++ b/service/pinpoint/api_op_DeleteBaiduChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteBaiduChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteBaiduChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteCampaign.go b/service/pinpoint/api_op_DeleteCampaign.go
index 88794d5174a..f1bdb9a1059 100644
--- a/service/pinpoint/api_op_DeleteCampaign.go
+++ b/service/pinpoint/api_op_DeleteCampaign.go
@@ -46,7 +46,7 @@ func (s *DeleteCampaignInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteCampaignInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteEmailChannel.go b/service/pinpoint/api_op_DeleteEmailChannel.go
index 9fb9ea1acca..2c549186b37 100644
--- a/service/pinpoint/api_op_DeleteEmailChannel.go
+++ b/service/pinpoint/api_op_DeleteEmailChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteEmailChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteEmailChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteEndpoint.go b/service/pinpoint/api_op_DeleteEndpoint.go
index caae41446f4..a8d60c40ceb 100644
--- a/service/pinpoint/api_op_DeleteEndpoint.go
+++ b/service/pinpoint/api_op_DeleteEndpoint.go
@@ -46,7 +46,7 @@ func (s *DeleteEndpointInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteEndpointInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteEventStream.go b/service/pinpoint/api_op_DeleteEventStream.go
index 068bbda9c3d..b2a51b0eb0a 100644
--- a/service/pinpoint/api_op_DeleteEventStream.go
+++ b/service/pinpoint/api_op_DeleteEventStream.go
@@ -39,7 +39,7 @@ func (s *DeleteEventStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteEventStreamInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteGcmChannel.go b/service/pinpoint/api_op_DeleteGcmChannel.go
index 2c6331e9b6c..b3628d7ef5f 100644
--- a/service/pinpoint/api_op_DeleteGcmChannel.go
+++ b/service/pinpoint/api_op_DeleteGcmChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteGcmChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteGcmChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteSegment.go b/service/pinpoint/api_op_DeleteSegment.go
index 93ab8593ace..0f459e4c999 100644
--- a/service/pinpoint/api_op_DeleteSegment.go
+++ b/service/pinpoint/api_op_DeleteSegment.go
@@ -46,7 +46,7 @@ func (s *DeleteSegmentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteSegmentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteSmsChannel.go b/service/pinpoint/api_op_DeleteSmsChannel.go
index a8c1554289b..6f83b13a30e 100644
--- a/service/pinpoint/api_op_DeleteSmsChannel.go
+++ b/service/pinpoint/api_op_DeleteSmsChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteSmsChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteSmsChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteUserEndpoints.go b/service/pinpoint/api_op_DeleteUserEndpoints.go
index d71ee7f1026..8f5631775d8 100644
--- a/service/pinpoint/api_op_DeleteUserEndpoints.go
+++ b/service/pinpoint/api_op_DeleteUserEndpoints.go
@@ -46,7 +46,7 @@ func (s *DeleteUserEndpointsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteUserEndpointsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_DeleteVoiceChannel.go b/service/pinpoint/api_op_DeleteVoiceChannel.go
index bdeef587a0e..28a30265039 100644
--- a/service/pinpoint/api_op_DeleteVoiceChannel.go
+++ b/service/pinpoint/api_op_DeleteVoiceChannel.go
@@ -39,7 +39,7 @@ func (s *DeleteVoiceChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteVoiceChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetAdmChannel.go b/service/pinpoint/api_op_GetAdmChannel.go
index f916449f514..baa121b4380 100644
--- a/service/pinpoint/api_op_GetAdmChannel.go
+++ b/service/pinpoint/api_op_GetAdmChannel.go
@@ -39,7 +39,7 @@ func (s *GetAdmChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAdmChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetApnsChannel.go b/service/pinpoint/api_op_GetApnsChannel.go
index f6da1420f96..eb3412ae2d1 100644
--- a/service/pinpoint/api_op_GetApnsChannel.go
+++ b/service/pinpoint/api_op_GetApnsChannel.go
@@ -39,7 +39,7 @@ func (s *GetApnsChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApnsChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetApnsSandboxChannel.go b/service/pinpoint/api_op_GetApnsSandboxChannel.go
index 16ec8642738..4a7992f2ee3 100644
--- a/service/pinpoint/api_op_GetApnsSandboxChannel.go
+++ b/service/pinpoint/api_op_GetApnsSandboxChannel.go
@@ -39,7 +39,7 @@ func (s *GetApnsSandboxChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApnsSandboxChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetApnsVoipChannel.go b/service/pinpoint/api_op_GetApnsVoipChannel.go
index 15dee1e1ddd..ac8a75b5ce6 100644
--- a/service/pinpoint/api_op_GetApnsVoipChannel.go
+++ b/service/pinpoint/api_op_GetApnsVoipChannel.go
@@ -39,7 +39,7 @@ func (s *GetApnsVoipChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApnsVoipChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetApnsVoipSandboxChannel.go b/service/pinpoint/api_op_GetApnsVoipSandboxChannel.go
index af1db6a8ca5..a7af0fb831e 100644
--- a/service/pinpoint/api_op_GetApnsVoipSandboxChannel.go
+++ b/service/pinpoint/api_op_GetApnsVoipSandboxChannel.go
@@ -39,7 +39,7 @@ func (s *GetApnsVoipSandboxChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApnsVoipSandboxChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetApp.go b/service/pinpoint/api_op_GetApp.go
index 0f6f827f784..d6559d22045 100644
--- a/service/pinpoint/api_op_GetApp.go
+++ b/service/pinpoint/api_op_GetApp.go
@@ -39,7 +39,7 @@ func (s *GetAppInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAppInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetApplicationSettings.go b/service/pinpoint/api_op_GetApplicationSettings.go
index d77e89e312b..13a1d961b0e 100644
--- a/service/pinpoint/api_op_GetApplicationSettings.go
+++ b/service/pinpoint/api_op_GetApplicationSettings.go
@@ -39,7 +39,7 @@ func (s *GetApplicationSettingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApplicationSettingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetApps.go b/service/pinpoint/api_op_GetApps.go
index 602a8d2dd59..a94c019af52 100644
--- a/service/pinpoint/api_op_GetApps.go
+++ b/service/pinpoint/api_op_GetApps.go
@@ -26,7 +26,7 @@ func (s GetAppsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAppsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PageSize != nil {
v := *s.PageSize
diff --git a/service/pinpoint/api_op_GetBaiduChannel.go b/service/pinpoint/api_op_GetBaiduChannel.go
index 818ec840002..b60de5a3c2d 100644
--- a/service/pinpoint/api_op_GetBaiduChannel.go
+++ b/service/pinpoint/api_op_GetBaiduChannel.go
@@ -39,7 +39,7 @@ func (s *GetBaiduChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBaiduChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetCampaign.go b/service/pinpoint/api_op_GetCampaign.go
index 94f8ae95b2d..6fffc431296 100644
--- a/service/pinpoint/api_op_GetCampaign.go
+++ b/service/pinpoint/api_op_GetCampaign.go
@@ -46,7 +46,7 @@ func (s *GetCampaignInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCampaignInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetCampaignActivities.go b/service/pinpoint/api_op_GetCampaignActivities.go
index 576e41cca22..10b3d527d68 100644
--- a/service/pinpoint/api_op_GetCampaignActivities.go
+++ b/service/pinpoint/api_op_GetCampaignActivities.go
@@ -50,7 +50,7 @@ func (s *GetCampaignActivitiesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCampaignActivitiesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetCampaignVersion.go b/service/pinpoint/api_op_GetCampaignVersion.go
index d73c603bcf4..4b4efa8afb8 100644
--- a/service/pinpoint/api_op_GetCampaignVersion.go
+++ b/service/pinpoint/api_op_GetCampaignVersion.go
@@ -53,7 +53,7 @@ func (s *GetCampaignVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCampaignVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetCampaignVersions.go b/service/pinpoint/api_op_GetCampaignVersions.go
index 65aade5912d..1203b010243 100644
--- a/service/pinpoint/api_op_GetCampaignVersions.go
+++ b/service/pinpoint/api_op_GetCampaignVersions.go
@@ -50,7 +50,7 @@ func (s *GetCampaignVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCampaignVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetCampaigns.go b/service/pinpoint/api_op_GetCampaigns.go
index 90aed762f1a..4e07222dca8 100644
--- a/service/pinpoint/api_op_GetCampaigns.go
+++ b/service/pinpoint/api_op_GetCampaigns.go
@@ -43,7 +43,7 @@ func (s *GetCampaignsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCampaignsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetChannels.go b/service/pinpoint/api_op_GetChannels.go
index bb096b8a278..fb847117176 100644
--- a/service/pinpoint/api_op_GetChannels.go
+++ b/service/pinpoint/api_op_GetChannels.go
@@ -39,7 +39,7 @@ func (s *GetChannelsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetChannelsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetEmailChannel.go b/service/pinpoint/api_op_GetEmailChannel.go
index 3ebfb7b8698..5bd8de6767e 100644
--- a/service/pinpoint/api_op_GetEmailChannel.go
+++ b/service/pinpoint/api_op_GetEmailChannel.go
@@ -39,7 +39,7 @@ func (s *GetEmailChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetEmailChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetEndpoint.go b/service/pinpoint/api_op_GetEndpoint.go
index c71c544ecfe..60800005c02 100644
--- a/service/pinpoint/api_op_GetEndpoint.go
+++ b/service/pinpoint/api_op_GetEndpoint.go
@@ -46,7 +46,7 @@ func (s *GetEndpointInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetEndpointInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetEventStream.go b/service/pinpoint/api_op_GetEventStream.go
index ff613d581fe..7f87566c668 100644
--- a/service/pinpoint/api_op_GetEventStream.go
+++ b/service/pinpoint/api_op_GetEventStream.go
@@ -39,7 +39,7 @@ func (s *GetEventStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetEventStreamInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetExportJob.go b/service/pinpoint/api_op_GetExportJob.go
index c01f5f5d674..2c1d0298eca 100644
--- a/service/pinpoint/api_op_GetExportJob.go
+++ b/service/pinpoint/api_op_GetExportJob.go
@@ -46,7 +46,7 @@ func (s *GetExportJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetExportJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetExportJobs.go b/service/pinpoint/api_op_GetExportJobs.go
index 66095bb7c4a..3218b3623e5 100644
--- a/service/pinpoint/api_op_GetExportJobs.go
+++ b/service/pinpoint/api_op_GetExportJobs.go
@@ -43,7 +43,7 @@ func (s *GetExportJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetExportJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetGcmChannel.go b/service/pinpoint/api_op_GetGcmChannel.go
index a23ce9d77ef..584a9d63e43 100644
--- a/service/pinpoint/api_op_GetGcmChannel.go
+++ b/service/pinpoint/api_op_GetGcmChannel.go
@@ -39,7 +39,7 @@ func (s *GetGcmChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGcmChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetImportJob.go b/service/pinpoint/api_op_GetImportJob.go
index eb8a5a756a3..4b176c1bc3a 100644
--- a/service/pinpoint/api_op_GetImportJob.go
+++ b/service/pinpoint/api_op_GetImportJob.go
@@ -46,7 +46,7 @@ func (s *GetImportJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetImportJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetImportJobs.go b/service/pinpoint/api_op_GetImportJobs.go
index acb09c51e9b..b676f6d21f7 100644
--- a/service/pinpoint/api_op_GetImportJobs.go
+++ b/service/pinpoint/api_op_GetImportJobs.go
@@ -43,7 +43,7 @@ func (s *GetImportJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetImportJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetSegment.go b/service/pinpoint/api_op_GetSegment.go
index 375a703d31a..de4897c7141 100644
--- a/service/pinpoint/api_op_GetSegment.go
+++ b/service/pinpoint/api_op_GetSegment.go
@@ -46,7 +46,7 @@ func (s *GetSegmentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSegmentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetSegmentExportJobs.go b/service/pinpoint/api_op_GetSegmentExportJobs.go
index ac8e1c26bc9..1e45624f2aa 100644
--- a/service/pinpoint/api_op_GetSegmentExportJobs.go
+++ b/service/pinpoint/api_op_GetSegmentExportJobs.go
@@ -50,7 +50,7 @@ func (s *GetSegmentExportJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSegmentExportJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetSegmentImportJobs.go b/service/pinpoint/api_op_GetSegmentImportJobs.go
index 36f27a3172c..cc25c15d185 100644
--- a/service/pinpoint/api_op_GetSegmentImportJobs.go
+++ b/service/pinpoint/api_op_GetSegmentImportJobs.go
@@ -50,7 +50,7 @@ func (s *GetSegmentImportJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSegmentImportJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetSegmentVersion.go b/service/pinpoint/api_op_GetSegmentVersion.go
index da603a43ebd..97f9671abb4 100644
--- a/service/pinpoint/api_op_GetSegmentVersion.go
+++ b/service/pinpoint/api_op_GetSegmentVersion.go
@@ -53,7 +53,7 @@ func (s *GetSegmentVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSegmentVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetSegmentVersions.go b/service/pinpoint/api_op_GetSegmentVersions.go
index 72de5232ed9..9aac86f746a 100644
--- a/service/pinpoint/api_op_GetSegmentVersions.go
+++ b/service/pinpoint/api_op_GetSegmentVersions.go
@@ -50,7 +50,7 @@ func (s *GetSegmentVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSegmentVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetSegments.go b/service/pinpoint/api_op_GetSegments.go
index b4f2ef37a24..aa9b52efe05 100644
--- a/service/pinpoint/api_op_GetSegments.go
+++ b/service/pinpoint/api_op_GetSegments.go
@@ -43,7 +43,7 @@ func (s *GetSegmentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSegmentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetSmsChannel.go b/service/pinpoint/api_op_GetSmsChannel.go
index 49f94db6b3c..10e27950fb4 100644
--- a/service/pinpoint/api_op_GetSmsChannel.go
+++ b/service/pinpoint/api_op_GetSmsChannel.go
@@ -39,7 +39,7 @@ func (s *GetSmsChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSmsChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetUserEndpoints.go b/service/pinpoint/api_op_GetUserEndpoints.go
index 81bf51bfee9..8532b85763b 100644
--- a/service/pinpoint/api_op_GetUserEndpoints.go
+++ b/service/pinpoint/api_op_GetUserEndpoints.go
@@ -46,7 +46,7 @@ func (s *GetUserEndpointsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetUserEndpointsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_GetVoiceChannel.go b/service/pinpoint/api_op_GetVoiceChannel.go
index aad5a232a3e..a5c34e0230a 100644
--- a/service/pinpoint/api_op_GetVoiceChannel.go
+++ b/service/pinpoint/api_op_GetVoiceChannel.go
@@ -39,7 +39,7 @@ func (s *GetVoiceChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetVoiceChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_ListTagsForResource.go b/service/pinpoint/api_op_ListTagsForResource.go
index d20bab1fd8a..746f364ab54 100644
--- a/service/pinpoint/api_op_ListTagsForResource.go
+++ b/service/pinpoint/api_op_ListTagsForResource.go
@@ -39,7 +39,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/pinpoint/api_op_PhoneNumberValidate.go b/service/pinpoint/api_op_PhoneNumberValidate.go
index 5101a91f9a2..698eb1c4876 100644
--- a/service/pinpoint/api_op_PhoneNumberValidate.go
+++ b/service/pinpoint/api_op_PhoneNumberValidate.go
@@ -41,7 +41,7 @@ func (s *PhoneNumberValidateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PhoneNumberValidateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NumberValidateRequest != nil {
v := s.NumberValidateRequest
diff --git a/service/pinpoint/api_op_PutEventStream.go b/service/pinpoint/api_op_PutEventStream.go
index 1bfb7355cae..fc110034a44 100644
--- a/service/pinpoint/api_op_PutEventStream.go
+++ b/service/pinpoint/api_op_PutEventStream.go
@@ -48,7 +48,7 @@ func (s *PutEventStreamInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutEventStreamInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_PutEvents.go b/service/pinpoint/api_op_PutEvents.go
index a50a388baa2..0ca30dfb2cf 100644
--- a/service/pinpoint/api_op_PutEvents.go
+++ b/service/pinpoint/api_op_PutEvents.go
@@ -48,7 +48,7 @@ func (s *PutEventsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutEventsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_RemoveAttributes.go b/service/pinpoint/api_op_RemoveAttributes.go
index c8e3cc37ad7..644811a5d88 100644
--- a/service/pinpoint/api_op_RemoveAttributes.go
+++ b/service/pinpoint/api_op_RemoveAttributes.go
@@ -55,7 +55,7 @@ func (s *RemoveAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemoveAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_SendMessages.go b/service/pinpoint/api_op_SendMessages.go
index 91a0563873d..ad16f1932f7 100644
--- a/service/pinpoint/api_op_SendMessages.go
+++ b/service/pinpoint/api_op_SendMessages.go
@@ -48,7 +48,7 @@ func (s *SendMessagesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SendMessagesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_SendUsersMessages.go b/service/pinpoint/api_op_SendUsersMessages.go
index f1e1970e3dd..801489bb48c 100644
--- a/service/pinpoint/api_op_SendUsersMessages.go
+++ b/service/pinpoint/api_op_SendUsersMessages.go
@@ -48,7 +48,7 @@ func (s *SendUsersMessagesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SendUsersMessagesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_TagResource.go b/service/pinpoint/api_op_TagResource.go
index 1535639e7e2..4e9d1bc5ffa 100644
--- a/service/pinpoint/api_op_TagResource.go
+++ b/service/pinpoint/api_op_TagResource.go
@@ -52,7 +52,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/pinpoint/api_op_UntagResource.go b/service/pinpoint/api_op_UntagResource.go
index 513204b1d06..46d60d6f565 100644
--- a/service/pinpoint/api_op_UntagResource.go
+++ b/service/pinpoint/api_op_UntagResource.go
@@ -47,7 +47,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/pinpoint/api_op_UpdateAdmChannel.go b/service/pinpoint/api_op_UpdateAdmChannel.go
index 9426351dfc1..96ae3a4933f 100644
--- a/service/pinpoint/api_op_UpdateAdmChannel.go
+++ b/service/pinpoint/api_op_UpdateAdmChannel.go
@@ -48,7 +48,7 @@ func (s *UpdateAdmChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAdmChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateApnsChannel.go b/service/pinpoint/api_op_UpdateApnsChannel.go
index 07cfd7eab23..b5acf6f7dba 100644
--- a/service/pinpoint/api_op_UpdateApnsChannel.go
+++ b/service/pinpoint/api_op_UpdateApnsChannel.go
@@ -48,7 +48,7 @@ func (s *UpdateApnsChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateApnsChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateApnsSandboxChannel.go b/service/pinpoint/api_op_UpdateApnsSandboxChannel.go
index 3a46f0cb475..2fd356c3b9c 100644
--- a/service/pinpoint/api_op_UpdateApnsSandboxChannel.go
+++ b/service/pinpoint/api_op_UpdateApnsSandboxChannel.go
@@ -48,7 +48,7 @@ func (s *UpdateApnsSandboxChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateApnsSandboxChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateApnsVoipChannel.go b/service/pinpoint/api_op_UpdateApnsVoipChannel.go
index 7d238059c2d..347862d41fb 100644
--- a/service/pinpoint/api_op_UpdateApnsVoipChannel.go
+++ b/service/pinpoint/api_op_UpdateApnsVoipChannel.go
@@ -48,7 +48,7 @@ func (s *UpdateApnsVoipChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateApnsVoipChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateApnsVoipSandboxChannel.go b/service/pinpoint/api_op_UpdateApnsVoipSandboxChannel.go
index 23c6106bb14..83df63db9cf 100644
--- a/service/pinpoint/api_op_UpdateApnsVoipSandboxChannel.go
+++ b/service/pinpoint/api_op_UpdateApnsVoipSandboxChannel.go
@@ -48,7 +48,7 @@ func (s *UpdateApnsVoipSandboxChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateApnsVoipSandboxChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateApplicationSettings.go b/service/pinpoint/api_op_UpdateApplicationSettings.go
index a8bf5ecddaa..d3e8cef84d3 100644
--- a/service/pinpoint/api_op_UpdateApplicationSettings.go
+++ b/service/pinpoint/api_op_UpdateApplicationSettings.go
@@ -48,7 +48,7 @@ func (s *UpdateApplicationSettingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateApplicationSettingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateBaiduChannel.go b/service/pinpoint/api_op_UpdateBaiduChannel.go
index f6c1dad665b..87ded17f36d 100644
--- a/service/pinpoint/api_op_UpdateBaiduChannel.go
+++ b/service/pinpoint/api_op_UpdateBaiduChannel.go
@@ -48,7 +48,7 @@ func (s *UpdateBaiduChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateBaiduChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateCampaign.go b/service/pinpoint/api_op_UpdateCampaign.go
index a6699854bd2..4a179471a26 100644
--- a/service/pinpoint/api_op_UpdateCampaign.go
+++ b/service/pinpoint/api_op_UpdateCampaign.go
@@ -55,7 +55,7 @@ func (s *UpdateCampaignInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateCampaignInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateEmailChannel.go b/service/pinpoint/api_op_UpdateEmailChannel.go
index 58be37314c8..0dce968f4b4 100644
--- a/service/pinpoint/api_op_UpdateEmailChannel.go
+++ b/service/pinpoint/api_op_UpdateEmailChannel.go
@@ -48,7 +48,7 @@ func (s *UpdateEmailChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateEmailChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateEndpoint.go b/service/pinpoint/api_op_UpdateEndpoint.go
index 00a43baefe2..56de05d1986 100644
--- a/service/pinpoint/api_op_UpdateEndpoint.go
+++ b/service/pinpoint/api_op_UpdateEndpoint.go
@@ -55,7 +55,7 @@ func (s *UpdateEndpointInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateEndpointInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateEndpointsBatch.go b/service/pinpoint/api_op_UpdateEndpointsBatch.go
index 450b3c692f9..b87e627dadb 100644
--- a/service/pinpoint/api_op_UpdateEndpointsBatch.go
+++ b/service/pinpoint/api_op_UpdateEndpointsBatch.go
@@ -48,7 +48,7 @@ func (s *UpdateEndpointsBatchInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateEndpointsBatchInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateGcmChannel.go b/service/pinpoint/api_op_UpdateGcmChannel.go
index 3cf967a2d31..5b81ee0ca3e 100644
--- a/service/pinpoint/api_op_UpdateGcmChannel.go
+++ b/service/pinpoint/api_op_UpdateGcmChannel.go
@@ -48,7 +48,7 @@ func (s *UpdateGcmChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateGcmChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateSegment.go b/service/pinpoint/api_op_UpdateSegment.go
index ea08ef08a38..00019cbf782 100644
--- a/service/pinpoint/api_op_UpdateSegment.go
+++ b/service/pinpoint/api_op_UpdateSegment.go
@@ -55,7 +55,7 @@ func (s *UpdateSegmentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateSegmentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateSmsChannel.go b/service/pinpoint/api_op_UpdateSmsChannel.go
index 3710faf6aae..dbe5bffb0cd 100644
--- a/service/pinpoint/api_op_UpdateSmsChannel.go
+++ b/service/pinpoint/api_op_UpdateSmsChannel.go
@@ -48,7 +48,7 @@ func (s *UpdateSmsChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateSmsChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpoint/api_op_UpdateVoiceChannel.go b/service/pinpoint/api_op_UpdateVoiceChannel.go
index a634b8ff64c..b77a1cba040 100644
--- a/service/pinpoint/api_op_UpdateVoiceChannel.go
+++ b/service/pinpoint/api_op_UpdateVoiceChannel.go
@@ -48,7 +48,7 @@ func (s *UpdateVoiceChannelInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateVoiceChannelInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/pinpointemail/api_op_CreateConfigurationSet.go b/service/pinpointemail/api_op_CreateConfigurationSet.go
index e1299861415..b51ffd4576c 100644
--- a/service/pinpointemail/api_op_CreateConfigurationSet.go
+++ b/service/pinpointemail/api_op_CreateConfigurationSet.go
@@ -75,7 +75,7 @@ func (s *CreateConfigurationSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateConfigurationSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationSetName != nil {
v := *s.ConfigurationSetName
diff --git a/service/pinpointemail/api_op_CreateConfigurationSetEventDestination.go b/service/pinpointemail/api_op_CreateConfigurationSetEventDestination.go
index 6da2dfa93e5..e4f097e30d7 100644
--- a/service/pinpointemail/api_op_CreateConfigurationSetEventDestination.go
+++ b/service/pinpointemail/api_op_CreateConfigurationSetEventDestination.go
@@ -66,7 +66,7 @@ func (s *CreateConfigurationSetEventDestinationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateConfigurationSetEventDestinationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EventDestination != nil {
v := s.EventDestination
diff --git a/service/pinpointemail/api_op_CreateDedicatedIpPool.go b/service/pinpointemail/api_op_CreateDedicatedIpPool.go
index 86ad359180d..a34e0afc953 100644
--- a/service/pinpointemail/api_op_CreateDedicatedIpPool.go
+++ b/service/pinpointemail/api_op_CreateDedicatedIpPool.go
@@ -54,7 +54,7 @@ func (s *CreateDedicatedIpPoolInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDedicatedIpPoolInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PoolName != nil {
v := *s.PoolName
diff --git a/service/pinpointemail/api_op_CreateDeliverabilityTestReport.go b/service/pinpointemail/api_op_CreateDeliverabilityTestReport.go
index e50ceae58d7..20308c51b93 100644
--- a/service/pinpointemail/api_op_CreateDeliverabilityTestReport.go
+++ b/service/pinpointemail/api_op_CreateDeliverabilityTestReport.go
@@ -81,7 +81,7 @@ func (s *CreateDeliverabilityTestReportInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDeliverabilityTestReportInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Content != nil {
v := s.Content
diff --git a/service/pinpointemail/api_op_CreateEmailIdentity.go b/service/pinpointemail/api_op_CreateEmailIdentity.go
index 019720b97f3..7cc392b39ca 100644
--- a/service/pinpointemail/api_op_CreateEmailIdentity.go
+++ b/service/pinpointemail/api_op_CreateEmailIdentity.go
@@ -55,7 +55,7 @@ func (s *CreateEmailIdentityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateEmailIdentityInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EmailIdentity != nil {
v := *s.EmailIdentity
diff --git a/service/pinpointemail/api_op_DeleteConfigurationSet.go b/service/pinpointemail/api_op_DeleteConfigurationSet.go
index 7efb6d97843..b5bc4fc1005 100644
--- a/service/pinpointemail/api_op_DeleteConfigurationSet.go
+++ b/service/pinpointemail/api_op_DeleteConfigurationSet.go
@@ -42,7 +42,7 @@ func (s *DeleteConfigurationSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteConfigurationSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationSetName != nil {
v := *s.ConfigurationSetName
diff --git a/service/pinpointemail/api_op_DeleteConfigurationSetEventDestination.go b/service/pinpointemail/api_op_DeleteConfigurationSetEventDestination.go
index 48e19ee89eb..8028babdd79 100644
--- a/service/pinpointemail/api_op_DeleteConfigurationSetEventDestination.go
+++ b/service/pinpointemail/api_op_DeleteConfigurationSetEventDestination.go
@@ -52,7 +52,7 @@ func (s *DeleteConfigurationSetEventDestinationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteConfigurationSetEventDestinationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationSetName != nil {
v := *s.ConfigurationSetName
diff --git a/service/pinpointemail/api_op_DeleteDedicatedIpPool.go b/service/pinpointemail/api_op_DeleteDedicatedIpPool.go
index a4cc7f5f1ac..9c4c55ffe9d 100644
--- a/service/pinpointemail/api_op_DeleteDedicatedIpPool.go
+++ b/service/pinpointemail/api_op_DeleteDedicatedIpPool.go
@@ -42,7 +42,7 @@ func (s *DeleteDedicatedIpPoolInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDedicatedIpPoolInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PoolName != nil {
v := *s.PoolName
diff --git a/service/pinpointemail/api_op_DeleteEmailIdentity.go b/service/pinpointemail/api_op_DeleteEmailIdentity.go
index aaf0704b136..1b9b4b4c4c2 100644
--- a/service/pinpointemail/api_op_DeleteEmailIdentity.go
+++ b/service/pinpointemail/api_op_DeleteEmailIdentity.go
@@ -46,7 +46,7 @@ func (s *DeleteEmailIdentityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteEmailIdentityInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EmailIdentity != nil {
v := *s.EmailIdentity
diff --git a/service/pinpointemail/api_op_GetAccount.go b/service/pinpointemail/api_op_GetAccount.go
index b2cdc81d27d..071edaf1763 100644
--- a/service/pinpointemail/api_op_GetAccount.go
+++ b/service/pinpointemail/api_op_GetAccount.go
@@ -24,7 +24,7 @@ func (s GetAccountInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetAccountInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/pinpointemail/api_op_GetBlacklistReports.go b/service/pinpointemail/api_op_GetBlacklistReports.go
index 017f4476cea..da6979b115a 100644
--- a/service/pinpointemail/api_op_GetBlacklistReports.go
+++ b/service/pinpointemail/api_op_GetBlacklistReports.go
@@ -45,7 +45,7 @@ func (s *GetBlacklistReportsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetBlacklistReportsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.BlacklistItemNames != nil {
v := s.BlacklistItemNames
diff --git a/service/pinpointemail/api_op_GetConfigurationSet.go b/service/pinpointemail/api_op_GetConfigurationSet.go
index 28321502b1b..9f2fb274a3f 100644
--- a/service/pinpointemail/api_op_GetConfigurationSet.go
+++ b/service/pinpointemail/api_op_GetConfigurationSet.go
@@ -43,7 +43,7 @@ func (s *GetConfigurationSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetConfigurationSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationSetName != nil {
v := *s.ConfigurationSetName
diff --git a/service/pinpointemail/api_op_GetConfigurationSetEventDestinations.go b/service/pinpointemail/api_op_GetConfigurationSetEventDestinations.go
index 7dc10eb4ad5..6f72e438b5d 100644
--- a/service/pinpointemail/api_op_GetConfigurationSetEventDestinations.go
+++ b/service/pinpointemail/api_op_GetConfigurationSetEventDestinations.go
@@ -43,7 +43,7 @@ func (s *GetConfigurationSetEventDestinationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetConfigurationSetEventDestinationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationSetName != nil {
v := *s.ConfigurationSetName
diff --git a/service/pinpointemail/api_op_GetDedicatedIp.go b/service/pinpointemail/api_op_GetDedicatedIp.go
index 36b861088f8..efa9f19eb63 100644
--- a/service/pinpointemail/api_op_GetDedicatedIp.go
+++ b/service/pinpointemail/api_op_GetDedicatedIp.go
@@ -44,7 +44,7 @@ func (s *GetDedicatedIpInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDedicatedIpInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Ip != nil {
v := *s.Ip
diff --git a/service/pinpointemail/api_op_GetDedicatedIps.go b/service/pinpointemail/api_op_GetDedicatedIps.go
index 4e456c4ad9b..3cedf75ee2a 100644
--- a/service/pinpointemail/api_op_GetDedicatedIps.go
+++ b/service/pinpointemail/api_op_GetDedicatedIps.go
@@ -36,7 +36,7 @@ func (s GetDedicatedIpsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDedicatedIpsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/pinpointemail/api_op_GetDeliverabilityDashboardOptions.go b/service/pinpointemail/api_op_GetDeliverabilityDashboardOptions.go
index 88fd7645058..75b7f00e99c 100644
--- a/service/pinpointemail/api_op_GetDeliverabilityDashboardOptions.go
+++ b/service/pinpointemail/api_op_GetDeliverabilityDashboardOptions.go
@@ -33,7 +33,7 @@ func (s GetDeliverabilityDashboardOptionsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDeliverabilityDashboardOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
@@ -69,7 +69,7 @@ type GetDeliverabilityDashboardOptionsOutput struct {
// dashboard is scheduled to expire, if your subscription is scheduled to expire
// at the end of the current calendar month. This value is null if you have
// an active subscription that isn’t due to expire at the end of the month.
- SubscriptionExpiryDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubscriptionExpiryDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -119,7 +119,8 @@ func (s GetDeliverabilityDashboardOptionsOutput) MarshalFields(e protocol.FieldE
v := *s.SubscriptionExpiryDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "SubscriptionExpiryDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "SubscriptionExpiryDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/pinpointemail/api_op_GetDeliverabilityTestReport.go b/service/pinpointemail/api_op_GetDeliverabilityTestReport.go
index 1190d933dbb..ab07cff85c2 100644
--- a/service/pinpointemail/api_op_GetDeliverabilityTestReport.go
+++ b/service/pinpointemail/api_op_GetDeliverabilityTestReport.go
@@ -42,7 +42,7 @@ func (s *GetDeliverabilityTestReportInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDeliverabilityTestReportInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ReportId != nil {
v := *s.ReportId
diff --git a/service/pinpointemail/api_op_GetDomainDeliverabilityCampaign.go b/service/pinpointemail/api_op_GetDomainDeliverabilityCampaign.go
index 26d0c6a57b8..33bbcc986cf 100644
--- a/service/pinpointemail/api_op_GetDomainDeliverabilityCampaign.go
+++ b/service/pinpointemail/api_op_GetDomainDeliverabilityCampaign.go
@@ -49,7 +49,7 @@ func (s *GetDomainDeliverabilityCampaignInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDomainDeliverabilityCampaignInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CampaignId != nil {
v := *s.CampaignId
diff --git a/service/pinpointemail/api_op_GetDomainStatisticsReport.go b/service/pinpointemail/api_op_GetDomainStatisticsReport.go
index 9a5c653a65b..d3197f23a82 100644
--- a/service/pinpointemail/api_op_GetDomainStatisticsReport.go
+++ b/service/pinpointemail/api_op_GetDomainStatisticsReport.go
@@ -26,13 +26,13 @@ type GetDomainStatisticsReportInput struct {
// 30 days after the StartDate.
//
// EndDate is a required field
- EndDate *time.Time `location:"querystring" locationName:"EndDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndDate *time.Time `location:"querystring" locationName:"EndDate" type:"timestamp" required:"true"`
// The first day (in Unix time) that you want to obtain domain deliverability
// metrics for.
//
// StartDate is a required field
- StartDate *time.Time `location:"querystring" locationName:"StartDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartDate *time.Time `location:"querystring" locationName:"StartDate" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -64,7 +64,7 @@ func (s *GetDomainStatisticsReportInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDomainStatisticsReportInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Domain != nil {
v := *s.Domain
@@ -76,13 +76,15 @@ func (s GetDomainStatisticsReportInput) MarshalFields(e protocol.FieldEncoder) e
v := *s.EndDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "EndDate", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "EndDate",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.StartDate != nil {
v := *s.StartDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "StartDate", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "StartDate",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
diff --git a/service/pinpointemail/api_op_GetEmailIdentity.go b/service/pinpointemail/api_op_GetEmailIdentity.go
index c85c94fef9d..f819ccde2ee 100644
--- a/service/pinpointemail/api_op_GetEmailIdentity.go
+++ b/service/pinpointemail/api_op_GetEmailIdentity.go
@@ -42,7 +42,7 @@ func (s *GetEmailIdentityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetEmailIdentityInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EmailIdentity != nil {
v := *s.EmailIdentity
diff --git a/service/pinpointemail/api_op_ListConfigurationSets.go b/service/pinpointemail/api_op_ListConfigurationSets.go
index cc914cab51b..0426b6a7d1e 100644
--- a/service/pinpointemail/api_op_ListConfigurationSets.go
+++ b/service/pinpointemail/api_op_ListConfigurationSets.go
@@ -34,7 +34,7 @@ func (s ListConfigurationSetsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListConfigurationSetsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/pinpointemail/api_op_ListDedicatedIpPools.go b/service/pinpointemail/api_op_ListDedicatedIpPools.go
index 99fc7540d64..d3772e6402f 100644
--- a/service/pinpointemail/api_op_ListDedicatedIpPools.go
+++ b/service/pinpointemail/api_op_ListDedicatedIpPools.go
@@ -33,7 +33,7 @@ func (s ListDedicatedIpPoolsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDedicatedIpPoolsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/pinpointemail/api_op_ListDeliverabilityTestReports.go b/service/pinpointemail/api_op_ListDeliverabilityTestReports.go
index b3ba797be3a..8f263a0eb64 100644
--- a/service/pinpointemail/api_op_ListDeliverabilityTestReports.go
+++ b/service/pinpointemail/api_op_ListDeliverabilityTestReports.go
@@ -36,7 +36,7 @@ func (s ListDeliverabilityTestReportsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDeliverabilityTestReportsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/pinpointemail/api_op_ListDomainDeliverabilityCampaigns.go b/service/pinpointemail/api_op_ListDomainDeliverabilityCampaigns.go
index 36077c1aa2b..5b6a39743f6 100644
--- a/service/pinpointemail/api_op_ListDomainDeliverabilityCampaigns.go
+++ b/service/pinpointemail/api_op_ListDomainDeliverabilityCampaigns.go
@@ -24,7 +24,7 @@ type ListDomainDeliverabilityCampaignsInput struct {
// of the StartDate parameter.
//
// EndDate is a required field
- EndDate *time.Time `location:"querystring" locationName:"EndDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndDate *time.Time `location:"querystring" locationName:"EndDate" type:"timestamp" required:"true"`
// A token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns
// operation. This token indicates the position of a campaign in the list of
@@ -41,7 +41,7 @@ type ListDomainDeliverabilityCampaignsInput struct {
// data for.
//
// StartDate is a required field
- StartDate *time.Time `location:"querystring" locationName:"StartDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartDate *time.Time `location:"querystring" locationName:"StartDate" type:"timestamp" required:"true"`
// The domain to obtain deliverability data for.
//
@@ -78,7 +78,7 @@ func (s *ListDomainDeliverabilityCampaignsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDomainDeliverabilityCampaignsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SubscribedDomain != nil {
v := *s.SubscribedDomain
@@ -90,7 +90,8 @@ func (s ListDomainDeliverabilityCampaignsInput) MarshalFields(e protocol.FieldEn
v := *s.EndDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "EndDate", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "EndDate",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.NextToken != nil {
v := *s.NextToken
@@ -108,7 +109,8 @@ func (s ListDomainDeliverabilityCampaignsInput) MarshalFields(e protocol.FieldEn
v := *s.StartDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "StartDate", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "StartDate",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
diff --git a/service/pinpointemail/api_op_ListEmailIdentities.go b/service/pinpointemail/api_op_ListEmailIdentities.go
index 5f62fe7e514..4d92cfbe9cc 100644
--- a/service/pinpointemail/api_op_ListEmailIdentities.go
+++ b/service/pinpointemail/api_op_ListEmailIdentities.go
@@ -38,7 +38,7 @@ func (s ListEmailIdentitiesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListEmailIdentitiesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/pinpointemail/api_op_ListTagsForResource.go b/service/pinpointemail/api_op_ListTagsForResource.go
index dc06e387071..3f717319074 100644
--- a/service/pinpointemail/api_op_ListTagsForResource.go
+++ b/service/pinpointemail/api_op_ListTagsForResource.go
@@ -42,7 +42,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/pinpointemail/api_op_PutAccountDedicatedIpWarmupAttributes.go b/service/pinpointemail/api_op_PutAccountDedicatedIpWarmupAttributes.go
index c4955779124..7803fa1779a 100644
--- a/service/pinpointemail/api_op_PutAccountDedicatedIpWarmupAttributes.go
+++ b/service/pinpointemail/api_op_PutAccountDedicatedIpWarmupAttributes.go
@@ -29,7 +29,7 @@ func (s PutAccountDedicatedIpWarmupAttributesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutAccountDedicatedIpWarmupAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AutoWarmupEnabled != nil {
v := *s.AutoWarmupEnabled
diff --git a/service/pinpointemail/api_op_PutAccountSendingAttributes.go b/service/pinpointemail/api_op_PutAccountSendingAttributes.go
index bfee9963e71..0a1ccf29f82 100644
--- a/service/pinpointemail/api_op_PutAccountSendingAttributes.go
+++ b/service/pinpointemail/api_op_PutAccountSendingAttributes.go
@@ -30,7 +30,7 @@ func (s PutAccountSendingAttributesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutAccountSendingAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SendingEnabled != nil {
v := *s.SendingEnabled
diff --git a/service/pinpointemail/api_op_PutConfigurationSetDeliveryOptions.go b/service/pinpointemail/api_op_PutConfigurationSetDeliveryOptions.go
index 26a65d1813a..c7a58a2e584 100644
--- a/service/pinpointemail/api_op_PutConfigurationSetDeliveryOptions.go
+++ b/service/pinpointemail/api_op_PutConfigurationSetDeliveryOptions.go
@@ -47,7 +47,7 @@ func (s *PutConfigurationSetDeliveryOptionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutConfigurationSetDeliveryOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SendingPoolName != nil {
v := *s.SendingPoolName
diff --git a/service/pinpointemail/api_op_PutConfigurationSetReputationOptions.go b/service/pinpointemail/api_op_PutConfigurationSetReputationOptions.go
index b003e7732c8..bbecdd65645 100644
--- a/service/pinpointemail/api_op_PutConfigurationSetReputationOptions.go
+++ b/service/pinpointemail/api_op_PutConfigurationSetReputationOptions.go
@@ -49,7 +49,7 @@ func (s *PutConfigurationSetReputationOptionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutConfigurationSetReputationOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ReputationMetricsEnabled != nil {
v := *s.ReputationMetricsEnabled
diff --git a/service/pinpointemail/api_op_PutConfigurationSetSendingOptions.go b/service/pinpointemail/api_op_PutConfigurationSetSendingOptions.go
index 667092b9170..fb72d015804 100644
--- a/service/pinpointemail/api_op_PutConfigurationSetSendingOptions.go
+++ b/service/pinpointemail/api_op_PutConfigurationSetSendingOptions.go
@@ -48,7 +48,7 @@ func (s *PutConfigurationSetSendingOptionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutConfigurationSetSendingOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SendingEnabled != nil {
v := *s.SendingEnabled
diff --git a/service/pinpointemail/api_op_PutConfigurationSetTrackingOptions.go b/service/pinpointemail/api_op_PutConfigurationSetTrackingOptions.go
index 8cdb1bfa821..2ef9c6a19ed 100644
--- a/service/pinpointemail/api_op_PutConfigurationSetTrackingOptions.go
+++ b/service/pinpointemail/api_op_PutConfigurationSetTrackingOptions.go
@@ -47,7 +47,7 @@ func (s *PutConfigurationSetTrackingOptionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutConfigurationSetTrackingOptionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CustomRedirectDomain != nil {
v := *s.CustomRedirectDomain
diff --git a/service/pinpointemail/api_op_PutDedicatedIpInPool.go b/service/pinpointemail/api_op_PutDedicatedIpInPool.go
index dd31361234a..022f5f27717 100644
--- a/service/pinpointemail/api_op_PutDedicatedIpInPool.go
+++ b/service/pinpointemail/api_op_PutDedicatedIpInPool.go
@@ -54,7 +54,7 @@ func (s *PutDedicatedIpInPoolInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutDedicatedIpInPoolInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DestinationPoolName != nil {
v := *s.DestinationPoolName
diff --git a/service/pinpointemail/api_op_PutDedicatedIpWarmupAttributes.go b/service/pinpointemail/api_op_PutDedicatedIpWarmupAttributes.go
index 3c33644618e..5157bf2c868 100644
--- a/service/pinpointemail/api_op_PutDedicatedIpWarmupAttributes.go
+++ b/service/pinpointemail/api_op_PutDedicatedIpWarmupAttributes.go
@@ -53,7 +53,7 @@ func (s *PutDedicatedIpWarmupAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutDedicatedIpWarmupAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.WarmupPercentage != nil {
v := *s.WarmupPercentage
diff --git a/service/pinpointemail/api_op_PutDeliverabilityDashboardOption.go b/service/pinpointemail/api_op_PutDeliverabilityDashboardOption.go
index 6b9b4da4810..05cdfcb5de5 100644
--- a/service/pinpointemail/api_op_PutDeliverabilityDashboardOption.go
+++ b/service/pinpointemail/api_op_PutDeliverabilityDashboardOption.go
@@ -56,7 +56,7 @@ func (s *PutDeliverabilityDashboardOptionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutDeliverabilityDashboardOptionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DashboardEnabled != nil {
v := *s.DashboardEnabled
diff --git a/service/pinpointemail/api_op_PutEmailIdentityDkimAttributes.go b/service/pinpointemail/api_op_PutEmailIdentityDkimAttributes.go
index b672838cc43..648176f76ef 100644
--- a/service/pinpointemail/api_op_PutEmailIdentityDkimAttributes.go
+++ b/service/pinpointemail/api_op_PutEmailIdentityDkimAttributes.go
@@ -50,7 +50,7 @@ func (s *PutEmailIdentityDkimAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutEmailIdentityDkimAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SigningEnabled != nil {
v := *s.SigningEnabled
diff --git a/service/pinpointemail/api_op_PutEmailIdentityFeedbackAttributes.go b/service/pinpointemail/api_op_PutEmailIdentityFeedbackAttributes.go
index 0f64e00594e..a01a260c2fb 100644
--- a/service/pinpointemail/api_op_PutEmailIdentityFeedbackAttributes.go
+++ b/service/pinpointemail/api_op_PutEmailIdentityFeedbackAttributes.go
@@ -59,7 +59,7 @@ func (s *PutEmailIdentityFeedbackAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutEmailIdentityFeedbackAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EmailForwardingEnabled != nil {
v := *s.EmailForwardingEnabled
diff --git a/service/pinpointemail/api_op_PutEmailIdentityMailFromAttributes.go b/service/pinpointemail/api_op_PutEmailIdentityMailFromAttributes.go
index 4239b995f15..3402e7b2b61 100644
--- a/service/pinpointemail/api_op_PutEmailIdentityMailFromAttributes.go
+++ b/service/pinpointemail/api_op_PutEmailIdentityMailFromAttributes.go
@@ -64,7 +64,7 @@ func (s *PutEmailIdentityMailFromAttributesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutEmailIdentityMailFromAttributesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.BehaviorOnMxFailure) > 0 {
v := s.BehaviorOnMxFailure
diff --git a/service/pinpointemail/api_op_SendEmail.go b/service/pinpointemail/api_op_SendEmail.go
index dcdf29e97c7..acc5adbdb00 100644
--- a/service/pinpointemail/api_op_SendEmail.go
+++ b/service/pinpointemail/api_op_SendEmail.go
@@ -85,7 +85,7 @@ func (s *SendEmailInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SendEmailInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationSetName != nil {
v := *s.ConfigurationSetName
diff --git a/service/pinpointemail/api_op_TagResource.go b/service/pinpointemail/api_op_TagResource.go
index 52124d872cb..587667dc835 100644
--- a/service/pinpointemail/api_op_TagResource.go
+++ b/service/pinpointemail/api_op_TagResource.go
@@ -62,7 +62,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/pinpointemail/api_op_UntagResource.go b/service/pinpointemail/api_op_UntagResource.go
index fb2aaf78888..42fc554b808 100644
--- a/service/pinpointemail/api_op_UntagResource.go
+++ b/service/pinpointemail/api_op_UntagResource.go
@@ -56,7 +56,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/pinpointemail/api_op_UpdateConfigurationSetEventDestination.go b/service/pinpointemail/api_op_UpdateConfigurationSetEventDestination.go
index 67b456bc98b..f4bab4e3c40 100644
--- a/service/pinpointemail/api_op_UpdateConfigurationSetEventDestination.go
+++ b/service/pinpointemail/api_op_UpdateConfigurationSetEventDestination.go
@@ -67,7 +67,7 @@ func (s *UpdateConfigurationSetEventDestinationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateConfigurationSetEventDestinationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EventDestination != nil {
v := s.EventDestination
diff --git a/service/pinpointemail/api_types.go b/service/pinpointemail/api_types.go
index 8ac9739f0b9..cceb048bf59 100644
--- a/service/pinpointemail/api_types.go
+++ b/service/pinpointemail/api_types.go
@@ -25,7 +25,7 @@ type BlacklistEntry struct {
Description *string `type:"string"`
// The time when the blacklisting event occurred, shown in Unix time format.
- ListingTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ListingTime *time.Time `type:"timestamp"`
// The name of the blacklist that the IP address appears on.
RblName *string `type:"string"`
@@ -48,7 +48,8 @@ func (s BlacklistEntry) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ListingTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ListingTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ListingTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.RblName != nil {
v := *s.RblName
@@ -328,7 +329,7 @@ type DailyVolume struct {
DomainIspPlacements []DomainIspPlacement `type:"list"`
// The date that the DailyVolume metrics apply to, in Unix time.
- StartDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartDate *time.Time `type:"timestamp"`
// An object that contains inbox placement metrics for a specific day in the
// analysis period.
@@ -358,7 +359,8 @@ func (s DailyVolume) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.VolumeStatistics != nil {
v := s.VolumeStatistics
@@ -445,7 +447,7 @@ type DeliverabilityTestReport struct {
// The date and time when the predictive inbox placement test was created, in
// Unix time format.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateDate *time.Time `type:"timestamp"`
// The status of the predictive inbox placement test. If the status is IN_PROGRESS,
// then the predictive inbox placement test is currently running. Predictive
@@ -480,7 +482,8 @@ func (s DeliverabilityTestReport) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreateDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreateDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreateDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.DeliverabilityTestStatus) > 0 {
v := s.DeliverabilityTestStatus
@@ -706,7 +709,7 @@ type DomainDeliverabilityCampaign struct {
// The first time, in Unix time format, when the email message was delivered
// to any recipient's inbox. This value can help you determine how long it took
// for a campaign to deliver an email message.
- FirstSeenDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FirstSeenDateTime *time.Time `type:"timestamp"`
// The verified email address that the email message was sent from.
FromAddress *string `type:"string"`
@@ -721,7 +724,7 @@ type DomainDeliverabilityCampaign struct {
// The last time, in Unix time format, when the email message was delivered
// to any recipient's inbox. This value can help you determine how long it took
// for a campaign to deliver an email message.
- LastSeenDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastSeenDateTime *time.Time `type:"timestamp"`
// The projected number of recipients that the email message was sent to.
ProjectedVolume *int64 `type:"long"`
@@ -782,7 +785,8 @@ func (s DomainDeliverabilityCampaign) MarshalFields(e protocol.FieldEncoder) err
v := *s.FirstSeenDateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "FirstSeenDateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "FirstSeenDateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.FromAddress != nil {
v := *s.FromAddress
@@ -806,7 +810,8 @@ func (s DomainDeliverabilityCampaign) MarshalFields(e protocol.FieldEncoder) err
v := *s.LastSeenDateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastSeenDateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastSeenDateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ProjectedVolume != nil {
v := *s.ProjectedVolume
@@ -872,7 +877,7 @@ type DomainDeliverabilityTrackingOption struct {
// The date, in Unix time format, when you enabled the Deliverability dashboard
// for the domain.
- SubscriptionStartDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubscriptionStartDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -898,7 +903,8 @@ func (s DomainDeliverabilityTrackingOption) MarshalFields(e protocol.FieldEncode
v := *s.SubscriptionStartDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "SubscriptionStartDate", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "SubscriptionStartDate",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -1885,7 +1891,7 @@ type ReputationOptions struct {
// The date and time (in Unix time) when the reputation metrics were last given
// a fresh start. When your account is given a fresh start, your reputation
// metrics are calculated starting from the date of the fresh start.
- LastFreshStart *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastFreshStart *time.Time `type:"timestamp"`
// If true, tracking of reputation metrics is enabled for the configuration
// set. If false, tracking of reputation metrics is disabled for the configuration
@@ -1904,7 +1910,8 @@ func (s ReputationOptions) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastFreshStart
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastFreshStart", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastFreshStart",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ReputationMetricsEnabled != nil {
v := *s.ReputationMetricsEnabled
diff --git a/service/pinpointsmsvoice/api_op_CreateConfigurationSet.go b/service/pinpointsmsvoice/api_op_CreateConfigurationSet.go
index 5584b128a26..919028e60c1 100644
--- a/service/pinpointsmsvoice/api_op_CreateConfigurationSet.go
+++ b/service/pinpointsmsvoice/api_op_CreateConfigurationSet.go
@@ -26,7 +26,7 @@ func (s CreateConfigurationSetInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateConfigurationSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationSetName != nil {
v := *s.ConfigurationSetName
diff --git a/service/pinpointsmsvoice/api_op_CreateConfigurationSetEventDestination.go b/service/pinpointsmsvoice/api_op_CreateConfigurationSetEventDestination.go
index 31170d9a93e..55f18eb9ee3 100644
--- a/service/pinpointsmsvoice/api_op_CreateConfigurationSetEventDestination.go
+++ b/service/pinpointsmsvoice/api_op_CreateConfigurationSetEventDestination.go
@@ -46,7 +46,7 @@ func (s *CreateConfigurationSetEventDestinationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateConfigurationSetEventDestinationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EventDestination != nil {
v := s.EventDestination
diff --git a/service/pinpointsmsvoice/api_op_DeleteConfigurationSet.go b/service/pinpointsmsvoice/api_op_DeleteConfigurationSet.go
index d94d0b819b1..eac1247ca82 100644
--- a/service/pinpointsmsvoice/api_op_DeleteConfigurationSet.go
+++ b/service/pinpointsmsvoice/api_op_DeleteConfigurationSet.go
@@ -39,7 +39,7 @@ func (s *DeleteConfigurationSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteConfigurationSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationSetName != nil {
v := *s.ConfigurationSetName
diff --git a/service/pinpointsmsvoice/api_op_DeleteConfigurationSetEventDestination.go b/service/pinpointsmsvoice/api_op_DeleteConfigurationSetEventDestination.go
index 8ddc8f76998..140dcaf9a31 100644
--- a/service/pinpointsmsvoice/api_op_DeleteConfigurationSetEventDestination.go
+++ b/service/pinpointsmsvoice/api_op_DeleteConfigurationSetEventDestination.go
@@ -46,7 +46,7 @@ func (s *DeleteConfigurationSetEventDestinationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteConfigurationSetEventDestinationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationSetName != nil {
v := *s.ConfigurationSetName
diff --git a/service/pinpointsmsvoice/api_op_GetConfigurationSetEventDestinations.go b/service/pinpointsmsvoice/api_op_GetConfigurationSetEventDestinations.go
index 721a68ffb6e..a9a18f81f23 100644
--- a/service/pinpointsmsvoice/api_op_GetConfigurationSetEventDestinations.go
+++ b/service/pinpointsmsvoice/api_op_GetConfigurationSetEventDestinations.go
@@ -39,7 +39,7 @@ func (s *GetConfigurationSetEventDestinationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetConfigurationSetEventDestinationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ConfigurationSetName != nil {
v := *s.ConfigurationSetName
diff --git a/service/pinpointsmsvoice/api_op_ListConfigurationSets.go b/service/pinpointsmsvoice/api_op_ListConfigurationSets.go
index e47f57e6a9c..c965b15cebd 100644
--- a/service/pinpointsmsvoice/api_op_ListConfigurationSets.go
+++ b/service/pinpointsmsvoice/api_op_ListConfigurationSets.go
@@ -26,7 +26,7 @@ func (s ListConfigurationSetsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListConfigurationSetsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/pinpointsmsvoice/api_op_SendVoiceMessage.go b/service/pinpointsmsvoice/api_op_SendVoiceMessage.go
index b97eecdc035..7943c7788da 100644
--- a/service/pinpointsmsvoice/api_op_SendVoiceMessage.go
+++ b/service/pinpointsmsvoice/api_op_SendVoiceMessage.go
@@ -43,7 +43,7 @@ func (s SendVoiceMessageInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SendVoiceMessageInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CallerId != nil {
v := *s.CallerId
diff --git a/service/pinpointsmsvoice/api_op_UpdateConfigurationSetEventDestination.go b/service/pinpointsmsvoice/api_op_UpdateConfigurationSetEventDestination.go
index 60ac9b6fa40..b523ded1826 100644
--- a/service/pinpointsmsvoice/api_op_UpdateConfigurationSetEventDestination.go
+++ b/service/pinpointsmsvoice/api_op_UpdateConfigurationSetEventDestination.go
@@ -50,7 +50,7 @@ func (s *UpdateConfigurationSetEventDestinationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateConfigurationSetEventDestinationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EventDestination != nil {
v := s.EventDestination
diff --git a/service/polly/api_op_DeleteLexicon.go b/service/polly/api_op_DeleteLexicon.go
index d99aa9d5545..34bd8f59dd5 100644
--- a/service/polly/api_op_DeleteLexicon.go
+++ b/service/polly/api_op_DeleteLexicon.go
@@ -41,6 +41,7 @@ func (s *DeleteLexiconInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteLexiconInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/polly/api_op_DescribeVoices.go b/service/polly/api_op_DescribeVoices.go
index 63bb624c774..5bf82353acb 100644
--- a/service/polly/api_op_DescribeVoices.go
+++ b/service/polly/api_op_DescribeVoices.go
@@ -38,6 +38,7 @@ func (s DescribeVoicesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeVoicesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IncludeAdditionalLanguageCodes != nil {
v := *s.IncludeAdditionalLanguageCodes
diff --git a/service/polly/api_op_GetLexicon.go b/service/polly/api_op_GetLexicon.go
index 7abc974768b..6af97d75b3e 100644
--- a/service/polly/api_op_GetLexicon.go
+++ b/service/polly/api_op_GetLexicon.go
@@ -41,6 +41,7 @@ func (s *GetLexiconInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetLexiconInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/polly/api_op_GetSpeechSynthesisTask.go b/service/polly/api_op_GetSpeechSynthesisTask.go
index 6f47a4e8836..75a45fe34ee 100644
--- a/service/polly/api_op_GetSpeechSynthesisTask.go
+++ b/service/polly/api_op_GetSpeechSynthesisTask.go
@@ -41,6 +41,7 @@ func (s *GetSpeechSynthesisTaskInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSpeechSynthesisTaskInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TaskId != nil {
v := *s.TaskId
diff --git a/service/polly/api_op_ListLexicons.go b/service/polly/api_op_ListLexicons.go
index 64003f13697..30722b0791f 100644
--- a/service/polly/api_op_ListLexicons.go
+++ b/service/polly/api_op_ListLexicons.go
@@ -26,6 +26,7 @@ func (s ListLexiconsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListLexiconsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/polly/api_op_ListSpeechSynthesisTasks.go b/service/polly/api_op_ListSpeechSynthesisTasks.go
index 0dab77ca7f0..6fe46b2b8b6 100644
--- a/service/polly/api_op_ListSpeechSynthesisTasks.go
+++ b/service/polly/api_op_ListSpeechSynthesisTasks.go
@@ -45,6 +45,7 @@ func (s *ListSpeechSynthesisTasksInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSpeechSynthesisTasksInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/polly/api_op_PutLexicon.go b/service/polly/api_op_PutLexicon.go
index 8d0834ba69b..8635e8b7306 100644
--- a/service/polly/api_op_PutLexicon.go
+++ b/service/polly/api_op_PutLexicon.go
@@ -52,6 +52,7 @@ func (s *PutLexiconInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutLexiconInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Content != nil {
v := *s.Content
diff --git a/service/polly/api_op_StartSpeechSynthesisTask.go b/service/polly/api_op_StartSpeechSynthesisTask.go
index 38e2223c5f2..444b4c78739 100644
--- a/service/polly/api_op_StartSpeechSynthesisTask.go
+++ b/service/polly/api_op_StartSpeechSynthesisTask.go
@@ -106,6 +106,7 @@ func (s *StartSpeechSynthesisTaskInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartSpeechSynthesisTaskInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.LanguageCode) > 0 {
v := s.LanguageCode
diff --git a/service/polly/api_op_SynthesizeSpeech.go b/service/polly/api_op_SynthesizeSpeech.go
index 9064279f3ef..a3d3b282953 100644
--- a/service/polly/api_op_SynthesizeSpeech.go
+++ b/service/polly/api_op_SynthesizeSpeech.go
@@ -97,6 +97,7 @@ func (s *SynthesizeSpeechInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SynthesizeSpeechInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.LanguageCode) > 0 {
v := s.LanguageCode
diff --git a/service/polly/api_types.go b/service/polly/api_types.go
index a81b09f854e..2b42e741696 100644
--- a/service/polly/api_types.go
+++ b/service/polly/api_types.go
@@ -64,7 +64,7 @@ type LexiconAttributes struct {
LanguageCode LanguageCode `type:"string" enum:"true"`
// Date lexicon was last modified (a timestamp value).
- LastModified *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModified *time.Time `type:"timestamp"`
// Number of lexemes in the lexicon.
LexemesCount *int64 `type:"integer"`
@@ -99,7 +99,8 @@ func (s LexiconAttributes) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LexemesCount != nil {
v := *s.LexemesCount
@@ -162,7 +163,7 @@ type SynthesisTask struct {
_ struct{} `type:"structure"`
// Timestamp for the time the synthesis task was started.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// Optional language code for a synthesis task. This is only necessary if using
// a bilingual voice, such as Aditi, which can be used for either Indian English
@@ -234,7 +235,8 @@ func (s SynthesisTask) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.LanguageCode) > 0 {
v := s.LanguageCode
diff --git a/service/quicksight/api_op_CreateGroup.go b/service/quicksight/api_op_CreateGroup.go
index ff6cdbacabe..e97b1f902f3 100644
--- a/service/quicksight/api_op_CreateGroup.go
+++ b/service/quicksight/api_op_CreateGroup.go
@@ -73,7 +73,7 @@ func (s *CreateGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/quicksight/api_op_CreateGroupMembership.go b/service/quicksight/api_op_CreateGroupMembership.go
index a77e60a05a3..f9c02cf7998 100644
--- a/service/quicksight/api_op_CreateGroupMembership.go
+++ b/service/quicksight/api_op_CreateGroupMembership.go
@@ -78,7 +78,7 @@ func (s *CreateGroupMembershipInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateGroupMembershipInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_DeleteGroup.go b/service/quicksight/api_op_DeleteGroup.go
index 9cf445e6c7a..65a2a73965a 100644
--- a/service/quicksight/api_op_DeleteGroup.go
+++ b/service/quicksight/api_op_DeleteGroup.go
@@ -66,7 +66,7 @@ func (s *DeleteGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_DeleteGroupMembership.go b/service/quicksight/api_op_DeleteGroupMembership.go
index 3b87ea332f4..60ca3685e7b 100644
--- a/service/quicksight/api_op_DeleteGroupMembership.go
+++ b/service/quicksight/api_op_DeleteGroupMembership.go
@@ -78,7 +78,7 @@ func (s *DeleteGroupMembershipInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteGroupMembershipInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_DeleteUser.go b/service/quicksight/api_op_DeleteUser.go
index d1d628b7b6b..e912a78f985 100644
--- a/service/quicksight/api_op_DeleteUser.go
+++ b/service/quicksight/api_op_DeleteUser.go
@@ -66,7 +66,7 @@ func (s *DeleteUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_DeleteUserByPrincipalId.go b/service/quicksight/api_op_DeleteUserByPrincipalId.go
index 37d55f5f16f..7c63b556434 100644
--- a/service/quicksight/api_op_DeleteUserByPrincipalId.go
+++ b/service/quicksight/api_op_DeleteUserByPrincipalId.go
@@ -63,7 +63,7 @@ func (s *DeleteUserByPrincipalIdInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteUserByPrincipalIdInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_DescribeGroup.go b/service/quicksight/api_op_DescribeGroup.go
index e429986d7bf..2958bf3534e 100644
--- a/service/quicksight/api_op_DescribeGroup.go
+++ b/service/quicksight/api_op_DescribeGroup.go
@@ -66,7 +66,7 @@ func (s *DescribeGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_DescribeUser.go b/service/quicksight/api_op_DescribeUser.go
index b6e08b3e071..46ded64c0a1 100644
--- a/service/quicksight/api_op_DescribeUser.go
+++ b/service/quicksight/api_op_DescribeUser.go
@@ -66,7 +66,7 @@ func (s *DescribeUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_GetDashboardEmbedUrl.go b/service/quicksight/api_op_GetDashboardEmbedUrl.go
index 12980a54015..281eaf05b1b 100644
--- a/service/quicksight/api_op_GetDashboardEmbedUrl.go
+++ b/service/quicksight/api_op_GetDashboardEmbedUrl.go
@@ -76,7 +76,7 @@ func (s *GetDashboardEmbedUrlInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDashboardEmbedUrlInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_ListGroupMemberships.go b/service/quicksight/api_op_ListGroupMemberships.go
index 427bc296b19..15bc892597d 100644
--- a/service/quicksight/api_op_ListGroupMemberships.go
+++ b/service/quicksight/api_op_ListGroupMemberships.go
@@ -75,7 +75,7 @@ func (s *ListGroupMembershipsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListGroupMembershipsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_ListGroups.go b/service/quicksight/api_op_ListGroups.go
index 949866eb5be..54b6d8c5e95 100644
--- a/service/quicksight/api_op_ListGroups.go
+++ b/service/quicksight/api_op_ListGroups.go
@@ -63,7 +63,7 @@ func (s *ListGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_ListUserGroups.go b/service/quicksight/api_op_ListUserGroups.go
index f71c6b4778f..33a191fcd9e 100644
--- a/service/quicksight/api_op_ListUserGroups.go
+++ b/service/quicksight/api_op_ListUserGroups.go
@@ -75,7 +75,7 @@ func (s *ListUserGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListUserGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_ListUsers.go b/service/quicksight/api_op_ListUsers.go
index b77358364f5..a97ba074a87 100644
--- a/service/quicksight/api_op_ListUsers.go
+++ b/service/quicksight/api_op_ListUsers.go
@@ -63,7 +63,7 @@ func (s *ListUsersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListUsersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsAccountId != nil {
v := *s.AwsAccountId
diff --git a/service/quicksight/api_op_RegisterUser.go b/service/quicksight/api_op_RegisterUser.go
index 82f9d7c5e2c..41a0af27628 100644
--- a/service/quicksight/api_op_RegisterUser.go
+++ b/service/quicksight/api_op_RegisterUser.go
@@ -113,7 +113,7 @@ func (s *RegisterUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RegisterUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Email != nil {
v := *s.Email
diff --git a/service/quicksight/api_op_UpdateGroup.go b/service/quicksight/api_op_UpdateGroup.go
index aa0f6d6b2e7..563af279f12 100644
--- a/service/quicksight/api_op_UpdateGroup.go
+++ b/service/quicksight/api_op_UpdateGroup.go
@@ -72,7 +72,7 @@ func (s *UpdateGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateGroupInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/quicksight/api_op_UpdateUser.go b/service/quicksight/api_op_UpdateUser.go
index 653c038edd8..981c029a1b4 100644
--- a/service/quicksight/api_op_UpdateUser.go
+++ b/service/quicksight/api_op_UpdateUser.go
@@ -91,7 +91,7 @@ func (s *UpdateUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.0"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Email != nil {
v := *s.Email
diff --git a/service/ram/api_op_AcceptResourceShareInvitation.go b/service/ram/api_op_AcceptResourceShareInvitation.go
index b5b6dbd306e..6dfc6a94ce7 100644
--- a/service/ram/api_op_AcceptResourceShareInvitation.go
+++ b/service/ram/api_op_AcceptResourceShareInvitation.go
@@ -45,7 +45,7 @@ func (s *AcceptResourceShareInvitationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AcceptResourceShareInvitationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClientToken != nil {
v := *s.ClientToken
diff --git a/service/ram/api_op_AssociateResourceShare.go b/service/ram/api_op_AssociateResourceShare.go
index 4b228a7918d..d11e70fc552 100644
--- a/service/ram/api_op_AssociateResourceShare.go
+++ b/service/ram/api_op_AssociateResourceShare.go
@@ -51,7 +51,7 @@ func (s *AssociateResourceShareInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClientToken != nil {
v := *s.ClientToken
diff --git a/service/ram/api_op_CreateResourceShare.go b/service/ram/api_op_CreateResourceShare.go
index 75ec91b0a71..dfefa57a1e8 100644
--- a/service/ram/api_op_CreateResourceShare.go
+++ b/service/ram/api_op_CreateResourceShare.go
@@ -60,7 +60,7 @@ func (s *CreateResourceShareInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AllowExternalPrincipals != nil {
v := *s.AllowExternalPrincipals
diff --git a/service/ram/api_op_DeleteResourceShare.go b/service/ram/api_op_DeleteResourceShare.go
index 080ae51940e..a131c481884 100644
--- a/service/ram/api_op_DeleteResourceShare.go
+++ b/service/ram/api_op_DeleteResourceShare.go
@@ -45,7 +45,7 @@ func (s *DeleteResourceShareInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteResourceShareInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClientToken != nil {
v := *s.ClientToken
diff --git a/service/ram/api_op_DisassociateResourceShare.go b/service/ram/api_op_DisassociateResourceShare.go
index a0d4a780ad6..6f4663a8cef 100644
--- a/service/ram/api_op_DisassociateResourceShare.go
+++ b/service/ram/api_op_DisassociateResourceShare.go
@@ -51,7 +51,7 @@ func (s *DisassociateResourceShareInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClientToken != nil {
v := *s.ClientToken
diff --git a/service/ram/api_op_EnableSharingWithAwsOrganization.go b/service/ram/api_op_EnableSharingWithAwsOrganization.go
index 7f34737dc70..9f5f89b92c3 100644
--- a/service/ram/api_op_EnableSharingWithAwsOrganization.go
+++ b/service/ram/api_op_EnableSharingWithAwsOrganization.go
@@ -22,7 +22,7 @@ func (s EnableSharingWithAwsOrganizationInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s EnableSharingWithAwsOrganizationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/ram/api_op_GetResourcePolicies.go b/service/ram/api_op_GetResourcePolicies.go
index ccfd5c5e701..15494d28a84 100644
--- a/service/ram/api_op_GetResourcePolicies.go
+++ b/service/ram/api_op_GetResourcePolicies.go
@@ -54,7 +54,7 @@ func (s *GetResourcePoliciesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetResourcePoliciesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/ram/api_op_GetResourceShareAssociations.go b/service/ram/api_op_GetResourceShareAssociations.go
index ce34489502d..19d4ec193a9 100644
--- a/service/ram/api_op_GetResourceShareAssociations.go
+++ b/service/ram/api_op_GetResourceShareAssociations.go
@@ -62,7 +62,7 @@ func (s *GetResourceShareAssociationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetResourceShareAssociationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.AssociationStatus) > 0 {
v := s.AssociationStatus
diff --git a/service/ram/api_op_GetResourceShareInvitations.go b/service/ram/api_op_GetResourceShareInvitations.go
index 39183ffaaec..f2e026244f4 100644
--- a/service/ram/api_op_GetResourceShareInvitations.go
+++ b/service/ram/api_op_GetResourceShareInvitations.go
@@ -48,7 +48,7 @@ func (s *GetResourceShareInvitationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetResourceShareInvitationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/ram/api_op_GetResourceShares.go b/service/ram/api_op_GetResourceShares.go
index df549c12465..ff9236d2c87 100644
--- a/service/ram/api_op_GetResourceShares.go
+++ b/service/ram/api_op_GetResourceShares.go
@@ -62,7 +62,7 @@ func (s *GetResourceSharesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetResourceSharesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/ram/api_op_ListPrincipals.go b/service/ram/api_op_ListPrincipals.go
index 6a2c0a25b79..3bb3b8c8857 100644
--- a/service/ram/api_op_ListPrincipals.go
+++ b/service/ram/api_op_ListPrincipals.go
@@ -62,7 +62,7 @@ func (s *ListPrincipalsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListPrincipalsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/ram/api_op_ListResources.go b/service/ram/api_op_ListResources.go
index c6140d64fd1..36322237bd9 100644
--- a/service/ram/api_op_ListResources.go
+++ b/service/ram/api_op_ListResources.go
@@ -62,7 +62,7 @@ func (s *ListResourcesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListResourcesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/ram/api_op_RejectResourceShareInvitation.go b/service/ram/api_op_RejectResourceShareInvitation.go
index be84c0284ba..9db1e60b1c6 100644
--- a/service/ram/api_op_RejectResourceShareInvitation.go
+++ b/service/ram/api_op_RejectResourceShareInvitation.go
@@ -45,7 +45,7 @@ func (s *RejectResourceShareInvitationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RejectResourceShareInvitationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ClientToken != nil {
v := *s.ClientToken
diff --git a/service/ram/api_op_TagResource.go b/service/ram/api_op_TagResource.go
index 936352f4752..ca6a5c4ab30 100644
--- a/service/ram/api_op_TagResource.go
+++ b/service/ram/api_op_TagResource.go
@@ -50,7 +50,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceShareArn != nil {
v := *s.ResourceShareArn
diff --git a/service/ram/api_op_UntagResource.go b/service/ram/api_op_UntagResource.go
index ea922c549c3..b065cccfadd 100644
--- a/service/ram/api_op_UntagResource.go
+++ b/service/ram/api_op_UntagResource.go
@@ -50,7 +50,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceShareArn != nil {
v := *s.ResourceShareArn
diff --git a/service/ram/api_op_UpdateResourceShare.go b/service/ram/api_op_UpdateResourceShare.go
index 47aa12850f0..fe6d42793e4 100644
--- a/service/ram/api_op_UpdateResourceShare.go
+++ b/service/ram/api_op_UpdateResourceShare.go
@@ -52,7 +52,7 @@ func (s *UpdateResourceShareInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AllowExternalPrincipals != nil {
v := *s.AllowExternalPrincipals
diff --git a/service/ram/api_types.go b/service/ram/api_types.go
index c65e806fba6..5be808c18f3 100644
--- a/service/ram/api_types.go
+++ b/service/ram/api_types.go
@@ -19,7 +19,7 @@ type Principal struct {
_ struct{} `type:"structure"`
// The time when the principal was associated with the resource share.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// Indicates whether the principal belongs to the same organization as the AWS
// account that owns the resource share.
@@ -29,7 +29,7 @@ type Principal struct {
Id *string `locationName:"id" type:"string"`
// The time when the association was last updated.
- LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"`
// The Amazon Resource Name (ARN) of the resource share.
ResourceShareArn *string `locationName:"resourceShareArn" type:"string"`
@@ -46,7 +46,8 @@ func (s Principal) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.External != nil {
v := *s.External
@@ -64,7 +65,8 @@ func (s Principal) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ResourceShareArn != nil {
v := *s.ResourceShareArn
@@ -84,10 +86,10 @@ type Resource struct {
Arn *string `locationName:"arn" type:"string"`
// The time when the resource was associated with the resource share.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The time when the association was last updated.
- LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"`
// The Amazon Resource Name (ARN) of the resource share.
ResourceShareArn *string `locationName:"resourceShareArn" type:"string"`
@@ -119,13 +121,15 @@ func (s Resource) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdatedTime != nil {
v := *s.LastUpdatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ResourceShareArn != nil {
v := *s.ResourceShareArn
@@ -164,10 +168,10 @@ type ResourceShare struct {
AllowExternalPrincipals *bool `locationName:"allowExternalPrincipals" type:"boolean"`
// The time when the resource share was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// The time when the resource share was last updated.
- LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"`
// The name of the resource share.
Name *string `locationName:"name" type:"string"`
@@ -205,13 +209,15 @@ func (s ResourceShare) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdatedTime != nil {
v := *s.LastUpdatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -272,14 +278,14 @@ type ResourceShareAssociation struct {
AssociationType ResourceShareAssociationType `locationName:"associationType" type:"string" enum:"true"`
// The time when the association was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// Indicates whether the principal belongs to the same organization as the AWS
// account that owns the resource share.
External *bool `locationName:"external" type:"boolean"`
// The time when the association was last updated.
- LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"`
// The Amazon Resource Name (ARN) of the resource share.
ResourceShareArn *string `locationName:"resourceShareArn" type:"string"`
@@ -314,7 +320,8 @@ func (s ResourceShareAssociation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "creationTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "creationTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.External != nil {
v := *s.External
@@ -326,7 +333,8 @@ func (s ResourceShareAssociation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ResourceShareArn != nil {
v := *s.ResourceShareArn
@@ -355,7 +363,7 @@ type ResourceShareInvitation struct {
_ struct{} `type:"structure"`
// The date and time when the invitation was sent.
- InvitationTimestamp *time.Time `locationName:"invitationTimestamp" type:"timestamp" timestampFormat:"unix"`
+ InvitationTimestamp *time.Time `locationName:"invitationTimestamp" type:"timestamp"`
// The ID of the AWS account that received the invitation.
ReceiverAccountId *string `locationName:"receiverAccountId" type:"string"`
@@ -390,7 +398,8 @@ func (s ResourceShareInvitation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.InvitationTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "invitationTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "invitationTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ReceiverAccountId != nil {
v := *s.ReceiverAccountId
diff --git a/service/rds/api_op_BacktrackDBCluster.go b/service/rds/api_op_BacktrackDBCluster.go
index 590ff49432d..baeefe78289 100644
--- a/service/rds/api_op_BacktrackDBCluster.go
+++ b/service/rds/api_op_BacktrackDBCluster.go
@@ -30,7 +30,7 @@ type BacktrackDBClusterInput struct {
// Example: 2017-07-08T18:00Z
//
// BacktrackTo is a required field
- BacktrackTo *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ BacktrackTo *time.Time `type:"timestamp" required:"true"`
// The DB cluster identifier of the DB cluster to be backtracked. This parameter
// is stored as a lowercase string.
@@ -91,13 +91,13 @@ type BacktrackDBClusterOutput struct {
BacktrackIdentifier *string `type:"string"`
// The timestamp of the time at which the backtrack was requested.
- BacktrackRequestCreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ BacktrackRequestCreationTime *time.Time `type:"timestamp"`
// The timestamp of the time to which the DB cluster was backtracked.
- BacktrackTo *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ BacktrackTo *time.Time `type:"timestamp"`
// The timestamp of the time from which the DB cluster was backtracked.
- BacktrackedFrom *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ BacktrackedFrom *time.Time `type:"timestamp"`
// Contains a user-supplied DB cluster identifier. This identifier is the unique
// key that identifies a DB cluster.
diff --git a/service/rds/api_op_DescribeEvents.go b/service/rds/api_op_DescribeEvents.go
index be8f01622ca..4cf0b5f8fb6 100644
--- a/service/rds/api_op_DescribeEvents.go
+++ b/service/rds/api_op_DescribeEvents.go
@@ -25,7 +25,7 @@ type DescribeEventsInput struct {
// page. (http://en.wikipedia.org/wiki/ISO_8601)
//
// Example: 2009-07-08T18:00Z
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// A list of event categories that trigger notifications for a event notification
// subscription.
@@ -78,7 +78,7 @@ type DescribeEventsInput struct {
// page. (http://en.wikipedia.org/wiki/ISO_8601)
//
// Example: 2009-07-08T18:00Z
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/rds/api_op_RestoreDBClusterToPointInTime.go b/service/rds/api_op_RestoreDBClusterToPointInTime.go
index 012c85d530b..0bb61e34fc5 100644
--- a/service/rds/api_op_RestoreDBClusterToPointInTime.go
+++ b/service/rds/api_op_RestoreDBClusterToPointInTime.go
@@ -133,7 +133,7 @@ type RestoreDBClusterToPointInTimeInput struct {
// * Can't be specified if RestoreType parameter is copy-on-write
//
// Example: 2015-03-07T23:45:00Z
- RestoreToTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ RestoreToTime *time.Time `type:"timestamp"`
// The type of restore to be performed. You can specify one of the following
// values:
diff --git a/service/rds/api_op_RestoreDBInstanceToPointInTime.go b/service/rds/api_op_RestoreDBInstanceToPointInTime.go
index ee3a16b439a..718bd38994c 100644
--- a/service/rds/api_op_RestoreDBInstanceToPointInTime.go
+++ b/service/rds/api_op_RestoreDBInstanceToPointInTime.go
@@ -188,7 +188,7 @@ type RestoreDBInstanceToPointInTimeInput struct {
// * Can't be specified if UseLatestRestorableTime parameter is true
//
// Example: 2009-09-07T23:45:00Z
- RestoreTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ RestoreTime *time.Time `type:"timestamp"`
// The identifier of the source DB instance from which to restore.
//
diff --git a/service/rds/api_types.go b/service/rds/api_types.go
index a882ba00a86..754e75a8d8a 100644
--- a/service/rds/api_types.go
+++ b/service/rds/api_types.go
@@ -93,10 +93,10 @@ type Certificate struct {
Thumbprint *string `type:"string"`
// The starting date from which the certificate is valid.
- ValidFrom *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ValidFrom *time.Time `type:"timestamp"`
// The final date that the certificate continues to be valid.
- ValidTill *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ValidTill *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -196,7 +196,7 @@ type DBCluster struct {
// Specifies the time when the DB cluster was created, in Universal Coordinated
// Time (UTC).
- ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ClusterCreateTime *time.Time `type:"timestamp"`
// Specifies whether tags are copied from the DB cluster to snapshots of the
// DB cluster.
@@ -240,11 +240,11 @@ type DBCluster struct {
DeletionProtection *bool `type:"boolean"`
// The earliest time to which a DB cluster can be backtracked.
- EarliestBacktrackTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EarliestBacktrackTime *time.Time `type:"timestamp"`
// The earliest time to which a database can be restored with point-in-time
// restore.
- EarliestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EarliestRestorableTime *time.Time `type:"timestamp"`
// A list of log types that this DB cluster is configured to export to CloudWatch
// Logs.
@@ -296,7 +296,7 @@ type DBCluster struct {
// Specifies the latest time to which a database can be restored with point-in-time
// restore.
- LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LatestRestorableTime *time.Time `type:"timestamp"`
// Contains the master username for the DB cluster.
MasterUsername *string `type:"string"`
@@ -371,13 +371,13 @@ type DBClusterBacktrack struct {
BacktrackIdentifier *string `type:"string"`
// The timestamp of the time at which the backtrack was requested.
- BacktrackRequestCreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ BacktrackRequestCreationTime *time.Time `type:"timestamp"`
// The timestamp of the time to which the DB cluster was backtracked.
- BacktrackTo *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ BacktrackTo *time.Time `type:"timestamp"`
// The timestamp of the time from which the DB cluster was backtracked.
- BacktrackedFrom *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ BacktrackedFrom *time.Time `type:"timestamp"`
// Contains a user-supplied DB cluster identifier. This identifier is the unique
// key that identifies a DB cluster.
@@ -587,7 +587,7 @@ type DBClusterSnapshot struct {
// Specifies the time when the DB cluster was created, in Universal Coordinated
// Time (UTC).
- ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ClusterCreateTime *time.Time `type:"timestamp"`
// Specifies the DB cluster identifier of the DB cluster that this DB cluster
// snapshot was created from.
@@ -628,7 +628,7 @@ type DBClusterSnapshot struct {
// Provides the time when the snapshot was taken, in Universal Coordinated Time
// (UTC).
- SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ SnapshotCreateTime *time.Time `type:"timestamp"`
// Provides the type of the DB cluster snapshot.
SnapshotType *string `type:"string"`
@@ -909,7 +909,7 @@ type DBInstance struct {
IAMDatabaseAuthenticationEnabled *bool `type:"boolean"`
// Provides the date and time the DB instance was created.
- InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ InstanceCreateTime *time.Time `type:"timestamp"`
// Specifies the Provisioned IOPS (I/O operations per second) value.
Iops *int64 `type:"integer"`
@@ -920,7 +920,7 @@ type DBInstance struct {
// Specifies the latest time to which a database can be restored with point-in-time
// restore.
- LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LatestRestorableTime *time.Time `type:"timestamp"`
// License model information for this DB instance.
LicenseModel *string `type:"string"`
@@ -1076,7 +1076,7 @@ type DBInstanceAutomatedBackup struct {
IAMDatabaseAuthenticationEnabled *bool `type:"boolean"`
// Provides the date and time that the DB instance was created.
- InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ InstanceCreateTime *time.Time `type:"timestamp"`
// The IOPS (I/O operations per second) value for the automated backup.
Iops *int64 `type:"integer"`
@@ -1361,7 +1361,7 @@ type DBSnapshot struct {
// Specifies the time when the snapshot was taken, in Universal Coordinated
// Time (UTC).
- InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ InstanceCreateTime *time.Time `type:"timestamp"`
// Specifies the Provisioned IOPS (I/O operations per second) value of the DB
// instance at the time of the snapshot.
@@ -1392,7 +1392,7 @@ type DBSnapshot struct {
// Provides the time when the snapshot was taken, in Universal Coordinated Time
// (UTC).
- SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ SnapshotCreateTime *time.Time `type:"timestamp"`
// Provides the type of the DB snapshot.
SnapshotType *string `type:"string"`
@@ -1665,7 +1665,7 @@ type Event struct {
_ struct{} `type:"structure"`
// Specifies the date and time of the event.
- Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Date *time.Time `type:"timestamp"`
// Specifies the category for the event.
EventCategories []string `locationNameList:"EventCategory" type:"list"`
@@ -2396,14 +2396,14 @@ type PendingMaintenanceAction struct {
// action is applied to the resource during its first maintenance window after
// this date. If this date is specified, any next-maintenance opt-in requests
// are ignored.
- AutoAppliedAfterDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ AutoAppliedAfterDate *time.Time `type:"timestamp"`
// The effective date when the pending maintenance action is applied to the
// resource. This date takes into account opt-in requests received from the
// ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate, and the ForcedApplyDate.
// This value is blank if an opt-in request has not been received and nothing
// has been specified as AutoAppliedAfterDate or ForcedApplyDate.
- CurrentApplyDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CurrentApplyDate *time.Time `type:"timestamp"`
// A description providing more detail about the maintenance action.
Description *string `type:"string"`
@@ -2412,7 +2412,7 @@ type PendingMaintenanceAction struct {
// action is applied to the resource on this date regardless of the maintenance
// window for the resource. If this date is specified, any immediate opt-in
// requests are ignored.
- ForcedApplyDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ForcedApplyDate *time.Time `type:"timestamp"`
// Indicates the type of opt-in request that has been received for the resource.
OptInStatus *string `type:"string"`
@@ -2623,7 +2623,7 @@ type ReservedDBInstance struct {
ReservedDBInstancesOfferingId *string `type:"string"`
// The time the reservation started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
// The state of the reserved DB instance.
State *string `type:"string"`
@@ -2703,10 +2703,10 @@ type RestoreWindow struct {
_ struct{} `type:"structure"`
// The earliest time you can restore an instance to.
- EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EarliestTime *time.Time `type:"timestamp"`
// The latest time you can restore an instance to.
- LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LatestTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/rdsdata/api_op_ExecuteSql.go b/service/rdsdata/api_op_ExecuteSql.go
index cdce3e091f0..dea34720a02 100644
--- a/service/rdsdata/api_op_ExecuteSql.go
+++ b/service/rdsdata/api_op_ExecuteSql.go
@@ -66,7 +66,7 @@ func (s *ExecuteSqlInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ExecuteSqlInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AwsSecretStoreArn != nil {
v := *s.AwsSecretStoreArn
diff --git a/service/redshift/api_op_DescribeClusterSnapshots.go b/service/redshift/api_op_DescribeClusterSnapshots.go
index afaef965064..ef1ef23f148 100644
--- a/service/redshift/api_op_DescribeClusterSnapshots.go
+++ b/service/redshift/api_op_DescribeClusterSnapshots.go
@@ -41,7 +41,7 @@ type DescribeClusterSnapshotsInput struct {
// about ISO 8601, go to the ISO8601 Wikipedia page. (http://en.wikipedia.org/wiki/ISO_8601)
//
// Example: 2012-07-16T18:00:00Z
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// An optional parameter that specifies the starting point to return a set of
// response records. When the results of a DescribeClusterSnapshots request
@@ -83,7 +83,7 @@ type DescribeClusterSnapshotsInput struct {
// ISO 8601, go to the ISO8601 Wikipedia page. (http://en.wikipedia.org/wiki/ISO_8601)
//
// Example: 2012-07-16T18:00:00Z
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
// A tag key or keys for which you want to return all matching cluster snapshots
// that are associated with the specified key or keys. For example, suppose
diff --git a/service/redshift/api_op_DescribeEvents.go b/service/redshift/api_op_DescribeEvents.go
index 673b048d83a..d5b93c571db 100644
--- a/service/redshift/api_op_DescribeEvents.go
+++ b/service/redshift/api_op_DescribeEvents.go
@@ -26,7 +26,7 @@ type DescribeEventsInput struct {
// page. (http://en.wikipedia.org/wiki/ISO_8601)
//
// Example: 2009-07-08T18:00Z
- EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ EndTime *time.Time `type:"timestamp"`
// An optional parameter that specifies the starting point to return a set of
// response records. When the results of a DescribeEvents request exceed the
@@ -85,7 +85,7 @@ type DescribeEventsInput struct {
// page. (http://en.wikipedia.org/wiki/ISO_8601)
//
// Example: 2009-07-08T18:00Z
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/redshift/api_op_DescribeLoggingStatus.go b/service/redshift/api_op_DescribeLoggingStatus.go
index 8e54cfe1152..75240c8915a 100644
--- a/service/redshift/api_op_DescribeLoggingStatus.go
+++ b/service/redshift/api_op_DescribeLoggingStatus.go
@@ -53,10 +53,10 @@ type DescribeLoggingStatusOutput struct {
LastFailureMessage *string `type:"string"`
// The last time when logs failed to be delivered.
- LastFailureTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastFailureTime *time.Time `type:"timestamp"`
// The last time that logs were delivered.
- LastSuccessfulDeliveryTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastSuccessfulDeliveryTime *time.Time `type:"timestamp"`
// true if logging is on, false if logging is off.
LoggingEnabled *bool `type:"boolean"`
diff --git a/service/redshift/api_op_DisableLogging.go b/service/redshift/api_op_DisableLogging.go
index 5c663c175bf..8665c1d941b 100644
--- a/service/redshift/api_op_DisableLogging.go
+++ b/service/redshift/api_op_DisableLogging.go
@@ -53,10 +53,10 @@ type DisableLoggingOutput struct {
LastFailureMessage *string `type:"string"`
// The last time when logs failed to be delivered.
- LastFailureTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastFailureTime *time.Time `type:"timestamp"`
// The last time that logs were delivered.
- LastSuccessfulDeliveryTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastSuccessfulDeliveryTime *time.Time `type:"timestamp"`
// true if logging is on, false if logging is off.
LoggingEnabled *bool `type:"boolean"`
diff --git a/service/redshift/api_op_EnableLogging.go b/service/redshift/api_op_EnableLogging.go
index 73fb7ec5e2a..d79f0cc99ab 100644
--- a/service/redshift/api_op_EnableLogging.go
+++ b/service/redshift/api_op_EnableLogging.go
@@ -79,10 +79,10 @@ type EnableLoggingOutput struct {
LastFailureMessage *string `type:"string"`
// The last time when logs failed to be delivered.
- LastFailureTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastFailureTime *time.Time `type:"timestamp"`
// The last time that logs were delivered.
- LastSuccessfulDeliveryTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastSuccessfulDeliveryTime *time.Time `type:"timestamp"`
// true if logging is on, false if logging is off.
LoggingEnabled *bool `type:"boolean"`
diff --git a/service/redshift/api_op_GetClusterCredentials.go b/service/redshift/api_op_GetClusterCredentials.go
index 269612a327d..491618de834 100644
--- a/service/redshift/api_op_GetClusterCredentials.go
+++ b/service/redshift/api_op_GetClusterCredentials.go
@@ -144,7 +144,7 @@ type GetClusterCredentialsOutput struct {
DbUser *string `type:"string"`
// The date and time the password in DbPassword expires.
- Expiration *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Expiration *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/redshift/api_op_ModifyClusterMaintenance.go b/service/redshift/api_op_ModifyClusterMaintenance.go
index 808631b50dc..8cd4ee625c7 100644
--- a/service/redshift/api_op_ModifyClusterMaintenance.go
+++ b/service/redshift/api_op_ModifyClusterMaintenance.go
@@ -29,13 +29,13 @@ type ModifyClusterMaintenanceInput struct {
// A timestamp indicating end time for the deferred maintenance window. If you
// specify an end time, you can't specify a duration.
- DeferMaintenanceEndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DeferMaintenanceEndTime *time.Time `type:"timestamp"`
// A unique identifier for the deferred maintenance window.
DeferMaintenanceIdentifier *string `type:"string"`
// A timestamp indicating the start time for the deferred maintenance window.
- DeferMaintenanceStartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DeferMaintenanceStartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/redshift/api_types.go b/service/redshift/api_types.go
index 1e297730fca..8954b117fe0 100644
--- a/service/redshift/api_types.go
+++ b/service/redshift/api_types.go
@@ -93,7 +93,7 @@ type Cluster struct {
AvailabilityZone *string `type:"string"`
// The date and time that the cluster was created.
- ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ClusterCreateTime *time.Time `type:"timestamp"`
// The unique identifier of the cluster.
ClusterIdentifier *string `type:"string"`
@@ -323,7 +323,7 @@ type ClusterDbRevision struct {
CurrentDatabaseRevision *string `type:"string"`
// The date on which the database revision was released.
- DatabaseRevisionReleaseDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DatabaseRevisionReleaseDate *time.Time `type:"timestamp"`
// A list of RevisionTarget objects, where each object describes the database
// revision that a cluster can be updated to.
@@ -662,13 +662,13 @@ type DeferredMaintenanceWindow struct {
_ struct{} `type:"structure"`
// A timestamp for the end of the time period when we defer maintenance.
- DeferMaintenanceEndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DeferMaintenanceEndTime *time.Time `type:"timestamp"`
// A unique identifier for the maintenance window.
DeferMaintenanceIdentifier *string `type:"string"`
// A timestamp for the beginning of the time period when we defer maintenance.
- DeferMaintenanceStartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DeferMaintenanceStartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -779,7 +779,7 @@ type Event struct {
_ struct{} `type:"structure"`
// The date and time of the event.
- Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Date *time.Time `type:"timestamp"`
// A list of the event categories.
//
@@ -904,7 +904,7 @@ type EventSubscription struct {
// The date and time the Amazon Redshift event notification subscription was
// created.
- SubscriptionCreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ SubscriptionCreationTime *time.Time `type:"timestamp"`
// The list of tags for the event subscription.
Tags []Tag `locationNameList:"Tag" type:"list"`
@@ -1215,7 +1215,7 @@ type ReservedNode struct {
// The time the reservation started. You purchase a reserved node offering for
// a duration. This is the start time of that duration.
- StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ StartTime *time.Time `type:"timestamp"`
// The state of the reserved compute node.
//
@@ -1347,7 +1347,7 @@ type RevisionTarget struct {
DatabaseRevision *string `type:"string"`
// The date on which the database revision was released.
- DatabaseRevisionReleaseDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ DatabaseRevisionReleaseDate *time.Time `type:"timestamp"`
// A string that describes the changes and features that will be applied to
// the cluster when it is updated to the corresponding ClusterDbRevision.
@@ -1378,7 +1378,7 @@ type Snapshot struct {
BackupProgressInMegaBytes *float64 `type:"double"`
// The time (UTC) when the cluster was originally created.
- ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ClusterCreateTime *time.Time `type:"timestamp"`
// The identifier of the cluster for which the snapshot was taken.
ClusterIdentifier *string `type:"string"`
@@ -1458,13 +1458,13 @@ type Snapshot struct {
// The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot
// contains a copy of the cluster data as of this exact time.
- SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ SnapshotCreateTime *time.Time `type:"timestamp"`
// The snapshot identifier that is provided in the request.
SnapshotIdentifier *string `type:"string"`
// A timestamp representing the start of the retention period for the snapshot.
- SnapshotRetentionStartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ SnapshotRetentionStartTime *time.Time `type:"timestamp"`
// The snapshot type. Snapshots created using CreateClusterSnapshot and CopyClusterSnapshot
// are of type "manual".
@@ -1684,7 +1684,7 @@ type TableRestoreStatus struct {
// The time that the table restore request was made, in Universal Coordinated
// Time (UTC).
- RequestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ RequestTime *time.Time `type:"timestamp"`
// The identifier of the snapshot that the table is being restored from.
SnapshotIdentifier *string `type:"string"`
diff --git a/service/rekognition/api_op_DescribeCollection.go b/service/rekognition/api_op_DescribeCollection.go
index a7a0ef4acb8..06abbbe5cb8 100644
--- a/service/rekognition/api_op_DescribeCollection.go
+++ b/service/rekognition/api_op_DescribeCollection.go
@@ -50,7 +50,7 @@ type DescribeCollectionOutput struct {
// The number of milliseconds since the Unix epoch time until the creation of
// the collection. The Unix epoch time is 00:00:00 Coordinated Universal Time
// (UTC), Thursday, 1 January 1970.
- CreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimestamp *time.Time `type:"timestamp"`
// The number of faces that are indexed into the collection. To index faces
// into a collection, use IndexFaces.
diff --git a/service/rekognition/api_op_DescribeStreamProcessor.go b/service/rekognition/api_op_DescribeStreamProcessor.go
index 3a3c056b0b4..954f6c5f085 100644
--- a/service/rekognition/api_op_DescribeStreamProcessor.go
+++ b/service/rekognition/api_op_DescribeStreamProcessor.go
@@ -45,7 +45,7 @@ type DescribeStreamProcessorOutput struct {
_ struct{} `type:"structure"`
// Date and time the stream processor was created
- CreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimestamp *time.Time `type:"timestamp"`
// Kinesis video stream that provides the source streaming video.
Input *StreamProcessorInput `type:"structure"`
@@ -53,7 +53,7 @@ type DescribeStreamProcessorOutput struct {
// The time, in Unix format, the stream processor was last updated. For example,
// when the stream processor moves from a running state to a failed state, or
// when the user starts or stops the stream processor.
- LastUpdateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdateTimestamp *time.Time `type:"timestamp"`
// Name of the stream processor.
Name *string `min:"1" type:"string"`
diff --git a/service/resourcegroups/api_op_CreateGroup.go b/service/resourcegroups/api_op_CreateGroup.go
index 7895938eff1..fd5c4c01953 100644
--- a/service/resourcegroups/api_op_CreateGroup.go
+++ b/service/resourcegroups/api_op_CreateGroup.go
@@ -73,6 +73,7 @@ func (s *CreateGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/resourcegroups/api_op_DeleteGroup.go b/service/resourcegroups/api_op_DeleteGroup.go
index b0ca66b1aab..2726917ba50 100644
--- a/service/resourcegroups/api_op_DeleteGroup.go
+++ b/service/resourcegroups/api_op_DeleteGroup.go
@@ -44,6 +44,7 @@ func (s *DeleteGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupName != nil {
v := *s.GroupName
diff --git a/service/resourcegroups/api_op_GetGroup.go b/service/resourcegroups/api_op_GetGroup.go
index 62515d15d6a..773d713a44a 100644
--- a/service/resourcegroups/api_op_GetGroup.go
+++ b/service/resourcegroups/api_op_GetGroup.go
@@ -44,6 +44,7 @@ func (s *GetGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupName != nil {
v := *s.GroupName
diff --git a/service/resourcegroups/api_op_GetGroupQuery.go b/service/resourcegroups/api_op_GetGroupQuery.go
index a58857388f9..c32ce7fff7e 100644
--- a/service/resourcegroups/api_op_GetGroupQuery.go
+++ b/service/resourcegroups/api_op_GetGroupQuery.go
@@ -44,6 +44,7 @@ func (s *GetGroupQueryInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGroupQueryInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupName != nil {
v := *s.GroupName
diff --git a/service/resourcegroups/api_op_GetTags.go b/service/resourcegroups/api_op_GetTags.go
index a3105981457..cbd1b1b5dd3 100644
--- a/service/resourcegroups/api_op_GetTags.go
+++ b/service/resourcegroups/api_op_GetTags.go
@@ -45,6 +45,7 @@ func (s *GetTagsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetTagsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Arn != nil {
v := *s.Arn
diff --git a/service/resourcegroups/api_op_ListGroupResources.go b/service/resourcegroups/api_op_ListGroupResources.go
index d87bff4eb1a..913eeaa0d1d 100644
--- a/service/resourcegroups/api_op_ListGroupResources.go
+++ b/service/resourcegroups/api_op_ListGroupResources.go
@@ -72,6 +72,7 @@ func (s *ListGroupResourcesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListGroupResourcesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/resourcegroups/api_op_ListGroups.go b/service/resourcegroups/api_op_ListGroups.go
index b239da4c9c3..f9715a34c09 100644
--- a/service/resourcegroups/api_op_ListGroups.go
+++ b/service/resourcegroups/api_op_ListGroups.go
@@ -60,6 +60,7 @@ func (s *ListGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/resourcegroups/api_op_SearchResources.go b/service/resourcegroups/api_op_SearchResources.go
index ebed808170a..0109ba357e1 100644
--- a/service/resourcegroups/api_op_SearchResources.go
+++ b/service/resourcegroups/api_op_SearchResources.go
@@ -59,6 +59,7 @@ func (s *SearchResourcesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SearchResourcesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/resourcegroups/api_op_Tag.go b/service/resourcegroups/api_op_Tag.go
index 13be01c8e9e..0bdf0d672db 100644
--- a/service/resourcegroups/api_op_Tag.go
+++ b/service/resourcegroups/api_op_Tag.go
@@ -55,6 +55,7 @@ func (s *TagInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/resourcegroups/api_op_Untag.go b/service/resourcegroups/api_op_Untag.go
index 9e4bb8d8987..34f5422eb0d 100644
--- a/service/resourcegroups/api_op_Untag.go
+++ b/service/resourcegroups/api_op_Untag.go
@@ -53,6 +53,7 @@ func (s *UntagInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Keys != nil {
v := s.Keys
diff --git a/service/resourcegroups/api_op_UpdateGroup.go b/service/resourcegroups/api_op_UpdateGroup.go
index e86812f8bbb..26031d81108 100644
--- a/service/resourcegroups/api_op_UpdateGroup.go
+++ b/service/resourcegroups/api_op_UpdateGroup.go
@@ -49,6 +49,7 @@ func (s *UpdateGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Description != nil {
v := *s.Description
diff --git a/service/resourcegroups/api_op_UpdateGroupQuery.go b/service/resourcegroups/api_op_UpdateGroupQuery.go
index b716592dba6..f8eaea9ac26 100644
--- a/service/resourcegroups/api_op_UpdateGroupQuery.go
+++ b/service/resourcegroups/api_op_UpdateGroupQuery.go
@@ -59,6 +59,7 @@ func (s *UpdateGroupQueryInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateGroupQueryInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceQuery != nil {
v := s.ResourceQuery
diff --git a/service/robomaker/api_op_BatchDescribeSimulationJob.go b/service/robomaker/api_op_BatchDescribeSimulationJob.go
index 2f6c8600df6..d83b19ffa39 100644
--- a/service/robomaker/api_op_BatchDescribeSimulationJob.go
+++ b/service/robomaker/api_op_BatchDescribeSimulationJob.go
@@ -44,7 +44,7 @@ func (s *BatchDescribeSimulationJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchDescribeSimulationJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Jobs != nil {
v := s.Jobs
diff --git a/service/robomaker/api_op_CancelDeploymentJob.go b/service/robomaker/api_op_CancelDeploymentJob.go
index 5906e1658b6..5761aa23990 100644
--- a/service/robomaker/api_op_CancelDeploymentJob.go
+++ b/service/robomaker/api_op_CancelDeploymentJob.go
@@ -44,7 +44,7 @@ func (s *CancelDeploymentJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelDeploymentJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Job != nil {
v := *s.Job
diff --git a/service/robomaker/api_op_CancelSimulationJob.go b/service/robomaker/api_op_CancelSimulationJob.go
index 9a7664cce59..04bd81f1fe8 100644
--- a/service/robomaker/api_op_CancelSimulationJob.go
+++ b/service/robomaker/api_op_CancelSimulationJob.go
@@ -44,7 +44,7 @@ func (s *CancelSimulationJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelSimulationJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Job != nil {
v := *s.Job
diff --git a/service/robomaker/api_op_CreateDeploymentJob.go b/service/robomaker/api_op_CreateDeploymentJob.go
index ac61c306ccc..352db2358a2 100644
--- a/service/robomaker/api_op_CreateDeploymentJob.go
+++ b/service/robomaker/api_op_CreateDeploymentJob.go
@@ -90,7 +90,7 @@ func (s *CreateDeploymentJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateDeploymentJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientRequestToken string
if s.ClientRequestToken != nil {
@@ -151,7 +151,7 @@ type CreateDeploymentJobOutput struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the fleet was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The deployment application configuration.
DeploymentApplicationConfigs []DeploymentApplicationConfig `locationName:"deploymentApplicationConfigs" min:"1" type:"list"`
@@ -249,7 +249,8 @@ func (s CreateDeploymentJobOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DeploymentApplicationConfigs != nil {
v := s.DeploymentApplicationConfigs
diff --git a/service/robomaker/api_op_CreateFleet.go b/service/robomaker/api_op_CreateFleet.go
index 38890701495..cff3b19349f 100644
--- a/service/robomaker/api_op_CreateFleet.go
+++ b/service/robomaker/api_op_CreateFleet.go
@@ -48,7 +48,7 @@ func (s *CreateFleetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFleetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
@@ -79,7 +79,7 @@ type CreateFleetOutput struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the fleet was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The name of the fleet.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -105,7 +105,8 @@ func (s CreateFleetOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_op_CreateRobot.go b/service/robomaker/api_op_CreateRobot.go
index e9fe3b38827..4a075a8f586 100644
--- a/service/robomaker/api_op_CreateRobot.go
+++ b/service/robomaker/api_op_CreateRobot.go
@@ -68,7 +68,7 @@ func (s *CreateRobotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateRobotInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.Architecture) > 0 {
v := s.Architecture
@@ -114,7 +114,7 @@ type CreateRobotOutput struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the robot was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The Amazon Resource Name (ARN) of the Greengrass group associated with the
// robot.
@@ -150,7 +150,8 @@ func (s CreateRobotOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.GreengrassGroupId != nil {
v := *s.GreengrassGroupId
diff --git a/service/robomaker/api_op_CreateRobotApplication.go b/service/robomaker/api_op_CreateRobotApplication.go
index d08ffbc5917..a59bc9e1688 100644
--- a/service/robomaker/api_op_CreateRobotApplication.go
+++ b/service/robomaker/api_op_CreateRobotApplication.go
@@ -75,7 +75,7 @@ func (s *CreateRobotApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateRobotApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
@@ -125,7 +125,7 @@ type CreateRobotApplicationOutput struct {
// The time, in milliseconds since the epoch, when the robot application was
// last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the robot application.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -163,7 +163,8 @@ func (s CreateRobotApplicationOutput) MarshalFields(e protocol.FieldEncoder) err
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_op_CreateRobotApplicationVersion.go b/service/robomaker/api_op_CreateRobotApplicationVersion.go
index 95a1193baff..a624f1589de 100644
--- a/service/robomaker/api_op_CreateRobotApplicationVersion.go
+++ b/service/robomaker/api_op_CreateRobotApplicationVersion.go
@@ -52,7 +52,7 @@ func (s *CreateRobotApplicationVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateRobotApplicationVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Application != nil {
v := *s.Application
@@ -78,7 +78,7 @@ type CreateRobotApplicationVersionOutput struct {
// The time, in milliseconds since the epoch, when the robot application was
// last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the robot application.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -113,7 +113,8 @@ func (s CreateRobotApplicationVersionOutput) MarshalFields(e protocol.FieldEncod
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_op_CreateSimulationApplication.go b/service/robomaker/api_op_CreateSimulationApplication.go
index 9fa08d371df..7b8ef3495c8 100644
--- a/service/robomaker/api_op_CreateSimulationApplication.go
+++ b/service/robomaker/api_op_CreateSimulationApplication.go
@@ -93,7 +93,7 @@ func (s *CreateSimulationApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSimulationApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
@@ -155,7 +155,7 @@ type CreateSimulationApplicationOutput struct {
// The time, in milliseconds since the epoch, when the simulation application
// was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the simulation application.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -199,7 +199,8 @@ func (s CreateSimulationApplicationOutput) MarshalFields(e protocol.FieldEncoder
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_op_CreateSimulationApplicationVersion.go b/service/robomaker/api_op_CreateSimulationApplicationVersion.go
index f88066911a5..c94293b831f 100644
--- a/service/robomaker/api_op_CreateSimulationApplicationVersion.go
+++ b/service/robomaker/api_op_CreateSimulationApplicationVersion.go
@@ -52,7 +52,7 @@ func (s *CreateSimulationApplicationVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSimulationApplicationVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Application != nil {
v := *s.Application
@@ -78,7 +78,7 @@ type CreateSimulationApplicationVersionOutput struct {
// The time, in milliseconds since the epoch, when the simulation application
// was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the simulation application.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -119,7 +119,8 @@ func (s CreateSimulationApplicationVersionOutput) MarshalFields(e protocol.Field
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_op_CreateSimulationJob.go b/service/robomaker/api_op_CreateSimulationJob.go
index 4826331633b..a4b4d06b6df 100644
--- a/service/robomaker/api_op_CreateSimulationJob.go
+++ b/service/robomaker/api_op_CreateSimulationJob.go
@@ -126,7 +126,7 @@ func (s *CreateSimulationJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSimulationJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientRequestToken string
if s.ClientRequestToken != nil {
@@ -290,11 +290,11 @@ type CreateSimulationJobOutput struct {
// The time, in milliseconds since the epoch, when the simulation job was last
// started.
- LastStartedAt *time.Time `locationName:"lastStartedAt" type:"timestamp" timestampFormat:"unix"`
+ LastStartedAt *time.Time `locationName:"lastStartedAt" type:"timestamp"`
// The time, in milliseconds since the epoch, when the simulation job was last
// updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The maximum simulation job duration in seconds.
MaxJobDurationInSeconds *int64 `locationName:"maxJobDurationInSeconds" type:"long"`
@@ -362,13 +362,15 @@ func (s CreateSimulationJobOutput) MarshalFields(e protocol.FieldEncoder) error
v := *s.LastStartedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastStartedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastStartedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdatedAt != nil {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.MaxJobDurationInSeconds != nil {
v := *s.MaxJobDurationInSeconds
diff --git a/service/robomaker/api_op_DeleteFleet.go b/service/robomaker/api_op_DeleteFleet.go
index 1ea83f606de..856aab2aae3 100644
--- a/service/robomaker/api_op_DeleteFleet.go
+++ b/service/robomaker/api_op_DeleteFleet.go
@@ -44,7 +44,7 @@ func (s *DeleteFleetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFleetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Fleet != nil {
v := *s.Fleet
diff --git a/service/robomaker/api_op_DeleteRobot.go b/service/robomaker/api_op_DeleteRobot.go
index 2ae2ab2c4dd..1e49fd1010d 100644
--- a/service/robomaker/api_op_DeleteRobot.go
+++ b/service/robomaker/api_op_DeleteRobot.go
@@ -44,7 +44,7 @@ func (s *DeleteRobotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteRobotInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Robot != nil {
v := *s.Robot
diff --git a/service/robomaker/api_op_DeleteRobotApplication.go b/service/robomaker/api_op_DeleteRobotApplication.go
index 49d5a203d48..9f23571417f 100644
--- a/service/robomaker/api_op_DeleteRobotApplication.go
+++ b/service/robomaker/api_op_DeleteRobotApplication.go
@@ -50,7 +50,7 @@ func (s *DeleteRobotApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteRobotApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Application != nil {
v := *s.Application
diff --git a/service/robomaker/api_op_DeleteSimulationApplication.go b/service/robomaker/api_op_DeleteSimulationApplication.go
index 96b5deac431..192760a17ae 100644
--- a/service/robomaker/api_op_DeleteSimulationApplication.go
+++ b/service/robomaker/api_op_DeleteSimulationApplication.go
@@ -50,7 +50,7 @@ func (s *DeleteSimulationApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteSimulationApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Application != nil {
v := *s.Application
diff --git a/service/robomaker/api_op_DeregisterRobot.go b/service/robomaker/api_op_DeregisterRobot.go
index 45e8b634789..e586de7fabe 100644
--- a/service/robomaker/api_op_DeregisterRobot.go
+++ b/service/robomaker/api_op_DeregisterRobot.go
@@ -56,7 +56,7 @@ func (s *DeregisterRobotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeregisterRobotInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Fleet != nil {
v := *s.Fleet
diff --git a/service/robomaker/api_op_DescribeDeploymentJob.go b/service/robomaker/api_op_DescribeDeploymentJob.go
index e02e3a2e063..249dce919cb 100644
--- a/service/robomaker/api_op_DescribeDeploymentJob.go
+++ b/service/robomaker/api_op_DescribeDeploymentJob.go
@@ -45,7 +45,7 @@ func (s *DescribeDeploymentJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeDeploymentJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Job != nil {
v := *s.Job
@@ -64,7 +64,7 @@ type DescribeDeploymentJobOutput struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the deployment job was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The deployment application configuration.
DeploymentApplicationConfigs []DeploymentApplicationConfig `locationName:"deploymentApplicationConfigs" min:"1" type:"list"`
@@ -108,7 +108,8 @@ func (s DescribeDeploymentJobOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DeploymentApplicationConfigs != nil {
v := s.DeploymentApplicationConfigs
diff --git a/service/robomaker/api_op_DescribeFleet.go b/service/robomaker/api_op_DescribeFleet.go
index 886a183ddba..2ed5d64976c 100644
--- a/service/robomaker/api_op_DescribeFleet.go
+++ b/service/robomaker/api_op_DescribeFleet.go
@@ -45,7 +45,7 @@ func (s *DescribeFleetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeFleetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Fleet != nil {
v := *s.Fleet
@@ -64,7 +64,7 @@ type DescribeFleetOutput struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the fleet was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The Amazon Resource Name (ARN) of the last deployment job.
LastDeploymentJob *string `locationName:"lastDeploymentJob" min:"1" type:"string"`
@@ -73,7 +73,7 @@ type DescribeFleetOutput struct {
LastDeploymentStatus DeploymentStatus `locationName:"lastDeploymentStatus" type:"string" enum:"true"`
// The time of the last deployment.
- LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp" timestampFormat:"unix"`
+ LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp"`
// The name of the fleet.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -102,7 +102,8 @@ func (s DescribeFleetOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastDeploymentJob != nil {
v := *s.LastDeploymentJob
@@ -120,7 +121,8 @@ func (s DescribeFleetOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastDeploymentTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastDeploymentTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastDeploymentTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_op_DescribeRobot.go b/service/robomaker/api_op_DescribeRobot.go
index d302e90bc84..0f3ff727a41 100644
--- a/service/robomaker/api_op_DescribeRobot.go
+++ b/service/robomaker/api_op_DescribeRobot.go
@@ -45,7 +45,7 @@ func (s *DescribeRobotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeRobotInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Robot != nil {
v := *s.Robot
@@ -67,7 +67,7 @@ type DescribeRobotOutput struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the robot was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The Amazon Resource Name (ARN) of the fleet.
FleetArn *string `locationName:"fleetArn" min:"1" type:"string"`
@@ -79,7 +79,7 @@ type DescribeRobotOutput struct {
LastDeploymentJob *string `locationName:"lastDeploymentJob" min:"1" type:"string"`
// The time of the last deployment job.
- LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp" timestampFormat:"unix"`
+ LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp"`
// The name of the robot.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -114,7 +114,8 @@ func (s DescribeRobotOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.FleetArn != nil {
v := *s.FleetArn
@@ -138,7 +139,8 @@ func (s DescribeRobotOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastDeploymentTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastDeploymentTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastDeploymentTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_op_DescribeRobotApplication.go b/service/robomaker/api_op_DescribeRobotApplication.go
index 13ac878cc02..afa47a0dff6 100644
--- a/service/robomaker/api_op_DescribeRobotApplication.go
+++ b/service/robomaker/api_op_DescribeRobotApplication.go
@@ -51,7 +51,7 @@ func (s *DescribeRobotApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeRobotApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Application != nil {
v := *s.Application
@@ -77,7 +77,7 @@ type DescribeRobotApplicationOutput struct {
// The time, in milliseconds since the epoch, when the robot application was
// last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the robot application.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -115,7 +115,8 @@ func (s DescribeRobotApplicationOutput) MarshalFields(e protocol.FieldEncoder) e
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_op_DescribeSimulationApplication.go b/service/robomaker/api_op_DescribeSimulationApplication.go
index 5e663de95a8..a8a06fe1099 100644
--- a/service/robomaker/api_op_DescribeSimulationApplication.go
+++ b/service/robomaker/api_op_DescribeSimulationApplication.go
@@ -51,7 +51,7 @@ func (s *DescribeSimulationApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeSimulationApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Application != nil {
v := *s.Application
@@ -77,7 +77,7 @@ type DescribeSimulationApplicationOutput struct {
// The time, in milliseconds since the epoch, when the simulation application
// was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the simulation application.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -121,7 +121,8 @@ func (s DescribeSimulationApplicationOutput) MarshalFields(e protocol.FieldEncod
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_op_DescribeSimulationJob.go b/service/robomaker/api_op_DescribeSimulationJob.go
index 6a0122b02bb..25fb4cea4ee 100644
--- a/service/robomaker/api_op_DescribeSimulationJob.go
+++ b/service/robomaker/api_op_DescribeSimulationJob.go
@@ -45,7 +45,7 @@ func (s *DescribeSimulationJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeSimulationJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Job != nil {
v := *s.Job
@@ -141,11 +141,11 @@ type DescribeSimulationJobOutput struct {
// The time, in milliseconds since the epoch, when the simulation job was last
// started.
- LastStartedAt *time.Time `locationName:"lastStartedAt" type:"timestamp" timestampFormat:"unix"`
+ LastStartedAt *time.Time `locationName:"lastStartedAt" type:"timestamp"`
// The time, in milliseconds since the epoch, when the simulation job was last
// updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The maximum job duration in seconds. The value must be 8 days (691,200 seconds)
// or less.
@@ -223,13 +223,15 @@ func (s DescribeSimulationJobOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.LastStartedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastStartedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastStartedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdatedAt != nil {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.MaxJobDurationInSeconds != nil {
v := *s.MaxJobDurationInSeconds
diff --git a/service/robomaker/api_op_ListDeploymentJobs.go b/service/robomaker/api_op_ListDeploymentJobs.go
index 8eb4e2eda93..8e952ae7252 100644
--- a/service/robomaker/api_op_ListDeploymentJobs.go
+++ b/service/robomaker/api_op_ListDeploymentJobs.go
@@ -72,7 +72,7 @@ func (s *ListDeploymentJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDeploymentJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/robomaker/api_op_ListFleets.go b/service/robomaker/api_op_ListFleets.go
index 3f61e7b73d2..9dcfc48fd38 100644
--- a/service/robomaker/api_op_ListFleets.go
+++ b/service/robomaker/api_op_ListFleets.go
@@ -70,7 +70,7 @@ func (s *ListFleetsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFleetsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/robomaker/api_op_ListRobotApplications.go b/service/robomaker/api_op_ListRobotApplications.go
index eca7ceeaa04..a7553be8bde 100644
--- a/service/robomaker/api_op_ListRobotApplications.go
+++ b/service/robomaker/api_op_ListRobotApplications.go
@@ -74,7 +74,7 @@ func (s *ListRobotApplicationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListRobotApplicationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/robomaker/api_op_ListRobots.go b/service/robomaker/api_op_ListRobots.go
index d159fe8054a..51774014954 100644
--- a/service/robomaker/api_op_ListRobots.go
+++ b/service/robomaker/api_op_ListRobots.go
@@ -72,7 +72,7 @@ func (s *ListRobotsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListRobotsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/robomaker/api_op_ListSimulationApplications.go b/service/robomaker/api_op_ListSimulationApplications.go
index 4a34b47d1db..bb04b977263 100644
--- a/service/robomaker/api_op_ListSimulationApplications.go
+++ b/service/robomaker/api_op_ListSimulationApplications.go
@@ -74,7 +74,7 @@ func (s *ListSimulationApplicationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSimulationApplicationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/robomaker/api_op_ListSimulationJobs.go b/service/robomaker/api_op_ListSimulationJobs.go
index 6381f39d2ee..3f24f806721 100644
--- a/service/robomaker/api_op_ListSimulationJobs.go
+++ b/service/robomaker/api_op_ListSimulationJobs.go
@@ -73,7 +73,7 @@ func (s *ListSimulationJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSimulationJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/robomaker/api_op_ListTagsForResource.go b/service/robomaker/api_op_ListTagsForResource.go
index 293112cb2e4..019cca7cd4e 100644
--- a/service/robomaker/api_op_ListTagsForResource.go
+++ b/service/robomaker/api_op_ListTagsForResource.go
@@ -44,7 +44,7 @@ func (s *ListTagsForResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/robomaker/api_op_RegisterRobot.go b/service/robomaker/api_op_RegisterRobot.go
index 2274fd045ac..e230693393c 100644
--- a/service/robomaker/api_op_RegisterRobot.go
+++ b/service/robomaker/api_op_RegisterRobot.go
@@ -56,7 +56,7 @@ func (s *RegisterRobotInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RegisterRobotInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Fleet != nil {
v := *s.Fleet
diff --git a/service/robomaker/api_op_RestartSimulationJob.go b/service/robomaker/api_op_RestartSimulationJob.go
index 93dbd826ff9..3d5efb3db93 100644
--- a/service/robomaker/api_op_RestartSimulationJob.go
+++ b/service/robomaker/api_op_RestartSimulationJob.go
@@ -44,7 +44,7 @@ func (s *RestartSimulationJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RestartSimulationJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Job != nil {
v := *s.Job
diff --git a/service/robomaker/api_op_SyncDeploymentJob.go b/service/robomaker/api_op_SyncDeploymentJob.go
index fc16cdf5d4b..7ecb5e7a8dc 100644
--- a/service/robomaker/api_op_SyncDeploymentJob.go
+++ b/service/robomaker/api_op_SyncDeploymentJob.go
@@ -58,7 +58,7 @@ func (s *SyncDeploymentJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SyncDeploymentJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientRequestToken string
if s.ClientRequestToken != nil {
@@ -89,7 +89,7 @@ type SyncDeploymentJobOutput struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the fleet was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// Information about the deployment application configurations.
DeploymentApplicationConfigs []DeploymentApplicationConfig `locationName:"deploymentApplicationConfigs" min:"1" type:"list"`
@@ -185,7 +185,8 @@ func (s SyncDeploymentJobOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DeploymentApplicationConfigs != nil {
v := s.DeploymentApplicationConfigs
diff --git a/service/robomaker/api_op_TagResource.go b/service/robomaker/api_op_TagResource.go
index 453fd2f49b3..f85340328c3 100644
--- a/service/robomaker/api_op_TagResource.go
+++ b/service/robomaker/api_op_TagResource.go
@@ -53,7 +53,7 @@ func (s *TagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Tags != nil {
v := s.Tags
diff --git a/service/robomaker/api_op_UntagResource.go b/service/robomaker/api_op_UntagResource.go
index 9093465b49e..ec257fb301a 100644
--- a/service/robomaker/api_op_UntagResource.go
+++ b/service/robomaker/api_op_UntagResource.go
@@ -55,7 +55,7 @@ func (s *UntagResourceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ResourceArn != nil {
v := *s.ResourceArn
diff --git a/service/robomaker/api_op_UpdateRobotApplication.go b/service/robomaker/api_op_UpdateRobotApplication.go
index 2fbbb533331..81b959ff62a 100644
--- a/service/robomaker/api_op_UpdateRobotApplication.go
+++ b/service/robomaker/api_op_UpdateRobotApplication.go
@@ -77,7 +77,7 @@ func (s *UpdateRobotApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateRobotApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Application != nil {
v := *s.Application
@@ -121,7 +121,7 @@ type UpdateRobotApplicationOutput struct {
// The time, in milliseconds since the epoch, when the robot application was
// last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the robot application.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -156,7 +156,8 @@ func (s UpdateRobotApplicationOutput) MarshalFields(e protocol.FieldEncoder) err
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_op_UpdateSimulationApplication.go b/service/robomaker/api_op_UpdateSimulationApplication.go
index caf328eff9e..cebfa854e69 100644
--- a/service/robomaker/api_op_UpdateSimulationApplication.go
+++ b/service/robomaker/api_op_UpdateSimulationApplication.go
@@ -95,7 +95,7 @@ func (s *UpdateSimulationApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateSimulationApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Application != nil {
v := *s.Application
@@ -151,7 +151,7 @@ type UpdateSimulationApplicationOutput struct {
// The time, in milliseconds since the epoch, when the simulation application
// was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the simulation application.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -192,7 +192,8 @@ func (s UpdateSimulationApplicationOutput) MarshalFields(e protocol.FieldEncoder
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/robomaker/api_types.go b/service/robomaker/api_types.go
index 24f9f05a625..83414fd3b09 100644
--- a/service/robomaker/api_types.go
+++ b/service/robomaker/api_types.go
@@ -154,7 +154,7 @@ type DeploymentJob struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the deployment job was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The deployment application configuration.
DeploymentApplicationConfigs []DeploymentApplicationConfig `locationName:"deploymentApplicationConfigs" min:"1" type:"list"`
@@ -192,7 +192,8 @@ func (s DeploymentJob) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DeploymentApplicationConfigs != nil {
v := s.DeploymentApplicationConfigs
@@ -408,7 +409,7 @@ type Fleet struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the fleet was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The Amazon Resource Name (ARN) of the last deployment job.
LastDeploymentJob *string `locationName:"lastDeploymentJob" min:"1" type:"string"`
@@ -417,7 +418,7 @@ type Fleet struct {
LastDeploymentStatus DeploymentStatus `locationName:"lastDeploymentStatus" type:"string" enum:"true"`
// The time of the last deployment.
- LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp" timestampFormat:"unix"`
+ LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp"`
// The name of the fleet.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -440,7 +441,8 @@ func (s Fleet) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastDeploymentJob != nil {
v := *s.LastDeploymentJob
@@ -458,7 +460,8 @@ func (s Fleet) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastDeploymentTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastDeploymentTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastDeploymentTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -721,7 +724,7 @@ type Robot struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the robot was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The Amazon Resource Name (ARN) of the fleet.
FleetArn *string `locationName:"fleetArn" min:"1" type:"string"`
@@ -733,7 +736,7 @@ type Robot struct {
LastDeploymentJob *string `locationName:"lastDeploymentJob" min:"1" type:"string"`
// The time of the last deployment.
- LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp" timestampFormat:"unix"`
+ LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp"`
// The name of the robot.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -765,7 +768,8 @@ func (s Robot) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.FleetArn != nil {
v := *s.FleetArn
@@ -789,7 +793,8 @@ func (s Robot) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastDeploymentTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastDeploymentTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastDeploymentTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -892,7 +897,7 @@ type RobotApplicationSummary struct {
// The time, in milliseconds since the epoch, when the robot application was
// last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the robot application.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -921,7 +926,8 @@ func (s RobotApplicationSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -953,10 +959,10 @@ type RobotDeployment struct {
Arn *string `locationName:"arn" min:"1" type:"string"`
// The time, in milliseconds since the epoch, when the deployment finished.
- DeploymentFinishTime *time.Time `locationName:"deploymentFinishTime" type:"timestamp" timestampFormat:"unix"`
+ DeploymentFinishTime *time.Time `locationName:"deploymentFinishTime" type:"timestamp"`
// The time, in milliseconds since the epoch, when the deployment was started.
- DeploymentStartTime *time.Time `locationName:"deploymentStartTime" type:"timestamp" timestampFormat:"unix"`
+ DeploymentStartTime *time.Time `locationName:"deploymentStartTime" type:"timestamp"`
// The robot deployment failure code.
FailureCode DeploymentJobErrorCode `locationName:"failureCode" type:"string" enum:"true"`
@@ -988,13 +994,15 @@ func (s RobotDeployment) MarshalFields(e protocol.FieldEncoder) error {
v := *s.DeploymentFinishTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "deploymentFinishTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "deploymentFinishTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DeploymentStartTime != nil {
v := *s.DeploymentStartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "deploymentStartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "deploymentStartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.FailureCode) > 0 {
v := s.FailureCode
@@ -1143,7 +1151,7 @@ type SimulationApplicationSummary struct {
// The time, in milliseconds since the epoch, when the simulation application
// was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the simulation application.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -1175,7 +1183,8 @@ func (s SimulationApplicationSummary) MarshalFields(e protocol.FieldEncoder) err
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -1239,11 +1248,11 @@ type SimulationJob struct {
// The time, in milliseconds since the epoch, when the simulation job was last
// started.
- LastStartedAt *time.Time `locationName:"lastStartedAt" type:"timestamp" timestampFormat:"unix"`
+ LastStartedAt *time.Time `locationName:"lastStartedAt" type:"timestamp"`
// The time, in milliseconds since the epoch, when the simulation job was last
// updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The maximum simulation job duration in seconds. The value must be 8 days
// (691,200 seconds) or less.
@@ -1322,13 +1331,15 @@ func (s SimulationJob) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastStartedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastStartedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastStartedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastUpdatedAt != nil {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.MaxJobDurationInSeconds != nil {
v := *s.MaxJobDurationInSeconds
@@ -1415,7 +1426,7 @@ type SimulationJobSummary struct {
// The time, in milliseconds since the epoch, when the simulation job was last
// updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// The name of the simulation job.
Name *string `locationName:"name" min:"1" type:"string"`
@@ -1447,7 +1458,8 @@ func (s SimulationJobSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "lastUpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "lastUpdatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
diff --git a/service/route53/api_types.go b/service/route53/api_types.go
index 6ff1ba0f37c..452a9bd0ae5 100644
--- a/service/route53/api_types.go
+++ b/service/route53/api_types.go
@@ -654,7 +654,7 @@ type ChangeInfo struct {
// at 17:48:16.751 UTC.
//
// SubmittedAt is a required field
- SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ SubmittedAt *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -686,7 +686,8 @@ func (s ChangeInfo) MarshalFields(e protocol.FieldEncoder) error {
v := *s.SubmittedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "SubmittedAt", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "SubmittedAt",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -2613,7 +2614,7 @@ type StatusReport struct {
// 8601 format (https://en.wikipedia.org/wiki/ISO_8601) and Coordinated Universal
// Time (UTC). For example, the value 2017-03-27T17:48:16.751Z represents March
// 27, 2017 at 17:48:16.751 UTC.
- CheckedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CheckedTime *time.Time `type:"timestamp"`
// A description of the status of the health check endpoint as reported by one
// of the Amazon Route 53 health checkers.
@@ -2631,7 +2632,8 @@ func (s StatusReport) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CheckedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CheckedTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CheckedTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Status != nil {
v := *s.Status
diff --git a/service/route53domains/api_op_GetDomainDetail.go b/service/route53domains/api_op_GetDomainDetail.go
index 01b20c73bf0..b5bc364924a 100644
--- a/service/route53domains/api_op_GetDomainDetail.go
+++ b/service/route53domains/api_op_GetDomainDetail.go
@@ -70,7 +70,7 @@ type GetDomainDetailOutput struct {
// The date when the domain was created as found in the response to a WHOIS
// query. The date and time is in Coordinated Universal time (UTC).
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// Reserved for future use.
DnsSec *string `type:"string"`
@@ -82,7 +82,7 @@ type GetDomainDetailOutput struct {
// The date when the registration for the domain is set to expire. The date
// and time is in Coordinated Universal time (UTC).
- ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `type:"timestamp"`
// The name of the domain.
//
@@ -148,7 +148,7 @@ type GetDomainDetailOutput struct {
// The last updated date of the domain as found in the response to a WHOIS query.
// The date and time is in Coordinated Universal time (UTC).
- UpdatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdatedDate *time.Time `type:"timestamp"`
// The fully qualified name of the WHOIS server that can answer the WHOIS query
// for the domain.
diff --git a/service/route53domains/api_op_GetOperationDetail.go b/service/route53domains/api_op_GetOperationDetail.go
index 63b0a16a27f..6dd77db0920 100644
--- a/service/route53domains/api_op_GetOperationDetail.go
+++ b/service/route53domains/api_op_GetOperationDetail.go
@@ -59,7 +59,7 @@ type GetOperationDetailOutput struct {
Status OperationStatus `type:"string" enum:"true"`
// The date when the request was submitted.
- SubmittedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmittedDate *time.Time `type:"timestamp"`
// The type of operation that was requested.
Type OperationType `type:"string" enum:"true"`
diff --git a/service/route53domains/api_op_ListOperations.go b/service/route53domains/api_op_ListOperations.go
index 529306d4bfb..9e3ddc05c16 100644
--- a/service/route53domains/api_op_ListOperations.go
+++ b/service/route53domains/api_op_ListOperations.go
@@ -31,7 +31,7 @@ type ListOperationsInput struct {
// An optional parameter that lets you get information about all the operations
// that you submitted after a specified date and time. Specify the date and
// time in Coordinated Universal time (UTC).
- SubmittedSince *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SubmittedSince *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/route53domains/api_op_ViewBilling.go b/service/route53domains/api_op_ViewBilling.go
index b050c81fd64..5f197032504 100644
--- a/service/route53domains/api_op_ViewBilling.go
+++ b/service/route53domains/api_op_ViewBilling.go
@@ -17,7 +17,7 @@ type ViewBillingInput struct {
// The end date and time for the time period for which you want a list of billing
// records. Specify the date and time in Coordinated Universal time (UTC).
- End *time.Time `type:"timestamp" timestampFormat:"unix"`
+ End *time.Time `type:"timestamp"`
// For an initial request for a list of billing records, omit this element.
// If the number of billing records that are associated with the current AWS
@@ -38,7 +38,7 @@ type ViewBillingInput struct {
// The beginning date and time for the time period for which you want a list
// of billing records. Specify the date and time in Coordinated Universal time
// (UTC).
- Start *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Start *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/route53domains/api_types.go b/service/route53domains/api_types.go
index 71cb84a3d6e..3770d0e2e75 100644
--- a/service/route53domains/api_types.go
+++ b/service/route53domains/api_types.go
@@ -19,7 +19,7 @@ type BillingRecord struct {
_ struct{} `type:"structure"`
// The date that the operation was billed, in Unix format.
- BillDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ BillDate *time.Time `type:"timestamp"`
// The name of the domain that the billing record applies to. If the domain
// name contains characters other than a-z, 0-9, and - (hyphen), such as an
@@ -201,7 +201,7 @@ type DomainSummary struct {
DomainName *string `type:"string" required:"true"`
// Expiration date of the domain in Coordinated Universal Time (UTC).
- Expiry *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Expiry *time.Time `type:"timestamp"`
// Indicates whether a domain is locked from unauthorized transfer to another
// party.
@@ -367,7 +367,7 @@ type OperationSummary struct {
// The date when the request was submitted.
//
// SubmittedDate is a required field
- SubmittedDate *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ SubmittedDate *time.Time `type:"timestamp" required:"true"`
// Type of the action requested.
//
diff --git a/service/s3/api_op_CopyObject.go b/service/s3/api_op_CopyObject.go
index cf0c5a419eb..8f92c74422b 100644
--- a/service/s3/api_op_CopyObject.go
+++ b/service/s3/api_op_CopyObject.go
@@ -48,14 +48,14 @@ type CopyObjectInput struct {
CopySourceIfMatch *string `location:"header" locationName:"x-amz-copy-source-if-match" type:"string"`
// Copies the object if it has been modified since the specified time.
- CopySourceIfModifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-modified-since" type:"timestamp" timestampFormat:"rfc822"`
+ CopySourceIfModifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-modified-since" type:"timestamp"`
// Copies the object if its entity tag (ETag) is different than the specified
// ETag.
CopySourceIfNoneMatch *string `location:"header" locationName:"x-amz-copy-source-if-none-match" type:"string"`
// Copies the object if it hasn't been modified since the specified time.
- CopySourceIfUnmodifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-unmodified-since" type:"timestamp" timestampFormat:"rfc822"`
+ CopySourceIfUnmodifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-unmodified-since" type:"timestamp"`
// Specifies the algorithm to use when decrypting the source object (e.g., AES256).
CopySourceSSECustomerAlgorithm *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm" type:"string"`
@@ -71,7 +71,7 @@ type CopyObjectInput struct {
CopySourceSSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5" type:"string"`
// The date and time at which the object is no longer cacheable.
- Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp" timestampFormat:"rfc822"`
+ Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"`
// Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
@@ -102,7 +102,7 @@ type CopyObjectInput struct {
ObjectLockMode ObjectLockMode `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"true"`
// The date and time when you want the copied object's Object Lock to expire.
- ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"rfc822"`
+ ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
// Confirms that the requester knows that she or he will be charged for the
// request. Bucket owners need not specify this parameter in their requests.
@@ -259,7 +259,8 @@ func (s CopyObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CopySourceIfModifiedSince
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-copy-source-if-modified-since", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-copy-source-if-modified-since",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.CopySourceIfNoneMatch != nil {
v := *s.CopySourceIfNoneMatch
@@ -271,7 +272,8 @@ func (s CopyObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CopySourceIfUnmodifiedSince
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-copy-source-if-unmodified-since", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-copy-source-if-unmodified-since",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.CopySourceSSECustomerAlgorithm != nil {
v := *s.CopySourceSSECustomerAlgorithm
@@ -295,7 +297,8 @@ func (s CopyObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Expires
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "Expires", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "Expires",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.GrantFullControl != nil {
v := *s.GrantFullControl
@@ -343,7 +346,8 @@ func (s CopyObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ObjectLockRetainUntilDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-object-lock-retain-until-date", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-object-lock-retain-until-date",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
if len(s.RequestPayer) > 0 {
v := s.RequestPayer
diff --git a/service/s3/api_op_CreateMultipartUpload.go b/service/s3/api_op_CreateMultipartUpload.go
index 3cb1576b4a6..ef91ed8e9c3 100644
--- a/service/s3/api_op_CreateMultipartUpload.go
+++ b/service/s3/api_op_CreateMultipartUpload.go
@@ -39,7 +39,7 @@ type CreateMultipartUploadInput struct {
ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
// The date and time at which the object is no longer cacheable.
- Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp" timestampFormat:"rfc822"`
+ Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"`
// Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
@@ -66,7 +66,7 @@ type CreateMultipartUploadInput struct {
ObjectLockMode ObjectLockMode `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"true"`
// Specifies the date and time when you want the Object Lock to expire.
- ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"rfc822"`
+ ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
// Confirms that the requester knows that she or he will be charged for the
// request. Bucket owners need not specify this parameter in their requests.
@@ -194,7 +194,8 @@ func (s CreateMultipartUploadInput) MarshalFields(e protocol.FieldEncoder) error
v := *s.Expires
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "Expires", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "Expires",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.GrantFullControl != nil {
v := *s.GrantFullControl
@@ -236,7 +237,8 @@ func (s CreateMultipartUploadInput) MarshalFields(e protocol.FieldEncoder) error
v := *s.ObjectLockRetainUntilDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-object-lock-retain-until-date", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-object-lock-retain-until-date",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
if len(s.RequestPayer) > 0 {
v := s.RequestPayer
@@ -324,7 +326,7 @@ type CreateMultipartUploadOutput struct {
_ struct{} `type:"structure"`
// Date when multipart upload will become eligible for abort operation by lifecycle.
- AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp" timestampFormat:"rfc822"`
+ AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp"`
// Id of the lifecycle rule that makes a multipart upload eligible for abort
// operation.
@@ -398,7 +400,8 @@ func (s CreateMultipartUploadOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.AbortDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-abort-date", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-abort-date",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.AbortRuleId != nil {
v := *s.AbortRuleId
diff --git a/service/s3/api_op_GetObject.go b/service/s3/api_op_GetObject.go
index 1eaf0f5b84e..0ab5b728ba4 100644
--- a/service/s3/api_op_GetObject.go
+++ b/service/s3/api_op_GetObject.go
@@ -25,7 +25,7 @@ type GetObjectInput struct {
// Return the object only if it has been modified since the specified time,
// otherwise return a 304 (not modified).
- IfModifiedSince *time.Time `location:"header" locationName:"If-Modified-Since" type:"timestamp" timestampFormat:"rfc822"`
+ IfModifiedSince *time.Time `location:"header" locationName:"If-Modified-Since" type:"timestamp"`
// Return the object only if its entity tag (ETag) is different from the one
// specified, otherwise return a 304 (not modified).
@@ -33,7 +33,7 @@ type GetObjectInput struct {
// Return the object only if it has not been modified since the specified time,
// otherwise return a 412 (precondition failed).
- IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp" timestampFormat:"rfc822"`
+ IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp"`
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
@@ -69,7 +69,7 @@ type GetObjectInput struct {
ResponseContentType *string `location:"querystring" locationName:"response-content-type" type:"string"`
// Sets the Expires header of the response.
- ResponseExpires *time.Time `location:"querystring" locationName:"response-expires" type:"timestamp" timestampFormat:"iso8601"`
+ ResponseExpires *time.Time `location:"querystring" locationName:"response-expires" type:"timestamp"`
// Specifies the algorithm to use to when encrypting the object (e.g., AES256).
SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
@@ -143,7 +143,8 @@ func (s GetObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.IfModifiedSince
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "If-Modified-Since", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "If-Modified-Since",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.IfNoneMatch != nil {
v := *s.IfNoneMatch
@@ -155,7 +156,8 @@ func (s GetObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.IfUnmodifiedSince
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "If-Unmodified-Since", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "If-Unmodified-Since",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Range != nil {
v := *s.Range
@@ -239,7 +241,8 @@ func (s GetObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ResponseExpires
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "response-expires", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "response-expires",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.VersionId != nil {
v := *s.VersionId
@@ -300,7 +303,7 @@ type GetObjectOutput struct {
Expires *string `location:"header" locationName:"Expires" type:"string"`
// Last modified date of the object
- LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp" timestampFormat:"rfc822"`
+ LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp"`
// A map of metadata to store with the object in S3.
Metadata map[string]string `location:"headers" locationName:"x-amz-meta-" type:"map"`
@@ -319,7 +322,7 @@ type GetObjectOutput struct {
ObjectLockMode ObjectLockMode `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"true"`
// The date and time when this object's Object Lock will expire.
- ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"rfc822"`
+ ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
// The count of parts this object has.
PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`
@@ -449,7 +452,8 @@ func (s GetObjectOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "Last-Modified", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "Last-Modified",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.MissingMeta != nil {
v := *s.MissingMeta
@@ -473,7 +477,8 @@ func (s GetObjectOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ObjectLockRetainUntilDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-object-lock-retain-until-date", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-object-lock-retain-until-date",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
if s.PartsCount != nil {
v := *s.PartsCount
diff --git a/service/s3/api_op_HeadObject.go b/service/s3/api_op_HeadObject.go
index 32e0957af03..1321d5f993b 100644
--- a/service/s3/api_op_HeadObject.go
+++ b/service/s3/api_op_HeadObject.go
@@ -24,7 +24,7 @@ type HeadObjectInput struct {
// Return the object only if it has been modified since the specified time,
// otherwise return a 304 (not modified).
- IfModifiedSince *time.Time `location:"header" locationName:"If-Modified-Since" type:"timestamp" timestampFormat:"rfc822"`
+ IfModifiedSince *time.Time `location:"header" locationName:"If-Modified-Since" type:"timestamp"`
// Return the object only if its entity tag (ETag) is different from the one
// specified, otherwise return a 304 (not modified).
@@ -32,7 +32,7 @@ type HeadObjectInput struct {
// Return the object only if it has not been modified since the specified time,
// otherwise return a 412 (precondition failed).
- IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp" timestampFormat:"rfc822"`
+ IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp"`
// Key is a required field
Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
@@ -125,7 +125,8 @@ func (s HeadObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.IfModifiedSince
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "If-Modified-Since", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "If-Modified-Since",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.IfNoneMatch != nil {
v := *s.IfNoneMatch
@@ -137,7 +138,8 @@ func (s HeadObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.IfUnmodifiedSince
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "If-Unmodified-Since", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "If-Unmodified-Since",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Range != nil {
v := *s.Range
@@ -240,7 +242,7 @@ type HeadObjectOutput struct {
Expires *string `location:"header" locationName:"Expires" type:"string"`
// Last modified date of the object
- LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp" timestampFormat:"rfc822"`
+ LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp"`
// A map of metadata to store with the object in S3.
Metadata map[string]string `location:"headers" locationName:"x-amz-meta-" type:"map"`
@@ -258,7 +260,7 @@ type HeadObjectOutput struct {
ObjectLockMode ObjectLockMode `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"true"`
// The date and time when this object's Object Lock will expire.
- ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"rfc822"`
+ ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
// The count of parts this object has.
PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`
@@ -379,7 +381,8 @@ func (s HeadObjectOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "Last-Modified", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "Last-Modified",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.MissingMeta != nil {
v := *s.MissingMeta
@@ -403,7 +406,8 @@ func (s HeadObjectOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ObjectLockRetainUntilDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-object-lock-retain-until-date", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-object-lock-retain-until-date",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
if s.PartsCount != nil {
v := *s.PartsCount
diff --git a/service/s3/api_op_ListParts.go b/service/s3/api_op_ListParts.go
index f3619d144b9..3e4d5005219 100644
--- a/service/s3/api_op_ListParts.go
+++ b/service/s3/api_op_ListParts.go
@@ -124,7 +124,7 @@ type ListPartsOutput struct {
_ struct{} `type:"structure"`
// Date when multipart upload will become eligible for abort operation by lifecycle.
- AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp" timestampFormat:"rfc822"`
+ AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp"`
// Id of the lifecycle rule that makes a multipart upload eligible for abort
// operation.
@@ -258,7 +258,8 @@ func (s ListPartsOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.AbortDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-abort-date", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-abort-date",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.AbortRuleId != nil {
v := *s.AbortRuleId
diff --git a/service/s3/api_op_PutObject.go b/service/s3/api_op_PutObject.go
index 3dde56fc9c9..5624421fb19 100644
--- a/service/s3/api_op_PutObject.go
+++ b/service/s3/api_op_PutObject.go
@@ -53,7 +53,7 @@ type PutObjectInput struct {
ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
// The date and time at which the object is no longer cacheable.
- Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp" timestampFormat:"rfc822"`
+ Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"`
// Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
@@ -82,7 +82,7 @@ type PutObjectInput struct {
ObjectLockMode ObjectLockMode `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"true"`
// The date and time when you want this object's Object Lock to expire.
- ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"rfc822"`
+ ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
// Confirms that the requester knows that she or he will be charged for the
// request. Bucket owners need not specify this parameter in their requests.
@@ -223,7 +223,8 @@ func (s PutObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Expires
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "Expires", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "Expires",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.GrantFullControl != nil {
v := *s.GrantFullControl
@@ -265,7 +266,8 @@ func (s PutObjectInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ObjectLockRetainUntilDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-object-lock-retain-until-date", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-object-lock-retain-until-date",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
if len(s.RequestPayer) > 0 {
v := s.RequestPayer
diff --git a/service/s3/api_op_UploadPartCopy.go b/service/s3/api_op_UploadPartCopy.go
index 63270e3d4f9..1bcbee0808a 100644
--- a/service/s3/api_op_UploadPartCopy.go
+++ b/service/s3/api_op_UploadPartCopy.go
@@ -28,14 +28,14 @@ type UploadPartCopyInput struct {
CopySourceIfMatch *string `location:"header" locationName:"x-amz-copy-source-if-match" type:"string"`
// Copies the object if it has been modified since the specified time.
- CopySourceIfModifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-modified-since" type:"timestamp" timestampFormat:"rfc822"`
+ CopySourceIfModifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-modified-since" type:"timestamp"`
// Copies the object if its entity tag (ETag) is different than the specified
// ETag.
CopySourceIfNoneMatch *string `location:"header" locationName:"x-amz-copy-source-if-none-match" type:"string"`
// Copies the object if it hasn't been modified since the specified time.
- CopySourceIfUnmodifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-unmodified-since" type:"timestamp" timestampFormat:"rfc822"`
+ CopySourceIfUnmodifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-unmodified-since" type:"timestamp"`
// The range of bytes to copy from the source object. The range value must use
// the form bytes=first-last, where the first and last are the zero-based byte
@@ -172,7 +172,8 @@ func (s UploadPartCopyInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CopySourceIfModifiedSince
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-copy-source-if-modified-since", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-copy-source-if-modified-since",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.CopySourceIfNoneMatch != nil {
v := *s.CopySourceIfNoneMatch
@@ -184,7 +185,8 @@ func (s UploadPartCopyInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CopySourceIfUnmodifiedSince
metadata := protocol.Metadata{}
- e.SetValue(protocol.HeaderTarget, "x-amz-copy-source-if-unmodified-since", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.HeaderTarget, "x-amz-copy-source-if-unmodified-since",
+ protocol.TimeValue{V: v, Format: protocol.RFC822TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.CopySourceRange != nil {
v := *s.CopySourceRange
diff --git a/service/s3/api_types.go b/service/s3/api_types.go
index 34b0d483aa9..29684c4f33a 100644
--- a/service/s3/api_types.go
+++ b/service/s3/api_types.go
@@ -487,7 +487,7 @@ type Bucket struct {
_ struct{} `type:"structure"`
// Date the bucket was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreationDate *time.Time `type:"timestamp"`
// The name of the bucket.
Name *string `type:"string"`
@@ -504,7 +504,8 @@ func (s Bucket) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationDate", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationDate",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -1112,7 +1113,7 @@ type CopyObjectResult struct {
ETag *string `type:"string"`
- LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastModified *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1132,7 +1133,8 @@ func (s CopyObjectResult) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -1145,7 +1147,7 @@ type CopyPartResult struct {
ETag *string `type:"string"`
// Date and time at which the object was uploaded.
- LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastModified *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1165,7 +1167,8 @@ func (s CopyPartResult) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -1313,7 +1316,7 @@ type DeleteMarkerEntry struct {
Key *string `min:"1" type:"string"`
// Date and time the object was last modified.
- LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastModified *time.Time `type:"timestamp"`
Owner *Owner `type:"structure"`
@@ -1344,7 +1347,8 @@ func (s DeleteMarkerEntry) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Owner != nil {
v := s.Owner
@@ -2672,7 +2676,8 @@ func (s LifecycleExpiration) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Date
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Date", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "Date",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
if s.Days != nil {
v := *s.Days
@@ -3245,7 +3250,7 @@ type MultipartUpload struct {
_ struct{} `type:"structure"`
// Date and time at which the multipart upload was initiated.
- Initiated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Initiated *time.Time `type:"timestamp"`
// Identifies who initiated the multipart upload.
Initiator *Initiator `type:"structure"`
@@ -3273,7 +3278,8 @@ func (s MultipartUpload) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Initiated
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Initiated", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "Initiated",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Initiator != nil {
v := s.Initiator
@@ -3549,7 +3555,7 @@ type Object struct {
Key *string `min:"1" type:"string"`
- LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastModified *time.Time `type:"timestamp"`
Owner *Owner `type:"structure"`
@@ -3582,7 +3588,8 @@ func (s Object) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Owner != nil {
v := s.Owner
@@ -3745,7 +3752,8 @@ func (s ObjectLockRetention) MarshalFields(e protocol.FieldEncoder) error {
v := *s.RetainUntilDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "RetainUntilDate", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "RetainUntilDate",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -3790,7 +3798,7 @@ type ObjectVersion struct {
Key *string `min:"1" type:"string"`
// Date and time the object was last modified.
- LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastModified *time.Time `type:"timestamp"`
Owner *Owner `type:"structure"`
@@ -3833,7 +3841,8 @@ func (s ObjectVersion) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Owner != nil {
v := s.Owner
@@ -3990,7 +3999,7 @@ type Part struct {
ETag *string `type:"string"`
// Date and time at which the part was uploaded.
- LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastModified *time.Time `type:"timestamp"`
// Part number identifying the part. This is a positive integer between 1 and
// 10,000.
@@ -4017,7 +4026,8 @@ func (s Part) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastModified
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastModified", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastModified",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.PartNumber != nil {
v := *s.PartNumber
@@ -6041,7 +6051,8 @@ func (s Transition) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Date
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Date", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "Date",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: false}, metadata)
}
if s.Days != nil {
v := *s.Days
diff --git a/service/s3/s3manager/upload_input.go b/service/s3/s3manager/upload_input.go
index aa72d162976..b623e26ab69 100644
--- a/service/s3/s3manager/upload_input.go
+++ b/service/s3/s3manager/upload_input.go
@@ -49,7 +49,7 @@ type UploadInput struct {
ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
// The date and time at which the object is no longer cacheable.
- Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp" timestampFormat:"rfc822"`
+ Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"`
// Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
@@ -78,7 +78,7 @@ type UploadInput struct {
ObjectLockMode s3.ObjectLockMode `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"true"`
// The date and time when you want this object's Object Lock to expire.
- ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"rfc822"`
+ ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
// Confirms that the requester knows that she or he will be charged for the
// request. Bucket owners need not specify this parameter in their requests.
diff --git a/service/s3control/api_types.go b/service/s3control/api_types.go
index fc4708b2273..01da91025b1 100644
--- a/service/s3control/api_types.go
+++ b/service/s3control/api_types.go
@@ -26,7 +26,7 @@ type JobDescriptor struct {
ConfirmationRequired *bool `type:"boolean"`
// A timestamp indicating when this job was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreationTime *time.Time `type:"timestamp"`
// The description for this job, if one was provided in this job's Create Job
// request.
@@ -76,11 +76,11 @@ type JobDescriptor struct {
SuspendedCause *string `min:"1" type:"string"`
// The timestamp when this job was suspended, if it has been suspended.
- SuspendedDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ SuspendedDate *time.Time `type:"timestamp"`
// A timestamp indicating when this job terminated. A job's termination date
// is the date and time when it succeeded, failed, or was canceled.
- TerminationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ TerminationDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -100,7 +100,8 @@ func (s JobDescriptor) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -190,13 +191,15 @@ func (s JobDescriptor) MarshalFields(e protocol.FieldEncoder) error {
v := *s.SuspendedDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "SuspendedDate", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "SuspendedDate",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.TerminationDate != nil {
v := *s.TerminationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "TerminationDate", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "TerminationDate",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -242,7 +245,7 @@ type JobListDescriptor struct {
_ struct{} `type:"structure"`
// A timestamp indicating when the specified job was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreationTime *time.Time `type:"timestamp"`
// The user-specified description that was included in the specified job's Create
// Job request.
@@ -267,7 +270,7 @@ type JobListDescriptor struct {
// A timestamp indicating when the specified job terminated. A job's termination
// date is the date and time when it succeeded, failed, or was canceled.
- TerminationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ TerminationDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -281,7 +284,8 @@ func (s JobListDescriptor) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreationTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreationTime", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreationTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.Description != nil {
v := *s.Description
@@ -323,7 +327,8 @@ func (s JobListDescriptor) MarshalFields(e protocol.FieldEncoder) error {
v := *s.TerminationDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "TerminationDate", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "TerminationDate",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -962,7 +967,7 @@ type S3CopyObjectOperation struct {
MetadataDirective S3MetadataDirective `type:"string" enum:"true"`
- ModifiedSinceConstraint *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ModifiedSinceConstraint *time.Time `type:"timestamp"`
NewObjectMetadata *S3ObjectMetadata `type:"structure"`
@@ -972,7 +977,7 @@ type S3CopyObjectOperation struct {
ObjectLockMode S3ObjectLockMode `type:"string" enum:"true"`
- ObjectLockRetainUntilDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ObjectLockRetainUntilDate *time.Time `type:"timestamp"`
RedirectLocation *string `min:"1" type:"string"`
@@ -986,7 +991,7 @@ type S3CopyObjectOperation struct {
TargetResource *string `min:"1" type:"string"`
- UnModifiedSinceConstraint *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ UnModifiedSinceConstraint *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1065,7 +1070,8 @@ func (s S3CopyObjectOperation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ModifiedSinceConstraint
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ModifiedSinceConstraint", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ModifiedSinceConstraint",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.NewObjectMetadata != nil {
v := s.NewObjectMetadata
@@ -1101,7 +1107,8 @@ func (s S3CopyObjectOperation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ObjectLockRetainUntilDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ObjectLockRetainUntilDate", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ObjectLockRetainUntilDate",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.RedirectLocation != nil {
v := *s.RedirectLocation
@@ -1143,7 +1150,8 @@ func (s S3CopyObjectOperation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UnModifiedSinceConstraint
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "UnModifiedSinceConstraint", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "UnModifiedSinceConstraint",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
return nil
}
@@ -1302,7 +1310,7 @@ type S3ObjectMetadata struct {
ContentType *string `min:"1" type:"string"`
- HttpExpiresDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ HttpExpiresDate *time.Time `type:"timestamp"`
RequesterCharged *bool `type:"boolean"`
@@ -1392,7 +1400,8 @@ func (s S3ObjectMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.HttpExpiresDate
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "HttpExpiresDate", protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "HttpExpiresDate",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.RequesterCharged != nil {
v := *s.RequesterCharged
diff --git a/service/sagemaker/api_op_DescribeAlgorithm.go b/service/sagemaker/api_op_DescribeAlgorithm.go
index 39acf6ccefa..21d1679a4f4 100644
--- a/service/sagemaker/api_op_DescribeAlgorithm.go
+++ b/service/sagemaker/api_op_DescribeAlgorithm.go
@@ -75,7 +75,7 @@ type DescribeAlgorithmOutput struct {
// A timestamp specifying when the algorithm was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// Details about inference jobs that the algorithm runs.
InferenceSpecification *InferenceSpecification `type:"structure"`
diff --git a/service/sagemaker/api_op_DescribeCodeRepository.go b/service/sagemaker/api_op_DescribeCodeRepository.go
index 416e9fc834d..bb2e118f7c7 100644
--- a/service/sagemaker/api_op_DescribeCodeRepository.go
+++ b/service/sagemaker/api_op_DescribeCodeRepository.go
@@ -59,7 +59,7 @@ type DescribeCodeRepositoryOutput struct {
// The date and time that the repository was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// Configuration details about the repository, including the URL where the repository
// is located, the default branch, and the Amazon Resource Name (ARN) of the
@@ -70,7 +70,7 @@ type DescribeCodeRepositoryOutput struct {
// The date and time that the repository was last changed.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/sagemaker/api_op_DescribeCompilationJob.go b/service/sagemaker/api_op_DescribeCompilationJob.go
index c3b34b34050..5e4368c5594 100644
--- a/service/sagemaker/api_op_DescribeCompilationJob.go
+++ b/service/sagemaker/api_op_DescribeCompilationJob.go
@@ -50,7 +50,7 @@ type DescribeCompilationJobOutput struct {
// For a successful or stopped job, this is when the job's model artifacts have
// finished uploading. For a failed job, this is when Amazon SageMaker detected
// that the job failed.
- CompilationEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompilationEndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes
// to perform the model compilation job.
@@ -75,12 +75,12 @@ type DescribeCompilationJobOutput struct {
// Logs, the start time might be later than this time. That's because it takes
// time to download the compilation job, which depends on the size of the compilation
// job container.
- CompilationStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompilationStartTime *time.Time `type:"timestamp"`
// The time that the model compilation job was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// If a model compilation job failed, the reason it failed.
//
@@ -97,7 +97,7 @@ type DescribeCompilationJobOutput struct {
// The time that the status of the model compilation job was last modified.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
// Information about the location in Amazon S3 that has been configured for
// storing the model artifacts used in the compilation job.
diff --git a/service/sagemaker/api_op_DescribeEndpoint.go b/service/sagemaker/api_op_DescribeEndpoint.go
index 653d36ce2d7..ebc12f787bb 100644
--- a/service/sagemaker/api_op_DescribeEndpoint.go
+++ b/service/sagemaker/api_op_DescribeEndpoint.go
@@ -46,7 +46,7 @@ type DescribeEndpointOutput struct {
// A timestamp that shows when the endpoint was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the endpoint.
//
@@ -101,7 +101,7 @@ type DescribeEndpointOutput struct {
// A timestamp that shows when the endpoint was last modified.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
// An array of ProductionVariantSummary objects, one for each model hosted behind
// this endpoint.
diff --git a/service/sagemaker/api_op_DescribeEndpointConfig.go b/service/sagemaker/api_op_DescribeEndpointConfig.go
index a926f4aac8c..070fa646961 100644
--- a/service/sagemaker/api_op_DescribeEndpointConfig.go
+++ b/service/sagemaker/api_op_DescribeEndpointConfig.go
@@ -46,7 +46,7 @@ type DescribeEndpointConfigOutput struct {
// A timestamp that shows when the endpoint configuration was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the endpoint configuration.
//
diff --git a/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go b/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go
index c9590b39676..80bb310c442 100644
--- a/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go
+++ b/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go
@@ -53,13 +53,13 @@ type DescribeHyperParameterTuningJobOutput struct {
// The date and time that the tuning job started.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// If the tuning job failed, the reason it failed.
FailureReason *string `type:"string"`
// The date and time that the tuning job ended.
- HyperParameterTuningEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ HyperParameterTuningEndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the tuning job.
//
@@ -84,7 +84,7 @@ type DescribeHyperParameterTuningJobOutput struct {
HyperParameterTuningJobStatus HyperParameterTuningJobStatus `type:"string" required:"true" enum:"true"`
// The date and time that the status of the tuning job was modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The ObjectiveStatusCounters object that specifies the number of training
// jobs, categorized by the status of their final objective metric, that this
diff --git a/service/sagemaker/api_op_DescribeLabelingJob.go b/service/sagemaker/api_op_DescribeLabelingJob.go
index 2be561bfc64..36ff4a76828 100644
--- a/service/sagemaker/api_op_DescribeLabelingJob.go
+++ b/service/sagemaker/api_op_DescribeLabelingJob.go
@@ -49,7 +49,7 @@ type DescribeLabelingJobOutput struct {
// The date and time that the labeling job was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// If the job failed, the reason that it failed.
FailureReason *string `type:"string"`
@@ -142,7 +142,7 @@ type DescribeLabelingJobOutput struct {
// The date and time that the labeling job was last updated.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
// The location of the job's output data and the AWS Key Management Service
// key ID for the key used to encrypt the output data, if any.
diff --git a/service/sagemaker/api_op_DescribeModel.go b/service/sagemaker/api_op_DescribeModel.go
index a45696f3669..8298795f4ff 100644
--- a/service/sagemaker/api_op_DescribeModel.go
+++ b/service/sagemaker/api_op_DescribeModel.go
@@ -49,7 +49,7 @@ type DescribeModelOutput struct {
// A timestamp that shows when the model was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// If True, no inbound or outbound network calls can be made to or from the
// model container.
diff --git a/service/sagemaker/api_op_DescribeModelPackage.go b/service/sagemaker/api_op_DescribeModelPackage.go
index aea23bc118b..b21ee99e645 100644
--- a/service/sagemaker/api_op_DescribeModelPackage.go
+++ b/service/sagemaker/api_op_DescribeModelPackage.go
@@ -52,7 +52,7 @@ type DescribeModelPackageOutput struct {
// A timestamp specifying when the model package was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// Details about inference jobs that can be run with models based on this model
// package.
diff --git a/service/sagemaker/api_op_DescribeNotebookInstance.go b/service/sagemaker/api_op_DescribeNotebookInstance.go
index a1239e3c27f..9aa21296157 100644
--- a/service/sagemaker/api_op_DescribeNotebookInstance.go
+++ b/service/sagemaker/api_op_DescribeNotebookInstance.go
@@ -60,7 +60,7 @@ type DescribeNotebookInstanceOutput struct {
// A timestamp. Use this parameter to return the time when the notebook instance
// was created
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The Git repository associated with the notebook instance as its default code
// repository. This can be either the name of a Git repository stored as a resource
@@ -91,7 +91,7 @@ type DescribeNotebookInstanceOutput struct {
// A timestamp. Use this parameter to retrieve the time when the notebook instance
// was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The network interface IDs that Amazon SageMaker created at the time of creating
// the instance.
diff --git a/service/sagemaker/api_op_DescribeNotebookInstanceLifecycleConfig.go b/service/sagemaker/api_op_DescribeNotebookInstanceLifecycleConfig.go
index eb12d74418c..41374ef1ebd 100644
--- a/service/sagemaker/api_op_DescribeNotebookInstanceLifecycleConfig.go
+++ b/service/sagemaker/api_op_DescribeNotebookInstanceLifecycleConfig.go
@@ -44,10 +44,10 @@ type DescribeNotebookInstanceLifecycleConfigOutput struct {
_ struct{} `type:"structure"`
// A timestamp that tells when the lifecycle configuration was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// A timestamp that tells when the lifecycle configuration was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the lifecycle configuration.
NotebookInstanceLifecycleConfigArn *string `type:"string"`
diff --git a/service/sagemaker/api_op_DescribeTrainingJob.go b/service/sagemaker/api_op_DescribeTrainingJob.go
index cf7ef22fb0c..4028d8881f0 100644
--- a/service/sagemaker/api_op_DescribeTrainingJob.go
+++ b/service/sagemaker/api_op_DescribeTrainingJob.go
@@ -54,7 +54,7 @@ type DescribeTrainingJobOutput struct {
// A timestamp that indicates when the training job was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// To encrypt all communications between ML compute instances in distributed
// training, choose True. Encryption provides greater security for distributed
@@ -91,7 +91,7 @@ type DescribeTrainingJobOutput struct {
LabelingJobArn *string `type:"string"`
// A timestamp that indicates when the status of the training job was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// Information about the Amazon S3 location that is configured for storing model
// artifacts.
@@ -180,7 +180,7 @@ type DescribeTrainingJobOutput struct {
// this time. For successful jobs and stopped jobs, this is the time after model
// artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker
// detects a job failure.
- TrainingEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingEndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the training job.
//
@@ -218,7 +218,7 @@ type DescribeTrainingJobOutput struct {
// The start time in CloudWatch Logs might be later than this time. The difference
// is due to the time it takes to download the training data and to the size
// of the training container.
- TrainingStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingStartTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the associated hyperparameter tuning job
// if the training job was launched by a hyperparameter tuning job.
diff --git a/service/sagemaker/api_op_DescribeTransformJob.go b/service/sagemaker/api_op_DescribeTransformJob.go
index b919f109e37..454ba245b26 100644
--- a/service/sagemaker/api_op_DescribeTransformJob.go
+++ b/service/sagemaker/api_op_DescribeTransformJob.go
@@ -57,7 +57,7 @@ type DescribeTransformJobOutput struct {
// A timestamp that shows when the transform Job was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The environment variables to set in the Docker container. We support up to
// 16 key and values entries in the map.
@@ -87,7 +87,7 @@ type DescribeTransformJobOutput struct {
// Indicates when the transform job has been completed, or has stopped or failed.
// You are billed for the time interval between this time and the value of TransformStartTime.
- TransformEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TransformEndTime *time.Time `type:"timestamp"`
// Describes the dataset to be transformed and the Amazon S3 location where
// it is stored.
@@ -123,7 +123,7 @@ type DescribeTransformJobOutput struct {
// Indicates when the transform job starts on ML instances. You are billed for
// the time interval between this time and the value of TransformEndTime.
- TransformStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TransformStartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/sagemaker/api_op_ListAlgorithms.go b/service/sagemaker/api_op_ListAlgorithms.go
index a602767234c..c1ab5a7c8d4 100644
--- a/service/sagemaker/api_op_ListAlgorithms.go
+++ b/service/sagemaker/api_op_ListAlgorithms.go
@@ -15,10 +15,10 @@ type ListAlgorithmsInput struct {
_ struct{} `type:"structure"`
// A filter that returns only algorithms created after the specified time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only algorithms created before the specified time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// The maximum number of algorithms to return in the response.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListCodeRepositories.go b/service/sagemaker/api_op_ListCodeRepositories.go
index dc5c539ab10..235b4d88f88 100644
--- a/service/sagemaker/api_op_ListCodeRepositories.go
+++ b/service/sagemaker/api_op_ListCodeRepositories.go
@@ -16,19 +16,19 @@ type ListCodeRepositoriesInput struct {
// A filter that returns only Git repositories that were created after the specified
// time.
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only Git repositories that were created before the
// specified time.
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// A filter that returns only Git repositories that were last modified after
// the specified time.
- LastModifiedTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only Git repositories that were last modified before
// the specified time.
- LastModifiedTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeBefore *time.Time `type:"timestamp"`
// The maximum number of Git repositories to return in the response.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListCompilationJobs.go b/service/sagemaker/api_op_ListCompilationJobs.go
index 7dea030f6b7..5694b201a3c 100644
--- a/service/sagemaker/api_op_ListCompilationJobs.go
+++ b/service/sagemaker/api_op_ListCompilationJobs.go
@@ -16,19 +16,19 @@ type ListCompilationJobsInput struct {
// A filter that returns the model compilation jobs that were created after
// a specified time.
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns the model compilation jobs that were created before
// a specified time.
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// A filter that returns the model compilation jobs that were modified after
// a specified time.
- LastModifiedTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeAfter *time.Time `type:"timestamp"`
// A filter that returns the model compilation jobs that were modified before
// a specified time.
- LastModifiedTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeBefore *time.Time `type:"timestamp"`
// The maximum number of model compilation jobs to return in the response.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListEndpointConfigs.go b/service/sagemaker/api_op_ListEndpointConfigs.go
index 441811960cd..ca346c46dc8 100644
--- a/service/sagemaker/api_op_ListEndpointConfigs.go
+++ b/service/sagemaker/api_op_ListEndpointConfigs.go
@@ -16,11 +16,11 @@ type ListEndpointConfigsInput struct {
// A filter that returns only endpoint configurations with a creation time greater
// than or equal to the specified time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only endpoint configurations created before the specified
// time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// The maximum number of training jobs to return in the response.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListEndpoints.go b/service/sagemaker/api_op_ListEndpoints.go
index 77c146793f7..7e29bff0564 100644
--- a/service/sagemaker/api_op_ListEndpoints.go
+++ b/service/sagemaker/api_op_ListEndpoints.go
@@ -16,19 +16,19 @@ type ListEndpointsInput struct {
// A filter that returns only endpoints with a creation time greater than or
// equal to the specified time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only endpoints that were created before the specified
// time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// A filter that returns only endpoints that were modified after the specified
// timestamp.
- LastModifiedTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only endpoints that were modified before the specified
// timestamp.
- LastModifiedTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeBefore *time.Time `type:"timestamp"`
// The maximum number of endpoints to return in the response.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListHyperParameterTuningJobs.go b/service/sagemaker/api_op_ListHyperParameterTuningJobs.go
index 1b5a104ee51..18d78c29175 100644
--- a/service/sagemaker/api_op_ListHyperParameterTuningJobs.go
+++ b/service/sagemaker/api_op_ListHyperParameterTuningJobs.go
@@ -16,19 +16,19 @@ type ListHyperParameterTuningJobsInput struct {
// A filter that returns only tuning jobs that were created after the specified
// time.
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only tuning jobs that were created before the specified
// time.
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// A filter that returns only tuning jobs that were modified after the specified
// time.
- LastModifiedTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only tuning jobs that were modified before the specified
// time.
- LastModifiedTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeBefore *time.Time `type:"timestamp"`
// The maximum number of tuning jobs to return. The default value is 10.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListLabelingJobs.go b/service/sagemaker/api_op_ListLabelingJobs.go
index e14ab408ef2..0c04d787744 100644
--- a/service/sagemaker/api_op_ListLabelingJobs.go
+++ b/service/sagemaker/api_op_ListLabelingJobs.go
@@ -16,19 +16,19 @@ type ListLabelingJobsInput struct {
// A filter that returns only labeling jobs created after the specified time
// (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only labeling jobs created before the specified time
// (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// A filter that returns only labeling jobs modified after the specified time
// (timestamp).
- LastModifiedTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only labeling jobs modified before the specified time
// (timestamp).
- LastModifiedTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeBefore *time.Time `type:"timestamp"`
// The maximum number of labeling jobs to return in each page of the response.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListLabelingJobsForWorkteam.go b/service/sagemaker/api_op_ListLabelingJobsForWorkteam.go
index e0304da0d92..382d5a546ee 100644
--- a/service/sagemaker/api_op_ListLabelingJobsForWorkteam.go
+++ b/service/sagemaker/api_op_ListLabelingJobsForWorkteam.go
@@ -16,11 +16,11 @@ type ListLabelingJobsForWorkteamInput struct {
// A filter that returns only labeling jobs created after the specified time
// (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only labeling jobs created before the specified time
// (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// A filter the limits jobs to only the ones whose job reference code contains
// the specified string.
diff --git a/service/sagemaker/api_op_ListModelPackages.go b/service/sagemaker/api_op_ListModelPackages.go
index 950d540c90d..53ea02e46a7 100644
--- a/service/sagemaker/api_op_ListModelPackages.go
+++ b/service/sagemaker/api_op_ListModelPackages.go
@@ -16,11 +16,11 @@ type ListModelPackagesInput struct {
// A filter that returns only model packages created after the specified time
// (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only model packages created before the specified time
// (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// The maximum number of model packages to return in the response.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListModels.go b/service/sagemaker/api_op_ListModels.go
index ad7aaf20954..c3b61828fa8 100644
--- a/service/sagemaker/api_op_ListModels.go
+++ b/service/sagemaker/api_op_ListModels.go
@@ -16,10 +16,10 @@ type ListModelsInput struct {
// A filter that returns only models with a creation time greater than or equal
// to the specified time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only models created before the specified time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// The maximum number of models to return in the response.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListNotebookInstanceLifecycleConfigs.go b/service/sagemaker/api_op_ListNotebookInstanceLifecycleConfigs.go
index beea321e0f7..63dbfbe138a 100644
--- a/service/sagemaker/api_op_ListNotebookInstanceLifecycleConfigs.go
+++ b/service/sagemaker/api_op_ListNotebookInstanceLifecycleConfigs.go
@@ -16,19 +16,19 @@ type ListNotebookInstanceLifecycleConfigsInput struct {
// A filter that returns only lifecycle configurations that were created after
// the specified time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only lifecycle configurations that were created before
// the specified time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// A filter that returns only lifecycle configurations that were modified after
// the specified time (timestamp).
- LastModifiedTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only lifecycle configurations that were modified before
// the specified time (timestamp).
- LastModifiedTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeBefore *time.Time `type:"timestamp"`
// The maximum number of lifecycle configurations to return in the response.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListNotebookInstances.go b/service/sagemaker/api_op_ListNotebookInstances.go
index 24b302a5c7c..ab0a6785f33 100644
--- a/service/sagemaker/api_op_ListNotebookInstances.go
+++ b/service/sagemaker/api_op_ListNotebookInstances.go
@@ -20,11 +20,11 @@ type ListNotebookInstancesInput struct {
// A filter that returns only notebook instances that were created after the
// specified time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only notebook instances that were created before the
// specified time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// A string in the name or URL of a Git repository associated with this notebook
// instance. This filter returns only notebook instances associated with a git
@@ -33,11 +33,11 @@ type ListNotebookInstancesInput struct {
// A filter that returns only notebook instances that were modified after the
// specified time (timestamp).
- LastModifiedTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only notebook instances that were modified before the
// specified time (timestamp).
- LastModifiedTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeBefore *time.Time `type:"timestamp"`
// The maximum number of notebook instances to return.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListTrainingJobs.go b/service/sagemaker/api_op_ListTrainingJobs.go
index 9d46d684dca..82805b0a215 100644
--- a/service/sagemaker/api_op_ListTrainingJobs.go
+++ b/service/sagemaker/api_op_ListTrainingJobs.go
@@ -16,19 +16,19 @@ type ListTrainingJobsInput struct {
// A filter that returns only training jobs created after the specified time
// (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only training jobs created before the specified time
// (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// A filter that returns only training jobs modified after the specified time
// (timestamp).
- LastModifiedTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only training jobs modified before the specified time
// (timestamp).
- LastModifiedTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeBefore *time.Time `type:"timestamp"`
// The maximum number of training jobs to return in the response.
MaxResults *int64 `min:"1" type:"integer"`
diff --git a/service/sagemaker/api_op_ListTransformJobs.go b/service/sagemaker/api_op_ListTransformJobs.go
index 3cdad6f55fd..98f76dcdefe 100644
--- a/service/sagemaker/api_op_ListTransformJobs.go
+++ b/service/sagemaker/api_op_ListTransformJobs.go
@@ -15,16 +15,16 @@ type ListTransformJobsInput struct {
_ struct{} `type:"structure"`
// A filter that returns only transform jobs created after the specified time.
- CreationTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only transform jobs created before the specified time.
- CreationTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTimeBefore *time.Time `type:"timestamp"`
// A filter that returns only transform jobs modified after the specified time.
- LastModifiedTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeAfter *time.Time `type:"timestamp"`
// A filter that returns only transform jobs modified before the specified time.
- LastModifiedTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTimeBefore *time.Time `type:"timestamp"`
// The maximum number of transform jobs to return in the response. The default
// value is 10.
diff --git a/service/sagemaker/api_types.go b/service/sagemaker/api_types.go
index d2135ad463a..cab7dd9200d 100644
--- a/service/sagemaker/api_types.go
+++ b/service/sagemaker/api_types.go
@@ -162,7 +162,7 @@ type AlgorithmSummary struct {
// A timestamp that shows when the algorithm was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -614,7 +614,7 @@ type CodeRepositorySummary struct {
// The date and time that the Git repository was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// Configuration details for the Git repository, including the URL where it
// is located and the ARN of the AWS Secrets Manager secret that contains the
@@ -624,7 +624,7 @@ type CodeRepositorySummary struct {
// The date and time that the Git repository was last modified.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -698,7 +698,7 @@ type CompilationJobSummary struct {
_ struct{} `type:"structure"`
// The time when the model compilation job completed.
- CompilationEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompilationEndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the model compilation job.
//
@@ -716,7 +716,7 @@ type CompilationJobSummary struct {
CompilationJobStatus CompilationJobStatus `type:"string" required:"true" enum:"true"`
// The time when the model compilation job started.
- CompilationStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompilationStartTime *time.Time `type:"timestamp"`
// The type of device that the model will run on after compilation has completed.
//
@@ -726,10 +726,10 @@ type CompilationJobSummary struct {
// The time when the model compilation job was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The time when the model compilation job was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -972,7 +972,7 @@ type DeployedImage struct {
_ struct{} `type:"structure"`
// The date and time when the image path for the model resolved to the ResolvedImage
- ResolutionTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ResolutionTime *time.Time `type:"timestamp"`
// The specific digest path of the image hosted in this ProductionVariant.
ResolvedImage *string `type:"string"`
@@ -1033,7 +1033,7 @@ type EndpointConfigSummary struct {
// A timestamp that shows when the endpoint configuration was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the endpoint configuration.
//
@@ -1059,7 +1059,7 @@ type EndpointSummary struct {
// A timestamp that shows when the endpoint was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the endpoint.
//
@@ -1109,7 +1109,7 @@ type EndpointSummary struct {
// A timestamp that shows when the endpoint was last modified.
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -1851,7 +1851,7 @@ type HyperParameterTrainingJobSummary struct {
// The date and time that the training job was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The reason that the training job failed.
FailureReason *string `type:"string"`
@@ -1880,7 +1880,7 @@ type HyperParameterTrainingJobSummary struct {
// this time. For successful jobs and stopped jobs, this is the time after model
// artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker
// detects a job failure.
- TrainingEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingEndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the training job.
//
@@ -1898,7 +1898,7 @@ type HyperParameterTrainingJobSummary struct {
TrainingJobStatus TrainingJobStatus `type:"string" required:"true" enum:"true"`
// The date and time that the training job started.
- TrainingStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingStartTime *time.Time `type:"timestamp"`
// A list of the hyperparameters for which you specified ranges to search.
//
@@ -2048,10 +2048,10 @@ type HyperParameterTuningJobSummary struct {
// The date and time that the tuning job was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The date and time that the tuning job ended.
- HyperParameterTuningEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ HyperParameterTuningEndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the tuning job.
//
@@ -2069,7 +2069,7 @@ type HyperParameterTuningJobSummary struct {
HyperParameterTuningJobStatus HyperParameterTuningJobStatus `type:"string" required:"true" enum:"true"`
// The date and time that the tuning job was modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The ObjectiveStatusCounters object that specifies the numbers of training
// jobs, categorized by objective metric status, that this tuning job launched.
@@ -2625,7 +2625,7 @@ type LabelingJobForWorkteamSummary struct {
// The date and time that the labeling job was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// A unique identifier for a labeling job. You can use this to refer to a specific
// labeling job.
@@ -2837,7 +2837,7 @@ type LabelingJobSummary struct {
// The date and time that the job was created (timestamp).
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// If the LabelingJobStatus field is Failed, this field contains a description
// of the error.
@@ -2872,7 +2872,7 @@ type LabelingJobSummary struct {
// The date and time that the job was last modified (timestamp).
//
// LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ LastModifiedTime *time.Time `type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of a Lambda function. The function is run
// before each data object is sent to a worker.
@@ -2930,7 +2930,7 @@ type MetricData struct {
MetricName *string `min:"1" type:"string"`
// The date and time that the algorithm emitted the metric.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `type:"timestamp"`
// The value of the metric.
Value *float64 `type:"float"`
@@ -3112,7 +3112,7 @@ type ModelPackageSummary struct {
// A timestamp that shows when the model package was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the model package.
//
@@ -3252,7 +3252,7 @@ type ModelSummary struct {
// A timestamp that indicates when the model was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the model.
//
@@ -3346,10 +3346,10 @@ type NotebookInstanceLifecycleConfigSummary struct {
_ struct{} `type:"structure"`
// A timestamp that tells when the lifecycle configuration was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// A timestamp that tells when the lifecycle configuration was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the lifecycle configuration.
//
@@ -3425,7 +3425,7 @@ type NotebookInstanceSummary struct {
AdditionalCodeRepositories []string `type:"list"`
// A timestamp that shows when the notebook instance was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// The Git repository associated with the notebook instance as its default code
// repository. This can be either the name of a Git repository stored as a resource
@@ -3439,7 +3439,7 @@ type NotebookInstanceSummary struct {
InstanceType InstanceType `type:"string" enum:"true"`
// A timestamp that shows when the notebook instance was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the notebook instance.
//
@@ -4378,13 +4378,13 @@ type SecondaryStatusTransition struct {
// A timestamp that shows when the training job transitioned out of this secondary
// status state into another secondary status state or when the training job
// has ended.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// A timestamp that shows when the training job transitioned to the current
// secondary status state.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
// Contains a secondary status information from a training job.
//
@@ -4753,7 +4753,7 @@ type TrainingJob struct {
AlgorithmSpecification *AlgorithmSpecification `type:"structure"`
// A timestamp that indicates when the training job was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// To encrypt all communications between ML compute instances in distributed
// training, choose True. Encryption provides greater security for distributed
@@ -4784,7 +4784,7 @@ type TrainingJob struct {
LabelingJobArn *string `type:"string"`
// A timestamp that indicates when the status of the training job was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// Information about the Amazon S3 location that is configured for storing model
// artifacts.
@@ -4870,7 +4870,7 @@ type TrainingJob struct {
// this time. For successful jobs and stopped jobs, this is the time after model
// artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker
// detects a job failure.
- TrainingEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingEndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the training job.
TrainingJobArn *string `type:"string"`
@@ -4902,7 +4902,7 @@ type TrainingJob struct {
// The start time in CloudWatch Logs might be later than this time. The difference
// is due to the time it takes to download the training data and to the size
// of the training container.
- TrainingStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingStartTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the associated hyperparameter tuning job
// if the training job was launched by a hyperparameter tuning job.
@@ -5065,15 +5065,15 @@ type TrainingJobSummary struct {
// A timestamp that shows when the training job was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// Timestamp when the training job was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// A timestamp that shows when the training job ended. This field is set only
// if the training job has one of the terminal statuses (Completed, Failed,
// or Stopped).
- TrainingEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TrainingEndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the training job.
//
@@ -5400,19 +5400,19 @@ type TransformJobSummary struct {
// A timestamp that shows when the transform Job was created.
//
// CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationTime *time.Time `type:"timestamp" required:"true"`
// If the transform job failed, the reason it failed.
FailureReason *string `type:"string"`
// Indicates when the transform job was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// Indicates when the transform job ends on compute instances. For successful
// jobs and stopped jobs, this is the exact time recorded after the results
// are uploaded. For failed jobs, this is when Amazon SageMaker detected that
// the job failed.
- TransformEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TransformEndTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the transform job.
//
@@ -5773,7 +5773,7 @@ type Workteam struct {
_ struct{} `type:"structure"`
// The date and time that the work team was created (timestamp).
- CreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateDate *time.Time `type:"timestamp"`
// A description of the work team.
//
@@ -5781,7 +5781,7 @@ type Workteam struct {
Description *string `min:"1" type:"string" required:"true"`
// The date and time that the work team was last updated (timestamp).
- LastUpdatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedDate *time.Time `type:"timestamp"`
// The Amazon Cognito user groups that make up the work team.
//
diff --git a/service/secretsmanager/api_op_DeleteSecret.go b/service/secretsmanager/api_op_DeleteSecret.go
index a08001b595b..4fe0234f48a 100644
--- a/service/secretsmanager/api_op_DeleteSecret.go
+++ b/service/secretsmanager/api_op_DeleteSecret.go
@@ -88,7 +88,7 @@ type DeleteSecretOutput struct {
// The date and time after which this secret can be deleted by Secrets Manager
// and can no longer be restored. This value is the date and time of the delete
// request plus the number of days specified in RecoveryWindowInDays.
- DeletionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeletionDate *time.Time `type:"timestamp"`
// The friendly name of the secret that is now scheduled for deletion.
Name *string `min:"1" type:"string"`
diff --git a/service/secretsmanager/api_op_DescribeSecret.go b/service/secretsmanager/api_op_DescribeSecret.go
index 4c551264367..2557d1d489d 100644
--- a/service/secretsmanager/api_op_DescribeSecret.go
+++ b/service/secretsmanager/api_op_DescribeSecret.go
@@ -70,7 +70,7 @@ type DescribeSecretOutput struct {
// If a secret is scheduled for deletion, then its details, including the encrypted
// secret information, is not accessible. To cancel a scheduled deletion and
// restore access, use RestoreSecret.
- DeletedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeletedDate *time.Time `type:"timestamp"`
// The user-provided description of the secret.
Description *string `type:"string"`
@@ -84,14 +84,14 @@ type DescribeSecretOutput struct {
// The last date that this secret was accessed. This value is truncated to midnight
// of the date and therefore shows only the date, not the time.
- LastAccessedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAccessedDate *time.Time `type:"timestamp"`
// The last date and time that this secret was modified in any way.
- LastChangedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastChangedDate *time.Time `type:"timestamp"`
// The most recent date and time that the Secrets Manager rotation process was
// successfully completed. This value is null if the secret has never rotated.
- LastRotatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastRotatedDate *time.Time `type:"timestamp"`
// The user-provided friendly name of the secret.
Name *string `min:"1" type:"string"`
diff --git a/service/secretsmanager/api_op_GetSecretValue.go b/service/secretsmanager/api_op_GetSecretValue.go
index f27cc1ca891..ac5dfbfaa29 100644
--- a/service/secretsmanager/api_op_GetSecretValue.go
+++ b/service/secretsmanager/api_op_GetSecretValue.go
@@ -89,7 +89,7 @@ type GetSecretValueOutput struct {
ARN *string `min:"20" type:"string"`
// The date and time that this version of the secret was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// The friendly name of the secret.
Name *string `min:"1" type:"string"`
diff --git a/service/secretsmanager/api_types.go b/service/secretsmanager/api_types.go
index 96a06d39503..166f241905f 100644
--- a/service/secretsmanager/api_types.go
+++ b/service/secretsmanager/api_types.go
@@ -65,7 +65,7 @@ type SecretListEntry struct {
// secrets. The secret can be recovered until the number of days in the recovery
// window has passed, as specified in the RecoveryWindowInDays parameter of
// the DeleteSecret operation.
- DeletedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeletedDate *time.Time `type:"timestamp"`
// The user-provided description of the secret.
Description *string `type:"string"`
@@ -79,13 +79,13 @@ type SecretListEntry struct {
// The last date that this secret was accessed. This value is truncated to midnight
// of the date and therefore shows only the date, not the time.
- LastAccessedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAccessedDate *time.Time `type:"timestamp"`
// The last date and time that this secret was modified in any way.
- LastChangedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastChangedDate *time.Time `type:"timestamp"`
// The last date and time that the rotation process for this secret was invoked.
- LastRotatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastRotatedDate *time.Time `type:"timestamp"`
// The friendly name of the secret. You can use forward slashes in the name
// to represent a path hierarchy. For example, /prod/databases/dbserver1 could
@@ -128,11 +128,11 @@ type SecretVersionsListEntry struct {
_ struct{} `type:"structure"`
// The date and time this version of the secret was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// The date that this version of the secret was last accessed. Note that the
// resolution of this field is at the date level and does not include the time.
- LastAccessedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAccessedDate *time.Time `type:"timestamp"`
// The unique version identifier of this version of the secret.
VersionId *string `min:"32" type:"string"`
diff --git a/service/securityhub/api_op_AcceptInvitation.go b/service/securityhub/api_op_AcceptInvitation.go
index ba17a0180ef..b565ca4727f 100644
--- a/service/securityhub/api_op_AcceptInvitation.go
+++ b/service/securityhub/api_op_AcceptInvitation.go
@@ -30,7 +30,7 @@ func (s AcceptInvitationInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AcceptInvitationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InvitationId != nil {
v := *s.InvitationId
diff --git a/service/securityhub/api_op_BatchDisableStandards.go b/service/securityhub/api_op_BatchDisableStandards.go
index 2d36dbdb2c5..3043593f9c2 100644
--- a/service/securityhub/api_op_BatchDisableStandards.go
+++ b/service/securityhub/api_op_BatchDisableStandards.go
@@ -44,7 +44,7 @@ func (s *BatchDisableStandardsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchDisableStandardsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.StandardsSubscriptionArns != nil {
v := s.StandardsSubscriptionArns
diff --git a/service/securityhub/api_op_BatchEnableStandards.go b/service/securityhub/api_op_BatchEnableStandards.go
index beefe591c20..9f40bae1a16 100644
--- a/service/securityhub/api_op_BatchEnableStandards.go
+++ b/service/securityhub/api_op_BatchEnableStandards.go
@@ -56,7 +56,7 @@ func (s *BatchEnableStandardsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchEnableStandardsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.StandardsSubscriptionRequests != nil {
v := s.StandardsSubscriptionRequests
diff --git a/service/securityhub/api_op_BatchImportFindings.go b/service/securityhub/api_op_BatchImportFindings.go
index 390fa09962d..2ade82d948e 100644
--- a/service/securityhub/api_op_BatchImportFindings.go
+++ b/service/securityhub/api_op_BatchImportFindings.go
@@ -50,7 +50,7 @@ func (s *BatchImportFindingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchImportFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Findings != nil {
v := s.Findings
diff --git a/service/securityhub/api_op_CreateInsight.go b/service/securityhub/api_op_CreateInsight.go
index 385119ede84..9b58986e915 100644
--- a/service/securityhub/api_op_CreateInsight.go
+++ b/service/securityhub/api_op_CreateInsight.go
@@ -63,7 +63,7 @@ func (s *CreateInsightInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateInsightInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/securityhub/api_op_CreateMembers.go b/service/securityhub/api_op_CreateMembers.go
index a825d9deb1c..1db6c85a81e 100644
--- a/service/securityhub/api_op_CreateMembers.go
+++ b/service/securityhub/api_op_CreateMembers.go
@@ -26,7 +26,7 @@ func (s CreateMembersInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountDetails != nil {
v := s.AccountDetails
diff --git a/service/securityhub/api_op_DeclineInvitations.go b/service/securityhub/api_op_DeclineInvitations.go
index d59f8e8f58a..f9d43bde311 100644
--- a/service/securityhub/api_op_DeclineInvitations.go
+++ b/service/securityhub/api_op_DeclineInvitations.go
@@ -26,7 +26,7 @@ func (s DeclineInvitationsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeclineInvitationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/securityhub/api_op_DeleteInsight.go b/service/securityhub/api_op_DeleteInsight.go
index b357e3b4eaa..6b09b65c8b5 100644
--- a/service/securityhub/api_op_DeleteInsight.go
+++ b/service/securityhub/api_op_DeleteInsight.go
@@ -41,7 +41,7 @@ func (s *DeleteInsightInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteInsightInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InsightArn != nil {
v := *s.InsightArn
diff --git a/service/securityhub/api_op_DeleteInvitations.go b/service/securityhub/api_op_DeleteInvitations.go
index 07077b8468c..f9247486f08 100644
--- a/service/securityhub/api_op_DeleteInvitations.go
+++ b/service/securityhub/api_op_DeleteInvitations.go
@@ -26,7 +26,7 @@ func (s DeleteInvitationsInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteInvitationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/securityhub/api_op_DeleteMembers.go b/service/securityhub/api_op_DeleteMembers.go
index 3f3d2709c0f..692248f8fb2 100644
--- a/service/securityhub/api_op_DeleteMembers.go
+++ b/service/securityhub/api_op_DeleteMembers.go
@@ -26,7 +26,7 @@ func (s DeleteMembersInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/securityhub/api_op_DisableImportFindingsForProduct.go b/service/securityhub/api_op_DisableImportFindingsForProduct.go
index eddda2b439a..5f27d302ee4 100644
--- a/service/securityhub/api_op_DisableImportFindingsForProduct.go
+++ b/service/securityhub/api_op_DisableImportFindingsForProduct.go
@@ -41,7 +41,7 @@ func (s *DisableImportFindingsForProductInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisableImportFindingsForProductInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProductSubscriptionArn != nil {
v := *s.ProductSubscriptionArn
diff --git a/service/securityhub/api_op_DisableSecurityHub.go b/service/securityhub/api_op_DisableSecurityHub.go
index ca7730fea01..4c9dfad3e2f 100644
--- a/service/securityhub/api_op_DisableSecurityHub.go
+++ b/service/securityhub/api_op_DisableSecurityHub.go
@@ -22,7 +22,7 @@ func (s DisableSecurityHubInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisableSecurityHubInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/securityhub/api_op_DisassociateFromMasterAccount.go b/service/securityhub/api_op_DisassociateFromMasterAccount.go
index 68150b731a6..166bf104a86 100644
--- a/service/securityhub/api_op_DisassociateFromMasterAccount.go
+++ b/service/securityhub/api_op_DisassociateFromMasterAccount.go
@@ -22,7 +22,7 @@ func (s DisassociateFromMasterAccountInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateFromMasterAccountInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/securityhub/api_op_DisassociateMembers.go b/service/securityhub/api_op_DisassociateMembers.go
index c53563e6b71..40e43d69de7 100644
--- a/service/securityhub/api_op_DisassociateMembers.go
+++ b/service/securityhub/api_op_DisassociateMembers.go
@@ -26,7 +26,7 @@ func (s DisassociateMembersInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/securityhub/api_op_EnableImportFindingsForProduct.go b/service/securityhub/api_op_EnableImportFindingsForProduct.go
index f0086cc9a85..458df52af03 100644
--- a/service/securityhub/api_op_EnableImportFindingsForProduct.go
+++ b/service/securityhub/api_op_EnableImportFindingsForProduct.go
@@ -42,7 +42,7 @@ func (s *EnableImportFindingsForProductInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s EnableImportFindingsForProductInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProductArn != nil {
v := *s.ProductArn
diff --git a/service/securityhub/api_op_EnableSecurityHub.go b/service/securityhub/api_op_EnableSecurityHub.go
index fa8dc346ce4..c16de7287f2 100644
--- a/service/securityhub/api_op_EnableSecurityHub.go
+++ b/service/securityhub/api_op_EnableSecurityHub.go
@@ -22,7 +22,7 @@ func (s EnableSecurityHubInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s EnableSecurityHubInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/securityhub/api_op_GetEnabledStandards.go b/service/securityhub/api_op_GetEnabledStandards.go
index e43bee1bdb2..e3c00e37e1b 100644
--- a/service/securityhub/api_op_GetEnabledStandards.go
+++ b/service/securityhub/api_op_GetEnabledStandards.go
@@ -50,7 +50,7 @@ func (s *GetEnabledStandardsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetEnabledStandardsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/securityhub/api_op_GetFindings.go b/service/securityhub/api_op_GetFindings.go
index b26cc28f57a..7a68702bb17 100644
--- a/service/securityhub/api_op_GetFindings.go
+++ b/service/securityhub/api_op_GetFindings.go
@@ -50,7 +50,7 @@ func (s *GetFindingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/securityhub/api_op_GetInsightResults.go b/service/securityhub/api_op_GetInsightResults.go
index 33633b5273b..f00e479909c 100644
--- a/service/securityhub/api_op_GetInsightResults.go
+++ b/service/securityhub/api_op_GetInsightResults.go
@@ -41,7 +41,7 @@ func (s *GetInsightResultsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetInsightResultsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InsightArn != nil {
v := *s.InsightArn
diff --git a/service/securityhub/api_op_GetInsights.go b/service/securityhub/api_op_GetInsights.go
index 1fb8ff62b14..1df64caf104 100644
--- a/service/securityhub/api_op_GetInsights.go
+++ b/service/securityhub/api_op_GetInsights.go
@@ -47,7 +47,7 @@ func (s *GetInsightsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetInsightsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.InsightArns != nil {
v := s.InsightArns
diff --git a/service/securityhub/api_op_GetInvitationsCount.go b/service/securityhub/api_op_GetInvitationsCount.go
index d25c631165b..3852d4bedae 100644
--- a/service/securityhub/api_op_GetInvitationsCount.go
+++ b/service/securityhub/api_op_GetInvitationsCount.go
@@ -22,7 +22,7 @@ func (s GetInvitationsCountInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetInvitationsCountInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/securityhub/api_op_GetMasterAccount.go b/service/securityhub/api_op_GetMasterAccount.go
index 888a68601d2..2db314d1d09 100644
--- a/service/securityhub/api_op_GetMasterAccount.go
+++ b/service/securityhub/api_op_GetMasterAccount.go
@@ -22,7 +22,7 @@ func (s GetMasterAccountInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMasterAccountInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/securityhub/api_op_GetMembers.go b/service/securityhub/api_op_GetMembers.go
index b8287f3d7ba..bbc115934a7 100644
--- a/service/securityhub/api_op_GetMembers.go
+++ b/service/securityhub/api_op_GetMembers.go
@@ -42,7 +42,7 @@ func (s *GetMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/securityhub/api_op_InviteMembers.go b/service/securityhub/api_op_InviteMembers.go
index 17bc117a47b..90f4d11d688 100644
--- a/service/securityhub/api_op_InviteMembers.go
+++ b/service/securityhub/api_op_InviteMembers.go
@@ -26,7 +26,7 @@ func (s InviteMembersInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InviteMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AccountIds != nil {
v := s.AccountIds
diff --git a/service/securityhub/api_op_ListEnabledProductsForImport.go b/service/securityhub/api_op_ListEnabledProductsForImport.go
index bdb910c22d8..f7bbe48b953 100644
--- a/service/securityhub/api_op_ListEnabledProductsForImport.go
+++ b/service/securityhub/api_op_ListEnabledProductsForImport.go
@@ -44,7 +44,7 @@ func (s *ListEnabledProductsForImportInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListEnabledProductsForImportInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/securityhub/api_op_ListInvitations.go b/service/securityhub/api_op_ListInvitations.go
index c560e3dd6e0..9adfb5f8bee 100644
--- a/service/securityhub/api_op_ListInvitations.go
+++ b/service/securityhub/api_op_ListInvitations.go
@@ -44,7 +44,7 @@ func (s *ListInvitationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListInvitationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/securityhub/api_op_ListMembers.go b/service/securityhub/api_op_ListMembers.go
index 1932dee2000..114290b4c5b 100644
--- a/service/securityhub/api_op_ListMembers.go
+++ b/service/securityhub/api_op_ListMembers.go
@@ -51,7 +51,7 @@ func (s *ListMembersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListMembersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/securityhub/api_op_UpdateFindings.go b/service/securityhub/api_op_UpdateFindings.go
index ae00aa8d483..3d8b8923ec1 100644
--- a/service/securityhub/api_op_UpdateFindings.go
+++ b/service/securityhub/api_op_UpdateFindings.go
@@ -52,7 +52,7 @@ func (s *UpdateFindingsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFindingsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/securityhub/api_op_UpdateInsight.go b/service/securityhub/api_op_UpdateInsight.go
index eab91b49a6d..27809409840 100644
--- a/service/securityhub/api_op_UpdateInsight.go
+++ b/service/securityhub/api_op_UpdateInsight.go
@@ -50,7 +50,7 @@ func (s *UpdateInsightInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateInsightInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Filters != nil {
v := s.Filters
diff --git a/service/securityhub/api_types.go b/service/securityhub/api_types.go
index 6fa27186eb8..e63abbd6bb7 100644
--- a/service/securityhub/api_types.go
+++ b/service/securityhub/api_types.go
@@ -2365,7 +2365,7 @@ type Invitation struct {
InvitationId *string `type:"string"`
// The timestamp of when the invitation was sent.
- InvitedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ InvitedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The current relationship status between the inviter and invitee accounts.
MemberStatus *string `type:"string"`
@@ -2394,7 +2394,8 @@ func (s Invitation) MarshalFields(e protocol.FieldEncoder) error {
v := *s.InvitedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "InvitedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "InvitedAt",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.MemberStatus != nil {
v := *s.MemberStatus
@@ -2579,7 +2580,7 @@ type Member struct {
Email *string `type:"string"`
// Time stamp at which the member account was invited to Security Hub.
- InvitedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ InvitedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The AWS account ID of the master Security Hub account to this member account.
MasterId *string `type:"string"`
@@ -2589,7 +2590,7 @@ type Member struct {
MemberStatus *string `type:"string"`
// Time stamp at which this member account was updated.
- UpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdatedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}
// String returns the string representation
@@ -2615,7 +2616,8 @@ func (s Member) MarshalFields(e protocol.FieldEncoder) error {
v := *s.InvitedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "InvitedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "InvitedAt",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
if s.MasterId != nil {
v := *s.MasterId
@@ -2633,7 +2635,8 @@ func (s Member) MarshalFields(e protocol.FieldEncoder) error {
v := *s.UpdatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "UpdatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "UpdatedAt",
+ protocol.TimeValue{V: v, Format: "iso8601", QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/serverlessapplicationrepository/api_op_CreateApplication.go b/service/serverlessapplicationrepository/api_op_CreateApplication.go
index 91ff793e17a..d19706791c3 100644
--- a/service/serverlessapplicationrepository/api_op_CreateApplication.go
+++ b/service/serverlessapplicationrepository/api_op_CreateApplication.go
@@ -77,7 +77,7 @@ func (s *CreateApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Author != nil {
v := *s.Author
diff --git a/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go b/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go
index ee514df6535..db89b5e457f 100644
--- a/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go
+++ b/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go
@@ -54,7 +54,7 @@ func (s *CreateApplicationVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateApplicationVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SourceCodeArchiveUrl != nil {
v := *s.SourceCodeArchiveUrl
diff --git a/service/serverlessapplicationrepository/api_op_CreateCloudFormationChangeSet.go b/service/serverlessapplicationrepository/api_op_CreateCloudFormationChangeSet.go
index 275ee822d23..13daa13a866 100644
--- a/service/serverlessapplicationrepository/api_op_CreateCloudFormationChangeSet.go
+++ b/service/serverlessapplicationrepository/api_op_CreateCloudFormationChangeSet.go
@@ -91,7 +91,7 @@ func (s *CreateCloudFormationChangeSetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateCloudFormationChangeSetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Capabilities != nil {
v := s.Capabilities
diff --git a/service/serverlessapplicationrepository/api_op_CreateCloudFormationTemplate.go b/service/serverlessapplicationrepository/api_op_CreateCloudFormationTemplate.go
index b4162138aac..42f999a8c5e 100644
--- a/service/serverlessapplicationrepository/api_op_CreateCloudFormationTemplate.go
+++ b/service/serverlessapplicationrepository/api_op_CreateCloudFormationTemplate.go
@@ -41,7 +41,7 @@ func (s *CreateCloudFormationTemplateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateCloudFormationTemplateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SemanticVersion != nil {
v := *s.SemanticVersion
diff --git a/service/serverlessapplicationrepository/api_op_DeleteApplication.go b/service/serverlessapplicationrepository/api_op_DeleteApplication.go
index eb54eb674eb..fd2ef0270ef 100644
--- a/service/serverlessapplicationrepository/api_op_DeleteApplication.go
+++ b/service/serverlessapplicationrepository/api_op_DeleteApplication.go
@@ -40,7 +40,7 @@ func (s *DeleteApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/serverlessapplicationrepository/api_op_GetApplication.go b/service/serverlessapplicationrepository/api_op_GetApplication.go
index 02e3d294f04..859b443eeff 100644
--- a/service/serverlessapplicationrepository/api_op_GetApplication.go
+++ b/service/serverlessapplicationrepository/api_op_GetApplication.go
@@ -41,7 +41,7 @@ func (s *GetApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/serverlessapplicationrepository/api_op_GetApplicationPolicy.go b/service/serverlessapplicationrepository/api_op_GetApplicationPolicy.go
index f68bcdad26c..16931a396c4 100644
--- a/service/serverlessapplicationrepository/api_op_GetApplicationPolicy.go
+++ b/service/serverlessapplicationrepository/api_op_GetApplicationPolicy.go
@@ -39,7 +39,7 @@ func (s *GetApplicationPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetApplicationPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/serverlessapplicationrepository/api_op_GetCloudFormationTemplate.go b/service/serverlessapplicationrepository/api_op_GetCloudFormationTemplate.go
index 4192e3d0d01..227dcab26e2 100644
--- a/service/serverlessapplicationrepository/api_op_GetCloudFormationTemplate.go
+++ b/service/serverlessapplicationrepository/api_op_GetCloudFormationTemplate.go
@@ -46,7 +46,7 @@ func (s *GetCloudFormationTemplateInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCloudFormationTemplateInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go b/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go
index 713a52acafd..fc7d136a3ed 100644
--- a/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go
+++ b/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go
@@ -48,7 +48,7 @@ func (s *ListApplicationDependenciesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListApplicationDependenciesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go b/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go
index d5feda026a8..5814384ac2e 100644
--- a/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go
+++ b/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go
@@ -46,7 +46,7 @@ func (s *ListApplicationVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListApplicationVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApplicationId != nil {
v := *s.ApplicationId
diff --git a/service/serverlessapplicationrepository/api_op_ListApplications.go b/service/serverlessapplicationrepository/api_op_ListApplications.go
index 12b9d70d25f..483af54602e 100644
--- a/service/serverlessapplicationrepository/api_op_ListApplications.go
+++ b/service/serverlessapplicationrepository/api_op_ListApplications.go
@@ -39,7 +39,7 @@ func (s *ListApplicationsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListApplicationsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxItems != nil {
v := *s.MaxItems
diff --git a/service/serverlessapplicationrepository/api_op_PutApplicationPolicy.go b/service/serverlessapplicationrepository/api_op_PutApplicationPolicy.go
index 8896c72127f..ac39864268c 100644
--- a/service/serverlessapplicationrepository/api_op_PutApplicationPolicy.go
+++ b/service/serverlessapplicationrepository/api_op_PutApplicationPolicy.go
@@ -54,7 +54,7 @@ func (s *PutApplicationPolicyInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutApplicationPolicyInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Statements != nil {
v := s.Statements
diff --git a/service/serverlessapplicationrepository/api_op_UpdateApplication.go b/service/serverlessapplicationrepository/api_op_UpdateApplication.go
index 0366a3206b9..1f41f44ad45 100644
--- a/service/serverlessapplicationrepository/api_op_UpdateApplication.go
+++ b/service/serverlessapplicationrepository/api_op_UpdateApplication.go
@@ -51,7 +51,7 @@ func (s *UpdateApplicationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateApplicationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Author != nil {
v := *s.Author
diff --git a/service/servicecatalog/api_types.go b/service/servicecatalog/api_types.go
index 42b7babf213..c174dd0fbc9 100644
--- a/service/servicecatalog/api_types.go
+++ b/service/servicecatalog/api_types.go
@@ -267,7 +267,7 @@ type PortfolioDetail struct {
ARN *string `min:"1" type:"string"`
// The UTC time stamp of the creation time.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The description of the portfolio.
Description *string `type:"string"`
@@ -328,7 +328,7 @@ type ProductViewDetail struct {
_ struct{} `type:"structure"`
// The UTC time stamp of the creation time.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The ARN of the product.
ProductARN *string `min:"1" type:"string"`
@@ -412,7 +412,7 @@ type ProvisionedProductAttribute struct {
Arn *string `min:"1" type:"string"`
// The UTC time stamp of the creation time.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The identifier of the provisioned product.
Id *string `min:"1" type:"string"`
@@ -492,7 +492,7 @@ type ProvisionedProductDetail struct {
Arn *string `min:"1" type:"string"`
// The UTC time stamp of the creation time.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The identifier of the provisioned product.
Id *string `type:"string"`
@@ -555,7 +555,7 @@ type ProvisionedProductPlanDetails struct {
_ struct{} `type:"structure"`
// The UTC time stamp of the creation time.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// Passed to CloudFormation. The SNS topic ARNs to which to publish stack-related
// events.
@@ -601,7 +601,7 @@ type ProvisionedProductPlanDetails struct {
Tags []Tag `type:"list"`
// The time when the plan was last updated.
- UpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdatedTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -645,7 +645,7 @@ type ProvisioningArtifact struct {
_ struct{} `type:"structure"`
// The UTC time stamp of the creation time.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The description of the provisioning artifact.
Description *string `type:"string"`
@@ -672,7 +672,7 @@ type ProvisioningArtifactDetail struct {
Active *bool `type:"boolean"`
// The UTC time stamp of the creation time.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The description of the provisioning artifact.
Description *string `type:"string"`
@@ -824,7 +824,7 @@ type ProvisioningArtifactSummary struct {
_ struct{} `type:"structure"`
// The UTC time stamp of the creation time.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The description of the provisioning artifact.
Description *string `type:"string"`
@@ -1011,7 +1011,7 @@ type RecordDetail struct {
_ struct{} `type:"structure"`
// The UTC time stamp of the creation time.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The path identifier.
PathId *string `min:"1" type:"string"`
@@ -1066,7 +1066,7 @@ type RecordDetail struct {
Status RecordStatus `type:"string" enum:"true"`
// The time when the record was last updated.
- UpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdatedTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1194,7 +1194,7 @@ type ResourceDetail struct {
ARN *string `type:"string"`
// The creation time of the resource.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The description of the resource.
Description *string `type:"string"`
diff --git a/service/servicediscovery/api_types.go b/service/servicediscovery/api_types.go
index 250024dfc57..46cecc8c17c 100644
--- a/service/servicediscovery/api_types.go
+++ b/service/servicediscovery/api_types.go
@@ -691,7 +691,7 @@ type Namespace struct {
// Universal Time (UTC). The value of CreateDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateDate *time.Time `type:"timestamp"`
// A unique string that identifies the request and that allows failed requests
// to be retried without the risk of executing an operation twice.
@@ -806,7 +806,7 @@ type NamespaceSummary struct {
Arn *string `type:"string"`
// The date and time that the namespace was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateDate *time.Time `type:"timestamp"`
// A description for the namespace.
Description *string `type:"string"`
@@ -843,7 +843,7 @@ type Operation struct {
// and Coordinated Universal Time (UTC). The value of CreateDate is accurate
// to milliseconds. For example, the value 1516925490.087 represents Friday,
// January 26, 2018 12:11:30.087 AM.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateDate *time.Time `type:"timestamp"`
// The code associated with ErrorMessage. Values for ErrorCode include the following:
//
@@ -896,7 +896,7 @@ type Operation struct {
// in Unix date/time format and Coordinated Universal Time (UTC). The value
// of UpdateDate is accurate to milliseconds. For example, the value 1516925490.087
// represents Friday, January 26, 2018 12:11:30.087 AM.
- UpdateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ UpdateDate *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1024,7 +1024,7 @@ type Service struct {
// Universal Time (UTC). The value of CreateDate is accurate to milliseconds.
// For example, the value 1516925490.087 represents Friday, January 26, 2018
// 12:11:30.087 AM.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateDate *time.Time `type:"timestamp"`
// A unique string that identifies the request and that allows failed requests
// to be retried without the risk of executing the operation twice. CreatorRequestId
@@ -1239,7 +1239,7 @@ type ServiceSummary struct {
Arn *string `type:"string"`
// The date and time that the service was created.
- CreateDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreateDate *time.Time `type:"timestamp"`
// The description that you specify when you create the service.
Description *string `type:"string"`
diff --git a/service/ses/api_types.go b/service/ses/api_types.go
index fe725e3c27a..22dc6538771 100644
--- a/service/ses/api_types.go
+++ b/service/ses/api_types.go
@@ -1036,7 +1036,7 @@ type MessageDsn struct {
// When the message was received by the reporting mail transfer agent (MTA),
// in RFC 822 (https://www.ietf.org/rfc/rfc0822.txt) date-time format.
- ArrivalDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ ArrivalDate *time.Time `type:"timestamp"`
// Additional X-headers to include in the DSN.
ExtensionFields []ExtensionField `type:"list"`
@@ -1454,7 +1454,7 @@ type ReceiptRuleSetMetadata struct {
_ struct{} `type:"structure"`
// The date and time the receipt rule set was created.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The name of the receipt rule set. The name must:
//
@@ -1508,7 +1508,7 @@ type RecipientDsnFields struct {
// The time the final delivery attempt was made, in RFC 822 (https://www.ietf.org/rfc/rfc0822.txt)
// date-time format.
- LastAttemptDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastAttemptDate *time.Time `type:"timestamp"`
// The MTA to which the remote MTA attempted to deliver the message, formatted
// as specified in RFC 3464 (https://tools.ietf.org/html/rfc3464) (mta-name-type;
@@ -1566,7 +1566,7 @@ type ReputationOptions struct {
//
// If email sending for the configuration set has never been disabled and later
// re-enabled, the value of this attribute is null.
- LastFreshStart *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ LastFreshStart *time.Time `type:"timestamp"`
// Describes whether or not Amazon SES publishes reputation metrics for the
// configuration set, such as bounce and complaint rates, to Amazon CloudWatch.
@@ -1786,7 +1786,7 @@ type SendDataPoint struct {
Rejects *int64 `type:"long"`
// Time of the data point.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ Timestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1882,7 +1882,7 @@ type TemplateMetadata struct {
_ struct{} `type:"structure"`
// The time and date the template was created.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The name of the template.
Name *string `type:"string"`
diff --git a/service/sfn/api_op_CreateActivity.go b/service/sfn/api_op_CreateActivity.go
index 709739c3fa8..72b23f2ade0 100644
--- a/service/sfn/api_op_CreateActivity.go
+++ b/service/sfn/api_op_CreateActivity.go
@@ -80,7 +80,7 @@ type CreateActivityOutput struct {
// The date the activity is created.
//
// CreationDate is a required field
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/sfn/api_op_CreateStateMachine.go b/service/sfn/api_op_CreateStateMachine.go
index 4152e4b5f71..ea14962ba65 100644
--- a/service/sfn/api_op_CreateStateMachine.go
+++ b/service/sfn/api_op_CreateStateMachine.go
@@ -97,7 +97,7 @@ type CreateStateMachineOutput struct {
// The date the state machine is created.
//
// CreationDate is a required field
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) that identifies the created state machine.
//
diff --git a/service/sfn/api_op_DescribeActivity.go b/service/sfn/api_op_DescribeActivity.go
index f2de5e58fda..d3e421fb6cd 100644
--- a/service/sfn/api_op_DescribeActivity.go
+++ b/service/sfn/api_op_DescribeActivity.go
@@ -54,7 +54,7 @@ type DescribeActivityOutput struct {
// The date the activity is created.
//
// CreationDate is a required field
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"`
// The name of the activity.
//
diff --git a/service/sfn/api_op_DescribeExecution.go b/service/sfn/api_op_DescribeExecution.go
index 0e95619294a..4000b1c2c5c 100644
--- a/service/sfn/api_op_DescribeExecution.go
+++ b/service/sfn/api_op_DescribeExecution.go
@@ -80,7 +80,7 @@ type DescribeExecutionOutput struct {
// The date the execution is started.
//
// StartDate is a required field
- StartDate *time.Time `locationName:"startDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the executed stated machine.
//
@@ -93,7 +93,7 @@ type DescribeExecutionOutput struct {
Status ExecutionStatus `locationName:"status" type:"string" required:"true" enum:"true"`
// If the execution has already ended, the date the execution stopped.
- StopDate *time.Time `locationName:"stopDate" type:"timestamp" timestampFormat:"unix"`
+ StopDate *time.Time `locationName:"stopDate" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/sfn/api_op_DescribeStateMachine.go b/service/sfn/api_op_DescribeStateMachine.go
index a61076f0821..aefd37f1ca9 100644
--- a/service/sfn/api_op_DescribeStateMachine.go
+++ b/service/sfn/api_op_DescribeStateMachine.go
@@ -49,7 +49,7 @@ type DescribeStateMachineOutput struct {
// The date the state machine is created.
//
// CreationDate is a required field
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"`
// The Amazon States Language definition of the state machine. See Amazon States
// Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html).
diff --git a/service/sfn/api_op_DescribeStateMachineForExecution.go b/service/sfn/api_op_DescribeStateMachineForExecution.go
index aebb0642167..20403b41c11 100644
--- a/service/sfn/api_op_DescribeStateMachineForExecution.go
+++ b/service/sfn/api_op_DescribeStateMachineForExecution.go
@@ -73,7 +73,7 @@ type DescribeStateMachineForExecutionOutput struct {
// For a newly created state machine, this is the creation date.
//
// UpdateDate is a required field
- UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/sfn/api_op_StartExecution.go b/service/sfn/api_op_StartExecution.go
index a7b102b015d..26681823be4 100644
--- a/service/sfn/api_op_StartExecution.go
+++ b/service/sfn/api_op_StartExecution.go
@@ -83,7 +83,7 @@ type StartExecutionOutput struct {
// The date the execution is started.
//
// StartDate is a required field
- StartDate *time.Time `locationName:"startDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/sfn/api_op_StopExecution.go b/service/sfn/api_op_StopExecution.go
index bddbcab5213..ad128ad95b8 100644
--- a/service/sfn/api_op_StopExecution.go
+++ b/service/sfn/api_op_StopExecution.go
@@ -55,7 +55,7 @@ type StopExecutionOutput struct {
// The date the execution is stopped.
//
// StopDate is a required field
- StopDate *time.Time `locationName:"stopDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StopDate *time.Time `locationName:"stopDate" type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/sfn/api_op_UpdateStateMachine.go b/service/sfn/api_op_UpdateStateMachine.go
index e89c9515686..e1dc3dcc62f 100644
--- a/service/sfn/api_op_UpdateStateMachine.go
+++ b/service/sfn/api_op_UpdateStateMachine.go
@@ -62,7 +62,7 @@ type UpdateStateMachineOutput struct {
// The date and time the state machine was updated.
//
// UpdateDate is a required field
- UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/sfn/api_types.go b/service/sfn/api_types.go
index fbce5ba198b..794cfa1c28c 100644
--- a/service/sfn/api_types.go
+++ b/service/sfn/api_types.go
@@ -42,7 +42,7 @@ type ActivityListItem struct {
// The date the activity is created.
//
// CreationDate is a required field
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"`
// The name of the activity.
//
@@ -221,7 +221,7 @@ type ExecutionListItem struct {
// The date the execution started.
//
// StartDate is a required field
- StartDate *time.Time `locationName:"startDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the executed state machine.
//
@@ -234,7 +234,7 @@ type ExecutionListItem struct {
Status ExecutionStatus `locationName:"status" type:"string" required:"true" enum:"true"`
// If the execution already ended, the date the execution stopped.
- StopDate *time.Time `locationName:"stopDate" type:"timestamp" timestampFormat:"unix"`
+ StopDate *time.Time `locationName:"stopDate" type:"timestamp"`
}
// String returns the string representation
@@ -392,7 +392,7 @@ type HistoryEvent struct {
// The date and time the event occurred.
//
// Timestamp is a required field
- Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"unix" required:"true"`
+ Timestamp *time.Time `locationName:"timestamp" type:"timestamp" required:"true"`
// The type of the event.
//
@@ -570,7 +570,7 @@ type StateMachineListItem struct {
// The date the state machine is created.
//
// CreationDate is a required field
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"`
// The name of the state machine.
//
diff --git a/service/shield/api_types.go b/service/shield/api_types.go
index 5e781530949..45186b40112 100644
--- a/service/shield/api_types.go
+++ b/service/shield/api_types.go
@@ -28,7 +28,7 @@ type AttackDetail struct {
// The time the attack ended, in Unix time in seconds. For more information
// see timestamp (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// List of mitigation actions taken for the attack.
Mitigations []Mitigation `type:"list"`
@@ -38,7 +38,7 @@ type AttackDetail struct {
// The time the attack started, in Unix time in seconds. For more information
// see timestamp (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// If applicable, additional detail about the resource being attacked, for example,
// IP address or URL.
@@ -92,14 +92,14 @@ type AttackSummary struct {
// The end time of the attack, in Unix time in seconds. For more information
// see timestamp (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The ARN (Amazon Resource Name) of the resource that was attacked.
ResourceArn *string `type:"string"`
// The start time of the attack, in Unix time in seconds. For more information
// see timestamp (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -296,14 +296,14 @@ type Subscription struct {
AutoRenew AutoRenew `type:"string" enum:"true"`
// The date and time your subscription will end.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// Specifies how many protections of a given type you can create.
Limits []Limit `type:"list"`
// The start time of the subscription, in Unix time in seconds. For more information
// see timestamp (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The length, in seconds, of the AWS Shield Advanced subscription for the account.
TimeCommitmentInSeconds *int64 `type:"long"`
@@ -369,11 +369,11 @@ type TimeRange struct {
// The start time, in Unix time in seconds. For more information see timestamp
// (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
- FromInclusive *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FromInclusive *time.Time `type:"timestamp"`
// The end time, in Unix time in seconds. For more information see timestamp
// (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
- ToExclusive *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ToExclusive *time.Time `type:"timestamp"`
}
// String returns the string representation
diff --git a/service/signer/api_op_CancelSigningProfile.go b/service/signer/api_op_CancelSigningProfile.go
index 5fdf771db77..e1d6a4e6fbc 100644
--- a/service/signer/api_op_CancelSigningProfile.go
+++ b/service/signer/api_op_CancelSigningProfile.go
@@ -45,7 +45,7 @@ func (s *CancelSigningProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CancelSigningProfileInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProfileName != nil {
v := *s.ProfileName
diff --git a/service/signer/api_op_DescribeSigningJob.go b/service/signer/api_op_DescribeSigningJob.go
index 4c3ac1796a2..fdbfba49049 100644
--- a/service/signer/api_op_DescribeSigningJob.go
+++ b/service/signer/api_op_DescribeSigningJob.go
@@ -42,7 +42,7 @@ func (s *DescribeSigningJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeSigningJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.JobId != nil {
v := *s.JobId
@@ -58,10 +58,10 @@ type DescribeSigningJobOutput struct {
_ struct{} `type:"structure"`
// Date and time that the signing job was completed.
- CompletedAt *time.Time `locationName:"completedAt" type:"timestamp" timestampFormat:"unix"`
+ CompletedAt *time.Time `locationName:"completedAt" type:"timestamp"`
// Date and time that the signing job was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The ID of the signing job on output.
JobId *string `locationName:"jobId" type:"string"`
@@ -109,13 +109,15 @@ func (s DescribeSigningJobOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CompletedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "completedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "completedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatedAt != nil {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.JobId != nil {
v := *s.JobId
diff --git a/service/signer/api_op_GetSigningPlatform.go b/service/signer/api_op_GetSigningPlatform.go
index ea4bb9bc5e5..3ffb49dce9f 100644
--- a/service/signer/api_op_GetSigningPlatform.go
+++ b/service/signer/api_op_GetSigningPlatform.go
@@ -41,7 +41,7 @@ func (s *GetSigningPlatformInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSigningPlatformInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PlatformId != nil {
v := *s.PlatformId
diff --git a/service/signer/api_op_GetSigningProfile.go b/service/signer/api_op_GetSigningProfile.go
index 31e0cb58794..bd77ccdbe15 100644
--- a/service/signer/api_op_GetSigningProfile.go
+++ b/service/signer/api_op_GetSigningProfile.go
@@ -44,7 +44,7 @@ func (s *GetSigningProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSigningProfileInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ProfileName != nil {
v := *s.ProfileName
diff --git a/service/signer/api_op_ListSigningJobs.go b/service/signer/api_op_ListSigningJobs.go
index 23411ce5303..355e9494b6f 100644
--- a/service/signer/api_op_ListSigningJobs.go
+++ b/service/signer/api_op_ListSigningJobs.go
@@ -57,7 +57,7 @@ func (s *ListSigningJobsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSigningJobsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/signer/api_op_ListSigningPlatforms.go b/service/signer/api_op_ListSigningPlatforms.go
index 22e3a14d5a7..95c6838a431 100644
--- a/service/signer/api_op_ListSigningPlatforms.go
+++ b/service/signer/api_op_ListSigningPlatforms.go
@@ -53,7 +53,7 @@ func (s *ListSigningPlatformsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSigningPlatformsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Category != nil {
v := *s.Category
diff --git a/service/signer/api_op_ListSigningProfiles.go b/service/signer/api_op_ListSigningProfiles.go
index 4a6e1da4dbc..d6432e5163a 100644
--- a/service/signer/api_op_ListSigningProfiles.go
+++ b/service/signer/api_op_ListSigningProfiles.go
@@ -47,7 +47,7 @@ func (s *ListSigningProfilesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListSigningProfilesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.IncludeCanceled != nil {
v := *s.IncludeCanceled
diff --git a/service/signer/api_op_PutSigningProfile.go b/service/signer/api_op_PutSigningProfile.go
index 553e2ee5caf..64a5d7661dd 100644
--- a/service/signer/api_op_PutSigningProfile.go
+++ b/service/signer/api_op_PutSigningProfile.go
@@ -77,7 +77,7 @@ func (s *PutSigningProfileInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutSigningProfileInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Overrides != nil {
v := s.Overrides
diff --git a/service/signer/api_op_StartSigningJob.go b/service/signer/api_op_StartSigningJob.go
index 4118b7eb435..8d3f86f1aa2 100644
--- a/service/signer/api_op_StartSigningJob.go
+++ b/service/signer/api_op_StartSigningJob.go
@@ -73,7 +73,7 @@ func (s *StartSigningJobInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s StartSigningJobInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
var ClientRequestToken string
if s.ClientRequestToken != nil {
diff --git a/service/signer/api_types.go b/service/signer/api_types.go
index ea78d481280..ac5cc06e6d6 100644
--- a/service/signer/api_types.go
+++ b/service/signer/api_types.go
@@ -419,7 +419,7 @@ type SigningJob struct {
_ struct{} `type:"structure"`
// The date and time that the signing job was created.
- CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The ID of the signing job.
JobId *string `locationName:"jobId" type:"string"`
@@ -450,7 +450,8 @@ func (s SigningJob) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "createdAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.JobId != nil {
v := *s.JobId
diff --git a/service/sms/api_op_CreateReplicationJob.go b/service/sms/api_op_CreateReplicationJob.go
index c8776d3e89e..45ccfed90f2 100644
--- a/service/sms/api_op_CreateReplicationJob.go
+++ b/service/sms/api_op_CreateReplicationJob.go
@@ -55,7 +55,7 @@ type CreateReplicationJobInput struct {
// The seed replication time.
//
// SeedReplicationTime is a required field
- SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" timestampFormat:"unix" required:"true"`
+ SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" required:"true"`
// The identifier of the server.
//
diff --git a/service/sms/api_op_GetServers.go b/service/sms/api_op_GetServers.go
index 9bcbb2efa30..c65399933a7 100644
--- a/service/sms/api_op_GetServers.go
+++ b/service/sms/api_op_GetServers.go
@@ -36,7 +36,7 @@ type GetServersOutput struct {
_ struct{} `type:"structure"`
// The time when the server was last modified.
- LastModifiedOn *time.Time `locationName:"lastModifiedOn" type:"timestamp" timestampFormat:"unix"`
+ LastModifiedOn *time.Time `locationName:"lastModifiedOn" type:"timestamp"`
// The token required to retrieve the next set of results. This value is null
// when there are no more results to return.
diff --git a/service/sms/api_op_UpdateReplicationJob.go b/service/sms/api_op_UpdateReplicationJob.go
index 16ed9b1315d..3822e7ca392 100644
--- a/service/sms/api_op_UpdateReplicationJob.go
+++ b/service/sms/api_op_UpdateReplicationJob.go
@@ -44,7 +44,7 @@ type UpdateReplicationJobInput struct {
LicenseType LicenseType `locationName:"licenseType" type:"string" enum:"true"`
// The start time of the next replication run.
- NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp" timestampFormat:"unix"`
+ NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp"`
// The maximum number of SMS-created AMIs to retain. The oldest will be deleted
// once the maximum number is reached and a new AMI is created.
diff --git a/service/sms/api_types.go b/service/sms/api_types.go
index f136bba7b60..89497b777b9 100644
--- a/service/sms/api_types.go
+++ b/service/sms/api_types.go
@@ -21,16 +21,16 @@ type AppSummary struct {
AppId *string `locationName:"appId" type:"string"`
// Time of creation of this application.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// Description of the application.
Description *string `locationName:"description" type:"string"`
// Timestamp of the application's creation.
- LastModified *time.Time `locationName:"lastModified" type:"timestamp" timestampFormat:"unix"`
+ LastModified *time.Time `locationName:"lastModified" type:"timestamp"`
// Timestamp of the application's most recent successful replication.
- LatestReplicationTime *time.Time `locationName:"latestReplicationTime" type:"timestamp" timestampFormat:"unix"`
+ LatestReplicationTime *time.Time `locationName:"latestReplicationTime" type:"timestamp"`
// Details about the latest launch of the application.
LaunchDetails *LaunchDetails `locationName:"launchDetails" type:"structure"`
@@ -77,7 +77,7 @@ type Connector struct {
_ struct{} `type:"structure"`
// The time the connector was associated.
- AssociatedOn *time.Time `locationName:"associatedOn" type:"timestamp" timestampFormat:"unix"`
+ AssociatedOn *time.Time `locationName:"associatedOn" type:"timestamp"`
// The capabilities of the connector.
CapabilityList []ConnectorCapability `locationName:"capabilityList" type:"list"`
@@ -118,7 +118,7 @@ type LaunchDetails struct {
_ struct{} `type:"structure"`
// Latest time this application was launched successfully.
- LatestLaunchTime *time.Time `locationName:"latestLaunchTime" type:"timestamp" timestampFormat:"unix"`
+ LatestLaunchTime *time.Time `locationName:"latestLaunchTime" type:"timestamp"`
// Identifier of the latest stack launched for this application.
StackId *string `locationName:"stackId" type:"string"`
@@ -170,7 +170,7 @@ type ReplicationJob struct {
LicenseType LicenseType `locationName:"licenseType" type:"string" enum:"true"`
// The start time of the next replication run.
- NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp" timestampFormat:"unix"`
+ NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp"`
// Number of recent AMIs to keep in the customer's account for a replication
// job. By default the value is set to zero, meaning that all AMIs are kept.
@@ -188,7 +188,7 @@ type ReplicationJob struct {
RunOnce *bool `locationName:"runOnce" type:"boolean"`
// The seed replication time.
- SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" timestampFormat:"unix"`
+ SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp"`
// The identifier of the server.
ServerId *string `locationName:"serverId" type:"string"`
@@ -220,7 +220,7 @@ type ReplicationRun struct {
AmiId *string `locationName:"amiId" type:"string"`
// The completion time of the last replication run.
- CompletedTime *time.Time `locationName:"completedTime" type:"timestamp" timestampFormat:"unix"`
+ CompletedTime *time.Time `locationName:"completedTime" type:"timestamp"`
// The description of the replication run.
Description *string `locationName:"description" type:"string"`
@@ -248,7 +248,7 @@ type ReplicationRun struct {
ReplicationRunId *string `locationName:"replicationRunId" type:"string"`
// The start time of the next replication run.
- ScheduledStartTime *time.Time `locationName:"scheduledStartTime" type:"timestamp" timestampFormat:"unix"`
+ ScheduledStartTime *time.Time `locationName:"scheduledStartTime" type:"timestamp"`
// Details of the current stage of the replication run.
StageDetails *ReplicationRunStageDetails `locationName:"stageDetails" type:"structure"`
@@ -477,7 +477,7 @@ type ServerReplicationParameters struct {
RunOnce *bool `locationName:"runOnce" type:"boolean"`
// Seed time for creating a replication job for the server.
- SeedTime *time.Time `locationName:"seedTime" type:"timestamp" timestampFormat:"unix"`
+ SeedTime *time.Time `locationName:"seedTime" type:"timestamp"`
}
// String returns the string representation
diff --git a/service/snowball/api_types.go b/service/snowball/api_types.go
index 1c4022a5001..4adee7827aa 100644
--- a/service/snowball/api_types.go
+++ b/service/snowball/api_types.go
@@ -134,7 +134,7 @@ type ClusterListEntry struct {
ClusterState ClusterState `type:"string" enum:"true"`
// The creation date for this cluster.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// Defines an optional description of the cluster, for example Environmental
// Data Cluster-01.
@@ -161,7 +161,7 @@ type ClusterMetadata struct {
ClusterState ClusterState `type:"string" enum:"true"`
// The creation date for this cluster.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The optional description of the cluster.
Description *string `min:"1" type:"string"`
@@ -333,7 +333,7 @@ type JobListEntry struct {
_ struct{} `type:"structure"`
// The creation date for this job.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// The optional description of this specific job, for example Important Photos
// 2016-08-11.
@@ -418,7 +418,7 @@ type JobMetadata struct {
ClusterId *string `min:"1" type:"string"`
// The creation date for this job.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationDate *time.Time `type:"timestamp"`
// A value that defines the real-time status of a Snowball's data transfer while
// the device is at AWS. This data is only available while a job has a JobState
diff --git a/service/ssm/api_op_CreateActivation.go b/service/ssm/api_op_CreateActivation.go
index f625084b1f5..35e84a11195 100644
--- a/service/ssm/api_op_CreateActivation.go
+++ b/service/ssm/api_op_CreateActivation.go
@@ -29,7 +29,7 @@ type CreateActivationInput struct {
// The date by which this activation request should expire. The default value
// is 24 hours.
- ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `type:"timestamp"`
// The Amazon Identity and Access Management (IAM) role that you want to assign
// to the managed instance.
diff --git a/service/ssm/api_op_GetMaintenanceWindow.go b/service/ssm/api_op_GetMaintenanceWindow.go
index 8655ce9a5e8..10b6a1e6975 100644
--- a/service/ssm/api_op_GetMaintenanceWindow.go
+++ b/service/ssm/api_op_GetMaintenanceWindow.go
@@ -51,7 +51,7 @@ type GetMaintenanceWindowOutput struct {
AllowUnassociatedTargets *bool `type:"boolean"`
// The date the Maintenance Window was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// The number of hours before the end of the Maintenance Window that Systems
// Manager stops scheduling new tasks for execution.
@@ -72,7 +72,7 @@ type GetMaintenanceWindowOutput struct {
EndDate *string `type:"string"`
// The date the Maintenance Window was last modified.
- ModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ModifiedDate *time.Time `type:"timestamp"`
// The name of the Maintenance Window.
Name *string `min:"3" type:"string"`
diff --git a/service/ssm/api_op_GetMaintenanceWindowExecution.go b/service/ssm/api_op_GetMaintenanceWindowExecution.go
index 1aa55078819..bdce64bf9ee 100644
--- a/service/ssm/api_op_GetMaintenanceWindowExecution.go
+++ b/service/ssm/api_op_GetMaintenanceWindowExecution.go
@@ -47,10 +47,10 @@ type GetMaintenanceWindowExecutionOutput struct {
_ struct{} `type:"structure"`
// The time the Maintenance Window finished running.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The time the Maintenance Window started running.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The status of the Maintenance Window execution.
Status MaintenanceWindowExecutionStatus `type:"string" enum:"true"`
diff --git a/service/ssm/api_op_GetMaintenanceWindowExecutionTask.go b/service/ssm/api_op_GetMaintenanceWindowExecutionTask.go
index 75f7a867f39..a5ffcd96cdb 100644
--- a/service/ssm/api_op_GetMaintenanceWindowExecutionTask.go
+++ b/service/ssm/api_op_GetMaintenanceWindowExecutionTask.go
@@ -60,7 +60,7 @@ type GetMaintenanceWindowExecutionTaskOutput struct {
_ struct{} `type:"structure"`
// The time the task execution completed.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The defined maximum number of task executions that could be run in parallel.
MaxConcurrency *string `min:"1" type:"string"`
@@ -76,7 +76,7 @@ type GetMaintenanceWindowExecutionTaskOutput struct {
ServiceRole *string `type:"string"`
// The time the task execution started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The status of the task.
Status MaintenanceWindowExecutionStatus `type:"string" enum:"true"`
diff --git a/service/ssm/api_op_GetMaintenanceWindowExecutionTaskInvocation.go b/service/ssm/api_op_GetMaintenanceWindowExecutionTaskInvocation.go
index f827b2eb90d..187928cacf1 100644
--- a/service/ssm/api_op_GetMaintenanceWindowExecutionTaskInvocation.go
+++ b/service/ssm/api_op_GetMaintenanceWindowExecutionTaskInvocation.go
@@ -72,7 +72,7 @@ type GetMaintenanceWindowExecutionTaskInvocationOutput struct {
_ struct{} `type:"structure"`
// The time that the task finished running on the target.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The execution ID.
ExecutionId *string `type:"string"`
@@ -88,7 +88,7 @@ type GetMaintenanceWindowExecutionTaskInvocationOutput struct {
Parameters *string `type:"string"`
// The time that the task started running on the target.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The task status for an invocation.
Status MaintenanceWindowExecutionStatus `type:"string" enum:"true"`
diff --git a/service/ssm/api_op_GetPatchBaseline.go b/service/ssm/api_op_GetPatchBaseline.go
index 1727d8e0672..64d13463f9c 100644
--- a/service/ssm/api_op_GetPatchBaseline.go
+++ b/service/ssm/api_op_GetPatchBaseline.go
@@ -65,7 +65,7 @@ type GetPatchBaselineOutput struct {
BaselineId *string `min:"20" type:"string"`
// The date the patch baseline was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// A description of the patch baseline.
Description *string `min:"1" type:"string"`
@@ -74,7 +74,7 @@ type GetPatchBaselineOutput struct {
GlobalFilters *PatchFilterGroup `type:"structure"`
// The date the patch baseline was last modified.
- ModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ModifiedDate *time.Time `type:"timestamp"`
// The name of the patch baseline.
Name *string `min:"3" type:"string"`
diff --git a/service/ssm/api_op_UpdatePatchBaseline.go b/service/ssm/api_op_UpdatePatchBaseline.go
index 7c5a031429a..a967b3ad710 100644
--- a/service/ssm/api_op_UpdatePatchBaseline.go
+++ b/service/ssm/api_op_UpdatePatchBaseline.go
@@ -149,7 +149,7 @@ type UpdatePatchBaselineOutput struct {
BaselineId *string `min:"20" type:"string"`
// The date when the patch baseline was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// A description of the Patch Baseline.
Description *string `min:"1" type:"string"`
@@ -158,7 +158,7 @@ type UpdatePatchBaselineOutput struct {
GlobalFilters *PatchFilterGroup `type:"structure"`
// The date when the patch baseline was last modified.
- ModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ModifiedDate *time.Time `type:"timestamp"`
// The name of the patch baseline.
Name *string `min:"3" type:"string"`
diff --git a/service/ssm/api_types.go b/service/ssm/api_types.go
index 86602773d93..488f0d847dc 100644
--- a/service/ssm/api_types.go
+++ b/service/ssm/api_types.go
@@ -24,7 +24,7 @@ type Activation struct {
ActivationId *string `type:"string"`
// The date the activation was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// A name for the managed instance when it is created.
DefaultInstanceName *string `type:"string"`
@@ -33,7 +33,7 @@ type Activation struct {
Description *string `type:"string"`
// The date when this activation can no longer be used to register managed instances.
- ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpirationDate *time.Time `type:"timestamp"`
// Whether or not the activation is expired.
Expired *bool `type:"boolean"`
@@ -80,7 +80,7 @@ type Association struct {
InstanceId *string `type:"string"`
// The date on which the association was last run.
- LastExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastExecutionDate *time.Time `type:"timestamp"`
// The name of the Systems Manager document.
Name *string `type:"string"`
@@ -122,7 +122,7 @@ type AssociationDescription struct {
ComplianceSeverity AssociationComplianceSeverity `type:"string" enum:"true"`
// The date when the association was made.
- Date *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Date *time.Time `type:"timestamp"`
// The document version.
DocumentVersion *string `type:"string"`
@@ -131,13 +131,13 @@ type AssociationDescription struct {
InstanceId *string `type:"string"`
// The date on which the association was last run.
- LastExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastExecutionDate *time.Time `type:"timestamp"`
// The last date on which the association was successfully run.
- LastSuccessfulExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastSuccessfulExecutionDate *time.Time `type:"timestamp"`
// The date when the association was last updated.
- LastUpdateAssociationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdateAssociationDate *time.Time `type:"timestamp"`
// The maximum number of targets allowed to run the association at the same
// time. You can specify a number, for example 10, or a percentage of the target
@@ -204,7 +204,7 @@ type AssociationExecution struct {
AssociationVersion *string `type:"string"`
// The time the execution started.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// Detailed status information about the execution.
DetailedStatus *string `type:"string"`
@@ -213,7 +213,7 @@ type AssociationExecution struct {
ExecutionId *string `type:"string"`
// The date of the last execution.
- LastExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastExecutionDate *time.Time `type:"timestamp"`
// An aggregate status of the resources in the execution based on the status
// type.
@@ -295,7 +295,7 @@ type AssociationExecutionTarget struct {
ExecutionId *string `type:"string"`
// The date of the last execution.
- LastExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastExecutionDate *time.Time `type:"timestamp"`
// The location where the association details are saved.
OutputSource *OutputSource `type:"structure"`
@@ -430,7 +430,7 @@ type AssociationStatus struct {
// The date when the status changed.
//
// Date is a required field
- Date *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ Date *time.Time `type:"timestamp" required:"true"`
// The reason for the status.
//
@@ -491,7 +491,7 @@ type AssociationVersionInfo struct {
ComplianceSeverity AssociationComplianceSeverity `type:"string" enum:"true"`
// The date the association version was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// The version of a Systems Manager document used when the association version
// was created.
@@ -647,10 +647,10 @@ type AutomationExecution struct {
ExecutedBy *string `type:"string"`
// The time the execution finished.
- ExecutionEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExecutionEndTime *time.Time `type:"timestamp"`
// The time the execution started.
- ExecutionStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExecutionStartTime *time.Time `type:"timestamp"`
// A message describing why an execution has failed, if the status is set to
// Failed.
@@ -794,10 +794,10 @@ type AutomationExecutionMetadata struct {
// The time the execution finished. This is not populated if the execution is
// still in progress.
- ExecutionEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExecutionEndTime *time.Time `type:"timestamp"`
// The time the execution started.>
- ExecutionStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExecutionStartTime *time.Time `type:"timestamp"`
// The list of execution outputs as defined in the Automation document.
FailureMessage *string `type:"string"`
@@ -909,7 +909,7 @@ type Command struct {
// If this time is reached and the command has not already started running,
// it will not run. Calculated based on the ExpiresAfter user input provided
// as part of the SendCommand API.
- ExpiresAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExpiresAfter *time.Time `type:"timestamp"`
// The instance IDs against which this command was requested.
InstanceIds []string `type:"list"`
@@ -950,7 +950,7 @@ type Command struct {
Parameters map[string][]string `type:"map"`
// The date and time the command was requested.
- RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RequestedDateTime *time.Time `type:"timestamp"`
// The IAM service role that Run Command uses to act on your behalf when sending
// notifications about command status changes.
@@ -1113,7 +1113,7 @@ type CommandInvocation struct {
NotificationConfig *NotificationConfig `type:"structure"`
// The time and date the request was sent to this instance.
- RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RequestedDateTime *time.Time `type:"timestamp"`
// The IAM service role that Run Command uses to act on your behalf when sending
// notifications about command status changes on a per instance basis.
@@ -1241,10 +1241,10 @@ type CommandPlugin struct {
// The time the plugin stopped running. Could stop prematurely if, for example,
// a cancel command was sent.
- ResponseFinishDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ResponseFinishDateTime *time.Time `type:"timestamp"`
// The time the plugin started running.
- ResponseStartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ResponseStartDateTime *time.Time `type:"timestamp"`
// The URL for the complete text written by the plugin to stderr. If execution
// is not yet complete, then this string is empty.
@@ -1324,7 +1324,7 @@ type ComplianceExecutionSummary struct {
// format: yyyy-MM-dd'T'HH:mm:ss'Z'.
//
// ExecutionTime is a required field
- ExecutionTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ ExecutionTime *time.Time `type:"timestamp" required:"true"`
// The type of execution. For example, Command is a valid execution type.
ExecutionType *string `type:"string"`
@@ -1697,7 +1697,7 @@ type DocumentDescription struct {
AttachmentsInformation []AttachmentInformation `type:"list"`
// The date when the document was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// The default version.
DefaultVersion *string `type:"string"`
@@ -1945,7 +1945,7 @@ type DocumentVersionInfo struct {
_ struct{} `type:"structure"`
// The date the document was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// The document format, either JSON or YAML.
DocumentFormat DocumentFormat `type:"string" enum:"true"`
@@ -2154,7 +2154,7 @@ type InstanceAssociationStatusInfo struct {
ErrorCode *string `type:"string"`
// The date the instance association ran.
- ExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExecutionDate *time.Time `type:"timestamp"`
// Summary information about association execution.
ExecutionSummary *string `min:"1" type:"string"`
@@ -2216,13 +2216,13 @@ type InstanceInformation struct {
IsLatestVersion *bool `type:"boolean"`
// The date the association was last run.
- LastAssociationExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAssociationExecutionDate *time.Time `type:"timestamp"`
// The date and time when agent last pinged Systems Manager service.
- LastPingDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastPingDateTime *time.Time `type:"timestamp"`
// The last date the association was successfully run.
- LastSuccessfulAssociationExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastSuccessfulAssociationExecutionDate *time.Time `type:"timestamp"`
// The name of the managed instance.
Name *string `type:"string"`
@@ -2240,7 +2240,7 @@ type InstanceInformation struct {
PlatformVersion *string `type:"string"`
// The date the server or VM was registered with AWS as a managed instance.
- RegistrationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ RegistrationDate *time.Time `type:"timestamp"`
// The type of instance. Instances are either EC2 instances or managed instances.
ResourceType ResourceType `type:"string" enum:"true"`
@@ -2412,12 +2412,12 @@ type InstancePatchState struct {
// The time the most recent patching operation completed on the instance.
//
// OperationEndTime is a required field
- OperationEndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ OperationEndTime *time.Time `type:"timestamp" required:"true"`
// The time the most recent patching operation was started on the instance.
//
// OperationStartTime is a required field
- OperationStartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ OperationStartTime *time.Time `type:"timestamp" required:"true"`
// Placeholder information. This field will always be empty in the current release
// of the service.
@@ -2562,7 +2562,7 @@ type InventoryDeletionStatusItem struct {
DeletionId *string `type:"string"`
// The UTC timestamp when the delete operation started.
- DeletionStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DeletionStartTime *time.Time `type:"timestamp"`
// Information about the delete operation. For more information about this summary,
// see Understanding the Delete Inventory Summary (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-delete.html#sysman-inventory-delete-summary)
@@ -2576,7 +2576,7 @@ type InventoryDeletionStatusItem struct {
LastStatusMessage *string `type:"string"`
// The UTC timestamp of when the last status report.
- LastStatusUpdateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastStatusUpdateTime *time.Time `type:"timestamp"`
// The name of the inventory data type.
TypeName *string `min:"1" type:"string"`
@@ -3019,10 +3019,10 @@ type MaintenanceWindowExecution struct {
_ struct{} `type:"structure"`
// The time the execution finished.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The time the execution started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The status of the execution.
Status MaintenanceWindowExecutionStatus `type:"string" enum:"true"`
@@ -3049,10 +3049,10 @@ type MaintenanceWindowExecutionTaskIdentity struct {
_ struct{} `type:"structure"`
// The time the task execution finished.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The time the task execution started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The status of the task execution.
Status MaintenanceWindowExecutionStatus `type:"string" enum:"true"`
@@ -3086,7 +3086,7 @@ type MaintenanceWindowExecutionTaskInvocationIdentity struct {
_ struct{} `type:"structure"`
// The time the invocation finished.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The ID of the action performed in the service that actually handled the task
// invocation. If the task type is RUN_COMMAND, this value is the command ID.
@@ -3104,7 +3104,7 @@ type MaintenanceWindowExecutionTaskInvocationIdentity struct {
Parameters *string `type:"string"`
// The time the invocation started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The status of the task invocation.
Status MaintenanceWindowExecutionStatus `type:"string" enum:"true"`
@@ -3656,7 +3656,7 @@ type Parameter struct {
// Date the parameter was last changed or updated and the parameter version
// was created.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// The name of the parameter.
Name *string `min:"1" type:"string"`
@@ -3709,7 +3709,7 @@ type ParameterHistory struct {
Labels []string `min:"1" type:"list"`
// Date the parameter was last changed or updated.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// Amazon Resource Name (ARN) of the AWS user who last changed the parameter.
LastModifiedUser *string `type:"string"`
@@ -3780,7 +3780,7 @@ type ParameterMetadata struct {
KeyId *string `min:"1" type:"string"`
// Date the parameter was last changed or updated.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// Amazon Resource Name (ARN) of the AWS user who last changed the parameter.
LastModifiedUser *string `type:"string"`
@@ -3935,7 +3935,7 @@ type Patch struct {
ProductFamily *string `type:"string"`
// The date the patch was released.
- ReleaseDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReleaseDate *time.Time `type:"timestamp"`
// The title of the patch.
Title *string `type:"string"`
@@ -3993,7 +3993,7 @@ type PatchComplianceData struct {
// operating systems provide this level of information.
//
// InstalledTime is a required field
- InstalledTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ InstalledTime *time.Time `type:"timestamp" required:"true"`
// The operating system-specific ID of the patch.
//
@@ -4334,7 +4334,7 @@ type PatchStatus struct {
_ struct{} `type:"structure"`
// The date the patch was approved (or will be approved if the status is PENDING_APPROVAL).
- ApprovalDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ApprovalDate *time.Time `type:"timestamp"`
// The compliance severity level for a patch.
ComplianceLevel PatchComplianceLevel `type:"string" enum:"true"`
@@ -4445,19 +4445,19 @@ type ResourceDataSyncItem struct {
LastStatus LastResourceDataSyncStatus `type:"string" enum:"true"`
// The last time the sync operations returned a status of SUCCESSFUL (UTC).
- LastSuccessfulSyncTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastSuccessfulSyncTime *time.Time `type:"timestamp"`
// The status message details reported by the last sync.
LastSyncStatusMessage *string `type:"string"`
// The last time the configuration attempted to sync (UTC).
- LastSyncTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastSyncTime *time.Time `type:"timestamp"`
// Configuration information for the target Amazon S3 bucket.
S3Destination *ResourceDataSyncS3Destination `type:"structure"`
// The date and time the configuration was created (UTC).
- SyncCreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ SyncCreatedTime *time.Time `type:"timestamp"`
// The name of the Resource Data Sync.
SyncName *string `min:"1" type:"string"`
@@ -4666,7 +4666,7 @@ type ServiceSetting struct {
ARN *string `type:"string"`
// The last time the service setting was modified.
- LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedDate *time.Time `type:"timestamp"`
// The ARN of the last modified user. This field is populated only if the setting
// value was overwritten.
@@ -4710,7 +4710,7 @@ type Session struct {
DocumentName *string `type:"string"`
// The date and time, in ISO-8601 Extended format, when the session was terminated.
- EndDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndDate *time.Time `type:"timestamp"`
// Reserved for future use.
OutputUrl *SessionManagerOutputUrl `type:"structure"`
@@ -4722,7 +4722,7 @@ type Session struct {
SessionId *string `min:"1" type:"string"`
// The date and time, in ISO-8601 Extended format, when the session began.
- StartDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartDate *time.Time `type:"timestamp"`
// The status of the session. For example, "Connected" or "Terminated".
Status SessionStatus `type:"string" enum:"true"`
@@ -4864,11 +4864,11 @@ type StepExecution struct {
// If a step has finished execution, this contains the time the execution ended.
// If the step has not yet concluded, this field is not populated.
- ExecutionEndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExecutionEndTime *time.Time `type:"timestamp"`
// If a step has begun execution, this contains the time the step started. If
// the step is in Pending status, this field is not populated.
- ExecutionStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ExecutionStartTime *time.Time `type:"timestamp"`
// Information about the Automation failure.
FailureDetails *FailureDetails `type:"structure"`
diff --git a/service/storagegateway/api_types.go b/service/storagegateway/api_types.go
index 3eeeeb50000..1df9ade2690 100644
--- a/service/storagegateway/api_types.go
+++ b/service/storagegateway/api_types.go
@@ -19,7 +19,7 @@ type CachediSCSIVolume struct {
// The date the volume was created. Volumes created prior to March 28, 2017
// don’t have this time stamp.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
// side encryption. This value can only be set when KMSEncrypted is true. Optional.
@@ -544,7 +544,7 @@ type StorediSCSIVolume struct {
// The date the volume was created. Volumes created prior to March 28, 2017
// don’t have this time stamp.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedDate *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
// side encryption. This value can only be set when KMSEncrypted is true. Optional.
@@ -694,7 +694,7 @@ type Tape struct {
TapeBarcode *string `min:"7" type:"string"`
// The date the virtual tape was created.
- TapeCreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TapeCreatedDate *time.Time `type:"timestamp"`
// The size, in bytes, of the virtual tape capacity.
TapeSizeInBytes *int64 `type:"long"`
@@ -726,7 +726,7 @@ type TapeArchive struct {
//
// The default time stamp format is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z'
// format.
- CompletionTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionTime *time.Time `type:"timestamp"`
// The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
// side encryption. This value can only be set when KMSEncrypted is true. Optional.
@@ -751,7 +751,7 @@ type TapeArchive struct {
TapeBarcode *string `min:"7" type:"string"`
// The date the virtual tape was created.
- TapeCreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TapeCreatedDate *time.Time `type:"timestamp"`
// The size, in bytes, of the archived virtual tape.
TapeSizeInBytes *int64 `type:"long"`
@@ -819,7 +819,7 @@ type TapeRecoveryPointInfo struct {
//
// The default time stamp format of the tape recovery point time is in the ISO8601
// extended YYYY-MM-DD'T'HH:MM:SS'Z' format.
- TapeRecoveryPointTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TapeRecoveryPointTime *time.Time `type:"timestamp"`
// The size, in bytes, of the virtual tapes to recover.
TapeSizeInBytes *int64 `type:"long"`
diff --git a/service/sts/api_types.go b/service/sts/api_types.go
index 9d92b61d9dc..26bef728ada 100644
--- a/service/sts/api_types.go
+++ b/service/sts/api_types.go
@@ -52,7 +52,7 @@ type Credentials struct {
// The date on which the current credentials expire.
//
// Expiration is a required field
- Expiration *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
+ Expiration *time.Time `type:"timestamp" required:"true"`
// The secret access key that can be used to sign requests.
//
diff --git a/service/swf/api_op_DescribeWorkflowExecution.go b/service/swf/api_op_DescribeWorkflowExecution.go
index b0b5eec0d1e..88ad14d1544 100644
--- a/service/swf/api_op_DescribeWorkflowExecution.go
+++ b/service/swf/api_op_DescribeWorkflowExecution.go
@@ -73,7 +73,7 @@ type DescribeWorkflowExecutionOutput struct {
// The time when the last activity task was scheduled for this workflow execution.
// You can use this information to determine if the workflow has not made progress
// for an unusually long period of time and might require a corrective action.
- LatestActivityTaskTimestamp *time.Time `locationName:"latestActivityTaskTimestamp" type:"timestamp" timestampFormat:"unix"`
+ LatestActivityTaskTimestamp *time.Time `locationName:"latestActivityTaskTimestamp" type:"timestamp"`
// The latest executionContext provided by the decider for this workflow execution.
// A decider can provide an executionContext (a free-form string) when closing
diff --git a/service/swf/api_types.go b/service/swf/api_types.go
index 3a1e0473294..770f804250d 100644
--- a/service/swf/api_types.go
+++ b/service/swf/api_types.go
@@ -374,10 +374,10 @@ type ActivityTypeInfo struct {
// The date and time this activity type was created through RegisterActivityType.
//
// CreationDate is a required field
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"`
// If DEPRECATED, the date and time DeprecateActivityType was called.
- DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp" timestampFormat:"unix"`
+ DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp"`
// The description of the activity type provided in RegisterActivityType.
Description *string `locationName:"description" type:"string"`
@@ -1469,12 +1469,12 @@ type ExecutionTimeFilter struct {
_ struct{} `type:"structure"`
// Specifies the latest start or close date and time to return.
- LatestDate *time.Time `locationName:"latestDate" type:"timestamp" timestampFormat:"unix"`
+ LatestDate *time.Time `locationName:"latestDate" type:"timestamp"`
// Specifies the oldest start or close date and time to return.
//
// OldestDate is a required field
- OldestDate *time.Time `locationName:"oldestDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ OldestDate *time.Time `locationName:"oldestDate" type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -1859,7 +1859,7 @@ type HistoryEvent struct {
// The date and time when the event occurred.
//
// EventTimestamp is a required field
- EventTimestamp *time.Time `locationName:"eventTimestamp" type:"timestamp" timestampFormat:"unix" required:"true"`
+ EventTimestamp *time.Time `locationName:"eventTimestamp" type:"timestamp" required:"true"`
// The type of the history event.
//
@@ -3896,7 +3896,7 @@ type WorkflowExecutionInfo struct {
// The time when the workflow execution was closed. Set only if the execution
// status is CLOSED.
- CloseTimestamp *time.Time `locationName:"closeTimestamp" type:"timestamp" timestampFormat:"unix"`
+ CloseTimestamp *time.Time `locationName:"closeTimestamp" type:"timestamp"`
// The workflow execution this information is about.
//
@@ -3915,7 +3915,7 @@ type WorkflowExecutionInfo struct {
// The time when the execution was started.
//
// StartTimestamp is a required field
- StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp" required:"true"`
// The list of tags associated with the workflow execution. Tags can be used
// to identify and list workflow executions of interest through the visibility
@@ -4319,11 +4319,11 @@ type WorkflowTypeInfo struct {
// The date when this type was registered.
//
// CreationDate is a required field
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"`
// If the type is in deprecated state, then it is set to the date when the type
// was deprecated.
- DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp" timestampFormat:"unix"`
+ DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp"`
// The description of the type registered through RegisterWorkflowType.
Description *string `locationName:"description" type:"string"`
diff --git a/service/transcribe/api_op_CreateVocabulary.go b/service/transcribe/api_op_CreateVocabulary.go
index e5a95e81c8f..51cfb4e2ad3 100644
--- a/service/transcribe/api_op_CreateVocabulary.go
+++ b/service/transcribe/api_op_CreateVocabulary.go
@@ -85,7 +85,7 @@ type CreateVocabularyOutput struct {
LanguageCode LanguageCode `type:"string" enum:"true"`
// The date and time that the vocabulary was created.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The name of the vocabulary.
VocabularyName *string `min:"1" type:"string"`
diff --git a/service/transcribe/api_op_GetVocabulary.go b/service/transcribe/api_op_GetVocabulary.go
index fd863cb2dac..21333477b9e 100644
--- a/service/transcribe/api_op_GetVocabulary.go
+++ b/service/transcribe/api_op_GetVocabulary.go
@@ -58,7 +58,7 @@ type GetVocabularyOutput struct {
LanguageCode LanguageCode `type:"string" enum:"true"`
// The date and time that the vocabulary was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The name of the vocabulary to return.
VocabularyName *string `min:"1" type:"string"`
diff --git a/service/transcribe/api_op_UpdateVocabulary.go b/service/transcribe/api_op_UpdateVocabulary.go
index 116249beb8f..0e8ba3bd6f7 100644
--- a/service/transcribe/api_op_UpdateVocabulary.go
+++ b/service/transcribe/api_op_UpdateVocabulary.go
@@ -80,7 +80,7 @@ type UpdateVocabularyOutput struct {
LanguageCode LanguageCode `type:"string" enum:"true"`
// The date and time that the vocabulary was updated.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The name of the vocabulary that was updated.
VocabularyName *string `min:"1" type:"string"`
diff --git a/service/transcribe/api_types.go b/service/transcribe/api_types.go
index cb719a25ecf..dad2c1546e7 100644
--- a/service/transcribe/api_types.go
+++ b/service/transcribe/api_types.go
@@ -134,10 +134,10 @@ type TranscriptionJob struct {
_ struct{} `type:"structure"`
// A timestamp that shows when the job was completed.
- CompletionTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionTime *time.Time `type:"timestamp"`
// A timestamp that shows when the job was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// If the TranscriptionJobStatus field is FAILED, this field contains information
// about why the job failed.
@@ -212,10 +212,10 @@ type TranscriptionJobSummary struct {
_ struct{} `type:"structure"`
// A timestamp that shows when the job was completed.
- CompletionTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletionTime *time.Time `type:"timestamp"`
// A timestamp that shows when the job was created.
- CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreationTime *time.Time `type:"timestamp"`
// If the TranscriptionJobStatus field is FAILED, a description of the error.
FailureReason *string `type:"string"`
@@ -256,7 +256,7 @@ type VocabularyInfo struct {
LanguageCode LanguageCode `type:"string" enum:"true"`
// The date and time that the vocabulary was last modified.
- LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastModifiedTime *time.Time `type:"timestamp"`
// The name of the vocabulary.
VocabularyName *string `min:"1" type:"string"`
diff --git a/service/transfer/api_types.go b/service/transfer/api_types.go
index 1b32671f3f6..2ef75190edf 100644
--- a/service/transfer/api_types.go
+++ b/service/transfer/api_types.go
@@ -258,7 +258,7 @@ type SshPublicKey struct {
// The date that the public key was added to the user account.
//
// DateImported is a required field
- DateImported *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ DateImported *time.Time `type:"timestamp" required:"true"`
// The content of the SSH public key as specified by the PublicKeyId.
//
diff --git a/service/translate/api_types.go b/service/translate/api_types.go
index a62aa7d9a80..7b37c750aba 100644
--- a/service/translate/api_types.go
+++ b/service/translate/api_types.go
@@ -166,7 +166,7 @@ type TerminologyProperties struct {
Arn *string `type:"string"`
// The time at which the custom terminology was created, based on the timestamp.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// The description of the custom terminology properties.
Description *string `type:"string"`
@@ -175,7 +175,7 @@ type TerminologyProperties struct {
EncryptionKey *EncryptionKey `type:"structure"`
// The time at which the custom terminology was last update, based on the timestamp.
- LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedAt *time.Time `type:"timestamp"`
// The name of the custom terminology.
Name *string `min:"1" type:"string"`
diff --git a/service/waf/api_types.go b/service/waf/api_types.go
index b3c3e28a976..e7532115d6b 100644
--- a/service/waf/api_types.go
+++ b/service/waf/api_types.go
@@ -1797,7 +1797,7 @@ type SampledHTTPRequest struct {
// The time at which AWS WAF received the request from your AWS resource, in
// Unix time format (in seconds).
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `type:"timestamp"`
// A value that indicates how one result in the response relates proportionally
// to other results in the response. A result that has a weight of 2 represents
@@ -2363,7 +2363,7 @@ type TimeWindow struct {
// time range in the previous three hours.
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// The beginning of the time range from which you want GetSampledRequests to
// return a sample of the requests that your AWS resource received. Specify
@@ -2371,7 +2371,7 @@ type TimeWindow struct {
// any time range in the previous three hours.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/wafregional/api_types.go b/service/wafregional/api_types.go
index a7a1136a7f7..49ce6a2b63b 100644
--- a/service/wafregional/api_types.go
+++ b/service/wafregional/api_types.go
@@ -1798,7 +1798,7 @@ type SampledHTTPRequest struct {
// The time at which AWS WAF received the request from your AWS resource, in
// Unix time format (in seconds).
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `type:"timestamp"`
// A value that indicates how one result in the response relates proportionally
// to other results in the response. A result that has a weight of 2 represents
@@ -2364,7 +2364,7 @@ type TimeWindow struct {
// time range in the previous three hours.
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// The beginning of the time range from which you want GetSampledRequests to
// return a sample of the requests that your AWS resource received. Specify
@@ -2372,7 +2372,7 @@ type TimeWindow struct {
// any time range in the previous three hours.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
diff --git a/service/workdocs/api_op_AbortDocumentVersionUpload.go b/service/workdocs/api_op_AbortDocumentVersionUpload.go
index 553eda68cd3..4bb0cc47654 100644
--- a/service/workdocs/api_op_AbortDocumentVersionUpload.go
+++ b/service/workdocs/api_op_AbortDocumentVersionUpload.go
@@ -64,7 +64,7 @@ func (s *AbortDocumentVersionUploadInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AbortDocumentVersionUploadInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_ActivateUser.go b/service/workdocs/api_op_ActivateUser.go
index e3dda152c51..c6c028b6140 100644
--- a/service/workdocs/api_op_ActivateUser.go
+++ b/service/workdocs/api_op_ActivateUser.go
@@ -51,7 +51,7 @@ func (s *ActivateUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ActivateUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_AddResourcePermissions.go b/service/workdocs/api_op_AddResourcePermissions.go
index e18d20affea..5e3c4254bbd 100644
--- a/service/workdocs/api_op_AddResourcePermissions.go
+++ b/service/workdocs/api_op_AddResourcePermissions.go
@@ -71,7 +71,7 @@ func (s *AddResourcePermissionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AddResourcePermissionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NotificationOptions != nil {
v := s.NotificationOptions
diff --git a/service/workdocs/api_op_CreateComment.go b/service/workdocs/api_op_CreateComment.go
index 12363579ed0..f9b3aa6150d 100644
--- a/service/workdocs/api_op_CreateComment.go
+++ b/service/workdocs/api_op_CreateComment.go
@@ -96,7 +96,7 @@ func (s *CreateCommentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateCommentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NotifyCollaborators != nil {
v := *s.NotifyCollaborators
diff --git a/service/workdocs/api_op_CreateCustomMetadata.go b/service/workdocs/api_op_CreateCustomMetadata.go
index 27ca91a3e5c..2c7435d7b0a 100644
--- a/service/workdocs/api_op_CreateCustomMetadata.go
+++ b/service/workdocs/api_op_CreateCustomMetadata.go
@@ -70,7 +70,7 @@ func (s *CreateCustomMetadataInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateCustomMetadataInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.CustomMetadata != nil {
v := s.CustomMetadata
diff --git a/service/workdocs/api_op_CreateFolder.go b/service/workdocs/api_op_CreateFolder.go
index d697584f9f3..e5df6ddae7f 100644
--- a/service/workdocs/api_op_CreateFolder.go
+++ b/service/workdocs/api_op_CreateFolder.go
@@ -57,7 +57,7 @@ func (s *CreateFolderInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFolderInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/workdocs/api_op_CreateLabels.go b/service/workdocs/api_op_CreateLabels.go
index 6496c8b2bba..8f4e880ad7e 100644
--- a/service/workdocs/api_op_CreateLabels.go
+++ b/service/workdocs/api_op_CreateLabels.go
@@ -60,7 +60,7 @@ func (s *CreateLabelsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateLabelsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Labels != nil {
v := s.Labels
diff --git a/service/workdocs/api_op_CreateNotificationSubscription.go b/service/workdocs/api_op_CreateNotificationSubscription.go
index 3960a3364d7..8566cfa35f0 100644
--- a/service/workdocs/api_op_CreateNotificationSubscription.go
+++ b/service/workdocs/api_op_CreateNotificationSubscription.go
@@ -74,7 +74,7 @@ func (s *CreateNotificationSubscriptionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateNotificationSubscriptionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Endpoint != nil {
v := *s.Endpoint
diff --git a/service/workdocs/api_op_CreateUser.go b/service/workdocs/api_op_CreateUser.go
index 7bb3fa71026..b4f6563dc9b 100644
--- a/service/workdocs/api_op_CreateUser.go
+++ b/service/workdocs/api_op_CreateUser.go
@@ -108,7 +108,7 @@ func (s *CreateUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EmailAddress != nil {
v := *s.EmailAddress
diff --git a/service/workdocs/api_op_DeactivateUser.go b/service/workdocs/api_op_DeactivateUser.go
index b25db86ca22..c1711a6619d 100644
--- a/service/workdocs/api_op_DeactivateUser.go
+++ b/service/workdocs/api_op_DeactivateUser.go
@@ -52,7 +52,7 @@ func (s *DeactivateUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeactivateUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DeleteComment.go b/service/workdocs/api_op_DeleteComment.go
index 2047f086a61..4b550a4e8d6 100644
--- a/service/workdocs/api_op_DeleteComment.go
+++ b/service/workdocs/api_op_DeleteComment.go
@@ -76,7 +76,7 @@ func (s *DeleteCommentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteCommentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DeleteCustomMetadata.go b/service/workdocs/api_op_DeleteCustomMetadata.go
index 8009e77f36a..7873d2a4ad4 100644
--- a/service/workdocs/api_op_DeleteCustomMetadata.go
+++ b/service/workdocs/api_op_DeleteCustomMetadata.go
@@ -65,7 +65,7 @@ func (s *DeleteCustomMetadataInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteCustomMetadataInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DeleteDocument.go b/service/workdocs/api_op_DeleteDocument.go
index 807c706841a..d3bf4df9fe5 100644
--- a/service/workdocs/api_op_DeleteDocument.go
+++ b/service/workdocs/api_op_DeleteDocument.go
@@ -52,7 +52,7 @@ func (s *DeleteDocumentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteDocumentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DeleteFolder.go b/service/workdocs/api_op_DeleteFolder.go
index a9cd4969f48..99f833d23cf 100644
--- a/service/workdocs/api_op_DeleteFolder.go
+++ b/service/workdocs/api_op_DeleteFolder.go
@@ -52,7 +52,7 @@ func (s *DeleteFolderInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFolderInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DeleteFolderContents.go b/service/workdocs/api_op_DeleteFolderContents.go
index 2179f9e685d..11c1e4af9fc 100644
--- a/service/workdocs/api_op_DeleteFolderContents.go
+++ b/service/workdocs/api_op_DeleteFolderContents.go
@@ -52,7 +52,7 @@ func (s *DeleteFolderContentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFolderContentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DeleteLabels.go b/service/workdocs/api_op_DeleteLabels.go
index 037d69b0131..9459cd1aa5b 100644
--- a/service/workdocs/api_op_DeleteLabels.go
+++ b/service/workdocs/api_op_DeleteLabels.go
@@ -57,7 +57,7 @@ func (s *DeleteLabelsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteLabelsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DeleteNotificationSubscription.go b/service/workdocs/api_op_DeleteNotificationSubscription.go
index a2fc26bb7ba..9a4af0f3a59 100644
--- a/service/workdocs/api_op_DeleteNotificationSubscription.go
+++ b/service/workdocs/api_op_DeleteNotificationSubscription.go
@@ -57,7 +57,7 @@ func (s *DeleteNotificationSubscriptionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteNotificationSubscriptionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.OrganizationId != nil {
v := *s.OrganizationId
diff --git a/service/workdocs/api_op_DeleteUser.go b/service/workdocs/api_op_DeleteUser.go
index b82715aa86a..d01be41f9ab 100644
--- a/service/workdocs/api_op_DeleteUser.go
+++ b/service/workdocs/api_op_DeleteUser.go
@@ -52,7 +52,7 @@ func (s *DeleteUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DescribeActivities.go b/service/workdocs/api_op_DescribeActivities.go
index cd344eb3efd..84572e2e0bc 100644
--- a/service/workdocs/api_op_DescribeActivities.go
+++ b/service/workdocs/api_op_DescribeActivities.go
@@ -25,7 +25,7 @@ type DescribeActivitiesInput struct {
// The timestamp that determines the end time of the activities. The response
// includes the activities performed before the specified timestamp.
- EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp"`
// Includes indirect activities. An indirect activity results from a direct
// activity performed on a parent resource. For example, sharing a parent folder
@@ -48,7 +48,7 @@ type DescribeActivitiesInput struct {
// The timestamp that determines the starting time of the activities. The response
// includes the activities performed after the specified timestamp.
- StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp"`
// The ID of the user who performed the action. The response includes activities
// pertaining to this user. This is an optional parameter and is only applicable
@@ -94,7 +94,7 @@ func (s *DescribeActivitiesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeActivitiesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
@@ -112,7 +112,8 @@ func (s DescribeActivitiesInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "endTime", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "endTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.IncludeIndirectActivities != nil {
v := *s.IncludeIndirectActivities
@@ -148,7 +149,8 @@ func (s DescribeActivitiesInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.QueryTarget, "startTime", protocol.TimeValue{V: v, Format: protocol.RFC822TimeFromat}, metadata)
+ e.SetValue(protocol.QueryTarget, "startTime",
+ protocol.TimeValue{V: v, Format: protocol.ISO8601TimeFormatName, QuotedFormatTime: false}, metadata)
}
if s.UserId != nil {
v := *s.UserId
diff --git a/service/workdocs/api_op_DescribeComments.go b/service/workdocs/api_op_DescribeComments.go
index a2555d78188..90322a39b6f 100644
--- a/service/workdocs/api_op_DescribeComments.go
+++ b/service/workdocs/api_op_DescribeComments.go
@@ -76,7 +76,7 @@ func (s *DescribeCommentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeCommentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DescribeDocumentVersions.go b/service/workdocs/api_op_DescribeDocumentVersions.go
index af872de5cf6..cd032e94229 100644
--- a/service/workdocs/api_op_DescribeDocumentVersions.go
+++ b/service/workdocs/api_op_DescribeDocumentVersions.go
@@ -78,7 +78,7 @@ func (s *DescribeDocumentVersionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeDocumentVersionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DescribeFolderContents.go b/service/workdocs/api_op_DescribeFolderContents.go
index 988f5b44211..408e3403368 100644
--- a/service/workdocs/api_op_DescribeFolderContents.go
+++ b/service/workdocs/api_op_DescribeFolderContents.go
@@ -79,7 +79,7 @@ func (s *DescribeFolderContentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeFolderContentsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DescribeGroups.go b/service/workdocs/api_op_DescribeGroups.go
index f8111d5a32d..1e1d7b76447 100644
--- a/service/workdocs/api_op_DescribeGroups.go
+++ b/service/workdocs/api_op_DescribeGroups.go
@@ -70,7 +70,7 @@ func (s *DescribeGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DescribeNotificationSubscriptions.go b/service/workdocs/api_op_DescribeNotificationSubscriptions.go
index 1a59b1e6cb8..e7653c71b89 100644
--- a/service/workdocs/api_op_DescribeNotificationSubscriptions.go
+++ b/service/workdocs/api_op_DescribeNotificationSubscriptions.go
@@ -57,7 +57,7 @@ func (s *DescribeNotificationSubscriptionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeNotificationSubscriptionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.OrganizationId != nil {
v := *s.OrganizationId
diff --git a/service/workdocs/api_op_DescribeResourcePermissions.go b/service/workdocs/api_op_DescribeResourcePermissions.go
index 45cc0b77127..a5cd466fc9a 100644
--- a/service/workdocs/api_op_DescribeResourcePermissions.go
+++ b/service/workdocs/api_op_DescribeResourcePermissions.go
@@ -70,7 +70,7 @@ func (s *DescribeResourcePermissionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeResourcePermissionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DescribeRootFolders.go b/service/workdocs/api_op_DescribeRootFolders.go
index 9155abd2a7e..80f9c7f69c8 100644
--- a/service/workdocs/api_op_DescribeRootFolders.go
+++ b/service/workdocs/api_op_DescribeRootFolders.go
@@ -58,7 +58,7 @@ func (s *DescribeRootFoldersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeRootFoldersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_DescribeUsers.go b/service/workdocs/api_op_DescribeUsers.go
index 3704d4f478d..1b8308d4bc9 100644
--- a/service/workdocs/api_op_DescribeUsers.go
+++ b/service/workdocs/api_op_DescribeUsers.go
@@ -86,7 +86,7 @@ func (s *DescribeUsersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeUsersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_GetCurrentUser.go b/service/workdocs/api_op_GetCurrentUser.go
index c3d201e6e1d..a3837922ac4 100644
--- a/service/workdocs/api_op_GetCurrentUser.go
+++ b/service/workdocs/api_op_GetCurrentUser.go
@@ -45,7 +45,7 @@ func (s *GetCurrentUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetCurrentUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_GetDocument.go b/service/workdocs/api_op_GetDocument.go
index c228b7f9abd..1ddfcac3abd 100644
--- a/service/workdocs/api_op_GetDocument.go
+++ b/service/workdocs/api_op_GetDocument.go
@@ -54,7 +54,7 @@ func (s *GetDocumentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDocumentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_GetDocumentPath.go b/service/workdocs/api_op_GetDocumentPath.go
index 04839e862f6..73fb2e7bd21 100644
--- a/service/workdocs/api_op_GetDocumentPath.go
+++ b/service/workdocs/api_op_GetDocumentPath.go
@@ -70,7 +70,7 @@ func (s *GetDocumentPathInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDocumentPathInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_GetDocumentVersion.go b/service/workdocs/api_op_GetDocumentVersion.go
index 03927b7c473..5e15be51f72 100644
--- a/service/workdocs/api_op_GetDocumentVersion.go
+++ b/service/workdocs/api_op_GetDocumentVersion.go
@@ -73,7 +73,7 @@ func (s *GetDocumentVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetDocumentVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_GetFolder.go b/service/workdocs/api_op_GetFolder.go
index f34fe741423..fa7e754d4dc 100644
--- a/service/workdocs/api_op_GetFolder.go
+++ b/service/workdocs/api_op_GetFolder.go
@@ -54,7 +54,7 @@ func (s *GetFolderInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFolderInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_GetFolderPath.go b/service/workdocs/api_op_GetFolderPath.go
index 6ef1243f1c5..b4ce672b5ab 100644
--- a/service/workdocs/api_op_GetFolderPath.go
+++ b/service/workdocs/api_op_GetFolderPath.go
@@ -70,7 +70,7 @@ func (s *GetFolderPathInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetFolderPathInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_GetResources.go b/service/workdocs/api_op_GetResources.go
index d416f4b1375..50559a8b4e0 100644
--- a/service/workdocs/api_op_GetResources.go
+++ b/service/workdocs/api_op_GetResources.go
@@ -62,7 +62,7 @@ func (s *GetResourcesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetResourcesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_InitiateDocumentVersionUpload.go b/service/workdocs/api_op_InitiateDocumentVersionUpload.go
index 787d21494c1..5cdad75e300 100644
--- a/service/workdocs/api_op_InitiateDocumentVersionUpload.go
+++ b/service/workdocs/api_op_InitiateDocumentVersionUpload.go
@@ -20,10 +20,10 @@ type InitiateDocumentVersionUploadInput struct {
AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"`
// The timestamp when the content of the document was originally created.
- ContentCreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ContentCreatedTimestamp *time.Time `type:"timestamp"`
// The timestamp when the content of the document was modified.
- ContentModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ContentModifiedTimestamp *time.Time `type:"timestamp"`
// The content type of the document.
ContentType *string `min:"1" type:"string"`
@@ -79,19 +79,21 @@ func (s *InitiateDocumentVersionUploadInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s InitiateDocumentVersionUploadInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ContentCreatedTimestamp != nil {
v := *s.ContentCreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ContentCreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ContentCreatedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ContentModifiedTimestamp != nil {
v := *s.ContentModifiedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ContentModifiedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ContentModifiedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ContentType != nil {
v := *s.ContentType
diff --git a/service/workdocs/api_op_RemoveAllResourcePermissions.go b/service/workdocs/api_op_RemoveAllResourcePermissions.go
index bf4c8198fa9..9167fded707 100644
--- a/service/workdocs/api_op_RemoveAllResourcePermissions.go
+++ b/service/workdocs/api_op_RemoveAllResourcePermissions.go
@@ -52,7 +52,7 @@ func (s *RemoveAllResourcePermissionsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemoveAllResourcePermissionsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_RemoveResourcePermission.go b/service/workdocs/api_op_RemoveResourcePermission.go
index b88c9eb5763..f78bc3c1018 100644
--- a/service/workdocs/api_op_RemoveResourcePermission.go
+++ b/service/workdocs/api_op_RemoveResourcePermission.go
@@ -67,7 +67,7 @@ func (s *RemoveResourcePermissionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RemoveResourcePermissionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthenticationToken != nil {
v := *s.AuthenticationToken
diff --git a/service/workdocs/api_op_UpdateDocument.go b/service/workdocs/api_op_UpdateDocument.go
index d1c949119a2..88c22bf12de 100644
--- a/service/workdocs/api_op_UpdateDocument.go
+++ b/service/workdocs/api_op_UpdateDocument.go
@@ -67,7 +67,7 @@ func (s *UpdateDocumentInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDocumentInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/workdocs/api_op_UpdateDocumentVersion.go b/service/workdocs/api_op_UpdateDocumentVersion.go
index 53038fbba7a..2f663c85075 100644
--- a/service/workdocs/api_op_UpdateDocumentVersion.go
+++ b/service/workdocs/api_op_UpdateDocumentVersion.go
@@ -67,7 +67,7 @@ func (s *UpdateDocumentVersionInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDocumentVersionInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.VersionStatus) > 0 {
v := s.VersionStatus
diff --git a/service/workdocs/api_op_UpdateFolder.go b/service/workdocs/api_op_UpdateFolder.go
index a74d814005a..9b6ea40d307 100644
--- a/service/workdocs/api_op_UpdateFolder.go
+++ b/service/workdocs/api_op_UpdateFolder.go
@@ -68,7 +68,7 @@ func (s *UpdateFolderInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFolderInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Name != nil {
v := *s.Name
diff --git a/service/workdocs/api_op_UpdateUser.go b/service/workdocs/api_op_UpdateUser.go
index 0d6cb3e04b9..7369962d462 100644
--- a/service/workdocs/api_op_UpdateUser.go
+++ b/service/workdocs/api_op_UpdateUser.go
@@ -81,7 +81,7 @@ func (s *UpdateUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GivenName != nil {
v := *s.GivenName
diff --git a/service/workdocs/api_types.go b/service/workdocs/api_types.go
index 6cda4fe8423..d299a045603 100644
--- a/service/workdocs/api_types.go
+++ b/service/workdocs/api_types.go
@@ -47,7 +47,7 @@ type Activity struct {
ResourceMetadata *ResourceMetadata `type:"structure"`
// The timestamp when the action was performed.
- TimeStamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ TimeStamp *time.Time `type:"timestamp"`
// The activity type.
Type ActivityType `type:"string" enum:"true"`
@@ -106,7 +106,8 @@ func (s Activity) MarshalFields(e protocol.FieldEncoder) error {
v := *s.TimeStamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "TimeStamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "TimeStamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.Type) > 0 {
v := s.Type
@@ -131,7 +132,7 @@ type Comment struct {
Contributor *User `type:"structure"`
// The time that the comment was created.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The ID of the parent comment.
ParentId *string `min:"1" type:"string"`
@@ -178,7 +179,8 @@ func (s Comment) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ParentId != nil {
v := *s.ParentId
@@ -234,7 +236,7 @@ type CommentMetadata struct {
Contributor *User `type:"structure"`
// The timestamp that the comment was created.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The ID of the user being replied to.
RecipientId *string `min:"1" type:"string"`
@@ -269,7 +271,8 @@ func (s CommentMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.RecipientId != nil {
v := *s.RecipientId
@@ -286,7 +289,7 @@ type DocumentMetadata struct {
_ struct{} `type:"structure"`
// The time when the document was created.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The ID of the creator.
CreatorId *string `min:"1" type:"string"`
@@ -301,7 +304,7 @@ type DocumentMetadata struct {
LatestVersionMetadata *DocumentVersionMetadata `type:"structure"`
// The time when the document was updated.
- ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ModifiedTimestamp *time.Time `type:"timestamp"`
// The ID of the parent folder.
ParentFolderId *string `min:"1" type:"string"`
@@ -321,7 +324,8 @@ func (s DocumentMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatorId != nil {
v := *s.CreatorId
@@ -357,7 +361,8 @@ func (s DocumentMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ModifiedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ModifiedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ModifiedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ParentFolderId != nil {
v := *s.ParentFolderId
@@ -380,16 +385,16 @@ type DocumentVersionMetadata struct {
_ struct{} `type:"structure"`
// The timestamp when the content of the document was originally created.
- ContentCreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ContentCreatedTimestamp *time.Time `type:"timestamp"`
// The timestamp when the content of the document was modified.
- ContentModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ContentModifiedTimestamp *time.Time `type:"timestamp"`
// The content type of the document.
ContentType *string `min:"1" type:"string"`
// The timestamp when the document was first uploaded.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The ID of the creator.
CreatorId *string `min:"1" type:"string"`
@@ -398,7 +403,7 @@ type DocumentVersionMetadata struct {
Id *string `min:"1" type:"string"`
// The timestamp when the document was last uploaded.
- ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ModifiedTimestamp *time.Time `type:"timestamp"`
// The name of the version.
Name *string `min:"1" type:"string"`
@@ -430,13 +435,15 @@ func (s DocumentVersionMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ContentCreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ContentCreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ContentCreatedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ContentModifiedTimestamp != nil {
v := *s.ContentModifiedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ContentModifiedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ContentModifiedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ContentType != nil {
v := *s.ContentType
@@ -448,7 +455,8 @@ func (s DocumentVersionMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatorId != nil {
v := *s.CreatorId
@@ -466,7 +474,8 @@ func (s DocumentVersionMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ModifiedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ModifiedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ModifiedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -525,7 +534,7 @@ type FolderMetadata struct {
_ struct{} `type:"structure"`
// The time when the folder was created.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The ID of the creator.
CreatorId *string `min:"1" type:"string"`
@@ -540,7 +549,7 @@ type FolderMetadata struct {
LatestVersionSize *int64 `type:"long"`
// The time when the folder was updated.
- ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ModifiedTimestamp *time.Time `type:"timestamp"`
// The name of the folder.
Name *string `min:"1" type:"string"`
@@ -569,7 +578,8 @@ func (s FolderMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.CreatorId != nil {
v := *s.CreatorId
@@ -605,7 +615,8 @@ func (s FolderMetadata) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ModifiedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ModifiedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ModifiedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -1247,7 +1258,7 @@ type User struct {
_ struct{} `type:"structure"`
// The time when the user was created.
- CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTimestamp *time.Time `type:"timestamp"`
// The email address of the user.
EmailAddress *string `min:"1" type:"string"`
@@ -1262,7 +1273,7 @@ type User struct {
Locale LocaleType `type:"string" enum:"true"`
// The time when the user was modified.
- ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ModifiedTimestamp *time.Time `type:"timestamp"`
// The ID of the organization.
OrganizationId *string `min:"1" type:"string"`
@@ -1303,7 +1314,8 @@ func (s User) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.EmailAddress != nil {
v := *s.EmailAddress
@@ -1333,7 +1345,8 @@ func (s User) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ModifiedTimestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ModifiedTimestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ModifiedTimestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.OrganizationId != nil {
v := *s.OrganizationId
diff --git a/service/worklink/api_op_AssociateDomain.go b/service/worklink/api_op_AssociateDomain.go
index dcb28e9e45c..fd3bdf1b402 100644
--- a/service/worklink/api_op_AssociateDomain.go
+++ b/service/worklink/api_op_AssociateDomain.go
@@ -68,7 +68,7 @@ func (s *AssociateDomainInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociateDomainInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AcmCertificateArn != nil {
v := *s.AcmCertificateArn
diff --git a/service/worklink/api_op_AssociateWebsiteAuthorizationProvider.go b/service/worklink/api_op_AssociateWebsiteAuthorizationProvider.go
index 3ea02fb93a2..8eddbe7046d 100644
--- a/service/worklink/api_op_AssociateWebsiteAuthorizationProvider.go
+++ b/service/worklink/api_op_AssociateWebsiteAuthorizationProvider.go
@@ -59,7 +59,7 @@ func (s *AssociateWebsiteAuthorizationProviderInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociateWebsiteAuthorizationProviderInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if len(s.AuthorizationProviderType) > 0 {
v := s.AuthorizationProviderType
diff --git a/service/worklink/api_op_AssociateWebsiteCertificateAuthority.go b/service/worklink/api_op_AssociateWebsiteCertificateAuthority.go
index ce61a674342..1d51a717153 100644
--- a/service/worklink/api_op_AssociateWebsiteCertificateAuthority.go
+++ b/service/worklink/api_op_AssociateWebsiteCertificateAuthority.go
@@ -59,7 +59,7 @@ func (s *AssociateWebsiteCertificateAuthorityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s AssociateWebsiteCertificateAuthorityInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Certificate != nil {
v := *s.Certificate
diff --git a/service/worklink/api_op_CreateFleet.go b/service/worklink/api_op_CreateFleet.go
index 1a19f0e845d..6ab5bb2f240 100644
--- a/service/worklink/api_op_CreateFleet.go
+++ b/service/worklink/api_op_CreateFleet.go
@@ -51,7 +51,7 @@ func (s *CreateFleetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateFleetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DisplayName != nil {
v := *s.DisplayName
diff --git a/service/worklink/api_op_DeleteFleet.go b/service/worklink/api_op_DeleteFleet.go
index 71b35f1ab55..a89ad1fa196 100644
--- a/service/worklink/api_op_DeleteFleet.go
+++ b/service/worklink/api_op_DeleteFleet.go
@@ -44,7 +44,7 @@ func (s *DeleteFleetInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteFleetInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_DescribeAuditStreamConfiguration.go b/service/worklink/api_op_DescribeAuditStreamConfiguration.go
index a6af315dbe5..22eefc9a8fd 100644
--- a/service/worklink/api_op_DescribeAuditStreamConfiguration.go
+++ b/service/worklink/api_op_DescribeAuditStreamConfiguration.go
@@ -44,7 +44,7 @@ func (s *DescribeAuditStreamConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeAuditStreamConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_DescribeCompanyNetworkConfiguration.go b/service/worklink/api_op_DescribeCompanyNetworkConfiguration.go
index 1dd50e249c1..fbe3ff58ef8 100644
--- a/service/worklink/api_op_DescribeCompanyNetworkConfiguration.go
+++ b/service/worklink/api_op_DescribeCompanyNetworkConfiguration.go
@@ -44,7 +44,7 @@ func (s *DescribeCompanyNetworkConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeCompanyNetworkConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_DescribeDevice.go b/service/worklink/api_op_DescribeDevice.go
index 4bfa1bb01c0..a915f0faee0 100644
--- a/service/worklink/api_op_DescribeDevice.go
+++ b/service/worklink/api_op_DescribeDevice.go
@@ -57,7 +57,7 @@ func (s *DescribeDeviceInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeDeviceInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceId != nil {
v := *s.DeviceId
@@ -79,10 +79,10 @@ type DescribeDeviceOutput struct {
_ struct{} `type:"structure"`
// The date that the device first signed in to Amazon WorkLink.
- FirstAccessedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ FirstAccessedTime *time.Time `type:"timestamp"`
// The date that the device last accessed Amazon WorkLink.
- LastAccessedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastAccessedTime *time.Time `type:"timestamp"`
// The manufacturer of the device.
Manufacturer *string `min:"1" type:"string"`
@@ -117,13 +117,15 @@ func (s DescribeDeviceOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.FirstAccessedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "FirstAccessedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "FirstAccessedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.LastAccessedTime != nil {
v := *s.LastAccessedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastAccessedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastAccessedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Manufacturer != nil {
v := *s.Manufacturer
diff --git a/service/worklink/api_op_DescribeDevicePolicyConfiguration.go b/service/worklink/api_op_DescribeDevicePolicyConfiguration.go
index 68b915ce125..8d71c35e8b2 100644
--- a/service/worklink/api_op_DescribeDevicePolicyConfiguration.go
+++ b/service/worklink/api_op_DescribeDevicePolicyConfiguration.go
@@ -44,7 +44,7 @@ func (s *DescribeDevicePolicyConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeDevicePolicyConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_DescribeDomain.go b/service/worklink/api_op_DescribeDomain.go
index 0aa8a62f360..8de46c6e5c0 100644
--- a/service/worklink/api_op_DescribeDomain.go
+++ b/service/worklink/api_op_DescribeDomain.go
@@ -57,7 +57,7 @@ func (s *DescribeDomainInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeDomainInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
@@ -82,7 +82,7 @@ type DescribeDomainOutput struct {
AcmCertificateArn *string `type:"string"`
// The time that the domain was added.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The name to display.
DisplayName *string `type:"string"`
@@ -111,7 +111,8 @@ func (s DescribeDomainOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DisplayName != nil {
v := *s.DisplayName
diff --git a/service/worklink/api_op_DescribeFleetMetadata.go b/service/worklink/api_op_DescribeFleetMetadata.go
index 4564c4c5a0c..c0e0b91e146 100644
--- a/service/worklink/api_op_DescribeFleetMetadata.go
+++ b/service/worklink/api_op_DescribeFleetMetadata.go
@@ -45,7 +45,7 @@ func (s *DescribeFleetMetadataInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeFleetMetadataInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
@@ -64,7 +64,7 @@ type DescribeFleetMetadataOutput struct {
CompanyCode *string `min:"1" type:"string"`
// The time that the fleet was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The name to display.
DisplayName *string `type:"string"`
@@ -76,7 +76,7 @@ type DescribeFleetMetadataOutput struct {
FleetStatus FleetStatus `type:"string" enum:"true"`
// The time that the fleet was last updated.
- LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `type:"timestamp"`
// The option to optimize for better performance by routing traffic through
// the closest AWS Region to users, which may be outside of your home Region.
@@ -100,7 +100,8 @@ func (s DescribeFleetMetadataOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.CreatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DisplayName != nil {
v := *s.DisplayName
@@ -124,7 +125,8 @@ func (s DescribeFleetMetadataOutput) MarshalFields(e protocol.FieldEncoder) erro
v := *s.LastUpdatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastUpdatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastUpdatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.OptimizeForEndUserLocation != nil {
v := *s.OptimizeForEndUserLocation
diff --git a/service/worklink/api_op_DescribeIdentityProviderConfiguration.go b/service/worklink/api_op_DescribeIdentityProviderConfiguration.go
index 9048423f716..db4cc5ae34d 100644
--- a/service/worklink/api_op_DescribeIdentityProviderConfiguration.go
+++ b/service/worklink/api_op_DescribeIdentityProviderConfiguration.go
@@ -44,7 +44,7 @@ func (s *DescribeIdentityProviderConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeIdentityProviderConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_DescribeWebsiteCertificateAuthority.go b/service/worklink/api_op_DescribeWebsiteCertificateAuthority.go
index 946a43c855f..34f52bf0bae 100644
--- a/service/worklink/api_op_DescribeWebsiteCertificateAuthority.go
+++ b/service/worklink/api_op_DescribeWebsiteCertificateAuthority.go
@@ -57,7 +57,7 @@ func (s *DescribeWebsiteCertificateAuthorityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DescribeWebsiteCertificateAuthorityInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
@@ -82,7 +82,7 @@ type DescribeWebsiteCertificateAuthorityOutput struct {
Certificate *string `min:"1" type:"string"`
// The time that the certificate authority was added.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The certificate name to display.
DisplayName *string `type:"string"`
@@ -105,7 +105,8 @@ func (s DescribeWebsiteCertificateAuthorityOutput) MarshalFields(e protocol.Fiel
v := *s.CreatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DisplayName != nil {
v := *s.DisplayName
diff --git a/service/worklink/api_op_DisassociateDomain.go b/service/worklink/api_op_DisassociateDomain.go
index 39befe1067a..f1c47b0264d 100644
--- a/service/worklink/api_op_DisassociateDomain.go
+++ b/service/worklink/api_op_DisassociateDomain.go
@@ -56,7 +56,7 @@ func (s *DisassociateDomainInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateDomainInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/worklink/api_op_DisassociateWebsiteAuthorizationProvider.go b/service/worklink/api_op_DisassociateWebsiteAuthorizationProvider.go
index 22aea8d9d0a..64394a4d631 100644
--- a/service/worklink/api_op_DisassociateWebsiteAuthorizationProvider.go
+++ b/service/worklink/api_op_DisassociateWebsiteAuthorizationProvider.go
@@ -56,7 +56,7 @@ func (s *DisassociateWebsiteAuthorizationProviderInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateWebsiteAuthorizationProviderInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuthorizationProviderId != nil {
v := *s.AuthorizationProviderId
diff --git a/service/worklink/api_op_DisassociateWebsiteCertificateAuthority.go b/service/worklink/api_op_DisassociateWebsiteCertificateAuthority.go
index 0bc522f1280..bea2fc2b98f 100644
--- a/service/worklink/api_op_DisassociateWebsiteCertificateAuthority.go
+++ b/service/worklink/api_op_DisassociateWebsiteCertificateAuthority.go
@@ -56,7 +56,7 @@ func (s *DisassociateWebsiteCertificateAuthorityInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DisassociateWebsiteCertificateAuthorityInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_ListDevices.go b/service/worklink/api_op_ListDevices.go
index d53f31e93e2..3824afcd1d2 100644
--- a/service/worklink/api_op_ListDevices.go
+++ b/service/worklink/api_op_ListDevices.go
@@ -57,7 +57,7 @@ func (s *ListDevicesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDevicesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_ListDomains.go b/service/worklink/api_op_ListDomains.go
index b22eef98355..2081315d91c 100644
--- a/service/worklink/api_op_ListDomains.go
+++ b/service/worklink/api_op_ListDomains.go
@@ -57,7 +57,7 @@ func (s *ListDomainsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListDomainsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_ListFleets.go b/service/worklink/api_op_ListFleets.go
index 35d9bda6976..b63830b10b0 100644
--- a/service/worklink/api_op_ListFleets.go
+++ b/service/worklink/api_op_ListFleets.go
@@ -45,7 +45,7 @@ func (s *ListFleetsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListFleetsInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.MaxResults != nil {
v := *s.MaxResults
diff --git a/service/worklink/api_op_ListWebsiteAuthorizationProviders.go b/service/worklink/api_op_ListWebsiteAuthorizationProviders.go
index 6d8ad8c8c98..76d307002e1 100644
--- a/service/worklink/api_op_ListWebsiteAuthorizationProviders.go
+++ b/service/worklink/api_op_ListWebsiteAuthorizationProviders.go
@@ -57,7 +57,7 @@ func (s *ListWebsiteAuthorizationProvidersInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListWebsiteAuthorizationProvidersInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_ListWebsiteCertificateAuthorities.go b/service/worklink/api_op_ListWebsiteCertificateAuthorities.go
index b85dc751171..ba167c50070 100644
--- a/service/worklink/api_op_ListWebsiteCertificateAuthorities.go
+++ b/service/worklink/api_op_ListWebsiteCertificateAuthorities.go
@@ -57,7 +57,7 @@ func (s *ListWebsiteCertificateAuthoritiesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s ListWebsiteCertificateAuthoritiesInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_RestoreDomainAccess.go b/service/worklink/api_op_RestoreDomainAccess.go
index 171ed604fd1..2a053134b35 100644
--- a/service/worklink/api_op_RestoreDomainAccess.go
+++ b/service/worklink/api_op_RestoreDomainAccess.go
@@ -56,7 +56,7 @@ func (s *RestoreDomainAccessInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RestoreDomainAccessInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/worklink/api_op_RevokeDomainAccess.go b/service/worklink/api_op_RevokeDomainAccess.go
index 84ca3f44f43..480df86e675 100644
--- a/service/worklink/api_op_RevokeDomainAccess.go
+++ b/service/worklink/api_op_RevokeDomainAccess.go
@@ -56,7 +56,7 @@ func (s *RevokeDomainAccessInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s RevokeDomainAccessInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DomainName != nil {
v := *s.DomainName
diff --git a/service/worklink/api_op_SignOutUser.go b/service/worklink/api_op_SignOutUser.go
index f0ec6070a35..f595ad30081 100644
--- a/service/worklink/api_op_SignOutUser.go
+++ b/service/worklink/api_op_SignOutUser.go
@@ -56,7 +56,7 @@ func (s *SignOutUserInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s SignOutUserInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_UpdateAuditStreamConfiguration.go b/service/worklink/api_op_UpdateAuditStreamConfiguration.go
index c9f1b83e24c..c82b9cbd076 100644
--- a/service/worklink/api_op_UpdateAuditStreamConfiguration.go
+++ b/service/worklink/api_op_UpdateAuditStreamConfiguration.go
@@ -47,7 +47,7 @@ func (s *UpdateAuditStreamConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateAuditStreamConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.AuditStreamArn != nil {
v := *s.AuditStreamArn
diff --git a/service/worklink/api_op_UpdateCompanyNetworkConfiguration.go b/service/worklink/api_op_UpdateCompanyNetworkConfiguration.go
index 848faa1fd91..368d2981420 100644
--- a/service/worklink/api_op_UpdateCompanyNetworkConfiguration.go
+++ b/service/worklink/api_op_UpdateCompanyNetworkConfiguration.go
@@ -71,7 +71,7 @@ func (s *UpdateCompanyNetworkConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateCompanyNetworkConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_op_UpdateDevicePolicyConfiguration.go b/service/worklink/api_op_UpdateDevicePolicyConfiguration.go
index 92cb5c3e4be..7af555b800a 100644
--- a/service/worklink/api_op_UpdateDevicePolicyConfiguration.go
+++ b/service/worklink/api_op_UpdateDevicePolicyConfiguration.go
@@ -51,7 +51,7 @@ func (s *UpdateDevicePolicyConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDevicePolicyConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DeviceCaCertificate != nil {
v := *s.DeviceCaCertificate
diff --git a/service/worklink/api_op_UpdateDomainMetadata.go b/service/worklink/api_op_UpdateDomainMetadata.go
index f19908027dd..8cd63605a7f 100644
--- a/service/worklink/api_op_UpdateDomainMetadata.go
+++ b/service/worklink/api_op_UpdateDomainMetadata.go
@@ -59,7 +59,7 @@ func (s *UpdateDomainMetadataInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateDomainMetadataInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DisplayName != nil {
v := *s.DisplayName
diff --git a/service/worklink/api_op_UpdateFleetMetadata.go b/service/worklink/api_op_UpdateFleetMetadata.go
index 829b0e631b4..83ba88ebafa 100644
--- a/service/worklink/api_op_UpdateFleetMetadata.go
+++ b/service/worklink/api_op_UpdateFleetMetadata.go
@@ -51,7 +51,7 @@ func (s *UpdateFleetMetadataInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateFleetMetadataInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.DisplayName != nil {
v := *s.DisplayName
diff --git a/service/worklink/api_op_UpdateIdentityProviderConfiguration.go b/service/worklink/api_op_UpdateIdentityProviderConfiguration.go
index b5d5481eaee..378ab97f7a9 100644
--- a/service/worklink/api_op_UpdateIdentityProviderConfiguration.go
+++ b/service/worklink/api_op_UpdateIdentityProviderConfiguration.go
@@ -59,7 +59,7 @@ func (s *UpdateIdentityProviderConfigurationInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateIdentityProviderConfigurationInput) MarshalFields(e protocol.FieldEncoder) error {
- e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/x-amz-json-1.1"), protocol.Metadata{})
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FleetArn != nil {
v := *s.FleetArn
diff --git a/service/worklink/api_types.go b/service/worklink/api_types.go
index 5cf191a8a2c..f1d09f099fd 100644
--- a/service/worklink/api_types.go
+++ b/service/worklink/api_types.go
@@ -55,7 +55,7 @@ type DomainSummary struct {
// The time that the domain was created.
//
// CreatedTime is a required field
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ CreatedTime *time.Time `type:"timestamp" required:"true"`
// The name to display.
DisplayName *string `type:"string"`
@@ -82,7 +82,8 @@ func (s DomainSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DisplayName != nil {
v := *s.DisplayName
@@ -114,7 +115,7 @@ type FleetSummary struct {
CompanyCode *string `min:"1" type:"string"`
// The time when the fleet was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The name to display.
DisplayName *string `type:"string"`
@@ -129,7 +130,7 @@ type FleetSummary struct {
FleetStatus FleetStatus `type:"string" enum:"true"`
// The time when the fleet was last updated.
- LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastUpdatedTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -149,7 +150,8 @@ func (s FleetSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DisplayName != nil {
v := *s.DisplayName
@@ -179,7 +181,8 @@ func (s FleetSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastUpdatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastUpdatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastUpdatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -198,7 +201,7 @@ type WebsiteAuthorizationProviderSummary struct {
AuthorizationProviderType AuthorizationProviderType `type:"string" required:"true" enum:"true"`
// The time of creation.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The domain name of the authorization provider. This applies only to SAML-based
// authorization providers.
@@ -228,7 +231,8 @@ func (s WebsiteAuthorizationProviderSummary) MarshalFields(e protocol.FieldEncod
v := *s.CreatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DomainName != nil {
v := *s.DomainName
@@ -245,7 +249,7 @@ type WebsiteCaSummary struct {
_ struct{} `type:"structure"`
// The time when the CA was added.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedTime *time.Time `type:"timestamp"`
// The name to display.
DisplayName *string `type:"string"`
@@ -265,7 +269,8 @@ func (s WebsiteCaSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.DisplayName != nil {
v := *s.DisplayName
diff --git a/service/workmail/api_op_DescribeGroup.go b/service/workmail/api_op_DescribeGroup.go
index 007d07842b4..37805ae8d42 100644
--- a/service/workmail/api_op_DescribeGroup.go
+++ b/service/workmail/api_op_DescribeGroup.go
@@ -57,14 +57,14 @@ type DescribeGroupOutput struct {
// The date and time when a user was deregistered from WorkMail, in UNIX epoch
// time format.
- DisabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DisabledDate *time.Time `type:"timestamp"`
// The email of the described group.
Email *string `min:"1" type:"string"`
// The date and time when a user was registered to WorkMail, in UNIX epoch time
// format.
- EnabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EnabledDate *time.Time `type:"timestamp"`
// The identifier of the described group.
GroupId *string `min:"12" type:"string"`
diff --git a/service/workmail/api_op_DescribeOrganization.go b/service/workmail/api_op_DescribeOrganization.go
index 16d136e09bb..9de38a40e2c 100644
--- a/service/workmail/api_op_DescribeOrganization.go
+++ b/service/workmail/api_op_DescribeOrganization.go
@@ -48,7 +48,7 @@ type DescribeOrganizationOutput struct {
// The date at which the organization became usable in the WorkMail context,
// in UNIX epoch time format.
- CompletedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CompletedDate *time.Time `type:"timestamp"`
// The default mail domain associated with the organization.
DefaultMailDomain *string `type:"string"`
diff --git a/service/workmail/api_op_DescribeResource.go b/service/workmail/api_op_DescribeResource.go
index 4fac83ebbd1..d6dbea8b34b 100644
--- a/service/workmail/api_op_DescribeResource.go
+++ b/service/workmail/api_op_DescribeResource.go
@@ -58,14 +58,14 @@ type DescribeResourceOutput struct {
// The date and time when a resource was disabled from WorkMail, in UNIX epoch
// time format.
- DisabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DisabledDate *time.Time `type:"timestamp"`
// The email of the described resource.
Email *string `min:"1" type:"string"`
// The date and time when a resource was enabled for WorkMail, in UNIX epoch
// time format.
- EnabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EnabledDate *time.Time `type:"timestamp"`
// The name of the described resource.
Name *string `min:"1" type:"string"`
diff --git a/service/workmail/api_op_DescribeUser.go b/service/workmail/api_op_DescribeUser.go
index 1e3b8fa215f..7a25196fa14 100644
--- a/service/workmail/api_op_DescribeUser.go
+++ b/service/workmail/api_op_DescribeUser.go
@@ -57,7 +57,7 @@ type DescribeUserOutput struct {
// The date and time at which the user was disabled for Amazon WorkMail usage,
// in UNIX epoch time format.
- DisabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DisabledDate *time.Time `type:"timestamp"`
// The display name of the user.
DisplayName *string `type:"string"`
@@ -67,7 +67,7 @@ type DescribeUserOutput struct {
// The date and time at which the user was enabled for Amazon WorkMail usage,
// in UNIX epoch time format.
- EnabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EnabledDate *time.Time `type:"timestamp"`
// The name for the user.
Name *string `min:"1" type:"string"`
diff --git a/service/workmail/api_types.go b/service/workmail/api_types.go
index fd0ea380313..9f794497cbb 100644
--- a/service/workmail/api_types.go
+++ b/service/workmail/api_types.go
@@ -62,13 +62,13 @@ type Group struct {
_ struct{} `type:"structure"`
// The date indicating when the group was disabled from Amazon WorkMail use.
- DisabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DisabledDate *time.Time `type:"timestamp"`
// The email of the group.
Email *string `min:"1" type:"string"`
// The date indicating when the group was enabled for Amazon WorkMail use.
- EnabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EnabledDate *time.Time `type:"timestamp"`
// The identifier of the group.
Id *string `min:"12" type:"string"`
@@ -91,10 +91,10 @@ type Member struct {
_ struct{} `type:"structure"`
// The date indicating when the member was disabled from Amazon WorkMail use.
- DisabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DisabledDate *time.Time `type:"timestamp"`
// The date indicating when the member was enabled for Amazon WorkMail use.
- EnabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EnabledDate *time.Time `type:"timestamp"`
// The identifier of the member.
Id *string `type:"string"`
@@ -178,13 +178,13 @@ type Resource struct {
_ struct{} `type:"structure"`
// The date indicating when the resource was disabled from Amazon WorkMail use.
- DisabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DisabledDate *time.Time `type:"timestamp"`
// The email of the resource.
Email *string `min:"1" type:"string"`
// The date indicating when the resource was enabled for Amazon WorkMail use.
- EnabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EnabledDate *time.Time `type:"timestamp"`
// The identifier of the resource.
Id *string `min:"12" type:"string"`
@@ -210,7 +210,7 @@ type User struct {
_ struct{} `type:"structure"`
// The date indicating when the user was disabled from Amazon WorkMail use.
- DisabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ DisabledDate *time.Time `type:"timestamp"`
// The display name of the user.
DisplayName *string `type:"string"`
@@ -219,7 +219,7 @@ type User struct {
Email *string `min:"1" type:"string"`
// The date indicating when the user was enabled for Amazon WorkMail use.
- EnabledDate *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EnabledDate *time.Time `type:"timestamp"`
// The identifier of the user.
Id *string `min:"12" type:"string"`
diff --git a/service/workspaces/api_types.go b/service/workspaces/api_types.go
index 687b8d71552..593f1247e98 100644
--- a/service/workspaces/api_types.go
+++ b/service/workspaces/api_types.go
@@ -37,7 +37,7 @@ type AccountModification struct {
ModificationState DedicatedTenancyModificationStateEnum `type:"string" enum:"true"`
// The timestamp when the modification of the BYOL configuration was started.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -493,10 +493,10 @@ type WorkspaceConnectionStatus struct {
ConnectionState ConnectionState `type:"string" enum:"true"`
// The timestamp of the connection status check.
- ConnectionStateCheckTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ConnectionStateCheckTimestamp *time.Time `type:"timestamp"`
// The timestamp of the last known user connection.
- LastKnownUserConnectionTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastKnownUserConnectionTimestamp *time.Time `type:"timestamp"`
// The identifier of the WorkSpace.
WorkspaceId *string `type:"string"`
diff --git a/service/xray/api_op_BatchGetTraces.go b/service/xray/api_op_BatchGetTraces.go
index 984b62b8ac9..4ded766bc15 100644
--- a/service/xray/api_op_BatchGetTraces.go
+++ b/service/xray/api_op_BatchGetTraces.go
@@ -44,6 +44,7 @@ func (s *BatchGetTracesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BatchGetTracesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/xray/api_op_CreateGroup.go b/service/xray/api_op_CreateGroup.go
index 6955568e208..c64adba5d5f 100644
--- a/service/xray/api_op_CreateGroup.go
+++ b/service/xray/api_op_CreateGroup.go
@@ -48,6 +48,7 @@ func (s *CreateGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FilterExpression != nil {
v := *s.FilterExpression
diff --git a/service/xray/api_op_CreateSamplingRule.go b/service/xray/api_op_CreateSamplingRule.go
index fce916c3c66..7a214872caf 100644
--- a/service/xray/api_op_CreateSamplingRule.go
+++ b/service/xray/api_op_CreateSamplingRule.go
@@ -46,6 +46,7 @@ func (s *CreateSamplingRuleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CreateSamplingRuleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SamplingRule != nil {
v := s.SamplingRule
diff --git a/service/xray/api_op_DeleteGroup.go b/service/xray/api_op_DeleteGroup.go
index c151fda87b4..a7374bd0917 100644
--- a/service/xray/api_op_DeleteGroup.go
+++ b/service/xray/api_op_DeleteGroup.go
@@ -44,6 +44,7 @@ func (s *DeleteGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupARN != nil {
v := *s.GroupARN
diff --git a/service/xray/api_op_DeleteSamplingRule.go b/service/xray/api_op_DeleteSamplingRule.go
index c9ffd8dee20..1b0b0139903 100644
--- a/service/xray/api_op_DeleteSamplingRule.go
+++ b/service/xray/api_op_DeleteSamplingRule.go
@@ -30,6 +30,7 @@ func (s DeleteSamplingRuleInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeleteSamplingRuleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.RuleARN != nil {
v := *s.RuleARN
diff --git a/service/xray/api_op_GetEncryptionConfig.go b/service/xray/api_op_GetEncryptionConfig.go
index 38f41619d6d..70b8deedd70 100644
--- a/service/xray/api_op_GetEncryptionConfig.go
+++ b/service/xray/api_op_GetEncryptionConfig.go
@@ -22,6 +22,7 @@ func (s GetEncryptionConfigInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetEncryptionConfigInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
return nil
}
diff --git a/service/xray/api_op_GetGroup.go b/service/xray/api_op_GetGroup.go
index 11289cc8615..fe0e7171fe9 100644
--- a/service/xray/api_op_GetGroup.go
+++ b/service/xray/api_op_GetGroup.go
@@ -44,6 +44,7 @@ func (s *GetGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.GroupARN != nil {
v := *s.GroupARN
diff --git a/service/xray/api_op_GetGroups.go b/service/xray/api_op_GetGroups.go
index 8a28244c763..7405cf51f11 100644
--- a/service/xray/api_op_GetGroups.go
+++ b/service/xray/api_op_GetGroups.go
@@ -38,6 +38,7 @@ func (s *GetGroupsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetGroupsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/xray/api_op_GetSamplingRules.go b/service/xray/api_op_GetSamplingRules.go
index ca4b158d7af..c65db4d77b9 100644
--- a/service/xray/api_op_GetSamplingRules.go
+++ b/service/xray/api_op_GetSamplingRules.go
@@ -25,6 +25,7 @@ func (s GetSamplingRulesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSamplingRulesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/xray/api_op_GetSamplingStatisticSummaries.go b/service/xray/api_op_GetSamplingStatisticSummaries.go
index 2957a22f2a5..150e2001cc6 100644
--- a/service/xray/api_op_GetSamplingStatisticSummaries.go
+++ b/service/xray/api_op_GetSamplingStatisticSummaries.go
@@ -25,6 +25,7 @@ func (s GetSamplingStatisticSummariesInput) String() string {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSamplingStatisticSummariesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/xray/api_op_GetSamplingTargets.go b/service/xray/api_op_GetSamplingTargets.go
index 6d6c72543e0..311cd210b40 100644
--- a/service/xray/api_op_GetSamplingTargets.go
+++ b/service/xray/api_op_GetSamplingTargets.go
@@ -50,6 +50,7 @@ func (s *GetSamplingTargetsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetSamplingTargetsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SamplingStatisticsDocuments != nil {
v := s.SamplingStatisticsDocuments
@@ -73,7 +74,7 @@ type GetSamplingTargetsOutput struct {
// The last time a user changed the sampling rule configuration. If the sampling
// rule configuration changed since the service last retrieved it, the service
// should call GetSamplingRules to get the latest version.
- LastRuleModification *time.Time `type:"timestamp" timestampFormat:"unix"`
+ LastRuleModification *time.Time `type:"timestamp"`
// Updated rules that the service should use to sample requests.
SamplingTargetDocuments []SamplingTargetDocument `type:"list"`
@@ -93,7 +94,8 @@ func (s GetSamplingTargetsOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.LastRuleModification
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "LastRuleModification", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "LastRuleModification",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SamplingTargetDocuments != nil {
v := s.SamplingTargetDocuments
diff --git a/service/xray/api_op_GetServiceGraph.go b/service/xray/api_op_GetServiceGraph.go
index 19b968b6ed5..84d9bc0b33f 100644
--- a/service/xray/api_op_GetServiceGraph.go
+++ b/service/xray/api_op_GetServiceGraph.go
@@ -18,7 +18,7 @@ type GetServiceGraphInput struct {
// The end of the timeframe for which to generate a graph.
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// The ARN of a group to generate a graph based on.
GroupARN *string `min:"1" type:"string"`
@@ -32,7 +32,7 @@ type GetServiceGraphInput struct {
// The start of the time frame for which to generate a graph.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -66,12 +66,14 @@ func (s *GetServiceGraphInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetServiceGraphInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "EndTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "EndTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.GroupARN != nil {
v := *s.GroupARN
@@ -95,7 +97,8 @@ func (s GetServiceGraphInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -110,7 +113,7 @@ type GetServiceGraphOutput struct {
ContainsOldGroupVersions *bool `type:"boolean"`
// The end of the time frame for which the graph was generated.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// Pagination token. Not used.
NextToken *string `type:"string"`
@@ -120,7 +123,7 @@ type GetServiceGraphOutput struct {
Services []Service `type:"list"`
// The start of the time frame for which the graph was generated.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -140,7 +143,8 @@ func (s GetServiceGraphOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "EndTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "EndTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.NextToken != nil {
v := *s.NextToken
@@ -164,7 +168,8 @@ func (s GetServiceGraphOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/xray/api_op_GetTimeSeriesServiceStatistics.go b/service/xray/api_op_GetTimeSeriesServiceStatistics.go
index f3a58542416..fffdf03e137 100644
--- a/service/xray/api_op_GetTimeSeriesServiceStatistics.go
+++ b/service/xray/api_op_GetTimeSeriesServiceStatistics.go
@@ -18,7 +18,7 @@ type GetTimeSeriesServiceStatisticsInput struct {
// The end of the time frame for which to aggregate statistics.
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// A filter expression defining entities that will be aggregated for statistics.
// Supports ID, service, and edge functions. If no selector expression is specified,
@@ -40,7 +40,7 @@ type GetTimeSeriesServiceStatisticsInput struct {
// The start of the time frame for which to aggregate statistics.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -77,12 +77,14 @@ func (s *GetTimeSeriesServiceStatisticsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetTimeSeriesServiceStatisticsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "EndTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "EndTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.EntitySelectorExpression != nil {
v := *s.EntitySelectorExpression
@@ -118,7 +120,8 @@ func (s GetTimeSeriesServiceStatisticsInput) MarshalFields(e protocol.FieldEncod
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
diff --git a/service/xray/api_op_GetTraceGraph.go b/service/xray/api_op_GetTraceGraph.go
index 8a1aa2dfa93..981407c730d 100644
--- a/service/xray/api_op_GetTraceGraph.go
+++ b/service/xray/api_op_GetTraceGraph.go
@@ -44,6 +44,7 @@ func (s *GetTraceGraphInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetTraceGraphInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/xray/api_op_GetTraceSummaries.go b/service/xray/api_op_GetTraceSummaries.go
index 85901177b5c..6b41aebe443 100644
--- a/service/xray/api_op_GetTraceSummaries.go
+++ b/service/xray/api_op_GetTraceSummaries.go
@@ -18,7 +18,7 @@ type GetTraceSummariesInput struct {
// The end of the time frame for which to retrieve traces.
//
// EndTime is a required field
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ EndTime *time.Time `type:"timestamp" required:"true"`
// Specify a filter expression to retrieve trace summaries for services or requests
// that meet certain requirements.
@@ -38,7 +38,7 @@ type GetTraceSummariesInput struct {
// The start of the time frame for which to retrieve traces.
//
// StartTime is a required field
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ StartTime *time.Time `type:"timestamp" required:"true"`
// A parameter to indicate whether to query trace summaries by TraceId or Event
// time.
@@ -70,12 +70,14 @@ func (s *GetTraceSummariesInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s GetTraceSummariesInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EndTime != nil {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "EndTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "EndTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.FilterExpression != nil {
v := *s.FilterExpression
@@ -105,7 +107,8 @@ func (s GetTraceSummariesInput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.TimeRangeType) > 0 {
v := s.TimeRangeType
@@ -121,7 +124,7 @@ type GetTraceSummariesOutput struct {
_ struct{} `type:"structure"`
// The start time of this page of results.
- ApproximateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ApproximateTime *time.Time `type:"timestamp"`
// If the requested time frame contained more than one page of results, you
// can use this token to retrieve the next page. The first page contains the
@@ -147,7 +150,8 @@ func (s GetTraceSummariesOutput) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ApproximateTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ApproximateTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ApproximateTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.NextToken != nil {
v := *s.NextToken
diff --git a/service/xray/api_op_PutEncryptionConfig.go b/service/xray/api_op_PutEncryptionConfig.go
index 4da956705dc..71d7fcfea8d 100644
--- a/service/xray/api_op_PutEncryptionConfig.go
+++ b/service/xray/api_op_PutEncryptionConfig.go
@@ -57,6 +57,7 @@ func (s *PutEncryptionConfigInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutEncryptionConfigInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.KeyId != nil {
v := *s.KeyId
diff --git a/service/xray/api_op_PutTelemetryRecords.go b/service/xray/api_op_PutTelemetryRecords.go
index 4624785fa6e..0ae557152c1 100644
--- a/service/xray/api_op_PutTelemetryRecords.go
+++ b/service/xray/api_op_PutTelemetryRecords.go
@@ -53,6 +53,7 @@ func (s *PutTelemetryRecordsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutTelemetryRecordsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.EC2InstanceId != nil {
v := *s.EC2InstanceId
diff --git a/service/xray/api_op_PutTraceSegments.go b/service/xray/api_op_PutTraceSegments.go
index 9ab1f7561d9..bc6dd512e7e 100644
--- a/service/xray/api_op_PutTraceSegments.go
+++ b/service/xray/api_op_PutTraceSegments.go
@@ -41,6 +41,7 @@ func (s *PutTraceSegmentsInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s PutTraceSegmentsInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.TraceSegmentDocuments != nil {
v := s.TraceSegmentDocuments
diff --git a/service/xray/api_op_UpdateGroup.go b/service/xray/api_op_UpdateGroup.go
index 5aec837ac24..a1f8c4bcf11 100644
--- a/service/xray/api_op_UpdateGroup.go
+++ b/service/xray/api_op_UpdateGroup.go
@@ -47,6 +47,7 @@ func (s *UpdateGroupInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateGroupInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.FilterExpression != nil {
v := *s.FilterExpression
diff --git a/service/xray/api_op_UpdateSamplingRule.go b/service/xray/api_op_UpdateSamplingRule.go
index de4ffbe722c..fd6e0706405 100644
--- a/service/xray/api_op_UpdateSamplingRule.go
+++ b/service/xray/api_op_UpdateSamplingRule.go
@@ -46,6 +46,7 @@ func (s *UpdateSamplingRuleInput) Validate() error {
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s UpdateSamplingRuleInput) MarshalFields(e protocol.FieldEncoder) error {
+ e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.SamplingRuleUpdate != nil {
v := s.SamplingRuleUpdate
diff --git a/service/xray/api_types.go b/service/xray/api_types.go
index aced533ff90..4ebbb0b7f3b 100644
--- a/service/xray/api_types.go
+++ b/service/xray/api_types.go
@@ -203,7 +203,7 @@ type Edge struct {
Aliases []Alias `type:"list"`
// The end time of the last segment on the edge.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// Identifier of the edge. Unique within a service map.
ReferenceId *int64 `type:"integer"`
@@ -212,7 +212,7 @@ type Edge struct {
ResponseTimeHistogram []HistogramEntry `type:"list"`
// The start time of the first segment on the edge.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// Response statistics for segments on the edge.
SummaryStatistics *EdgeStatistics `type:"structure"`
@@ -241,7 +241,8 @@ func (s Edge) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "EndTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "EndTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ReferenceId != nil {
v := *s.ReferenceId
@@ -265,7 +266,8 @@ func (s Edge) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SummaryStatistics != nil {
v := s.SummaryStatistics
@@ -1444,10 +1446,10 @@ type SamplingRuleRecord struct {
_ struct{} `type:"structure"`
// When the rule was created.
- CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ CreatedAt *time.Time `type:"timestamp"`
// When the rule was last modified.
- ModifiedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ModifiedAt *time.Time `type:"timestamp"`
// The sampling rule.
SamplingRule *SamplingRule `type:"structure"`
@@ -1464,13 +1466,15 @@ func (s SamplingRuleRecord) MarshalFields(e protocol.FieldEncoder) error {
v := *s.CreatedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "CreatedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "CreatedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ModifiedAt != nil {
v := *s.ModifiedAt
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ModifiedAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ModifiedAt",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.SamplingRule != nil {
v := s.SamplingRule
@@ -1648,7 +1652,7 @@ type SamplingStatisticSummary struct {
SampledCount *int64 `type:"integer"`
// The start time of the reporting window.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -1686,7 +1690,8 @@ func (s SamplingStatisticSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Timestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Timestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "Timestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -1724,7 +1729,7 @@ type SamplingStatisticsDocument struct {
// The current time.
//
// Timestamp is a required field
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ Timestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -1804,7 +1809,8 @@ func (s SamplingStatisticsDocument) MarshalFields(e protocol.FieldEncoder) error
v := *s.Timestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Timestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "Timestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -1862,7 +1868,7 @@ type SamplingTargetDocument struct {
ReservoirQuota *int64 `type:"integer"`
// When the reservoir quota expires.
- ReservoirQuotaTTL *time.Time `type:"timestamp" timestampFormat:"unix"`
+ ReservoirQuotaTTL *time.Time `type:"timestamp"`
// The name of the sampling rule.
RuleName *string `type:"string"`
@@ -1897,7 +1903,8 @@ func (s SamplingTargetDocument) MarshalFields(e protocol.FieldEncoder) error {
v := *s.ReservoirQuotaTTL
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "ReservoirQuotaTTL", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "ReservoirQuotaTTL",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.RuleName != nil {
v := *s.RuleName
@@ -1965,7 +1972,7 @@ type Service struct {
Edges []Edge `type:"list"`
// The end time of the last segment that the service generated.
- EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ EndTime *time.Time `type:"timestamp"`
// The canonical name of the service.
Name *string `type:"string"`
@@ -1983,7 +1990,7 @@ type Service struct {
Root *bool `type:"boolean"`
// The start time of the first segment that the service generated.
- StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ StartTime *time.Time `type:"timestamp"`
// The service's state.
State *string `type:"string"`
@@ -2048,7 +2055,8 @@ func (s Service) MarshalFields(e protocol.FieldEncoder) error {
v := *s.EndTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "EndTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "EndTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.Name != nil {
v := *s.Name
@@ -2096,7 +2104,8 @@ func (s Service) MarshalFields(e protocol.FieldEncoder) error {
v := *s.StartTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "StartTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "StartTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.State != nil {
v := *s.State
@@ -2248,7 +2257,7 @@ type TelemetryRecord struct {
SegmentsSpilloverCount *int64 `type:"integer"`
// Timestamp is a required field
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
+ Timestamp *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -2306,7 +2315,8 @@ func (s TelemetryRecord) MarshalFields(e protocol.FieldEncoder) error {
v := *s.Timestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Timestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "Timestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -2326,7 +2336,7 @@ type TimeSeriesServiceStatistics struct {
ServiceSummaryStatistics *ServiceStatistics `type:"structure"`
// Timestamp of the window for which statistics are aggregated.
- Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
+ Timestamp *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -2364,7 +2374,8 @@ func (s TimeSeriesServiceStatistics) MarshalFields(e protocol.FieldEncoder) erro
v := *s.Timestamp
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "Timestamp", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "Timestamp",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
return nil
}
@@ -2468,7 +2479,7 @@ type TraceSummary struct {
IsPartial *bool `type:"boolean"`
// The matched time stamp of a defined event.
- MatchedEventTime *time.Time `type:"timestamp" timestampFormat:"unix"`
+ MatchedEventTime *time.Time `type:"timestamp"`
// A list of resource ARNs for any resource corresponding to the trace segments.
ResourceARNs []ResourceARNDetail `type:"list"`
@@ -2617,7 +2628,8 @@ func (s TraceSummary) MarshalFields(e protocol.FieldEncoder) error {
v := *s.MatchedEventTime
metadata := protocol.Metadata{}
- e.SetValue(protocol.BodyTarget, "MatchedEventTime", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
+ e.SetValue(protocol.BodyTarget, "MatchedEventTime",
+ protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ResourceARNs != nil {
v := s.ResourceARNs