| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::CloudFront::S3Origin; | ||
| 3 | use Moose; | ||
| 4 | has DomainName => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has OriginAccessIdentity => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | |||
| 7 | 1; | ||
| 8 | |||
| 9 | ### main pod documentation begin ### | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Paws::CloudFront::S3Origin | ||
| 14 | |||
| 15 | =head1 USAGE | ||
| 16 | |||
| 17 | This class represents one of two things: | ||
| 18 | |||
| 19 | =head3 Arguments in a call to a service | ||
| 20 | |||
| 21 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 22 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 23 | |||
| 24 | As an example, if Att1 is expected to be a Paws::CloudFront::S3Origin object: | ||
| 25 | |||
| 26 | $service_obj->Method(Att1 => { DomainName => $value, ..., OriginAccessIdentity => $value }); | ||
| 27 | |||
| 28 | =head3 Results returned from an API call | ||
| 29 | |||
| 30 | Use accessors for each attribute. If Att1 is expected to be an Paws::CloudFront::S3Origin object: | ||
| 31 | |||
| 32 | $result = $service_obj->Method(...); | ||
| 33 | $result->Att1->DomainName | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | A complex type that contains information about the Amazon S3 bucket | ||
| 38 | from which you want CloudFront to get your media files for | ||
| 39 | distribution. | ||
| 40 | |||
| 41 | =head1 ATTRIBUTES | ||
| 42 | |||
| 43 | |||
| 44 | =head2 B<REQUIRED> DomainName => Str | ||
| 45 | |||
| 46 | The DNS name of the Amazon S3 origin. | ||
| 47 | |||
| 48 | |||
| 49 | =head2 B<REQUIRED> OriginAccessIdentity => Str | ||
| 50 | |||
| 51 | The CloudFront origin access identity to associate with the | ||
| 52 | distribution. Use an origin access identity to configure the | ||
| 53 | distribution so that end users can only access objects in an Amazon S3 | ||
| 54 | bucket through CloudFront. | ||
| 55 | |||
| 56 | If you want end users to be able to access objects using either the | ||
| 57 | CloudFront URL or the Amazon S3 URL, specify an empty | ||
| 58 | C<OriginAccessIdentity> element. | ||
| 59 | |||
| 60 | To delete the origin access identity from an existing distribution, | ||
| 61 | update the distribution configuration and include an empty | ||
| 62 | C<OriginAccessIdentity> element. | ||
| 63 | |||
| 64 | To replace the origin access identity, update the distribution | ||
| 65 | configuration and specify the new origin access identity. | ||
| 66 | |||
| 67 | For more information, see Using an Origin Access Identity to Restrict | ||
| 68 | Access to Your Amazon S3 Content | ||
| 69 | (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) | ||
| 70 | in the I< Amazon CloudFront Developer Guide>. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head1 SEE ALSO | ||
| 75 | |||
| 76 | This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront> | ||
| 77 | |||
| 78 | =head1 BUGS and CONTRIBUTIONS | ||
| 79 | |||
| 80 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 81 | |||
| 82 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 83 | |||
| 84 | =cut | ||
| 85 |