OLD | NEW |
1 .. ref-cloudfront | 1 .. ref-cloudfront |
2 | 2 |
3 ========== | 3 ========== |
4 cloudfront | 4 cloudfront |
5 ========== | 5 ========== |
6 | 6 |
7 A Crash Course in CloudFront in Boto | 7 A Crash Course in CloudFront in Boto |
8 ------------------------------------ | 8 ------------------------------------ |
9 | 9 |
10 This new boto module provides an interface to Amazon's new Content Service, Clou
dFront. | 10 This new boto module provides an interface to Amazon's new Content Service, Clou
dFront. |
11 | 11 |
12 Caveats: | 12 .. warning:: |
13 | 13 |
14 This module is not well tested. Paging of distributions is not yet | 14 This module is not well tested. Paging of distributions is not yet |
15 supported. CNAME support is completely untested. Use with caution. | 15 supported. CNAME support is completely untested. Use with caution. |
16 Feedback and bug reports are greatly appreciated. | 16 Feedback and bug reports are greatly appreciated. |
17 | 17 |
18 The following shows the main features of the cloudfront module from an interacti
ve shell: | 18 The following shows the main features of the cloudfront module from an interacti
ve shell: |
19 | 19 |
20 Create an cloudfront connection: | 20 Create an cloudfront connection: |
21 | 21 |
22 >>> from boto.cloudfront import CloudFrontConnection | 22 >>> from boto.cloudfront import CloudFrontConnection |
23 >>> c = CloudFrontConnection() | 23 >>> c = CloudFrontConnection() |
24 | 24 |
25 Create a new :class:`boto.cloudfront.distribution.Distribution`: | 25 Create a new :class:`boto.cloudfront.distribution.Distribution`: |
26 | 26 |
27 >>> distro = c.create_distribution(origin='mybucket.s3.amazonaws.com', enabled=F
alse, comment='My new Distribution') | 27 >>> distro = c.create_distribution(origin='mybucket.s3.amazonaws.com', enabled=F
alse, comment='My new Distribution') |
28 >>> d.domain_name | 28 >>> d.domain_name |
29 u'd2oxf3980lnb8l.cloudfront.net' | 29 u'd2oxf3980lnb8l.cloudfront.net' |
30 >>> d.id | 30 >>> d.id |
31 u'ECH69MOIW7613' | 31 u'ECH69MOIW7613' |
32 >>> d.status | 32 >>> d.status |
33 u'InProgress' | 33 u'InProgress' |
34 >>> d.config.comment | 34 >>> d.config.comment |
35 u'My new distribution' | 35 u'My new distribution' |
36 >>> d.config.origin | 36 >>> d.config.origin |
37 u'mybucket.s3.amazonaws.com' | 37 <S3Origin: mybucket.s3.amazonaws.com> |
38 >>> d.config.caller_reference | 38 >>> d.config.caller_reference |
39 u'31b8d9cf-a623-4a28-b062-a91856fac6d0' | 39 u'31b8d9cf-a623-4a28-b062-a91856fac6d0' |
40 >>> d.config.enabled | 40 >>> d.config.enabled |
41 False | 41 False |
42 | 42 |
43 Note that a new caller reference is created automatically, using | 43 Note that a new caller reference is created automatically, using |
44 uuid.uuid4(). The :class:`boto.cloudfront.distribution.Distribution`, :class:`b
oto.cloudfront.distribution.DistributionConfig` and | 44 uuid.uuid4(). The :class:`boto.cloudfront.distribution.Distribution`, :class:`b
oto.cloudfront.distribution.DistributionConfig` and |
45 :class:`boto.cloudfront.distribution.DistributionSummary` objects are defined in
the :mod:`boto.cloudfront.distribution` | 45 :class:`boto.cloudfront.distribution.DistributionSummary` objects are defined in
the :mod:`boto.cloudfront.distribution` |
46 module. | 46 module. |
47 | 47 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 --------------- | 90 --------------- |
91 | 91 |
92 .. automodule:: boto.cloudfront | 92 .. automodule:: boto.cloudfront |
93 :members: | 93 :members: |
94 :undoc-members: | 94 :undoc-members: |
95 | 95 |
96 boto.cloudfront.distribution | 96 boto.cloudfront.distribution |
97 ---------------------------- | 97 ---------------------------- |
98 | 98 |
99 .. automodule:: boto.cloudfront.distribution | 99 .. automodule:: boto.cloudfront.distribution |
100 :members: | 100 :members: |
| 101 :undoc-members: |
| 102 |
| 103 boto.cloudfront.origin |
| 104 ---------------------------- |
| 105 |
| 106 .. automodule:: boto.cloudfront.origin |
| 107 :members: |
101 :undoc-members: | 108 :undoc-members: |
102 | 109 |
103 boto.cloudfront.exception | 110 boto.cloudfront.exception |
104 ------------------------- | 111 ------------------------- |
105 | 112 |
106 .. automodule:: boto.cloudfront.exception | 113 .. automodule:: boto.cloudfront.exception |
107 :members: | 114 :members: |
108 :undoc-members: | 115 :undoc-members: |
OLD | NEW |