Amazon-S3
view release on metacpan or search on metacpan
lib/Amazon/S3/BucketV2.pm view on Meta::CPAN
get_bucket_accelerate_configuration => 'accelerate',
get_bucket_acl => 'acl',
get_bucket_analytics => 'analytics',
get_bucket_cors => 'cors',
get_bucket_encryption => 'encryption',
get_bucket_intelligent_tiering_configuration => 'intelligent_tiering',
get_bucket_inventory_configuration => 'inventory',
get_bucket_lifecycle_configuration => 'lifecycle',
get_bucket_location => 'location',
get_bucket_logging => 'logging',
get_bucket_metrics_configuration => 'metrics',
get_bucket_notification_configuration => 'notification',
get_bucket_ownership_controls => 'ownershipControls',
get_bucket_policy => 'policy',
get_bucket_policy_status => 'policyStatus',
get_bucket_replication => 'replication',
get_bucket_request_payment => 'requestPayment',
get_bucket_tagging => 'tagging',
get_bucket_versioning => 'versioning',
get_bucket_website => 'website',
);
create_methods(
type => 'bucket',
method => 'GET',
method_def => \@GET_BUCKET_METHODS,
);
#######################################################################
our @PUT_BUCKET_METHODS = (
#######################################################################
put_bucket_intelligent_tiering_configuration => 'intelligent-tiering',
put_bucket_cors => 'cors',
put_bucket_replication_configuration => 'replication',
put_bucket_versioning => 'versioning',
put_bucket_encryption => 'encryption',
put_bucket_lifecycle_configuration => 'lifecycle',
put_bucket_lifecycle => 'lifecycle',
put_bucket_tagging => 'tagging',
);
create_methods(
type => 'bucket',
method => 'PUT',
method_def => \@PUT_BUCKET_METHODS
);
######################################################################
our @PUT_OBJECT_METHODS = (
#######################################################################
put_object => $EMPTY,
put_object_acl => 'acl',
put_object_tagging => 'tagging',
put_object_retention => 'retention',
put_object_legal_hold => 'legal-hold',
put_object_lock_configuraiton => 'lock-object',
put_public_access_block => 'publicAccessBlock',
restore_object => sub {
return { method => 'POST', api => 'restore' };
},
upload_part => $EMPTY,
upload_part_copy => $EMPTY,
);
create_methods(
type => 'object',
method => 'PUT',
method_def => \@PUT_OBJECT_METHODS,
);
######################################################################
our @DELETE_OBJECT_METHODS = (
######################################################################
delete_object => $EMPTY,
delete_objects => sub {
return { method => 'POST', api => 'delete' };
},
delete_object_tagging => 'tagging',
);
create_methods(
type => 'object',
method => 'DELETE',
method_def => \@DELETE_OBJECT_METHODS,
);
######################################################################
our @DELETE_BUCKET_METHODS = (
######################################################################
delete_bucket => $EMPTY,
delete_bucket_analytics_configuration => 'analytics',
delete_bucket_cors => 'cors',
delete_bucket_encryption => 'encryption',
delete_bucket_intelligent_tiering => 'intelligent-tiering',
delete_bucket_inventory_configuration => 'inventory',
delete_bucket_lifecycle => 'lifecycle',
delete_bucket_metrics_configuration => 'metrics',
delete_bucket_ownership_controls => 'ownershipControls',
delete_bucket_policy => 'policy',
delete_bucket_replication => 'replication',
delete_bucket_tagging => 'tagging',
delete_bucket_website => 'website',
delete_public_access_block => 'publicAccessBlock',
);
create_methods(
type => 'bucket',
method => 'DELETE',
method_def => \@DELETE_BUCKET_METHODS
);
########################################################################
sub new {
########################################################################
my ( $class, @args ) = @_;
return $class->SUPER::new(@args);
}
########################################################################
sub to_camel_case {
########################################################################
lib/Amazon/S3/BucketV2.pm view on Meta::CPAN
=head2 put_bucket_encryption
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html>
=head2 put_bucket_intelligent_tiering_configuration
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketIntelligentTieringConfiguration.html>
=head2 put_bucket_lifecycle
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html>
=head2 put_bucket_lifecycle_configuration
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html>
=head2 put_bucket_replication_configuration
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketReplicationConfiguration.html>
=head2 put_bucket_tagging
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketTagging.html>
=head2 put_bucket_versioning
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketVersioning.html>
=head2 put_object
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html>
=head2 put_object_acl
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectAcl.html>
=head2 put_object_legal_hold
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectLegalHold.html>
=head2 put_object_lock_configuraiton
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectLockConfiguraiton.html>
=head2 put_object_retention
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectRetention.html>
=head2 put_object_tagging
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectTagging.html>
=head2 put_public_access_block
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutPublicAccessBlock.html>
=head2 restore_object
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html>
=head2 upload_part
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html>
=head2 upload_part_copy
L<https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html>
=head1 SEE OTHER
L<Amazon::S3>, L<Amazon::S3::Bucket>
=head1 AUTHOR
Rob Lauer - <bigfoot@cpan.org>
=cut
( run in 0.919 second using v1.01-cache-2.11-cpan-b16cb0d3907 )