Slide 84
Slide 84 text
'PutObject': {
'httpMethod': 'PUT',
'uri': '/{Bucket}{/Key*}',
'responseClass': 'PutObjectOutput',
'parameters': {
'Bucket': {
'required': true,
'type': 'string',
'location': 'uri',
},
'Key': {
'required': true,
'type': 'string',
'location': 'uri'
},
'Body': {
'type': [ 'string', 'object' ],
'location': 'body',
},
'ContentType': {
'type': 'string',
'location': 'header',
'sentAs': 'Content-Type',
}
}
}
$client->putObject([
'Bucket' => 'foo',
'Key' => 'baz',
'Body' => 'bar'
]);
Input
Request
GET
/foo/baz
HTTP/1.1
Host:
s3.amazonaws.com
Content-‐Length:
3
bar