The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Paws::CloudFront::AllowedMethods

USAGE

This class represents one of two things:

Arguments in a call to a service

Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object.

As an example, if Att1 is expected to be a Paws::CloudFront::AllowedMethods object:

  $service_obj->Method(Att1 => { CachedMethods => $value, ..., Quantity => $value  });

Results returned from an API call

Use accessors for each attribute. If Att1 is expected to be an Paws::CloudFront::AllowedMethods object:

  $result = $service_obj->Method(...);
  $result->Att1->CachedMethods

DESCRIPTION

A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:

  • CloudFront forwards only GET and HEAD requests.

  • CloudFront forwards only GET, HEAD, and OPTIONS requests.

  • CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests.

If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.

ATTRIBUTES

CachedMethods => Paws::CloudFront::CachedMethods

REQUIRED Items => ArrayRef[Str|Undef]

  A complex type that contains the HTTP methods that you want CloudFront
to process and forward to your origin.

REQUIRED Quantity => Int

  The number of HTTP methods that you want CloudFront to forward to your
origin. Valid values are 2 (for C<GET> and C<HEAD> requests), 3 (for
C<GET>, C<HEAD>, and C<OPTIONS> requests) and 7 (for C<GET, HEAD,
OPTIONS, PUT, PATCH, POST>, and C<DELETE> requests).

SEE ALSO

This class forms part of Paws, describing an object used in Paws::CloudFront

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues