Merge branch 'master' of https://github.com/vincer/terraform into vincer-master
This commit is contained in:
commit
f7504f7f9f
|
@ -184,208 +184,213 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/aws",
|
"ImportPath": "github.com/aws/aws-sdk-go/aws",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/endpoints",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/endpoints",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol",
|
||||||
|
"Comment": "v1.1.2",
|
||||||
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/ec2query",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/ec2query",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/jsonrpc",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/jsonrpc",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/query",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/query",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/rest",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/rest",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/restjson",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/restjson",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/restxml",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/restxml",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/signer/v4",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/signer/v4",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/private/waiter",
|
"ImportPath": "github.com/aws/aws-sdk-go/private/waiter",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/autoscaling",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/autoscaling",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/cloudformation",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/cloudformation",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/cloudtrail",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/cloudtrail",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/cloudwatch",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/cloudwatch",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/cloudwatchevents",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/cloudwatchevents",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/cloudwatchlogs",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/cloudwatchlogs",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/codecommit",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/codecommit",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/codedeploy",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/codedeploy",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/directoryservice",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/directoryservice",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/dynamodb",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/dynamodb",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/ec2",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/ec2",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/ecr",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/ecr",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/ecs",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/ecs",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/efs",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/efs",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/elasticache",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/elasticache",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/elasticsearchservice",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/elasticsearchservice",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/elb",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/elb",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/firehose",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/firehose",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/glacier",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/glacier",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/iam",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/iam",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/kinesis",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/kinesis",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/lambda",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/lambda",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/opsworks",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/opsworks",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/rds",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/rds",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/redshift",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/redshift",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/route53",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/route53",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/s3",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/s3",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/sns",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/sns",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/aws/aws-sdk-go/service/sqs",
|
"ImportPath": "github.com/aws/aws-sdk-go/service/sqs",
|
||||||
"Comment": "v1.1.0",
|
"Comment": "v1.1.2",
|
||||||
"Rev": "be2ec39e520e3c4088c0c6288055bdc8184a89ee"
|
"Rev": "8041be5461786460d86b4358305fbdf32d37cfb2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/bgentry/speakeasy",
|
"ImportPath": "github.com/bgentry/speakeasy",
|
||||||
|
|
|
@ -83,6 +83,29 @@ func resourceAwsLambdaFunction() *schema.Resource {
|
||||||
Default: 3,
|
Default: 3,
|
||||||
ForceNew: true, // TODO make this editable
|
ForceNew: true, // TODO make this editable
|
||||||
},
|
},
|
||||||
|
"vpc_config": &schema.Schema{
|
||||||
|
Type: schema.TypeList,
|
||||||
|
Optional: true,
|
||||||
|
ForceNew: true,
|
||||||
|
Elem: &schema.Resource{
|
||||||
|
Schema: map[string]*schema.Schema{
|
||||||
|
"subnet_ids": &schema.Schema{
|
||||||
|
Type: schema.TypeSet,
|
||||||
|
Required: true,
|
||||||
|
ForceNew: true,
|
||||||
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
|
Set: schema.HashString,
|
||||||
|
},
|
||||||
|
"security_group_ids": &schema.Schema{
|
||||||
|
Type: schema.TypeSet,
|
||||||
|
Required: true,
|
||||||
|
ForceNew: true,
|
||||||
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
|
Set: schema.HashString,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
"arn": &schema.Schema{
|
"arn": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -149,6 +172,31 @@ func resourceAwsLambdaFunctionCreate(d *schema.ResourceData, meta interface{}) e
|
||||||
Timeout: aws.Int64(int64(d.Get("timeout").(int))),
|
Timeout: aws.Int64(int64(d.Get("timeout").(int))),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if v, ok := d.GetOk("vpc_config"); ok {
|
||||||
|
configs := v.([]interface{})
|
||||||
|
|
||||||
|
if len(configs) > 1 {
|
||||||
|
return errors.New("Only a single vpc_config block is expected")
|
||||||
|
} else if len(configs) == 1 {
|
||||||
|
config := configs[0].(map[string]interface{})
|
||||||
|
var subnetIds []*string
|
||||||
|
for _, id := range config["subnet_ids"].(*schema.Set).List() {
|
||||||
|
subnetIds = append(subnetIds, aws.String(id.(string)))
|
||||||
|
}
|
||||||
|
|
||||||
|
var securityGroupIds []*string
|
||||||
|
for _, id := range config["security_group_ids"].(*schema.Set).List() {
|
||||||
|
securityGroupIds = append(securityGroupIds, aws.String(id.(string)))
|
||||||
|
}
|
||||||
|
|
||||||
|
var vpcConfig = &lambda.VpcConfig{
|
||||||
|
SubnetIds: subnetIds,
|
||||||
|
SecurityGroupIds: securityGroupIds,
|
||||||
|
}
|
||||||
|
params.VpcConfig = vpcConfig
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// IAM profiles can take ~10 seconds to propagate in AWS:
|
// IAM profiles can take ~10 seconds to propagate in AWS:
|
||||||
// http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html#launch-instance-with-role-console
|
// http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html#launch-instance-with-role-console
|
||||||
// Error creating Lambda function: InvalidParameterValueException: The role defined for the task cannot be assumed by Lambda.
|
// Error creating Lambda function: InvalidParameterValueException: The role defined for the task cannot be assumed by Lambda.
|
||||||
|
@ -157,10 +205,12 @@ func resourceAwsLambdaFunctionCreate(d *schema.ResourceData, meta interface{}) e
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if awserr, ok := err.(awserr.Error); ok {
|
if awserr, ok := err.(awserr.Error); ok {
|
||||||
if awserr.Code() == "InvalidParameterValueException" {
|
if awserr.Code() == "InvalidParameterValueException" {
|
||||||
|
log.Printf("[DEBUG] InvalidParameterValueException creating Lambda Function: %s", awserr)
|
||||||
// Retryable
|
// Retryable
|
||||||
return awserr
|
return awserr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.Printf("[DEBUG] Error creating Lambda Function: %s", err)
|
||||||
// Not retryable
|
// Not retryable
|
||||||
return resource.RetryError{Err: err}
|
return resource.RetryError{Err: err}
|
||||||
}
|
}
|
||||||
|
@ -207,6 +257,7 @@ func resourceAwsLambdaFunctionRead(d *schema.ResourceData, meta interface{}) err
|
||||||
d.Set("role", function.Role)
|
d.Set("role", function.Role)
|
||||||
d.Set("runtime", function.Runtime)
|
d.Set("runtime", function.Runtime)
|
||||||
d.Set("timeout", function.Timeout)
|
d.Set("timeout", function.Timeout)
|
||||||
|
d.Set("vpc_config", flattenLambdaVpcConfigResponse(function.VpcConfig))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,6 +97,36 @@ func testAccCheckAWSLambdaAttributes(function *lambda.GetFunctionOutput) resourc
|
||||||
}
|
}
|
||||||
|
|
||||||
const testAccAWSLambdaConfig = `
|
const testAccAWSLambdaConfig = `
|
||||||
|
resource "aws_iam_role_policy" "iam_policy_for_lambda" {
|
||||||
|
name = "iam_policy_for_lambda"
|
||||||
|
role = "${aws_iam_role.iam_for_lambda.id}"
|
||||||
|
policy = <<EOF
|
||||||
|
{
|
||||||
|
"Version": "2012-10-17",
|
||||||
|
"Statement": [
|
||||||
|
{
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Action": [
|
||||||
|
"logs:CreateLogGroup",
|
||||||
|
"logs:CreateLogStream",
|
||||||
|
"logs:PutLogEvents"
|
||||||
|
],
|
||||||
|
"Resource": "arn:aws:logs:*:*:*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Action": [
|
||||||
|
"ec2:CreateNetworkInterface"
|
||||||
|
],
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
resource "aws_iam_role" "iam_for_lambda" {
|
resource "aws_iam_role" "iam_for_lambda" {
|
||||||
name = "iam_for_lambda"
|
name = "iam_for_lambda"
|
||||||
assume_role_policy = <<EOF
|
assume_role_policy = <<EOF
|
||||||
|
@ -116,10 +146,48 @@ resource "aws_iam_role" "iam_for_lambda" {
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "aws_vpc" "vpc_for_lambda" {
|
||||||
|
cidr_block = "10.0.0.0/16"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "aws_subnet" "subnet_for_lambda" {
|
||||||
|
vpc_id = "${aws_vpc.vpc_for_lambda.id}"
|
||||||
|
cidr_block = "10.0.1.0/24"
|
||||||
|
|
||||||
|
tags {
|
||||||
|
Name = "lambda"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "aws_security_group" "sg_for_lambda" {
|
||||||
|
name = "sg_for_lambda"
|
||||||
|
description = "Allow all inbound traffic for lambda test"
|
||||||
|
vpc_id = "${aws_vpc.vpc_for_lambda.id}"
|
||||||
|
|
||||||
|
ingress {
|
||||||
|
from_port = 0
|
||||||
|
to_port = 0
|
||||||
|
protocol = "-1"
|
||||||
|
cidr_blocks = ["0.0.0.0/0"]
|
||||||
|
}
|
||||||
|
|
||||||
|
egress {
|
||||||
|
from_port = 0
|
||||||
|
to_port = 0
|
||||||
|
protocol = "-1"
|
||||||
|
cidr_blocks = ["0.0.0.0/0"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
resource "aws_lambda_function" "lambda_function_test" {
|
resource "aws_lambda_function" "lambda_function_test" {
|
||||||
filename = "test-fixtures/lambdatest.zip"
|
filename = "test-fixtures/lambdatest.zip"
|
||||||
function_name = "example_lambda_name"
|
function_name = "example_lambda_name"
|
||||||
role = "${aws_iam_role.iam_for_lambda.arn}"
|
role = "${aws_iam_role.iam_for_lambda.arn}"
|
||||||
handler = "exports.example"
|
handler = "exports.example"
|
||||||
|
|
||||||
|
vpc_config = {
|
||||||
|
subnet_ids = ["${aws_subnet.subnet_for_lambda.id}"]
|
||||||
|
security_group_ids = ["${aws_security_group.sg_for_lambda.id}"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
|
@ -15,6 +15,7 @@ import (
|
||||||
"github.com/aws/aws-sdk-go/service/elasticache"
|
"github.com/aws/aws-sdk-go/service/elasticache"
|
||||||
elasticsearch "github.com/aws/aws-sdk-go/service/elasticsearchservice"
|
elasticsearch "github.com/aws/aws-sdk-go/service/elasticsearchservice"
|
||||||
"github.com/aws/aws-sdk-go/service/elb"
|
"github.com/aws/aws-sdk-go/service/elb"
|
||||||
|
"github.com/aws/aws-sdk-go/service/lambda"
|
||||||
"github.com/aws/aws-sdk-go/service/rds"
|
"github.com/aws/aws-sdk-go/service/rds"
|
||||||
"github.com/aws/aws-sdk-go/service/redshift"
|
"github.com/aws/aws-sdk-go/service/redshift"
|
||||||
"github.com/aws/aws-sdk-go/service/route53"
|
"github.com/aws/aws-sdk-go/service/route53"
|
||||||
|
@ -680,6 +681,20 @@ func flattenDSVpcSettings(
|
||||||
return []map[string]interface{}{settings}
|
return []map[string]interface{}{settings}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func flattenLambdaVpcConfigResponse(s *lambda.VpcConfigResponse) []map[string]interface{} {
|
||||||
|
settings := make(map[string]interface{}, 0)
|
||||||
|
|
||||||
|
if s == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
settings["subnet_ids"] = schema.NewSet(schema.HashString, flattenStringList(s.SubnetIds))
|
||||||
|
settings["security_group_ids"] = schema.NewSet(schema.HashString, flattenStringList(s.SecurityGroupIds))
|
||||||
|
settings["vpc_id"] = *s.VpcId
|
||||||
|
|
||||||
|
return []map[string]interface{}{settings}
|
||||||
|
}
|
||||||
|
|
||||||
func flattenDSConnectSettings(
|
func flattenDSConnectSettings(
|
||||||
customerDnsIps []*string,
|
customerDnsIps []*string,
|
||||||
s *directoryservice.DirectoryConnectSettingsDescription) []map[string]interface{} {
|
s *directoryservice.DirectoryConnectSettingsDescription) []map[string]interface{} {
|
||||||
|
|
|
@ -14,13 +14,13 @@ package awserr
|
||||||
// if err != nil {
|
// if err != nil {
|
||||||
// if awsErr, ok := err.(awserr.Error); ok {
|
// if awsErr, ok := err.(awserr.Error); ok {
|
||||||
// // Get error details
|
// // Get error details
|
||||||
// log.Println("Error:", err.Code(), err.Message())
|
// log.Println("Error:", awsErr.Code(), awsErr.Message())
|
||||||
//
|
//
|
||||||
// // Prints out full error message, including original error if there was one.
|
// // Prints out full error message, including original error if there was one.
|
||||||
// log.Println("Error:", err.Error())
|
// log.Println("Error:", awsErr.Error())
|
||||||
//
|
//
|
||||||
// // Get original error
|
// // Get original error
|
||||||
// if origErr := err.Err(); origErr != nil {
|
// if origErr := awsErr.OrigErr(); origErr != nil {
|
||||||
// // operate on original error.
|
// // operate on original error.
|
||||||
// }
|
// }
|
||||||
// } else {
|
// } else {
|
||||||
|
@ -64,9 +64,6 @@ type BatchError interface {
|
||||||
// If origErr satisfies the Error interface it will not be wrapped within a new
|
// If origErr satisfies the Error interface it will not be wrapped within a new
|
||||||
// Error object and will instead be returned.
|
// Error object and will instead be returned.
|
||||||
func New(code, message string, origErr error) Error {
|
func New(code, message string, origErr error) Error {
|
||||||
if e, ok := origErr.(Error); ok && e != nil {
|
|
||||||
return e
|
|
||||||
}
|
|
||||||
return newBaseError(code, message, origErr)
|
return newBaseError(code, message, origErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,11 @@ type validator struct {
|
||||||
errors []string
|
errors []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// There's no validation to be done on the contents of []byte values. Prepare
|
||||||
|
// to check validateAny arguments against that type so we can quickly skip
|
||||||
|
// them.
|
||||||
|
var byteSliceType = reflect.TypeOf([]byte(nil))
|
||||||
|
|
||||||
// validateAny will validate any struct, slice or map type. All validations
|
// validateAny will validate any struct, slice or map type. All validations
|
||||||
// are also performed recursively for nested types.
|
// are also performed recursively for nested types.
|
||||||
func (v *validator) validateAny(value reflect.Value, path string) {
|
func (v *validator) validateAny(value reflect.Value, path string) {
|
||||||
|
@ -42,6 +47,10 @@ func (v *validator) validateAny(value reflect.Value, path string) {
|
||||||
case reflect.Struct:
|
case reflect.Struct:
|
||||||
v.validateStruct(value, path)
|
v.validateStruct(value, path)
|
||||||
case reflect.Slice:
|
case reflect.Slice:
|
||||||
|
if value.Type() == byteSliceType {
|
||||||
|
// We don't need to validate the contents of []byte.
|
||||||
|
return
|
||||||
|
}
|
||||||
for i := 0; i < value.Len(); i++ {
|
for i := 0; i < value.Len(); i++ {
|
||||||
v.validateAny(value.Index(i), path+fmt.Sprintf("[%d]", i))
|
v.validateAny(value.Index(i), path+fmt.Sprintf("[%d]", i))
|
||||||
}
|
}
|
||||||
|
|
8
vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go
generated
vendored
|
@ -132,7 +132,7 @@ const iamSecurityCredsPath = "/iam/security-credentials"
|
||||||
func requestCredList(client *ec2metadata.EC2Metadata) ([]string, error) {
|
func requestCredList(client *ec2metadata.EC2Metadata) ([]string, error) {
|
||||||
resp, err := client.GetMetadata(iamSecurityCredsPath)
|
resp, err := client.GetMetadata(iamSecurityCredsPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, awserr.New("EC2RoleRequestError", "failed to list EC2 Roles", err)
|
return nil, awserr.New("EC2RoleRequestError", "no EC2 instance role found", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
credsList := []string{}
|
credsList := []string{}
|
||||||
|
@ -142,7 +142,7 @@ func requestCredList(client *ec2metadata.EC2Metadata) ([]string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := s.Err(); err != nil {
|
if err := s.Err(); err != nil {
|
||||||
return nil, awserr.New("SerializationError", "failed to read list of EC2 Roles", err)
|
return nil, awserr.New("SerializationError", "failed to read EC2 instance role from metadata service", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return credsList, nil
|
return credsList, nil
|
||||||
|
@ -157,7 +157,7 @@ func requestCred(client *ec2metadata.EC2Metadata, credsName string) (ec2RoleCred
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ec2RoleCredRespBody{},
|
return ec2RoleCredRespBody{},
|
||||||
awserr.New("EC2RoleRequestError",
|
awserr.New("EC2RoleRequestError",
|
||||||
fmt.Sprintf("failed to get %s EC2 Role credentials", credsName),
|
fmt.Sprintf("failed to get %s EC2 instance role credentials", credsName),
|
||||||
err)
|
err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ func requestCred(client *ec2metadata.EC2Metadata, credsName string) (ec2RoleCred
|
||||||
if err := json.NewDecoder(strings.NewReader(resp)).Decode(&respCreds); err != nil {
|
if err := json.NewDecoder(strings.NewReader(resp)).Decode(&respCreds); err != nil {
|
||||||
return ec2RoleCredRespBody{},
|
return ec2RoleCredRespBody{},
|
||||||
awserr.New("SerializationError",
|
awserr.New("SerializationError",
|
||||||
fmt.Sprintf("failed to decode %s EC2 Role credentials", credsName),
|
fmt.Sprintf("failed to decode %s EC2 instance role credentials", credsName),
|
||||||
err)
|
err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
package ec2metadata
|
package ec2metadata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
"bytes"
|
||||||
|
"errors"
|
||||||
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -91,23 +93,28 @@ type metadataOutput struct {
|
||||||
|
|
||||||
func unmarshalHandler(r *request.Request) {
|
func unmarshalHandler(r *request.Request) {
|
||||||
defer r.HTTPResponse.Body.Close()
|
defer r.HTTPResponse.Body.Close()
|
||||||
b, err := ioutil.ReadAll(r.HTTPResponse.Body)
|
b := &bytes.Buffer{}
|
||||||
if err != nil {
|
if _, err := io.Copy(b, r.HTTPResponse.Body); err != nil {
|
||||||
r.Error = awserr.New("SerializationError", "unable to unmarshal EC2 metadata respose", err)
|
r.Error = awserr.New("SerializationError", "unable to unmarshal EC2 metadata respose", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
data := r.Data.(*metadataOutput)
|
if data, ok := r.Data.(*metadataOutput); ok {
|
||||||
data.Content = string(b)
|
data.Content = b.String()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func unmarshalError(r *request.Request) {
|
func unmarshalError(r *request.Request) {
|
||||||
defer r.HTTPResponse.Body.Close()
|
defer r.HTTPResponse.Body.Close()
|
||||||
_, err := ioutil.ReadAll(r.HTTPResponse.Body)
|
b := &bytes.Buffer{}
|
||||||
if err != nil {
|
if _, err := io.Copy(b, r.HTTPResponse.Body); err != nil {
|
||||||
r.Error = awserr.New("SerializationError", "unable to unmarshal EC2 metadata error respose", err)
|
r.Error = awserr.New("SerializationError", "unable to unmarshal EC2 metadata error respose", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO extract the error...
|
// Response body format is not consistent between metadata endpoints.
|
||||||
|
// Grab the error message as a string and include that as the source error
|
||||||
|
r.Error = awserr.New("EC2MetadataError", "failed to make EC2Metadata request", errors.New(b.String()))
|
||||||
}
|
}
|
||||||
|
|
||||||
func validateEndpointHandler(r *request.Request) {
|
func validateEndpointHandler(r *request.Request) {
|
||||||
|
|
|
@ -5,4 +5,4 @@ package aws
|
||||||
const SDKName = "aws-sdk-go"
|
const SDKName = "aws-sdk-go"
|
||||||
|
|
||||||
// SDKVersion is the version of this SDK
|
// SDKVersion is the version of this SDK
|
||||||
const SDKVersion = "1.1.0"
|
const SDKVersion = "1.1.2"
|
||||||
|
|
|
@ -11,6 +11,9 @@ import (
|
||||||
"github.com/aws/aws-sdk-go/private/protocol/query/queryutil"
|
"github.com/aws/aws-sdk-go/private/protocol/query/queryutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// BuildHandler is a named request handler for building ec2query protocol requests
|
||||||
|
var BuildHandler = request.NamedHandler{Name: "awssdk.ec2query.Build", Fn: Build}
|
||||||
|
|
||||||
// Build builds a request for the EC2 protocol.
|
// Build builds a request for the EC2 protocol.
|
||||||
func Build(r *request.Request) {
|
func Build(r *request.Request) {
|
||||||
body := url.Values{
|
body := url.Values{
|
||||||
|
|
|
@ -11,6 +11,15 @@ import (
|
||||||
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
|
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// UnmarshalHandler is a named request handler for unmarshaling ec2query protocol requests
|
||||||
|
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.ec2query.Unmarshal", Fn: Unmarshal}
|
||||||
|
|
||||||
|
// UnmarshalMetaHandler is a named request handler for unmarshaling ec2query protocol request metadata
|
||||||
|
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.ec2query.UnmarshalMeta", Fn: UnmarshalMeta}
|
||||||
|
|
||||||
|
// UnmarshalErrorHandler is a named request handler for unmarshaling ec2query protocol request errors
|
||||||
|
var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.ec2query.UnmarshalError", Fn: UnmarshalError}
|
||||||
|
|
||||||
// Unmarshal unmarshals a response body for the EC2 protocol.
|
// Unmarshal unmarshals a response body for the EC2 protocol.
|
||||||
func Unmarshal(r *request.Request) {
|
func Unmarshal(r *request.Request) {
|
||||||
defer r.HTTPResponse.Body.Close()
|
defer r.HTTPResponse.Body.Close()
|
||||||
|
|
|
@ -0,0 +1,75 @@
|
||||||
|
package protocol
|
||||||
|
|
||||||
|
import (
|
||||||
|
"crypto/rand"
|
||||||
|
"fmt"
|
||||||
|
"reflect"
|
||||||
|
)
|
||||||
|
|
||||||
|
// RandReader is the random reader the protocol package will use to read
|
||||||
|
// random bytes from. This is exported for testing, and should not be used.
|
||||||
|
var RandReader = rand.Reader
|
||||||
|
|
||||||
|
const idempotencyTokenFillTag = `idempotencyToken`
|
||||||
|
|
||||||
|
// CanSetIdempotencyToken returns true if the struct field should be
|
||||||
|
// automatically populated with a Idempotency token.
|
||||||
|
//
|
||||||
|
// Only *string and string type fields that are tagged with idempotencyToken
|
||||||
|
// which are not already set can be auto filled.
|
||||||
|
func CanSetIdempotencyToken(v reflect.Value, f reflect.StructField) bool {
|
||||||
|
switch u := v.Interface().(type) {
|
||||||
|
// To auto fill an Idempotency token the field must be a string,
|
||||||
|
// tagged for auto fill, and have a zero value.
|
||||||
|
case *string:
|
||||||
|
return u == nil && len(f.Tag.Get(idempotencyTokenFillTag)) != 0
|
||||||
|
case string:
|
||||||
|
return len(u) == 0 && len(f.Tag.Get(idempotencyTokenFillTag)) != 0
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetIdempotencyToken returns a randomly generated idempotency token.
|
||||||
|
func GetIdempotencyToken() string {
|
||||||
|
b := make([]byte, 16)
|
||||||
|
RandReader.Read(b)
|
||||||
|
|
||||||
|
return UUIDVersion4(b)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetIdempotencyToken will set the value provided with a Idempotency Token.
|
||||||
|
// Given that the value can be set. Will panic if value is not setable.
|
||||||
|
func SetIdempotencyToken(v reflect.Value) {
|
||||||
|
if v.Kind() == reflect.Ptr {
|
||||||
|
if v.IsNil() && v.CanSet() {
|
||||||
|
v.Set(reflect.New(v.Type().Elem()))
|
||||||
|
}
|
||||||
|
v = v.Elem()
|
||||||
|
}
|
||||||
|
v = reflect.Indirect(v)
|
||||||
|
|
||||||
|
if !v.CanSet() {
|
||||||
|
panic(fmt.Sprintf("unable to set idempotnecy token %v", v))
|
||||||
|
}
|
||||||
|
|
||||||
|
b := make([]byte, 16)
|
||||||
|
_, err := rand.Read(b)
|
||||||
|
if err != nil {
|
||||||
|
// TODO handle error
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
v.Set(reflect.ValueOf(UUIDVersion4(b)))
|
||||||
|
}
|
||||||
|
|
||||||
|
// UUIDVersion4 returns a Version 4 random UUID from the byte slice provided
|
||||||
|
func UUIDVersion4(u []byte) string {
|
||||||
|
// https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29
|
||||||
|
// 13th character is "4"
|
||||||
|
u[6] = (u[6] | 0x40) & 0x4F
|
||||||
|
// 17th character is "8", "9", "a", or "b"
|
||||||
|
u[8] = (u[8] | 0x80) & 0xBF
|
||||||
|
|
||||||
|
return fmt.Sprintf(`%X-%X-%X-%X-%X`, u[0:4], u[4:6], u[6:8], u[8:10], u[10:])
|
||||||
|
}
|
|
@ -9,6 +9,8 @@ import (
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
)
|
)
|
||||||
|
|
||||||
var timeType = reflect.ValueOf(time.Time{}).Type()
|
var timeType = reflect.ValueOf(time.Time{}).Type()
|
||||||
|
@ -85,11 +87,8 @@ func buildStruct(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag)
|
||||||
first := true
|
first := true
|
||||||
for i := 0; i < t.NumField(); i++ {
|
for i := 0; i < t.NumField(); i++ {
|
||||||
member := value.Field(i)
|
member := value.Field(i)
|
||||||
if (member.Kind() == reflect.Ptr || member.Kind() == reflect.Slice || member.Kind() == reflect.Map) && member.IsNil() {
|
|
||||||
continue // ignore unset fields
|
|
||||||
}
|
|
||||||
|
|
||||||
field := t.Field(i)
|
field := t.Field(i)
|
||||||
|
|
||||||
if field.PkgPath != "" {
|
if field.PkgPath != "" {
|
||||||
continue // ignore unexported fields
|
continue // ignore unexported fields
|
||||||
}
|
}
|
||||||
|
@ -100,6 +99,15 @@ func buildStruct(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag)
|
||||||
continue // ignore non-body elements
|
continue // ignore non-body elements
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if protocol.CanSetIdempotencyToken(member, field) {
|
||||||
|
token := protocol.GetIdempotencyToken()
|
||||||
|
member = reflect.ValueOf(&token)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (member.Kind() == reflect.Ptr || member.Kind() == reflect.Slice || member.Kind() == reflect.Map) && member.IsNil() {
|
||||||
|
continue // ignore unset fields
|
||||||
|
}
|
||||||
|
|
||||||
if first {
|
if first {
|
||||||
first = false
|
first = false
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -18,6 +18,18 @@ import (
|
||||||
|
|
||||||
var emptyJSON = []byte("{}")
|
var emptyJSON = []byte("{}")
|
||||||
|
|
||||||
|
// BuildHandler is a named request handler for building jsonrpc protocol requests
|
||||||
|
var BuildHandler = request.NamedHandler{Name: "awssdk.jsonrpc.Build", Fn: Build}
|
||||||
|
|
||||||
|
// UnmarshalHandler is a named request handler for unmarshaling jsonrpc protocol requests
|
||||||
|
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.jsonrpc.Unmarshal", Fn: Unmarshal}
|
||||||
|
|
||||||
|
// UnmarshalMetaHandler is a named request handler for unmarshaling jsonrpc protocol request metadata
|
||||||
|
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.jsonrpc.UnmarshalMeta", Fn: UnmarshalMeta}
|
||||||
|
|
||||||
|
// UnmarshalErrorHandler is a named request handler for unmarshaling jsonrpc protocol request errors
|
||||||
|
var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.jsonrpc.UnmarshalError", Fn: UnmarshalError}
|
||||||
|
|
||||||
// Build builds a JSON payload for a JSON RPC request.
|
// Build builds a JSON payload for a JSON RPC request.
|
||||||
func Build(req *request.Request) {
|
func Build(req *request.Request) {
|
||||||
var buf []byte
|
var buf []byte
|
||||||
|
|
|
@ -11,6 +11,9 @@ import (
|
||||||
"github.com/aws/aws-sdk-go/private/protocol/query/queryutil"
|
"github.com/aws/aws-sdk-go/private/protocol/query/queryutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// BuildHandler is a named request handler for building query protocol requests
|
||||||
|
var BuildHandler = request.NamedHandler{Name: "awssdk.query.Build", Fn: Build}
|
||||||
|
|
||||||
// Build builds a request for an AWS Query service.
|
// Build builds a request for an AWS Query service.
|
||||||
func Build(r *request.Request) {
|
func Build(r *request.Request) {
|
||||||
body := url.Values{
|
body := url.Values{
|
||||||
|
|
15
vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go
generated
vendored
15
vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go
generated
vendored
|
@ -9,6 +9,8 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Parse parses an object i and fills a url.Values object. The isEC2 flag
|
// Parse parses an object i and fills a url.Values object. The isEC2 flag
|
||||||
|
@ -68,14 +70,19 @@ func (q *queryParser) parseStruct(v url.Values, value reflect.Value, prefix stri
|
||||||
|
|
||||||
t := value.Type()
|
t := value.Type()
|
||||||
for i := 0; i < value.NumField(); i++ {
|
for i := 0; i < value.NumField(); i++ {
|
||||||
if c := t.Field(i).Name[0:1]; strings.ToLower(c) == c {
|
elemValue := elemOf(value.Field(i))
|
||||||
|
field := t.Field(i)
|
||||||
|
|
||||||
|
if field.PkgPath != "" {
|
||||||
continue // ignore unexported fields
|
continue // ignore unexported fields
|
||||||
}
|
}
|
||||||
|
|
||||||
elemValue := elemOf(value.Field(i))
|
if protocol.CanSetIdempotencyToken(value.Field(i), field) {
|
||||||
field := t.Field(i)
|
token := protocol.GetIdempotencyToken()
|
||||||
var name string
|
elemValue = reflect.ValueOf(token)
|
||||||
|
}
|
||||||
|
|
||||||
|
var name string
|
||||||
if q.isEC2 {
|
if q.isEC2 {
|
||||||
name = field.Tag.Get("queryName")
|
name = field.Tag.Get("queryName")
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,12 @@ import (
|
||||||
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
|
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// UnmarshalHandler is a named request handler for unmarshaling query protocol requests
|
||||||
|
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.query.Unmarshal", Fn: Unmarshal}
|
||||||
|
|
||||||
|
// UnmarshalMetaHandler is a named request handler for unmarshaling query protocol request metadata
|
||||||
|
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.query.UnmarshalMeta", Fn: UnmarshalMeta}
|
||||||
|
|
||||||
// Unmarshal unmarshals a response for an AWS Query service.
|
// Unmarshal unmarshals a response for an AWS Query service.
|
||||||
func Unmarshal(r *request.Request) {
|
func Unmarshal(r *request.Request) {
|
||||||
defer r.HTTPResponse.Body.Close()
|
defer r.HTTPResponse.Body.Close()
|
||||||
|
|
|
@ -15,6 +15,9 @@ type xmlErrorResponse struct {
|
||||||
RequestID string `xml:"RequestId"`
|
RequestID string `xml:"RequestId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UnmarshalErrorHandler is a name request handler to unmarshal request errors
|
||||||
|
var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.query.UnmarshalError", Fn: UnmarshalError}
|
||||||
|
|
||||||
// UnmarshalError unmarshals an error response for an AWS Query service.
|
// UnmarshalError unmarshals an error response for an AWS Query service.
|
||||||
func UnmarshalError(r *request.Request) {
|
func UnmarshalError(r *request.Request) {
|
||||||
defer r.HTTPResponse.Body.Close()
|
defer r.HTTPResponse.Body.Close()
|
||||||
|
|
|
@ -39,6 +39,9 @@ func init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BuildHandler is a named request handler for building rest protocol requests
|
||||||
|
var BuildHandler = request.NamedHandler{Name: "awssdk.rest.Build", Fn: Build}
|
||||||
|
|
||||||
// Build builds the REST component of a service request.
|
// Build builds the REST component of a service request.
|
||||||
func Build(r *request.Request) {
|
func Build(r *request.Request) {
|
||||||
if r.ParamsFilled() {
|
if r.ParamsFilled() {
|
||||||
|
|
|
@ -15,6 +15,12 @@ import (
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// UnmarshalHandler is a named request handler for unmarshaling rest protocol requests
|
||||||
|
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.rest.Unmarshal", Fn: Unmarshal}
|
||||||
|
|
||||||
|
// UnmarshalMetaHandler is a named request handler for unmarshaling rest protocol request metadata
|
||||||
|
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.rest.UnmarshalMeta", Fn: UnmarshalMeta}
|
||||||
|
|
||||||
// Unmarshal unmarshals the REST component of a response in a REST service.
|
// Unmarshal unmarshals the REST component of a response in a REST service.
|
||||||
func Unmarshal(r *request.Request) {
|
func Unmarshal(r *request.Request) {
|
||||||
if r.DataFilled() {
|
if r.DataFilled() {
|
||||||
|
|
|
@ -16,6 +16,18 @@ import (
|
||||||
"github.com/aws/aws-sdk-go/private/protocol/rest"
|
"github.com/aws/aws-sdk-go/private/protocol/rest"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// BuildHandler is a named request handler for building restjson protocol requests
|
||||||
|
var BuildHandler = request.NamedHandler{Name: "awssdk.restjson.Build", Fn: Build}
|
||||||
|
|
||||||
|
// UnmarshalHandler is a named request handler for unmarshaling restjson protocol requests
|
||||||
|
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.restjson.Unmarshal", Fn: Unmarshal}
|
||||||
|
|
||||||
|
// UnmarshalMetaHandler is a named request handler for unmarshaling restjson protocol request metadata
|
||||||
|
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.restjson.UnmarshalMeta", Fn: UnmarshalMeta}
|
||||||
|
|
||||||
|
// UnmarshalErrorHandler is a named request handler for unmarshaling restjson protocol request errors
|
||||||
|
var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.restjson.UnmarshalError", Fn: UnmarshalError}
|
||||||
|
|
||||||
// Build builds a request for the REST JSON protocol.
|
// Build builds a request for the REST JSON protocol.
|
||||||
func Build(r *request.Request) {
|
func Build(r *request.Request) {
|
||||||
rest.Build(r)
|
rest.Build(r)
|
||||||
|
|
|
@ -16,6 +16,18 @@ import (
|
||||||
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
|
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// BuildHandler is a named request handler for building restxml protocol requests
|
||||||
|
var BuildHandler = request.NamedHandler{Name: "awssdk.restxml.Build", Fn: Build}
|
||||||
|
|
||||||
|
// UnmarshalHandler is a named request handler for unmarshaling restxml protocol requests
|
||||||
|
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.restxml.Unmarshal", Fn: Unmarshal}
|
||||||
|
|
||||||
|
// UnmarshalMetaHandler is a named request handler for unmarshaling restxml protocol request metadata
|
||||||
|
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.restxml.UnmarshalMeta", Fn: UnmarshalMeta}
|
||||||
|
|
||||||
|
// UnmarshalErrorHandler is a named request handler for unmarshaling restxml protocol request errors
|
||||||
|
var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.restxml.UnmarshalError", Fn: UnmarshalError}
|
||||||
|
|
||||||
// Build builds a request payload for the REST XML protocol.
|
// Build builds a request payload for the REST XML protocol.
|
||||||
func Build(r *request.Request) {
|
func Build(r *request.Request) {
|
||||||
rest.Build(r)
|
rest.Build(r)
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
package protocol
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io"
|
||||||
|
"io/ioutil"
|
||||||
|
|
||||||
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
)
|
||||||
|
|
||||||
|
// UnmarshalDiscardBodyHandler is a named request handler to empty and close a response's body
|
||||||
|
var UnmarshalDiscardBodyHandler = request.NamedHandler{Name: "awssdk.shared.UnmarshalDiscardBody", Fn: UnmarshalDiscardBody}
|
||||||
|
|
||||||
|
// UnmarshalDiscardBody is a request handler to empty a response's body and closing it.
|
||||||
|
func UnmarshalDiscardBody(r *request.Request) {
|
||||||
|
if r.HTTPResponse == nil || r.HTTPResponse.Body == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
io.Copy(ioutil.Discard, r.HTTPResponse.Body)
|
||||||
|
r.HTTPResponse.Body.Close()
|
||||||
|
}
|
|
@ -8,8 +8,9 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
)
|
)
|
||||||
|
|
||||||
// BuildXML will serialize params into an xml.Encoder.
|
// BuildXML will serialize params into an xml.Encoder.
|
||||||
|
@ -120,18 +121,23 @@ func (b *xmlBuilder) buildStruct(value reflect.Value, current *XMLNode, tag refl
|
||||||
|
|
||||||
t := value.Type()
|
t := value.Type()
|
||||||
for i := 0; i < value.NumField(); i++ {
|
for i := 0; i < value.NumField(); i++ {
|
||||||
if c := t.Field(i).Name[0:1]; strings.ToLower(c) == c {
|
member := elemOf(value.Field(i))
|
||||||
|
field := t.Field(i)
|
||||||
|
|
||||||
|
if field.PkgPath != "" {
|
||||||
continue // ignore unexported fields
|
continue // ignore unexported fields
|
||||||
}
|
}
|
||||||
|
|
||||||
member := elemOf(value.Field(i))
|
|
||||||
field := t.Field(i)
|
|
||||||
mTag := field.Tag
|
mTag := field.Tag
|
||||||
|
|
||||||
if mTag.Get("location") != "" { // skip non-body members
|
if mTag.Get("location") != "" { // skip non-body members
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if protocol.CanSetIdempotencyToken(value.Field(i), field) {
|
||||||
|
token := protocol.GetIdempotencyToken()
|
||||||
|
member = reflect.ValueOf(token)
|
||||||
|
}
|
||||||
|
|
||||||
memberName := mTag.Get("locationName")
|
memberName := mTag.Get("locationName")
|
||||||
if memberName == "" {
|
if memberName == "" {
|
||||||
memberName = field.Name
|
memberName = field.Name
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAttachInstances = "AttachInstances"
|
const opAttachInstances = "AttachInstances"
|
||||||
|
@ -25,6 +27,8 @@ func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AttachInstancesOutput{}
|
output = &AttachInstancesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -136,6 +140,8 @@ func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGrou
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateAutoScalingGroupOutput{}
|
output = &CreateAutoScalingGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -170,6 +176,8 @@ func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateLaunchConfigurationOutput{}
|
output = &CreateLaunchConfigurationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -204,6 +212,8 @@ func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateOrUpdateTagsOutput{}
|
output = &CreateOrUpdateTagsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -244,6 +254,8 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteAutoScalingGroupOutput{}
|
output = &DeleteAutoScalingGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -286,6 +298,8 @@ func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteLaunchConfigurationOutput{}
|
output = &DeleteLaunchConfigurationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -347,6 +361,8 @@ func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotifi
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteNotificationConfigurationOutput{}
|
output = &DeleteNotificationConfigurationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -374,6 +390,8 @@ func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeletePolicyOutput{}
|
output = &DeletePolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -404,6 +422,8 @@ func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionI
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteScheduledActionOutput{}
|
output = &DeleteScheduledActionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -431,6 +451,8 @@ func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteTagsOutput{}
|
output = &DeleteTagsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1122,6 +1144,8 @@ func (c *AutoScaling) DisableMetricsCollectionRequest(input *DisableMetricsColle
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DisableMetricsCollectionOutput{}
|
output = &DisableMetricsCollectionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1150,6 +1174,8 @@ func (c *AutoScaling) EnableMetricsCollectionRequest(input *EnableMetricsCollect
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &EnableMetricsCollectionOutput{}
|
output = &EnableMetricsCollectionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1211,6 +1237,8 @@ func (c *AutoScaling) ExecutePolicyRequest(input *ExecutePolicyInput) (req *requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ExecutePolicyOutput{}
|
output = &ExecutePolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1317,6 +1345,8 @@ func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotification
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutNotificationConfigurationOutput{}
|
output = &PutNotificationConfigurationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1387,6 +1417,8 @@ func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUp
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutScheduledUpdateGroupActionOutput{}
|
output = &PutScheduledUpdateGroupActionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1461,6 +1493,8 @@ func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ResumeProcessesOutput{}
|
output = &ResumeProcessesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1492,6 +1526,8 @@ func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetDesiredCapacityOutput{}
|
output = &SetDesiredCapacityOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1522,6 +1558,8 @@ func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetInstanceHealthOutput{}
|
output = &SetInstanceHealthOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1582,6 +1620,8 @@ func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SuspendProcessesOutput{}
|
output = &SuspendProcessesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1650,6 +1690,8 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateAutoScalingGroupOutput{}
|
output = &UpdateAutoScalingGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -4308,7 +4350,7 @@ type PutScalingPolicyInput struct {
|
||||||
MinAdjustmentMagnitude *int64 `type:"integer"`
|
MinAdjustmentMagnitude *int64 `type:"integer"`
|
||||||
|
|
||||||
// Available for backward compatibility. Use MinAdjustmentMagnitude instead.
|
// Available for backward compatibility. Use MinAdjustmentMagnitude instead.
|
||||||
MinAdjustmentStep *int64 `type:"integer"`
|
MinAdjustmentStep *int64 `deprecated:"true" type:"integer"`
|
||||||
|
|
||||||
// The name of the policy.
|
// The name of the policy.
|
||||||
PolicyName *string `min:"1" type:"string" required:"true"`
|
PolicyName *string `min:"1" type:"string" required:"true"`
|
||||||
|
@ -4516,7 +4558,7 @@ type ScalingPolicy struct {
|
||||||
MinAdjustmentMagnitude *int64 `type:"integer"`
|
MinAdjustmentMagnitude *int64 `type:"integer"`
|
||||||
|
|
||||||
// Available for backward compatibility. Use MinAdjustmentMagnitude instead.
|
// Available for backward compatibility. Use MinAdjustmentMagnitude instead.
|
||||||
MinAdjustmentStep *int64 `type:"integer"`
|
MinAdjustmentStep *int64 `deprecated:"true" type:"integer"`
|
||||||
|
|
||||||
// The Amazon Resource Name (ARN) of the policy.
|
// The Amazon Resource Name (ARN) of the policy.
|
||||||
PolicyARN *string `min:"1" type:"string"`
|
PolicyARN *string `min:"1" type:"string"`
|
||||||
|
|
|
@ -61,10 +61,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(query.Build)
|
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opCancelUpdateStack = "CancelUpdateStack"
|
const opCancelUpdateStack = "CancelUpdateStack"
|
||||||
|
@ -25,6 +27,8 @@ func (c *CloudFormation) CancelUpdateStackRequest(input *CancelUpdateStackInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CancelUpdateStackOutput{}
|
output = &CancelUpdateStackOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -123,6 +127,8 @@ func (c *CloudFormation) DeleteStackRequest(input *DeleteStackInput) (req *reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteStackOutput{}
|
output = &DeleteStackOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -556,6 +562,8 @@ func (c *CloudFormation) SetStackPolicyRequest(input *SetStackPolicyInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetStackPolicyOutput{}
|
output = &SetStackPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -583,6 +591,8 @@ func (c *CloudFormation) SignalResourceRequest(input *SignalResourceInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SignalResourceOutput{}
|
output = &SignalResourceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -76,10 +76,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(query.Build)
|
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -79,10 +79,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opDeleteAlarms = "DeleteAlarms"
|
const opDeleteAlarms = "DeleteAlarms"
|
||||||
|
@ -25,6 +27,8 @@ func (c *CloudWatch) DeleteAlarmsRequest(input *DeleteAlarmsInput) (req *request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteAlarmsOutput{}
|
output = &DeleteAlarmsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -166,6 +170,8 @@ func (c *CloudWatch) DisableAlarmActionsRequest(input *DisableAlarmActionsInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DisableAlarmActionsOutput{}
|
output = &DisableAlarmActionsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -194,6 +200,8 @@ func (c *CloudWatch) EnableAlarmActionsRequest(input *EnableAlarmActionsInput) (
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &EnableAlarmActionsOutput{}
|
output = &EnableAlarmActionsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -316,6 +324,8 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutMetricAlarmOutput{}
|
output = &PutMetricAlarmOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -349,6 +359,8 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutMetricDataOutput{}
|
output = &PutMetricDataOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -389,6 +401,8 @@ func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetAlarmStateOutput{}
|
output = &SetAlarmStateOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -98,10 +98,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(query.Build)
|
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opDeleteRule = "DeleteRule"
|
const opDeleteRule = "DeleteRule"
|
||||||
|
@ -25,6 +27,8 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteRuleOutput{}
|
output = &DeleteRuleOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -84,6 +88,8 @@ func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DisableRuleOutput{}
|
output = &DisableRuleOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -116,6 +122,8 @@ func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &EnableRuleOutput{}
|
output = &EnableRuleOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -74,10 +74,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -6,6 +6,8 @@ package cloudwatchlogs
|
||||||
import (
|
import (
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opCancelExportTask = "CancelExportTask"
|
const opCancelExportTask = "CancelExportTask"
|
||||||
|
@ -23,6 +25,8 @@ func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) (
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CancelExportTaskOutput{}
|
output = &CancelExportTaskOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -87,6 +91,8 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateLogGroupOutput{}
|
output = &CreateLogGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -120,6 +126,8 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateLogStreamOutput{}
|
output = &CreateLogStreamOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -153,6 +161,8 @@ func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteDestinationOutput{}
|
output = &DeleteDestinationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -182,6 +192,8 @@ func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteLogGroupOutput{}
|
output = &DeleteLogGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -210,6 +222,8 @@ func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteLogStreamOutput{}
|
output = &DeleteLogStreamOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -238,6 +252,8 @@ func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInpu
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteMetricFilterOutput{}
|
output = &DeleteMetricFilterOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -265,6 +281,8 @@ func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPoli
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteRetentionPolicyOutput{}
|
output = &DeleteRetentionPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -293,6 +311,8 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteSubscriptionFilterOutput{}
|
output = &DeleteSubscriptionFilterOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -735,6 +755,8 @@ func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicy
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutDestinationPolicyOutput{}
|
output = &PutDestinationPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -804,6 +826,8 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutMetricFilterOutput{}
|
output = &PutMetricFilterOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -836,6 +860,8 @@ func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInpu
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutRetentionPolicyOutput{}
|
output = &PutRetentionPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -865,6 +891,8 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutSubscriptionFilterOutput{}
|
output = &PutSubscriptionFilterOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -92,10 +92,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opBatchGetRepositories = "BatchGetRepositories"
|
const opBatchGetRepositories = "BatchGetRepositories"
|
||||||
|
@ -58,6 +60,8 @@ func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateBranchOutput{}
|
output = &CreateBranchOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -262,6 +266,8 @@ func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateDefaultBranchOutput{}
|
output = &UpdateDefaultBranchOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -293,6 +299,8 @@ func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryD
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateRepositoryDescriptionOutput{}
|
output = &UpdateRepositoryDescriptionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -326,6 +334,8 @@ func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInpu
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateRepositoryNameOutput{}
|
output = &UpdateRepositoryNameOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -67,10 +67,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances"
|
const opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances"
|
||||||
|
@ -25,6 +27,8 @@ func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremi
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AddTagsToOnPremisesInstancesOutput{}
|
output = &AddTagsToOnPremisesInstancesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -241,6 +245,8 @@ func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteApplicationOutput{}
|
output = &DeleteApplicationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -268,6 +274,8 @@ func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteDeploymentConfigOutput{}
|
output = &DeleteDeploymentConfigOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -325,6 +333,8 @@ func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPrem
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeregisterOnPremisesInstanceOutput{}
|
output = &DeregisterOnPremisesInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -821,6 +831,8 @@ func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicati
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RegisterApplicationRevisionOutput{}
|
output = &RegisterApplicationRevisionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -848,6 +860,8 @@ func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremises
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RegisterOnPremisesInstanceOutput{}
|
output = &RegisterOnPremisesInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -875,6 +889,8 @@ func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsF
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RemoveTagsFromOnPremisesInstancesOutput{}
|
output = &RemoveTagsFromOnPremisesInstancesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -929,6 +945,8 @@ func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateApplicationOutput{}
|
output = &UpdateApplicationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -109,10 +109,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -63,10 +63,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
28
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter.go
generated
vendored
28
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter.go
generated
vendored
|
@ -4,6 +4,11 @@
|
||||||
// These are most useful to serialize concrete types to dynamodb.AttributeValue for
|
// These are most useful to serialize concrete types to dynamodb.AttributeValue for
|
||||||
// requests or unmarshalling the dynamodb.AttributeValue into a well known typed form.
|
// requests or unmarshalling the dynamodb.AttributeValue into a well known typed form.
|
||||||
//
|
//
|
||||||
|
// Converting []byte fields to dynamodb.AttributeValue are only currently supported
|
||||||
|
// if the input is a map[string]interface{} type. []byte within typed structs are not
|
||||||
|
// converted correctly and are converted into base64 strings. This is a known bug,
|
||||||
|
// and will be fixed in a later release.
|
||||||
|
//
|
||||||
// Convert concrete type to dynamodb.AttributeValue: See (ExampleConvertTo)
|
// Convert concrete type to dynamodb.AttributeValue: See (ExampleConvertTo)
|
||||||
//
|
//
|
||||||
// type Record struct {
|
// type Record struct {
|
||||||
|
@ -376,15 +381,6 @@ func convertTo(in interface{}) *dynamodb.AttributeValue {
|
||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
|
|
||||||
if l, ok := in.([]interface{}); ok {
|
|
||||||
a.L = make([]*dynamodb.AttributeValue, len(l))
|
|
||||||
for index, v := range l {
|
|
||||||
a.L[index] = convertTo(v)
|
|
||||||
}
|
|
||||||
return a
|
|
||||||
}
|
|
||||||
|
|
||||||
// Only primitive types should remain.
|
|
||||||
v := reflect.ValueOf(in)
|
v := reflect.ValueOf(in)
|
||||||
switch v.Kind() {
|
switch v.Kind() {
|
||||||
case reflect.Bool:
|
case reflect.Bool:
|
||||||
|
@ -407,6 +403,16 @@ func convertTo(in interface{}) *dynamodb.AttributeValue {
|
||||||
a.S = new(string)
|
a.S = new(string)
|
||||||
*a.S = v.String()
|
*a.S = v.String()
|
||||||
}
|
}
|
||||||
|
case reflect.Slice:
|
||||||
|
switch v.Type() {
|
||||||
|
case reflect.TypeOf(([]byte)(nil)):
|
||||||
|
a.B = v.Bytes()
|
||||||
|
default:
|
||||||
|
a.L = make([]*dynamodb.AttributeValue, v.Len())
|
||||||
|
for i := 0; i < v.Len(); i++ {
|
||||||
|
a.L[i] = convertTo(v.Index(i).Interface())
|
||||||
|
}
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
panic(fmt.Sprintf("the type %s is not supported", v.Type().String()))
|
panic(fmt.Sprintf("the type %s is not supported", v.Type().String()))
|
||||||
}
|
}
|
||||||
|
@ -459,5 +465,9 @@ func convertFrom(a *dynamodb.AttributeValue) interface{} {
|
||||||
return l
|
return l
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if a.B != nil {
|
||||||
|
return a.B
|
||||||
|
}
|
||||||
|
|
||||||
panic(fmt.Sprintf("%#v is not a supported dynamodb.AttributeValue", a))
|
panic(fmt.Sprintf("%#v is not a supported dynamodb.AttributeValue", a))
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,10 +163,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/ec2query"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection"
|
const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection"
|
||||||
|
@ -115,6 +117,8 @@ func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInp
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AssignPrivateIpAddressesOutput{}
|
output = &AssignPrivateIpAddressesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -195,6 +199,8 @@ func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AssociateDhcpOptionsOutput{}
|
output = &AssociateDhcpOptionsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -305,6 +311,8 @@ func (c *EC2) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AttachInternetGatewayOutput{}
|
output = &AttachInternetGatewayOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -441,6 +449,8 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AuthorizeSecurityGroupEgressOutput{}
|
output = &AuthorizeSecurityGroupEgressOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -486,6 +496,8 @@ func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AuthorizeSecurityGroupIngressOutput{}
|
output = &AuthorizeSecurityGroupIngressOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -594,6 +606,8 @@ func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CancelConversionTaskOutput{}
|
output = &CancelConversionTaskOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -629,6 +643,8 @@ func (c *EC2) CancelExportTaskRequest(input *CancelExportTaskInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CancelExportTaskOutput{}
|
output = &CancelExportTaskOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1230,6 +1246,8 @@ func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateNetworkAclEntryOutput{}
|
output = &CreateNetworkAclEntryOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1304,6 +1322,8 @@ func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreatePlacementGroupOutput{}
|
output = &CreatePlacementGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1647,6 +1667,8 @@ func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateTagsOutput{}
|
output = &CreateTagsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1874,6 +1896,8 @@ func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInp
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateVpnConnectionRouteOutput{}
|
output = &CreateVpnConnectionRouteOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1941,6 +1965,8 @@ func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteCustomerGatewayOutput{}
|
output = &DeleteCustomerGatewayOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1969,6 +1995,8 @@ func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteDhcpOptionsOutput{}
|
output = &DeleteDhcpOptionsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2026,6 +2054,8 @@ func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteInternetGatewayOutput{}
|
output = &DeleteInternetGatewayOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2054,6 +2084,8 @@ func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteKeyPairOutput{}
|
output = &DeleteKeyPairOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2110,6 +2142,8 @@ func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteNetworkAclOutput{}
|
output = &DeleteNetworkAclOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2138,6 +2172,8 @@ func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteNetworkAclEntryOutput{}
|
output = &DeleteNetworkAclEntryOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2166,6 +2202,8 @@ func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteNetworkInterfaceOutput{}
|
output = &DeleteNetworkInterfaceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2194,6 +2232,8 @@ func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeletePlacementGroupOutput{}
|
output = &DeletePlacementGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2224,6 +2264,8 @@ func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request,
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteRouteOutput{}
|
output = &DeleteRouteOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2251,6 +2293,8 @@ func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteRouteTableOutput{}
|
output = &DeleteRouteTableOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2280,6 +2324,8 @@ func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteSecurityGroupOutput{}
|
output = &DeleteSecurityGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2311,6 +2357,8 @@ func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteSnapshotOutput{}
|
output = &DeleteSnapshotOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2352,6 +2400,8 @@ func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSub
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteSpotDatafeedSubscriptionOutput{}
|
output = &DeleteSpotDatafeedSubscriptionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2379,6 +2429,8 @@ func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteSubnetOutput{}
|
output = &DeleteSubnetOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2407,6 +2459,8 @@ func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteTagsOutput{}
|
output = &DeleteTagsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2438,6 +2492,8 @@ func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteVolumeOutput{}
|
output = &DeleteVolumeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2471,6 +2527,8 @@ func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, out
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteVpcOutput{}
|
output = &DeleteVpcOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2560,6 +2618,8 @@ func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteVpnConnectionOutput{}
|
output = &DeleteVpnConnectionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2596,6 +2656,8 @@ func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInp
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteVpnConnectionRouteOutput{}
|
output = &DeleteVpnConnectionRouteOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2626,6 +2688,8 @@ func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteVpnGatewayOutput{}
|
output = &DeleteVpnGatewayOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2657,6 +2721,8 @@ func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request.
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeregisterImageOutput{}
|
output = &DeregisterImageOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -4761,6 +4827,8 @@ func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DetachInternetGatewayOutput{}
|
output = &DetachInternetGatewayOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -4790,6 +4858,8 @@ func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DetachNetworkInterfaceOutput{}
|
output = &DetachNetworkInterfaceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -4856,6 +4926,8 @@ func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DetachVpnGatewayOutput{}
|
output = &DetachVpnGatewayOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -4890,6 +4962,8 @@ func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagatio
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DisableVgwRoutePropagationOutput{}
|
output = &DisableVgwRoutePropagationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -4977,6 +5051,8 @@ func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DisassociateAddressOutput{}
|
output = &DisassociateAddressOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5012,6 +5088,8 @@ func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DisassociateRouteTableOutput{}
|
output = &DisassociateRouteTableOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5044,6 +5122,8 @@ func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationI
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &EnableVgwRoutePropagationOutput{}
|
output = &EnableVgwRoutePropagationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5072,6 +5152,8 @@ func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &EnableVolumeIOOutput{}
|
output = &EnableVolumeIOOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5437,6 +5519,8 @@ func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ModifyIdFormatOutput{}
|
output = &ModifyIdFormatOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5474,6 +5558,8 @@ func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ModifyImageAttributeOutput{}
|
output = &ModifyImageAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5505,6 +5591,8 @@ func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ModifyInstanceAttributeOutput{}
|
output = &ModifyInstanceAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5582,6 +5670,8 @@ func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfa
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ModifyNetworkInterfaceAttributeOutput{}
|
output = &ModifyNetworkInterfaceAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5643,6 +5733,8 @@ func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ModifySnapshotAttributeOutput{}
|
output = &ModifySnapshotAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5726,6 +5818,8 @@ func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ModifySubnetAttributeOutput{}
|
output = &ModifySubnetAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5753,6 +5847,8 @@ func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ModifyVolumeAttributeOutput{}
|
output = &ModifyVolumeAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5789,6 +5885,8 @@ func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ModifyVpcAttributeOutput{}
|
output = &ModifyVpcAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -5979,6 +6077,8 @@ func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request.
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RebootInstancesOutput{}
|
output = &RebootInstancesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6106,6 +6206,8 @@ func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ReleaseAddressOutput{}
|
output = &ReleaseAddressOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6215,6 +6317,8 @@ func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ReplaceNetworkAclEntryOutput{}
|
output = &ReplaceNetworkAclEntryOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6244,6 +6348,8 @@ func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ReplaceRouteOutput{}
|
output = &ReplaceRouteOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6311,6 +6417,8 @@ func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ReportInstanceStatusOutput{}
|
output = &ReportInstanceStatusOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6419,6 +6527,8 @@ func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ResetImageAttributeOutput{}
|
output = &ResetImageAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6448,6 +6558,8 @@ func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ResetInstanceAttributeOutput{}
|
output = &ResetInstanceAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6483,6 +6595,8 @@ func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ResetNetworkInterfaceAttributeOutput{}
|
output = &ResetNetworkInterfaceAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6511,6 +6625,8 @@ func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ResetSnapshotAttributeOutput{}
|
output = &ResetSnapshotAttributeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6574,6 +6690,8 @@ func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressI
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RevokeSecurityGroupEgressOutput{}
|
output = &RevokeSecurityGroupEgressOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6612,6 +6730,8 @@ func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngres
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RevokeSecurityGroupIngressOutput{}
|
output = &RevokeSecurityGroupIngressOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -6899,6 +7019,8 @@ func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddresse
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UnassignPrivateIpAddressesOutput{}
|
output = &UnassignPrivateIpAddressesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -62,10 +62,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(ec2query.Build)
|
svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(ec2query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -66,10 +66,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -72,10 +72,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opCreateFileSystem = "CreateFileSystem"
|
const opCreateFileSystem = "CreateFileSystem"
|
||||||
|
@ -184,6 +186,8 @@ func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateTagsOutput{}
|
output = &CreateTagsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -218,6 +222,8 @@ func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteFileSystemOutput{}
|
output = &DeleteFileSystemOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -258,6 +264,8 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteMountTargetOutput{}
|
output = &DeleteMountTargetOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -306,6 +314,8 @@ func (c *EFS) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteTagsOutput{}
|
output = &DeleteTagsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -493,6 +503,8 @@ func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSec
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ModifyMountTargetSecurityGroupsOutput{}
|
output = &ModifyMountTargetSecurityGroupsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -58,10 +58,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(restjson.Build)
|
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(restjson.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAddTagsToResource = "AddTagsToResource"
|
const opAddTagsToResource = "AddTagsToResource"
|
||||||
|
@ -341,6 +343,8 @@ func (c *ElastiCache) DeleteCacheParameterGroupRequest(input *DeleteCacheParamet
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteCacheParameterGroupOutput{}
|
output = &DeleteCacheParameterGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -370,6 +374,8 @@ func (c *ElastiCache) DeleteCacheSecurityGroupRequest(input *DeleteCacheSecurity
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteCacheSecurityGroupOutput{}
|
output = &DeleteCacheSecurityGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -400,6 +406,8 @@ func (c *ElastiCache) DeleteCacheSubnetGroupRequest(input *DeleteCacheSubnetGrou
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteCacheSubnetGroupOutput{}
|
output = &DeleteCacheSubnetGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -69,10 +69,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(query.Build)
|
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAddTags = "AddTags"
|
const opAddTags = "AddTags"
|
||||||
|
@ -25,6 +27,8 @@ func (c *ElasticsearchService) AddTagsRequest(input *AddTagsInput) (req *request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AddTagsOutput{}
|
output = &AddTagsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -252,6 +256,8 @@ func (c *ElasticsearchService) RemoveTagsRequest(input *RemoveTagsInput) (req *r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RemoveTagsOutput{}
|
output = &RemoveTagsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -65,10 +65,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(restjson.Build)
|
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(restjson.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -71,10 +71,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(query.Build)
|
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -62,10 +62,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAbortMultipartUpload = "AbortMultipartUpload"
|
const opAbortMultipartUpload = "AbortMultipartUpload"
|
||||||
|
@ -25,6 +27,8 @@ func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AbortMultipartUploadOutput{}
|
output = &AbortMultipartUploadOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -71,6 +75,8 @@ func (c *Glacier) AbortVaultLockRequest(input *AbortVaultLockInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AbortVaultLockOutput{}
|
output = &AbortVaultLockOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -113,6 +119,8 @@ func (c *Glacier) AddTagsToVaultRequest(input *AddTagsToVaultInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AddTagsToVaultOutput{}
|
output = &AddTagsToVaultOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -215,6 +223,8 @@ func (c *Glacier) CompleteVaultLockRequest(input *CompleteVaultLockInput) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CompleteVaultLockOutput{}
|
output = &CompleteVaultLockOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -306,6 +316,8 @@ func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request.
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteArchiveOutput{}
|
output = &DeleteArchiveOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -353,6 +365,8 @@ func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteVaultOutput{}
|
output = &DeleteVaultOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -402,6 +416,8 @@ func (c *Glacier) DeleteVaultAccessPolicyRequest(input *DeleteVaultAccessPolicyI
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteVaultAccessPolicyOutput{}
|
output = &DeleteVaultAccessPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -438,6 +454,8 @@ func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotification
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteVaultNotificationsOutput{}
|
output = &DeleteVaultNotificationsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1355,6 +1373,8 @@ func (c *Glacier) RemoveTagsFromVaultRequest(input *RemoveTagsFromVaultInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RemoveTagsFromVaultOutput{}
|
output = &RemoveTagsFromVaultOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1386,6 +1406,8 @@ func (c *Glacier) SetDataRetrievalPolicyRequest(input *SetDataRetrievalPolicyInp
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetDataRetrievalPolicyOutput{}
|
output = &SetDataRetrievalPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1419,6 +1441,8 @@ func (c *Glacier) SetVaultAccessPolicyRequest(input *SetVaultAccessPolicyInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetVaultAccessPolicyOutput{}
|
output = &SetVaultAccessPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1452,6 +1476,8 @@ func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetVaultNotificationsOutput{}
|
output = &SetVaultNotificationsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -89,10 +89,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(restjson.Build)
|
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(restjson.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAddClientIDToOpenIDConnectProvider = "AddClientIDToOpenIDConnectProvider"
|
const opAddClientIDToOpenIDConnectProvider = "AddClientIDToOpenIDConnectProvider"
|
||||||
|
@ -25,6 +27,8 @@ func (c *IAM) AddClientIDToOpenIDConnectProviderRequest(input *AddClientIDToOpen
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AddClientIDToOpenIDConnectProviderOutput{}
|
output = &AddClientIDToOpenIDConnectProviderOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -56,6 +60,8 @@ func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInp
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AddRoleToInstanceProfileOutput{}
|
output = &AddRoleToInstanceProfileOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -86,6 +92,8 @@ func (c *IAM) AddUserToGroupRequest(input *AddUserToGroupInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AddUserToGroupOutput{}
|
output = &AddUserToGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -113,6 +121,8 @@ func (c *IAM) AttachGroupPolicyRequest(input *AttachGroupPolicyInput) (req *requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AttachGroupPolicyOutput{}
|
output = &AttachGroupPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -147,6 +157,8 @@ func (c *IAM) AttachRolePolicyRequest(input *AttachRolePolicyInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AttachRolePolicyOutput{}
|
output = &AttachRolePolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -185,6 +197,8 @@ func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AttachUserPolicyOutput{}
|
output = &AttachUserPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -219,6 +233,8 @@ func (c *IAM) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ChangePasswordOutput{}
|
output = &ChangePasswordOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -294,6 +310,8 @@ func (c *IAM) CreateAccountAliasRequest(input *CreateAccountAliasInput) (req *re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateAccountAliasOutput{}
|
output = &CreateAccountAliasOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -683,6 +701,8 @@ func (c *IAM) DeactivateMFADeviceRequest(input *DeactivateMFADeviceInput) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeactivateMFADeviceOutput{}
|
output = &DeactivateMFADeviceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -715,6 +735,8 @@ func (c *IAM) DeleteAccessKeyRequest(input *DeleteAccessKeyInput) (req *request.
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteAccessKeyOutput{}
|
output = &DeleteAccessKeyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -747,6 +769,8 @@ func (c *IAM) DeleteAccountAliasRequest(input *DeleteAccountAliasInput) (req *re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteAccountAliasOutput{}
|
output = &DeleteAccountAliasOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -776,6 +800,8 @@ func (c *IAM) DeleteAccountPasswordPolicyRequest(input *DeleteAccountPasswordPol
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteAccountPasswordPolicyOutput{}
|
output = &DeleteAccountPasswordPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -803,6 +829,8 @@ func (c *IAM) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request,
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteGroupOutput{}
|
output = &DeleteGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -831,6 +859,8 @@ func (c *IAM) DeleteGroupPolicyRequest(input *DeleteGroupPolicyInput) (req *requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteGroupPolicyOutput{}
|
output = &DeleteGroupPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -863,6 +893,8 @@ func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteInstanceProfileOutput{}
|
output = &DeleteInstanceProfileOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -897,6 +929,8 @@ func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteLoginProfileOutput{}
|
output = &DeleteLoginProfileOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -930,6 +964,8 @@ func (c *IAM) DeleteOpenIDConnectProviderRequest(input *DeleteOpenIDConnectProvi
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteOpenIDConnectProviderOutput{}
|
output = &DeleteOpenIDConnectProviderOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -964,6 +1000,8 @@ func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeletePolicyOutput{}
|
output = &DeletePolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1008,6 +1046,8 @@ func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeletePolicyVersionOutput{}
|
output = &DeletePolicyVersionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1043,6 +1083,8 @@ func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, o
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteRoleOutput{}
|
output = &DeleteRoleOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1075,6 +1117,8 @@ func (c *IAM) DeleteRolePolicyRequest(input *DeleteRolePolicyInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteRolePolicyOutput{}
|
output = &DeleteRolePolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1107,6 +1151,8 @@ func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteSAMLProviderOutput{}
|
output = &DeleteSAMLProviderOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1140,6 +1186,8 @@ func (c *IAM) DeleteSSHPublicKeyRequest(input *DeleteSSHPublicKeyInput) (req *re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteSSHPublicKeyOutput{}
|
output = &DeleteSSHPublicKeyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1173,6 +1221,8 @@ func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteServerCertificateOutput{}
|
output = &DeleteServerCertificateOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1215,6 +1265,8 @@ func (c *IAM) DeleteSigningCertificateRequest(input *DeleteSigningCertificateInp
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteSigningCertificateOutput{}
|
output = &DeleteSigningCertificateOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1247,6 +1299,8 @@ func (c *IAM) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, o
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteUserOutput{}
|
output = &DeleteUserOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1275,6 +1329,8 @@ func (c *IAM) DeleteUserPolicyRequest(input *DeleteUserPolicyInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteUserPolicyOutput{}
|
output = &DeleteUserPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1307,6 +1363,8 @@ func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteVirtualMFADeviceOutput{}
|
output = &DeleteVirtualMFADeviceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1337,6 +1395,8 @@ func (c *IAM) DetachGroupPolicyRequest(input *DetachGroupPolicyInput) (req *requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DetachGroupPolicyOutput{}
|
output = &DetachGroupPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1369,6 +1429,8 @@ func (c *IAM) DetachRolePolicyRequest(input *DetachRolePolicyInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DetachRolePolicyOutput{}
|
output = &DetachRolePolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1401,6 +1463,8 @@ func (c *IAM) DetachUserPolicyRequest(input *DetachUserPolicyInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DetachUserPolicyOutput{}
|
output = &DetachUserPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1433,6 +1497,8 @@ func (c *IAM) EnableMFADeviceRequest(input *EnableMFADeviceInput) (req *request.
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &EnableMFADeviceOutput{}
|
output = &EnableMFADeviceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3305,6 +3371,8 @@ func (c *IAM) PutGroupPolicyRequest(input *PutGroupPolicyInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutGroupPolicyOutput{}
|
output = &PutGroupPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3348,6 +3416,8 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutRolePolicyOutput{}
|
output = &PutRolePolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3397,6 +3467,8 @@ func (c *IAM) PutUserPolicyRequest(input *PutUserPolicyInput) (req *request.Requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutUserPolicyOutput{}
|
output = &PutUserPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3440,6 +3512,8 @@ func (c *IAM) RemoveClientIDFromOpenIDConnectProviderRequest(input *RemoveClient
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RemoveClientIDFromOpenIDConnectProviderOutput{}
|
output = &RemoveClientIDFromOpenIDConnectProviderOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3471,6 +3545,8 @@ func (c *IAM) RemoveRoleFromInstanceProfileRequest(input *RemoveRoleFromInstance
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RemoveRoleFromInstanceProfileOutput{}
|
output = &RemoveRoleFromInstanceProfileOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3506,6 +3582,8 @@ func (c *IAM) RemoveUserFromGroupRequest(input *RemoveUserFromGroupInput) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RemoveUserFromGroupOutput{}
|
output = &RemoveUserFromGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3533,6 +3611,8 @@ func (c *IAM) ResyncMFADeviceRequest(input *ResyncMFADeviceInput) (req *request.
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ResyncMFADeviceOutput{}
|
output = &ResyncMFADeviceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3564,6 +3644,8 @@ func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetDefaultPolicyVersionOutput{}
|
output = &SetDefaultPolicyVersionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3696,6 +3778,8 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request.
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateAccessKeyOutput{}
|
output = &UpdateAccessKeyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3734,6 +3818,8 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateAccountPasswordPolicyOutput{}
|
output = &UpdateAccountPasswordPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3770,6 +3856,8 @@ func (c *IAM) UpdateAssumeRolePolicyRequest(input *UpdateAssumeRolePolicyInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateAssumeRolePolicyOutput{}
|
output = &UpdateAssumeRolePolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3799,6 +3887,8 @@ func (c *IAM) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request,
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateGroupOutput{}
|
output = &UpdateGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3835,6 +3925,8 @@ func (c *IAM) UpdateLoginProfileRequest(input *UpdateLoginProfileInput) (req *re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateLoginProfileOutput{}
|
output = &UpdateLoginProfileOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3866,6 +3958,8 @@ func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDCo
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateOpenIDConnectProviderThumbprintOutput{}
|
output = &UpdateOpenIDConnectProviderThumbprintOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3935,6 +4029,8 @@ func (c *IAM) UpdateSSHPublicKeyRequest(input *UpdateSSHPublicKeyInput) (req *re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateSSHPublicKeyOutput{}
|
output = &UpdateSSHPublicKeyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -3971,6 +4067,8 @@ func (c *IAM) UpdateServerCertificateRequest(input *UpdateServerCertificateInput
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateServerCertificateOutput{}
|
output = &UpdateServerCertificateOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -4013,6 +4111,8 @@ func (c *IAM) UpdateSigningCertificateRequest(input *UpdateSigningCertificateInp
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateSigningCertificateOutput{}
|
output = &UpdateSigningCertificateOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -4047,6 +4147,8 @@ func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, o
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateUserOutput{}
|
output = &UpdateUserOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -106,10 +106,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(query.Build)
|
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAddTagsToStream = "AddTagsToStream"
|
const opAddTagsToStream = "AddTagsToStream"
|
||||||
|
@ -25,6 +27,8 @@ func (c *Kinesis) AddTagsToStreamRequest(input *AddTagsToStreamInput) (req *requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AddTagsToStreamOutput{}
|
output = &AddTagsToStreamOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -56,6 +60,8 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateStreamOutput{}
|
output = &CreateStreamOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -118,6 +124,8 @@ func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRete
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DecreaseStreamRetentionPeriodOutput{}
|
output = &DecreaseStreamRetentionPeriodOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -151,6 +159,8 @@ func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteStreamOutput{}
|
output = &DeleteStreamOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -397,6 +407,8 @@ func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRete
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &IncreaseStreamRetentionPeriodOutput{}
|
output = &IncreaseStreamRetentionPeriodOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -517,6 +529,8 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &MergeShardsOutput{}
|
output = &MergeShardsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -731,6 +745,8 @@ func (c *Kinesis) RemoveTagsFromStreamRequest(input *RemoveTagsFromStreamInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RemoveTagsFromStreamOutput{}
|
output = &RemoveTagsFromStreamOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -760,6 +776,8 @@ func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SplitShardOutput{}
|
output = &SplitShardOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -62,10 +62,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -65,10 +65,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(restjson.Build)
|
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(restjson.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -6,6 +6,8 @@ package opsworks
|
||||||
import (
|
import (
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAssignInstance = "AssignInstance"
|
const opAssignInstance = "AssignInstance"
|
||||||
|
@ -23,6 +25,8 @@ func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AssignInstanceOutput{}
|
output = &AssignInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -58,6 +62,8 @@ func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.R
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AssignVolumeOutput{}
|
output = &AssignVolumeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -94,6 +100,8 @@ func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AssociateElasticIpOutput{}
|
output = &AssociateElasticIpOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -128,6 +136,8 @@ func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBala
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AttachElasticLoadBalancerOutput{}
|
output = &AttachElasticLoadBalancerOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -399,6 +409,8 @@ func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteAppOutput{}
|
output = &DeleteAppOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -431,6 +443,8 @@ func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteInstanceOutput{}
|
output = &DeleteInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -466,6 +480,8 @@ func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteLayerOutput{}
|
output = &DeleteLayerOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -500,6 +516,8 @@ func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteStackOutput{}
|
output = &DeleteStackOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -534,6 +552,8 @@ func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteUserProfileOutput{}
|
output = &DeleteUserProfileOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -565,6 +585,8 @@ func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeregisterEcsClusterOutput{}
|
output = &DeregisterEcsClusterOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -597,6 +619,8 @@ func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) (
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeregisterElasticIpOutput{}
|
output = &DeregisterElasticIpOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -630,6 +654,8 @@ func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeregisterInstanceOutput{}
|
output = &DeregisterInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -664,6 +690,8 @@ func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstance
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeregisterRdsDbInstanceOutput{}
|
output = &DeregisterRdsDbInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -696,6 +724,8 @@ func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeregisterVolumeOutput{}
|
output = &DeregisterVolumeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1436,6 +1466,8 @@ func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBala
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DetachElasticLoadBalancerOutput{}
|
output = &DetachElasticLoadBalancerOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1468,6 +1500,8 @@ func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInpu
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DisassociateElasticIpOutput{}
|
output = &DisassociateElasticIpOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1563,6 +1597,8 @@ func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RebootInstanceOutput{}
|
output = &RebootInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1704,6 +1740,8 @@ func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInpu
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RegisterRdsDbInstanceOutput{}
|
output = &RegisterRdsDbInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1771,6 +1809,8 @@ func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScaling
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetLoadBasedAutoScalingOutput{}
|
output = &SetLoadBasedAutoScalingOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1810,6 +1850,8 @@ func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetPermissionOutput{}
|
output = &SetPermissionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1843,6 +1885,8 @@ func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScaling
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetTimeBasedAutoScalingOutput{}
|
output = &SetTimeBasedAutoScalingOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1877,6 +1921,8 @@ func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &StartInstanceOutput{}
|
output = &StartInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1910,6 +1956,8 @@ func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &StartStackOutput{}
|
output = &StartStackOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1942,6 +1990,8 @@ func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.R
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &StopInstanceOutput{}
|
output = &StopInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1977,6 +2027,8 @@ func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &StopStackOutput{}
|
output = &StopStackOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2009,6 +2061,8 @@ func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UnassignInstanceOutput{}
|
output = &UnassignInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2044,6 +2098,8 @@ func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UnassignVolumeOutput{}
|
output = &UnassignVolumeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2077,6 +2133,8 @@ func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateAppOutput{}
|
output = &UpdateAppOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2109,6 +2167,8 @@ func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateElasticIpOutput{}
|
output = &UpdateElasticIpOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2142,6 +2202,8 @@ func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateInstanceOutput{}
|
output = &UpdateInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2174,6 +2236,8 @@ func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateLayerOutput{}
|
output = &UpdateLayerOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2206,6 +2270,8 @@ func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) (
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateMyUserProfileOutput{}
|
output = &UpdateMyUserProfileOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2237,6 +2303,8 @@ func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) (
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateRdsDbInstanceOutput{}
|
output = &UpdateRdsDbInstanceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2269,6 +2337,8 @@ func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateStackOutput{}
|
output = &UpdateStackOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2301,6 +2371,8 @@ func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateUserProfileOutput{}
|
output = &UpdateUserProfileOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2332,6 +2404,8 @@ func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.R
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UpdateVolumeOutput{}
|
output = &UpdateVolumeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -97,10 +97,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(jsonrpc.Build)
|
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription"
|
const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription"
|
||||||
|
@ -52,6 +54,8 @@ func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AddTagsToResourceOutput{}
|
output = &AddTagsToResourceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -674,6 +678,8 @@ func (c *RDS) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParamet
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteDBClusterParameterGroupOutput{}
|
output = &DeleteDBClusterParameterGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -777,6 +783,8 @@ func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteDBParameterGroupOutput{}
|
output = &DeleteDBParameterGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -805,6 +813,8 @@ func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteDBSecurityGroupOutput{}
|
output = &DeleteDBSecurityGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -864,6 +874,8 @@ func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req *
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteDBSubnetGroupOutput{}
|
output = &DeleteDBSubnetGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -920,6 +932,8 @@ func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteOptionGroupOutput{}
|
output = &DeleteOptionGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -2454,6 +2468,8 @@ func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RemoveTagsFromResourceOutput{}
|
output = &RemoveTagsFromResourceOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -82,10 +82,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(query.Build)
|
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAuthorizeClusterSecurityGroupIngress = "AuthorizeClusterSecurityGroupIngress"
|
const opAuthorizeClusterSecurityGroupIngress = "AuthorizeClusterSecurityGroupIngress"
|
||||||
|
@ -455,6 +457,8 @@ func (c *Redshift) CreateTagsRequest(input *CreateTagsInput) (req *request.Reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &CreateTagsOutput{}
|
output = &CreateTagsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -531,6 +535,8 @@ func (c *Redshift) DeleteClusterParameterGroupRequest(input *DeleteClusterParame
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteClusterParameterGroupOutput{}
|
output = &DeleteClusterParameterGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -559,6 +565,8 @@ func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurit
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteClusterSecurityGroupOutput{}
|
output = &DeleteClusterSecurityGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -625,6 +633,8 @@ func (c *Redshift) DeleteClusterSubnetGroupRequest(input *DeleteClusterSubnetGro
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteClusterSubnetGroupOutput{}
|
output = &DeleteClusterSubnetGroupOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -652,6 +662,8 @@ func (c *Redshift) DeleteEventSubscriptionRequest(input *DeleteEventSubscription
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteEventSubscriptionOutput{}
|
output = &DeleteEventSubscriptionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -679,6 +691,8 @@ func (c *Redshift) DeleteHsmClientCertificateRequest(input *DeleteHsmClientCerti
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteHsmClientCertificateOutput{}
|
output = &DeleteHsmClientCertificateOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -706,6 +720,8 @@ func (c *Redshift) DeleteHsmConfigurationRequest(input *DeleteHsmConfigurationIn
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteHsmConfigurationOutput{}
|
output = &DeleteHsmConfigurationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -733,6 +749,8 @@ func (c *Redshift) DeleteSnapshotCopyGrantRequest(input *DeleteSnapshotCopyGrant
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteSnapshotCopyGrantOutput{}
|
output = &DeleteSnapshotCopyGrantOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -760,6 +778,8 @@ func (c *Redshift) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteTagsOutput{}
|
output = &DeleteTagsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -80,10 +80,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(query.Build)
|
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -59,10 +59,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(restxml.Build)
|
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(restxml.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -9,6 +9,8 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/restxml"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAbortMultipartUpload = "AbortMultipartUpload"
|
const opAbortMultipartUpload = "AbortMultipartUpload"
|
||||||
|
@ -171,6 +173,8 @@ func (c *S3) DeleteBucketRequest(input *DeleteBucketInput) (req *request.Request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteBucketOutput{}
|
output = &DeleteBucketOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -199,6 +203,8 @@ func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteBucketCorsOutput{}
|
output = &DeleteBucketCorsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -226,6 +232,8 @@ func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteBucketLifecycleOutput{}
|
output = &DeleteBucketLifecycleOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -253,6 +261,8 @@ func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteBucketPolicyOutput{}
|
output = &DeleteBucketPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -280,6 +290,8 @@ func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteBucketReplicationOutput{}
|
output = &DeleteBucketReplicationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -306,6 +318,8 @@ func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteBucketTaggingOutput{}
|
output = &DeleteBucketTaggingOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -333,6 +347,8 @@ func (c *S3) DeleteBucketWebsiteRequest(input *DeleteBucketWebsiteInput) (req *r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteBucketWebsiteOutput{}
|
output = &DeleteBucketWebsiteOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -460,6 +476,9 @@ const opGetBucketLifecycle = "GetBucketLifecycle"
|
||||||
|
|
||||||
// GetBucketLifecycleRequest generates a request for the GetBucketLifecycle operation.
|
// GetBucketLifecycleRequest generates a request for the GetBucketLifecycle operation.
|
||||||
func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *request.Request, output *GetBucketLifecycleOutput) {
|
func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *request.Request, output *GetBucketLifecycleOutput) {
|
||||||
|
if c.Client.Config.Logger != nil {
|
||||||
|
c.Client.Config.Logger.Log("This operation, GetBucketLifecycle, has been deprecated")
|
||||||
|
}
|
||||||
op := &request.Operation{
|
op := &request.Operation{
|
||||||
Name: opGetBucketLifecycle,
|
Name: opGetBucketLifecycle,
|
||||||
HTTPMethod: "GET",
|
HTTPMethod: "GET",
|
||||||
|
@ -569,6 +588,9 @@ const opGetBucketNotification = "GetBucketNotification"
|
||||||
|
|
||||||
// GetBucketNotificationRequest generates a request for the GetBucketNotification operation.
|
// GetBucketNotificationRequest generates a request for the GetBucketNotification operation.
|
||||||
func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurationRequest) (req *request.Request, output *NotificationConfigurationDeprecated) {
|
func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurationRequest) (req *request.Request, output *NotificationConfigurationDeprecated) {
|
||||||
|
if c.Client.Config.Logger != nil {
|
||||||
|
c.Client.Config.Logger.Log("This operation, GetBucketNotification, has been deprecated")
|
||||||
|
}
|
||||||
op := &request.Operation{
|
op := &request.Operation{
|
||||||
Name: opGetBucketNotification,
|
Name: opGetBucketNotification,
|
||||||
HTTPMethod: "GET",
|
HTTPMethod: "GET",
|
||||||
|
@ -876,6 +898,8 @@ func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, ou
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &HeadBucketOutput{}
|
output = &HeadBucketOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1126,6 +1150,8 @@ func (c *S3) PutBucketAclRequest(input *PutBucketAclInput) (req *request.Request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketAclOutput{}
|
output = &PutBucketAclOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1153,6 +1179,8 @@ func (c *S3) PutBucketCorsRequest(input *PutBucketCorsInput) (req *request.Reque
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketCorsOutput{}
|
output = &PutBucketCorsOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1169,6 +1197,9 @@ const opPutBucketLifecycle = "PutBucketLifecycle"
|
||||||
|
|
||||||
// PutBucketLifecycleRequest generates a request for the PutBucketLifecycle operation.
|
// PutBucketLifecycleRequest generates a request for the PutBucketLifecycle operation.
|
||||||
func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *request.Request, output *PutBucketLifecycleOutput) {
|
func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *request.Request, output *PutBucketLifecycleOutput) {
|
||||||
|
if c.Client.Config.Logger != nil {
|
||||||
|
c.Client.Config.Logger.Log("This operation, PutBucketLifecycle, has been deprecated")
|
||||||
|
}
|
||||||
op := &request.Operation{
|
op := &request.Operation{
|
||||||
Name: opPutBucketLifecycle,
|
Name: opPutBucketLifecycle,
|
||||||
HTTPMethod: "PUT",
|
HTTPMethod: "PUT",
|
||||||
|
@ -1180,6 +1211,8 @@ func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketLifecycleOutput{}
|
output = &PutBucketLifecycleOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1207,6 +1240,8 @@ func (c *S3) PutBucketLifecycleConfigurationRequest(input *PutBucketLifecycleCon
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketLifecycleConfigurationOutput{}
|
output = &PutBucketLifecycleConfigurationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1235,6 +1270,8 @@ func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketLoggingOutput{}
|
output = &PutBucketLoggingOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1253,6 +1290,9 @@ const opPutBucketNotification = "PutBucketNotification"
|
||||||
|
|
||||||
// PutBucketNotificationRequest generates a request for the PutBucketNotification operation.
|
// PutBucketNotificationRequest generates a request for the PutBucketNotification operation.
|
||||||
func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (req *request.Request, output *PutBucketNotificationOutput) {
|
func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (req *request.Request, output *PutBucketNotificationOutput) {
|
||||||
|
if c.Client.Config.Logger != nil {
|
||||||
|
c.Client.Config.Logger.Log("This operation, PutBucketNotification, has been deprecated")
|
||||||
|
}
|
||||||
op := &request.Operation{
|
op := &request.Operation{
|
||||||
Name: opPutBucketNotification,
|
Name: opPutBucketNotification,
|
||||||
HTTPMethod: "PUT",
|
HTTPMethod: "PUT",
|
||||||
|
@ -1264,6 +1304,8 @@ func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketNotificationOutput{}
|
output = &PutBucketNotificationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1291,6 +1333,8 @@ func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificat
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketNotificationConfigurationOutput{}
|
output = &PutBucketNotificationConfigurationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1318,6 +1362,8 @@ func (c *S3) PutBucketPolicyRequest(input *PutBucketPolicyInput) (req *request.R
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketPolicyOutput{}
|
output = &PutBucketPolicyOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1346,6 +1392,8 @@ func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketReplicationOutput{}
|
output = &PutBucketReplicationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1374,6 +1422,8 @@ func (c *S3) PutBucketRequestPaymentRequest(input *PutBucketRequestPaymentInput)
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketRequestPaymentOutput{}
|
output = &PutBucketRequestPaymentOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1405,6 +1455,8 @@ func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketTaggingOutput{}
|
output = &PutBucketTaggingOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1432,6 +1484,8 @@ func (c *S3) PutBucketVersioningRequest(input *PutBucketVersioningInput) (req *r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketVersioningOutput{}
|
output = &PutBucketVersioningOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1460,6 +1514,8 @@ func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *request
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PutBucketWebsiteOutput{}
|
output = &PutBucketWebsiteOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -1784,7 +1840,7 @@ type CloudFunctionConfiguration struct {
|
||||||
CloudFunction *string `type:"string"`
|
CloudFunction *string `type:"string"`
|
||||||
|
|
||||||
// Bucket event for which to send notifications.
|
// Bucket event for which to send notifications.
|
||||||
Event *string `type:"string" enum:"Event"`
|
Event *string `deprecated:"true" type:"string" enum:"Event"`
|
||||||
|
|
||||||
Events []*string `locationName:"Event" type:"list" flattened:"true"`
|
Events []*string `locationName:"Event" type:"list" flattened:"true"`
|
||||||
|
|
||||||
|
@ -5346,7 +5402,7 @@ type QueueConfigurationDeprecated struct {
|
||||||
_ struct{} `type:"structure"`
|
_ struct{} `type:"structure"`
|
||||||
|
|
||||||
// Bucket event for which to send notifications.
|
// Bucket event for which to send notifications.
|
||||||
Event *string `type:"string" enum:"Event"`
|
Event *string `deprecated:"true" type:"string" enum:"Event"`
|
||||||
|
|
||||||
Events []*string `locationName:"Event" type:"list" flattened:"true"`
|
Events []*string `locationName:"Event" type:"list" flattened:"true"`
|
||||||
|
|
||||||
|
@ -5714,7 +5770,7 @@ type TopicConfigurationDeprecated struct {
|
||||||
_ struct{} `type:"structure"`
|
_ struct{} `type:"structure"`
|
||||||
|
|
||||||
// Bucket event for which to send notifications.
|
// Bucket event for which to send notifications.
|
||||||
Event *string `type:"string" enum:"Event"`
|
Event *string `deprecated:"true" type:"string" enum:"Event"`
|
||||||
|
|
||||||
Events []*string `locationName:"Event" type:"list" flattened:"true"`
|
Events []*string `locationName:"Event" type:"list" flattened:"true"`
|
||||||
|
|
||||||
|
|
|
@ -59,10 +59,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(restxml.Build)
|
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(restxml.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -6,6 +6,8 @@ package sns
|
||||||
import (
|
import (
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAddPermission = "AddPermission"
|
const opAddPermission = "AddPermission"
|
||||||
|
@ -23,6 +25,8 @@ func (c *SNS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AddPermissionOutput{}
|
output = &AddPermissionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -192,6 +196,8 @@ func (c *SNS) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteEndpointOutput{}
|
output = &DeleteEndpointOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -220,6 +226,8 @@ func (c *SNS) DeletePlatformApplicationRequest(input *DeletePlatformApplicationI
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeletePlatformApplicationOutput{}
|
output = &DeletePlatformApplicationOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -249,6 +257,8 @@ func (c *SNS) DeleteTopicRequest(input *DeleteTopicInput) (req *request.Request,
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteTopicOutput{}
|
output = &DeleteTopicOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -655,6 +665,8 @@ func (c *SNS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RemovePermissionOutput{}
|
output = &RemovePermissionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -682,6 +694,8 @@ func (c *SNS) SetEndpointAttributesRequest(input *SetEndpointAttributesInput) (r
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetEndpointAttributesOutput{}
|
output = &SetEndpointAttributesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -711,6 +725,8 @@ func (c *SNS) SetPlatformApplicationAttributesRequest(input *SetPlatformApplicat
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetPlatformApplicationAttributesOutput{}
|
output = &SetPlatformApplicationAttributesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -740,6 +756,8 @@ func (c *SNS) SetSubscriptionAttributesRequest(input *SetSubscriptionAttributesI
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetSubscriptionAttributesOutput{}
|
output = &SetSubscriptionAttributesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -767,6 +785,8 @@ func (c *SNS) SetTopicAttributesRequest(input *SetTopicAttributesInput) (req *re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetTopicAttributesOutput{}
|
output = &SetTopicAttributesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -824,6 +844,8 @@ func (c *SNS) UnsubscribeRequest(input *UnsubscribeInput) (req *request.Request,
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &UnsubscribeOutput{}
|
output = &UnsubscribeOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -71,10 +71,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(query.Build)
|
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -6,6 +6,8 @@ package sqs
|
||||||
import (
|
import (
|
||||||
"github.com/aws/aws-sdk-go/aws/awsutil"
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol"
|
||||||
|
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||||
)
|
)
|
||||||
|
|
||||||
const opAddPermission = "AddPermission"
|
const opAddPermission = "AddPermission"
|
||||||
|
@ -23,6 +25,8 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &AddPermissionOutput{}
|
output = &AddPermissionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -67,6 +71,8 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &ChangeMessageVisibilityOutput{}
|
output = &ChangeMessageVisibilityOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -214,6 +220,8 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteMessageOutput{}
|
output = &DeleteMessageOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -299,6 +307,8 @@ func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request,
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &DeleteQueueOutput{}
|
output = &DeleteQueueOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -497,6 +507,8 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &PurgeQueueOutput{}
|
output = &PurgeQueueOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -600,6 +612,8 @@ func (c *SQS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &RemovePermissionOutput{}
|
output = &RemovePermissionOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
@ -718,6 +732,8 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re
|
||||||
}
|
}
|
||||||
|
|
||||||
req = c.newRequest(op, input, output)
|
req = c.newRequest(op, input, output)
|
||||||
|
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
|
||||||
|
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||||
output = &SetQueueAttributesOutput{}
|
output = &SetQueueAttributesOutput{}
|
||||||
req.Data = output
|
req.Data = output
|
||||||
return
|
return
|
||||||
|
|
|
@ -83,10 +83,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||||
svc.Handlers.Build.PushBack(query.Build)
|
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||||
svc.Handlers.Unmarshal.PushBack(query.Unmarshal)
|
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||||
svc.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta)
|
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||||
svc.Handlers.UnmarshalError.PushBack(query.UnmarshalError)
|
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||||
|
|
||||||
// Run custom client initialization if present
|
// Run custom client initialization if present
|
||||||
if initClient != nil {
|
if initClient != nil {
|
||||||
|
|
|
@ -55,6 +55,12 @@ resource "aws_lambda_function" "test_lambda" {
|
||||||
* `memory_size` - (Optional) Amount of memory in MB your Lambda Function can use at runtime. Defaults to `128`. See [Limits][5]
|
* `memory_size` - (Optional) Amount of memory in MB your Lambda Function can use at runtime. Defaults to `128`. See [Limits][5]
|
||||||
* `runtime` - (Optional) Defaults to `nodejs`. See [Runtimes][6] for valid values.
|
* `runtime` - (Optional) Defaults to `nodejs`. See [Runtimes][6] for valid values.
|
||||||
* `timeout` - (Optional) The amount of time your Lambda Function has to run in seconds. Defaults to `3`. See [Limits][5]
|
* `timeout` - (Optional) The amount of time your Lambda Function has to run in seconds. Defaults to `3`. See [Limits][5]
|
||||||
|
* `vpc_config` - (Optional) Provide this to allow your function to access your VPC. Fields documented below. See [Lambda in VPC][7]
|
||||||
|
|
||||||
|
**vpc\_config** requires the following:
|
||||||
|
|
||||||
|
* `subnet_ids` - (Required) A list of subnet IDs associated with the Lambda function.
|
||||||
|
* `security_group_ids` - (Required) A list of security group IDs associated with the Lambda function.
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
|
||||||
|
@ -67,3 +73,4 @@ resource "aws_lambda_function" "test_lambda" {
|
||||||
[4]: https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html
|
[4]: https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html
|
||||||
[5]: https://docs.aws.amazon.com/lambda/latest/dg/limits.html
|
[5]: https://docs.aws.amazon.com/lambda/latest/dg/limits.html
|
||||||
[6]: https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#API_CreateFunction_RequestBody
|
[6]: https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#API_CreateFunction_RequestBody
|
||||||
|
[7]: http://docs.aws.amazon.com/lambda/latest/dg/vpc.html
|
||||||
|
|
Loading…
Reference in New Issue