Skip to content

Commit

Permalink
private/model/api: adding timestampFormat (#2066)
Browse files Browse the repository at this point in the history
* adding support for timestampFormat

* regenerating services

* Adding enums back

* fixing gofmt
xibz authored Jul 20, 2018
1 parent 1825bc1 commit bb991cd
Showing 164 changed files with 3,651 additions and 3,720 deletions.
4 changes: 2 additions & 2 deletions aws/corehandlers/param_validator_test.go
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@ package corehandlers_test

import (
"fmt"
"testing"
"reflect"
"testing"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
@@ -256,7 +256,7 @@ func TestValidateFieldMinParameter(t *testing.T) {
req := testSvc.NewRequest(&request.Operation{}, &c.in, nil)
corehandlers.ValidateParametersHandler.Fn(req)

if e, a := c.err, req.Error; !reflect.DeepEqual(e,a) {
if e, a := c.err, req.Error; !reflect.DeepEqual(e, a) {
t.Errorf("%d, expect %v, got %v", i, e, a)
}
}
24 changes: 12 additions & 12 deletions aws/request/request_pagination_test.go
Original file line number Diff line number Diff line change
@@ -474,33 +474,33 @@ func TestPagination_Standalone(t *testing.T) {
cases := []testCaseList{
{
Cases: []testCase{
testCase{aws.String("FirstValue"), aws.String("InitalToken"), aws.String("FirstToken")},
testCase{aws.String("SecondValue"), aws.String("FirstToken"), aws.String("SecondToken")},
testCase{aws.String("ThirdValue"), aws.String("SecondToken"), nil},
{aws.String("FirstValue"), aws.String("InitalToken"), aws.String("FirstToken")},
{aws.String("SecondValue"), aws.String("FirstToken"), aws.String("SecondToken")},
{aws.String("ThirdValue"), aws.String("SecondToken"), nil},
},
StopOnSameToken: false,
},
{
Cases: []testCase{
testCase{aws.String("FirstValue"), aws.String("InitalToken"), aws.String("FirstToken")},
testCase{aws.String("SecondValue"), aws.String("FirstToken"), aws.String("SecondToken")},
testCase{aws.String("ThirdValue"), aws.String("SecondToken"), aws.String("")},
{aws.String("FirstValue"), aws.String("InitalToken"), aws.String("FirstToken")},
{aws.String("SecondValue"), aws.String("FirstToken"), aws.String("SecondToken")},
{aws.String("ThirdValue"), aws.String("SecondToken"), aws.String("")},
},
StopOnSameToken: false,
},
{
Cases: []testCase{
testCase{aws.String("FirstValue"), aws.String("InitalToken"), aws.String("FirstToken")},
testCase{aws.String("SecondValue"), aws.String("FirstToken"), aws.String("SecondToken")},
testCase{nil, aws.String("SecondToken"), aws.String("SecondToken")},
{aws.String("FirstValue"), aws.String("InitalToken"), aws.String("FirstToken")},
{aws.String("SecondValue"), aws.String("FirstToken"), aws.String("SecondToken")},
{nil, aws.String("SecondToken"), aws.String("SecondToken")},
},
StopOnSameToken: true,
},
{
Cases: []testCase{
testCase{aws.String("FirstValue"), aws.String("InitalToken"), aws.String("FirstToken")},
testCase{aws.String("SecondValue"), aws.String("FirstToken"), aws.String("SecondToken")},
testCase{aws.String("SecondValue"), aws.String("SecondToken"), aws.String("SecondToken")},
{aws.String("FirstValue"), aws.String("InitalToken"), aws.String("FirstToken")},
{aws.String("SecondValue"), aws.String("FirstToken"), aws.String("SecondToken")},
{aws.String("SecondValue"), aws.String("SecondToken"), aws.String("SecondToken")},
},
StopOnSameToken: true,
},
2 changes: 1 addition & 1 deletion aws/request/request_test.go
Original file line number Diff line number Diff line change
@@ -714,7 +714,7 @@ func (d *testRetryer) ShouldRetry(r *request.Request) bool {

func TestEnforceShouldRetryCheck(t *testing.T) {
tp := &http.Transport{
Proxy: http.ProxyFromEnvironment,
Proxy: http.ProxyFromEnvironment,
ResponseHeaderTimeout: 1 * time.Millisecond,
}

38 changes: 19 additions & 19 deletions aws/signer/v4/v4.go
Original file line number Diff line number Diff line change
@@ -98,25 +98,25 @@ var ignoredHeaders = rules{
var requiredSignedHeaders = rules{
whitelist{
mapRule{
"Cache-Control": struct{}{},
"Content-Disposition": struct{}{},
"Content-Encoding": struct{}{},
"Content-Language": struct{}{},
"Content-Md5": struct{}{},
"Content-Type": struct{}{},
"Expires": struct{}{},
"If-Match": struct{}{},
"If-Modified-Since": struct{}{},
"If-None-Match": struct{}{},
"If-Unmodified-Since": struct{}{},
"Range": struct{}{},
"X-Amz-Acl": struct{}{},
"X-Amz-Copy-Source": struct{}{},
"X-Amz-Copy-Source-If-Match": struct{}{},
"X-Amz-Copy-Source-If-Modified-Since": struct{}{},
"X-Amz-Copy-Source-If-None-Match": struct{}{},
"X-Amz-Copy-Source-If-Unmodified-Since": struct{}{},
"X-Amz-Copy-Source-Range": struct{}{},
"Cache-Control": struct{}{},
"Content-Disposition": struct{}{},
"Content-Encoding": struct{}{},
"Content-Language": struct{}{},
"Content-Md5": struct{}{},
"Content-Type": struct{}{},
"Expires": struct{}{},
"If-Match": struct{}{},
"If-Modified-Since": struct{}{},
"If-None-Match": struct{}{},
"If-Unmodified-Since": struct{}{},
"Range": struct{}{},
"X-Amz-Acl": struct{}{},
"X-Amz-Copy-Source": struct{}{},
"X-Amz-Copy-Source-If-Match": struct{}{},
"X-Amz-Copy-Source-If-Modified-Since": struct{}{},
"X-Amz-Copy-Source-If-None-Match": struct{}{},
"X-Amz-Copy-Source-If-Unmodified-Since": struct{}{},
"X-Amz-Copy-Source-Range": struct{}{},
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm": struct{}{},
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key": struct{}{},
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5": struct{}{},
160 changes: 80 additions & 80 deletions awsmigrate/awsmigrate-renamer/rename/renames.go
Original file line number Diff line number Diff line change
@@ -294,15 +294,15 @@ var renamedPackages = map[string]*packageRenames{
"ActionTypeID": "ActionTypeId",
},
fields: map[string]string{
"AccessKeyID": "AccessKeyId",
"AccountID": "AccountId",
"ActionTypeID": "ActionTypeId",
"ClientID": "ClientId",
"EntityURL": "EntityUrl",
"EntityURLTemplate": "EntityUrlTemplate",
"ExecutionURLTemplate": "ExecutionUrlTemplate",
"ExternalExecutionID": "ExternalExecutionId",
"ExternalExecutionURL": "ExternalExecutionUrl",
"AccessKeyID": "AccessKeyId",
"AccountID": "AccountId",
"ActionTypeID": "ActionTypeId",
"ClientID": "ClientId",
"EntityURL": "EntityUrl",
"EntityURLTemplate": "EntityUrlTemplate",
"ExecutionURLTemplate": "ExecutionUrlTemplate",
"ExternalExecutionID": "ExternalExecutionId",
"ExternalExecutionURL": "ExternalExecutionUrl",
"ID": "Id",
"JobID": "JobId",
"PipelineExecutionID": "PipelineExecutionId",
@@ -321,19 +321,19 @@ var renamedPackages = map[string]*packageRenames{
},
"github.com/aws/aws-sdk-go/service/cognitoidentity": {
operations: map[string]string{
"GetID": "GetId",
"GetIDPages": "GetIdPages",
"GetIDRequest": "GetIdRequest",
"GetOpenIDToken": "GetOpenIdToken",
"GetOpenIDTokenForDeveloperIdentity": "GetOpenIdTokenForDeveloperIdentity",
"GetID": "GetId",
"GetIDPages": "GetIdPages",
"GetIDRequest": "GetIdRequest",
"GetOpenIDToken": "GetOpenIdToken",
"GetOpenIDTokenForDeveloperIdentity": "GetOpenIdTokenForDeveloperIdentity",
"GetOpenIDTokenForDeveloperIdentityPages": "GetOpenIdTokenForDeveloperIdentityPages",
"GetOpenIDTokenForDeveloperIdentityRequest": "GetOpenIdTokenForDeveloperIdentityRequest",
"GetOpenIDTokenPages": "GetOpenIdTokenPages",
"GetOpenIDTokenRequest": "GetOpenIdTokenRequest",
},
shapes: map[string]string{
"GetIDInput": "GetIdInput",
"GetIDOutput": "GetIdOutput",
"GetIDInput": "GetIdInput",
"GetIDOutput": "GetIdOutput",
"GetOpenIDTokenForDeveloperIdentityInput": "GetOpenIdTokenForDeveloperIdentityInput",
"GetOpenIDTokenForDeveloperIdentityOutput": "GetOpenIdTokenForDeveloperIdentityOutput",
"GetOpenIDTokenInput": "GetOpenIdTokenInput",
@@ -352,11 +352,11 @@ var renamedPackages = map[string]*packageRenames{
},
"github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface": {
operations: map[string]string{
"GetID": "GetId",
"GetIDPages": "GetIdPages",
"GetIDRequest": "GetIdRequest",
"GetOpenIDToken": "GetOpenIdToken",
"GetOpenIDTokenForDeveloperIdentity": "GetOpenIdTokenForDeveloperIdentity",
"GetID": "GetId",
"GetIDPages": "GetIdPages",
"GetIDRequest": "GetIdRequest",
"GetOpenIDToken": "GetOpenIdToken",
"GetOpenIDTokenForDeveloperIdentity": "GetOpenIdTokenForDeveloperIdentity",
"GetOpenIDTokenForDeveloperIdentityPages": "GetOpenIdTokenForDeveloperIdentityPages",
"GetOpenIDTokenForDeveloperIdentityRequest": "GetOpenIdTokenForDeveloperIdentityRequest",
"GetOpenIDTokenPages": "GetOpenIdTokenPages",
@@ -812,36 +812,36 @@ var renamedPackages = map[string]*packageRenames{
"VPNStaticRoute": "VpnStaticRoute",
},
fields: map[string]string{
"AMILaunchIndex": "AmiLaunchIndex",
"ARN": "Arn",
"AWSAccessKeyID": "AWSAccessKeyId",
"AccepterVPCInfo": "AccepterVpcInfo",
"AddRouteTableIDs": "AddRouteTableIds",
"AllocationID": "AllocationId",
"AllocationIDs": "AllocationIds",
"AssociatePublicIPAddress": "AssociatePublicIpAddress",
"AssociationID": "AssociationId",
"AttachmentID": "AttachmentId",
"AvailableIPAddressCount": "AvailableIpAddressCount",
"BGPASN": "BgpAsn",
"BundleID": "BundleId",
"BundleIDs": "BundleIds",
"CIDRBlock": "CidrBlock",
"CIDRIP": "CidrIp",
"CIDRs": "Cidrs",
"ConversionTaskID": "ConversionTaskId",
"ConversionTaskIDs": "ConversionTaskIds",
"CustomerGatewayID": "CustomerGatewayId",
"CustomerGatewayIDs": "CustomerGatewayIds",
"DHCPConfigurations": "DhcpConfigurations",
"DHCPOptions": "DhcpOptions",
"DHCPOptionsID": "DhcpOptionsId",
"DHCPOptionsIDs": "DhcpOptionsIds",
"DefaultForAZ": "DefaultForAz",
"DeliverLogsPermissionARN": "DeliverLogsPermissionArn",
"DestinationCIDRBlock": "DestinationCidrBlock",
"DestinationPrefixListID": "DestinationPrefixListId",
"DisableAPITermination": "DisableApiTermination",
"AMILaunchIndex": "AmiLaunchIndex",
"ARN": "Arn",
"AWSAccessKeyID": "AWSAccessKeyId",
"AccepterVPCInfo": "AccepterVpcInfo",
"AddRouteTableIDs": "AddRouteTableIds",
"AllocationID": "AllocationId",
"AllocationIDs": "AllocationIds",
"AssociatePublicIPAddress": "AssociatePublicIpAddress",
"AssociationID": "AssociationId",
"AttachmentID": "AttachmentId",
"AvailableIPAddressCount": "AvailableIpAddressCount",
"BGPASN": "BgpAsn",
"BundleID": "BundleId",
"BundleIDs": "BundleIds",
"CIDRBlock": "CidrBlock",
"CIDRIP": "CidrIp",
"CIDRs": "Cidrs",
"ConversionTaskID": "ConversionTaskId",
"ConversionTaskIDs": "ConversionTaskIds",
"CustomerGatewayID": "CustomerGatewayId",
"CustomerGatewayIDs": "CustomerGatewayIds",
"DHCPConfigurations": "DhcpConfigurations",
"DHCPOptions": "DhcpOptions",
"DHCPOptionsID": "DhcpOptionsId",
"DHCPOptionsIDs": "DhcpOptionsIds",
"DefaultForAZ": "DefaultForAz",
"DeliverLogsPermissionARN": "DeliverLogsPermissionArn",
"DestinationCIDRBlock": "DestinationCidrBlock",
"DestinationPrefixListID": "DestinationPrefixListId",
"DisableAPITermination": "DisableApiTermination",
"EBS": "Ebs",
"EBSOptimized": "EbsOptimized",
"EnableDNSHostnames": "EnableDnsHostnames",
@@ -1214,9 +1214,9 @@ var renamedPackages = map[string]*packageRenames{
"PlayReadyDRM": "PlayReadyDrm",
},
fields: map[string]string{
"ARN": "Arn",
"AWSKMSKeyARN": "AwsKmsKeyArn",
"HLSContentProtection": "HlsContentProtection",
"ARN": "Arn",
"AWSKMSKeyARN": "AwsKmsKeyArn",
"HLSContentProtection": "HlsContentProtection",
"ID": "Id",
"KeyID": "KeyId",
"KeyMD5": "KeyMd5",
@@ -1324,9 +1324,9 @@ var renamedPackages = map[string]*packageRenames{
"SAMLProviderARN": "SAMLProviderArn",
"SSHPublicKeyID": "SSHPublicKeyId",
"ServerCertificateID": "ServerCertificateId",
"URL": "Url",
"UserID": "UserId",
"VersionID": "VersionId",
"URL": "Url",
"UserID": "UserId",
"VersionID": "VersionId",
},
},
"github.com/aws/aws-sdk-go/service/iam/iamiface": {
@@ -1572,11 +1572,11 @@ var renamedPackages = map[string]*packageRenames{
"SubnetID": "SubnetId",
"SubnetIDs": "SubnetIds",
"URL": "Url",
"UseEBSOptimizedInstances": "UseEbsOptimizedInstances",
"UseOpsWorksSecurityGroups": "UseOpsworksSecurityGroups",
"VPCID": "VpcId",
"VolumeID": "VolumeId",
"VolumeIDs": "VolumeIds",
"UseEBSOptimizedInstances": "UseEbsOptimizedInstances",
"UseOpsWorksSecurityGroups": "UseOpsworksSecurityGroups",
"VPCID": "VpcId",
"VolumeID": "VolumeId",
"VolumeIDs": "VolumeIds",
},
},
"github.com/aws/aws-sdk-go/service/opsworks/opsworksiface": {
@@ -1631,24 +1631,24 @@ var renamedPackages = map[string]*packageRenames{
"DBInstancePort": "DbInstancePort",
"EC2SecurityGroupID": "EC2SecurityGroupId",
"EC2SecurityGroupOwnerID": "EC2SecurityGroupOwnerId",
"IOPS": "Iops",
"KMSKeyID": "KmsKeyId",
"OwnerID": "OwnerId",
"ReservedDBInstanceID": "ReservedDBInstanceId",
"ReservedDBInstancesOfferingID": "ReservedDBInstancesOfferingId",
"SNSTopicARN": "SnsTopicArn",
"SourceIDs": "SourceIds",
"SourceIDsList": "SourceIdsList",
"SubnetIDs": "SubnetIds",
"SupportsIOPS": "SupportsIops",
"TDECredentialARN": "TdeCredentialArn",
"TDECredentialPassword": "TdeCredentialPassword",
"VPC": "Vpc",
"VPCID": "VpcId",
"VPCSecurityGroupID": "VpcSecurityGroupId",
"VPCSecurityGroupIDs": "VpcSecurityGroupIds",
"VPCSecurityGroupMemberships": "VpcSecurityGroupMemberships",
"VPCSecurityGroups": "VpcSecurityGroups",
"IOPS": "Iops",
"KMSKeyID": "KmsKeyId",
"OwnerID": "OwnerId",
"ReservedDBInstanceID": "ReservedDBInstanceId",
"ReservedDBInstancesOfferingID": "ReservedDBInstancesOfferingId",
"SNSTopicARN": "SnsTopicArn",
"SourceIDs": "SourceIds",
"SourceIDsList": "SourceIdsList",
"SubnetIDs": "SubnetIds",
"SupportsIOPS": "SupportsIops",
"TDECredentialARN": "TdeCredentialArn",
"TDECredentialPassword": "TdeCredentialPassword",
"VPC": "Vpc",
"VPCID": "VpcId",
"VPCSecurityGroupID": "VpcSecurityGroupId",
"VPCSecurityGroupIDs": "VpcSecurityGroupIds",
"VPCSecurityGroupMemberships": "VpcSecurityGroupMemberships",
"VPCSecurityGroups": "VpcSecurityGroups",
},
},
"github.com/aws/aws-sdk-go/service/rds/rdsiface": {
2 changes: 1 addition & 1 deletion example/service/ec2/instancesbyRegion/instancesByRegion.go
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ func main() {
ec2Svc := ec2.New(sess)
params := &ec2.DescribeInstancesInput{
Filters: []*ec2.Filter{
&ec2.Filter{
{
Name: aws.String("instance-state-name"),
Values: aws.StringSlice(states),
},
Loading
Oops, something went wrong.

0 comments on commit bb991cd

Please sign in to comment.