vendredi 13 mai 2016

Is there any possibility of using query term in aws-sdk-php?

I want to know the size of the bucket and length of the bucket.For this i am using aws-cli.iam passing below query from terminal.aws queries link

aws s3api list-objects --bucket BUCKETNAME --output json --query "[sum(Contents[].Size), length(Contents[])]" 

Iam getting the size and length. Now i want to use this query in laravel php using aws/aws-sdk-php.but i think there is no --query term in it.Is there any possibility for getting count and length of bucket.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire