Exception
11 months ago
CloudFrontClient.php
11 months ago
CookieSigner.php
11 months ago
Signer.php
11 months ago
UrlSigner.php
11 months ago
CloudFrontClient.php
323 lines
| 1 | <?php |
| 2 | namespace Aws\CloudFront; |
| 3 | |
| 4 | use Aws\AwsClient; |
| 5 | |
| 6 | /** |
| 7 | * This client is used to interact with the **Amazon CloudFront** service. |
| 8 | * |
| 9 | * @method \Aws\Result createCloudFrontOriginAccessIdentity(array $args = []) |
| 10 | * @method \GuzzleHttp\Promise\Promise createCloudFrontOriginAccessIdentityAsync(array $args = []) |
| 11 | * @method \Aws\Result createDistribution(array $args = []) |
| 12 | * @method \GuzzleHttp\Promise\Promise createDistributionAsync(array $args = []) |
| 13 | * @method \Aws\Result createInvalidation(array $args = []) |
| 14 | * @method \GuzzleHttp\Promise\Promise createInvalidationAsync(array $args = []) |
| 15 | * @method \Aws\Result createStreamingDistribution(array $args = []) |
| 16 | * @method \GuzzleHttp\Promise\Promise createStreamingDistributionAsync(array $args = []) |
| 17 | * @method \Aws\Result deleteCloudFrontOriginAccessIdentity(array $args = []) |
| 18 | * @method \GuzzleHttp\Promise\Promise deleteCloudFrontOriginAccessIdentityAsync(array $args = []) |
| 19 | * @method \Aws\Result deleteDistribution(array $args = []) |
| 20 | * @method \GuzzleHttp\Promise\Promise deleteDistributionAsync(array $args = []) |
| 21 | * @method \Aws\Result deleteStreamingDistribution(array $args = []) |
| 22 | * @method \GuzzleHttp\Promise\Promise deleteStreamingDistributionAsync(array $args = []) |
| 23 | * @method \Aws\Result getCloudFrontOriginAccessIdentity(array $args = []) |
| 24 | * @method \GuzzleHttp\Promise\Promise getCloudFrontOriginAccessIdentityAsync(array $args = []) |
| 25 | * @method \Aws\Result getCloudFrontOriginAccessIdentityConfig(array $args = []) |
| 26 | * @method \GuzzleHttp\Promise\Promise getCloudFrontOriginAccessIdentityConfigAsync(array $args = []) |
| 27 | * @method \Aws\Result getDistribution(array $args = []) |
| 28 | * @method \GuzzleHttp\Promise\Promise getDistributionAsync(array $args = []) |
| 29 | * @method \Aws\Result getDistributionConfig(array $args = []) |
| 30 | * @method \GuzzleHttp\Promise\Promise getDistributionConfigAsync(array $args = []) |
| 31 | * @method \Aws\Result getInvalidation(array $args = []) |
| 32 | * @method \GuzzleHttp\Promise\Promise getInvalidationAsync(array $args = []) |
| 33 | * @method \Aws\Result getStreamingDistribution(array $args = []) |
| 34 | * @method \GuzzleHttp\Promise\Promise getStreamingDistributionAsync(array $args = []) |
| 35 | * @method \Aws\Result getStreamingDistributionConfig(array $args = []) |
| 36 | * @method \GuzzleHttp\Promise\Promise getStreamingDistributionConfigAsync(array $args = []) |
| 37 | * @method \Aws\Result listCloudFrontOriginAccessIdentities(array $args = []) |
| 38 | * @method \GuzzleHttp\Promise\Promise listCloudFrontOriginAccessIdentitiesAsync(array $args = []) |
| 39 | * @method \Aws\Result listDistributions(array $args = []) |
| 40 | * @method \GuzzleHttp\Promise\Promise listDistributionsAsync(array $args = []) |
| 41 | * @method \Aws\Result listDistributionsByWebACLId(array $args = []) |
| 42 | * @method \GuzzleHttp\Promise\Promise listDistributionsByWebACLIdAsync(array $args = []) |
| 43 | * @method \Aws\Result listInvalidations(array $args = []) |
| 44 | * @method \GuzzleHttp\Promise\Promise listInvalidationsAsync(array $args = []) |
| 45 | * @method \Aws\Result listStreamingDistributions(array $args = []) |
| 46 | * @method \GuzzleHttp\Promise\Promise listStreamingDistributionsAsync(array $args = []) |
| 47 | * @method \Aws\Result updateCloudFrontOriginAccessIdentity(array $args = []) |
| 48 | * @method \GuzzleHttp\Promise\Promise updateCloudFrontOriginAccessIdentityAsync(array $args = []) |
| 49 | * @method \Aws\Result updateDistribution(array $args = []) |
| 50 | * @method \GuzzleHttp\Promise\Promise updateDistributionAsync(array $args = []) |
| 51 | * @method \Aws\Result updateStreamingDistribution(array $args = []) |
| 52 | * @method \GuzzleHttp\Promise\Promise updateStreamingDistributionAsync(array $args = []) |
| 53 | * @method \Aws\Result createDistributionWithTags(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29, 2016-11-25, 2017-03-25, 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 54 | * @method \GuzzleHttp\Promise\Promise createDistributionWithTagsAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29, 2016-11-25, 2017-03-25, 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 55 | * @method \Aws\Result createStreamingDistributionWithTags(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29, 2016-11-25, 2017-03-25, 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 56 | * @method \GuzzleHttp\Promise\Promise createStreamingDistributionWithTagsAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29, 2016-11-25, 2017-03-25, 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 57 | * @method \Aws\Result listTagsForResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29, 2016-11-25, 2017-03-25, 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 58 | * @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29, 2016-11-25, 2017-03-25, 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 59 | * @method \Aws\Result tagResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29, 2016-11-25, 2017-03-25, 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 60 | * @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29, 2016-11-25, 2017-03-25, 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 61 | * @method \Aws\Result untagResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29, 2016-11-25, 2017-03-25, 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 62 | * @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29, 2016-11-25, 2017-03-25, 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 63 | * @method \Aws\Result deleteServiceLinkedRole(array $args = []) (supported in versions 2017-03-25) |
| 64 | * @method \GuzzleHttp\Promise\Promise deleteServiceLinkedRoleAsync(array $args = []) (supported in versions 2017-03-25) |
| 65 | * @method \Aws\Result createFieldLevelEncryptionConfig(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 66 | * @method \GuzzleHttp\Promise\Promise createFieldLevelEncryptionConfigAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 67 | * @method \Aws\Result createFieldLevelEncryptionProfile(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 68 | * @method \GuzzleHttp\Promise\Promise createFieldLevelEncryptionProfileAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 69 | * @method \Aws\Result createPublicKey(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 70 | * @method \GuzzleHttp\Promise\Promise createPublicKeyAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 71 | * @method \Aws\Result deleteFieldLevelEncryptionConfig(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 72 | * @method \GuzzleHttp\Promise\Promise deleteFieldLevelEncryptionConfigAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 73 | * @method \Aws\Result deleteFieldLevelEncryptionProfile(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 74 | * @method \GuzzleHttp\Promise\Promise deleteFieldLevelEncryptionProfileAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 75 | * @method \Aws\Result deletePublicKey(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 76 | * @method \GuzzleHttp\Promise\Promise deletePublicKeyAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 77 | * @method \Aws\Result getFieldLevelEncryption(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 78 | * @method \GuzzleHttp\Promise\Promise getFieldLevelEncryptionAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 79 | * @method \Aws\Result getFieldLevelEncryptionConfig(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 80 | * @method \GuzzleHttp\Promise\Promise getFieldLevelEncryptionConfigAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 81 | * @method \Aws\Result getFieldLevelEncryptionProfile(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 82 | * @method \GuzzleHttp\Promise\Promise getFieldLevelEncryptionProfileAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 83 | * @method \Aws\Result getFieldLevelEncryptionProfileConfig(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 84 | * @method \GuzzleHttp\Promise\Promise getFieldLevelEncryptionProfileConfigAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 85 | * @method \Aws\Result getPublicKey(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 86 | * @method \GuzzleHttp\Promise\Promise getPublicKeyAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 87 | * @method \Aws\Result getPublicKeyConfig(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 88 | * @method \GuzzleHttp\Promise\Promise getPublicKeyConfigAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 89 | * @method \Aws\Result listFieldLevelEncryptionConfigs(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 90 | * @method \GuzzleHttp\Promise\Promise listFieldLevelEncryptionConfigsAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 91 | * @method \Aws\Result listFieldLevelEncryptionProfiles(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 92 | * @method \GuzzleHttp\Promise\Promise listFieldLevelEncryptionProfilesAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 93 | * @method \Aws\Result listPublicKeys(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 94 | * @method \GuzzleHttp\Promise\Promise listPublicKeysAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 95 | * @method \Aws\Result updateFieldLevelEncryptionConfig(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 96 | * @method \GuzzleHttp\Promise\Promise updateFieldLevelEncryptionConfigAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 97 | * @method \Aws\Result updateFieldLevelEncryptionProfile(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 98 | * @method \GuzzleHttp\Promise\Promise updateFieldLevelEncryptionProfileAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 99 | * @method \Aws\Result updatePublicKey(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 100 | * @method \GuzzleHttp\Promise\Promise updatePublicKeyAsync(array $args = []) (supported in versions 2017-10-30, 2018-06-18, 2018-11-05, 2019-03-26, 2020-05-31) |
| 101 | * @method \Aws\Result associateAlias(array $args = []) (supported in versions 2020-05-31) |
| 102 | * @method \GuzzleHttp\Promise\Promise associateAliasAsync(array $args = []) (supported in versions 2020-05-31) |
| 103 | * @method \Aws\Result copyDistribution(array $args = []) (supported in versions 2020-05-31) |
| 104 | * @method \GuzzleHttp\Promise\Promise copyDistributionAsync(array $args = []) (supported in versions 2020-05-31) |
| 105 | * @method \Aws\Result createCachePolicy(array $args = []) (supported in versions 2020-05-31) |
| 106 | * @method \GuzzleHttp\Promise\Promise createCachePolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 107 | * @method \Aws\Result createContinuousDeploymentPolicy(array $args = []) (supported in versions 2020-05-31) |
| 108 | * @method \GuzzleHttp\Promise\Promise createContinuousDeploymentPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 109 | * @method \Aws\Result createFunction(array $args = []) (supported in versions 2020-05-31) |
| 110 | * @method \GuzzleHttp\Promise\Promise createFunctionAsync(array $args = []) (supported in versions 2020-05-31) |
| 111 | * @method \Aws\Result createKeyGroup(array $args = []) (supported in versions 2020-05-31) |
| 112 | * @method \GuzzleHttp\Promise\Promise createKeyGroupAsync(array $args = []) (supported in versions 2020-05-31) |
| 113 | * @method \Aws\Result createKeyValueStore(array $args = []) (supported in versions 2020-05-31) |
| 114 | * @method \GuzzleHttp\Promise\Promise createKeyValueStoreAsync(array $args = []) (supported in versions 2020-05-31) |
| 115 | * @method \Aws\Result createMonitoringSubscription(array $args = []) (supported in versions 2020-05-31) |
| 116 | * @method \GuzzleHttp\Promise\Promise createMonitoringSubscriptionAsync(array $args = []) (supported in versions 2020-05-31) |
| 117 | * @method \Aws\Result createOriginAccessControl(array $args = []) (supported in versions 2020-05-31) |
| 118 | * @method \GuzzleHttp\Promise\Promise createOriginAccessControlAsync(array $args = []) (supported in versions 2020-05-31) |
| 119 | * @method \Aws\Result createOriginRequestPolicy(array $args = []) (supported in versions 2020-05-31) |
| 120 | * @method \GuzzleHttp\Promise\Promise createOriginRequestPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 121 | * @method \Aws\Result createRealtimeLogConfig(array $args = []) (supported in versions 2020-05-31) |
| 122 | * @method \GuzzleHttp\Promise\Promise createRealtimeLogConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 123 | * @method \Aws\Result createResponseHeadersPolicy(array $args = []) (supported in versions 2020-05-31) |
| 124 | * @method \GuzzleHttp\Promise\Promise createResponseHeadersPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 125 | * @method \Aws\Result deleteCachePolicy(array $args = []) (supported in versions 2020-05-31) |
| 126 | * @method \GuzzleHttp\Promise\Promise deleteCachePolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 127 | * @method \Aws\Result deleteContinuousDeploymentPolicy(array $args = []) (supported in versions 2020-05-31) |
| 128 | * @method \GuzzleHttp\Promise\Promise deleteContinuousDeploymentPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 129 | * @method \Aws\Result deleteFunction(array $args = []) (supported in versions 2020-05-31) |
| 130 | * @method \GuzzleHttp\Promise\Promise deleteFunctionAsync(array $args = []) (supported in versions 2020-05-31) |
| 131 | * @method \Aws\Result deleteKeyGroup(array $args = []) (supported in versions 2020-05-31) |
| 132 | * @method \GuzzleHttp\Promise\Promise deleteKeyGroupAsync(array $args = []) (supported in versions 2020-05-31) |
| 133 | * @method \Aws\Result deleteKeyValueStore(array $args = []) (supported in versions 2020-05-31) |
| 134 | * @method \GuzzleHttp\Promise\Promise deleteKeyValueStoreAsync(array $args = []) (supported in versions 2020-05-31) |
| 135 | * @method \Aws\Result deleteMonitoringSubscription(array $args = []) (supported in versions 2020-05-31) |
| 136 | * @method \GuzzleHttp\Promise\Promise deleteMonitoringSubscriptionAsync(array $args = []) (supported in versions 2020-05-31) |
| 137 | * @method \Aws\Result deleteOriginAccessControl(array $args = []) (supported in versions 2020-05-31) |
| 138 | * @method \GuzzleHttp\Promise\Promise deleteOriginAccessControlAsync(array $args = []) (supported in versions 2020-05-31) |
| 139 | * @method \Aws\Result deleteOriginRequestPolicy(array $args = []) (supported in versions 2020-05-31) |
| 140 | * @method \GuzzleHttp\Promise\Promise deleteOriginRequestPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 141 | * @method \Aws\Result deleteRealtimeLogConfig(array $args = []) (supported in versions 2020-05-31) |
| 142 | * @method \GuzzleHttp\Promise\Promise deleteRealtimeLogConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 143 | * @method \Aws\Result deleteResponseHeadersPolicy(array $args = []) (supported in versions 2020-05-31) |
| 144 | * @method \GuzzleHttp\Promise\Promise deleteResponseHeadersPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 145 | * @method \Aws\Result describeFunction(array $args = []) (supported in versions 2020-05-31) |
| 146 | * @method \GuzzleHttp\Promise\Promise describeFunctionAsync(array $args = []) (supported in versions 2020-05-31) |
| 147 | * @method \Aws\Result describeKeyValueStore(array $args = []) (supported in versions 2020-05-31) |
| 148 | * @method \GuzzleHttp\Promise\Promise describeKeyValueStoreAsync(array $args = []) (supported in versions 2020-05-31) |
| 149 | * @method \Aws\Result getCachePolicy(array $args = []) (supported in versions 2020-05-31) |
| 150 | * @method \GuzzleHttp\Promise\Promise getCachePolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 151 | * @method \Aws\Result getCachePolicyConfig(array $args = []) (supported in versions 2020-05-31) |
| 152 | * @method \GuzzleHttp\Promise\Promise getCachePolicyConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 153 | * @method \Aws\Result getContinuousDeploymentPolicy(array $args = []) (supported in versions 2020-05-31) |
| 154 | * @method \GuzzleHttp\Promise\Promise getContinuousDeploymentPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 155 | * @method \Aws\Result getContinuousDeploymentPolicyConfig(array $args = []) (supported in versions 2020-05-31) |
| 156 | * @method \GuzzleHttp\Promise\Promise getContinuousDeploymentPolicyConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 157 | * @method \Aws\Result getFunction(array $args = []) (supported in versions 2020-05-31) |
| 158 | * @method \GuzzleHttp\Promise\Promise getFunctionAsync(array $args = []) (supported in versions 2020-05-31) |
| 159 | * @method \Aws\Result getKeyGroup(array $args = []) (supported in versions 2020-05-31) |
| 160 | * @method \GuzzleHttp\Promise\Promise getKeyGroupAsync(array $args = []) (supported in versions 2020-05-31) |
| 161 | * @method \Aws\Result getKeyGroupConfig(array $args = []) (supported in versions 2020-05-31) |
| 162 | * @method \GuzzleHttp\Promise\Promise getKeyGroupConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 163 | * @method \Aws\Result getMonitoringSubscription(array $args = []) (supported in versions 2020-05-31) |
| 164 | * @method \GuzzleHttp\Promise\Promise getMonitoringSubscriptionAsync(array $args = []) (supported in versions 2020-05-31) |
| 165 | * @method \Aws\Result getOriginAccessControl(array $args = []) (supported in versions 2020-05-31) |
| 166 | * @method \GuzzleHttp\Promise\Promise getOriginAccessControlAsync(array $args = []) (supported in versions 2020-05-31) |
| 167 | * @method \Aws\Result getOriginAccessControlConfig(array $args = []) (supported in versions 2020-05-31) |
| 168 | * @method \GuzzleHttp\Promise\Promise getOriginAccessControlConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 169 | * @method \Aws\Result getOriginRequestPolicy(array $args = []) (supported in versions 2020-05-31) |
| 170 | * @method \GuzzleHttp\Promise\Promise getOriginRequestPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 171 | * @method \Aws\Result getOriginRequestPolicyConfig(array $args = []) (supported in versions 2020-05-31) |
| 172 | * @method \GuzzleHttp\Promise\Promise getOriginRequestPolicyConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 173 | * @method \Aws\Result getRealtimeLogConfig(array $args = []) (supported in versions 2020-05-31) |
| 174 | * @method \GuzzleHttp\Promise\Promise getRealtimeLogConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 175 | * @method \Aws\Result getResponseHeadersPolicy(array $args = []) (supported in versions 2020-05-31) |
| 176 | * @method \GuzzleHttp\Promise\Promise getResponseHeadersPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 177 | * @method \Aws\Result getResponseHeadersPolicyConfig(array $args = []) (supported in versions 2020-05-31) |
| 178 | * @method \GuzzleHttp\Promise\Promise getResponseHeadersPolicyConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 179 | * @method \Aws\Result listCachePolicies(array $args = []) (supported in versions 2020-05-31) |
| 180 | * @method \GuzzleHttp\Promise\Promise listCachePoliciesAsync(array $args = []) (supported in versions 2020-05-31) |
| 181 | * @method \Aws\Result listConflictingAliases(array $args = []) (supported in versions 2020-05-31) |
| 182 | * @method \GuzzleHttp\Promise\Promise listConflictingAliasesAsync(array $args = []) (supported in versions 2020-05-31) |
| 183 | * @method \Aws\Result listContinuousDeploymentPolicies(array $args = []) (supported in versions 2020-05-31) |
| 184 | * @method \GuzzleHttp\Promise\Promise listContinuousDeploymentPoliciesAsync(array $args = []) (supported in versions 2020-05-31) |
| 185 | * @method \Aws\Result listDistributionsByCachePolicyId(array $args = []) (supported in versions 2020-05-31) |
| 186 | * @method \GuzzleHttp\Promise\Promise listDistributionsByCachePolicyIdAsync(array $args = []) (supported in versions 2020-05-31) |
| 187 | * @method \Aws\Result listDistributionsByKeyGroup(array $args = []) (supported in versions 2020-05-31) |
| 188 | * @method \GuzzleHttp\Promise\Promise listDistributionsByKeyGroupAsync(array $args = []) (supported in versions 2020-05-31) |
| 189 | * @method \Aws\Result listDistributionsByOriginRequestPolicyId(array $args = []) (supported in versions 2020-05-31) |
| 190 | * @method \GuzzleHttp\Promise\Promise listDistributionsByOriginRequestPolicyIdAsync(array $args = []) (supported in versions 2020-05-31) |
| 191 | * @method \Aws\Result listDistributionsByRealtimeLogConfig(array $args = []) (supported in versions 2020-05-31) |
| 192 | * @method \GuzzleHttp\Promise\Promise listDistributionsByRealtimeLogConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 193 | * @method \Aws\Result listDistributionsByResponseHeadersPolicyId(array $args = []) (supported in versions 2020-05-31) |
| 194 | * @method \GuzzleHttp\Promise\Promise listDistributionsByResponseHeadersPolicyIdAsync(array $args = []) (supported in versions 2020-05-31) |
| 195 | * @method \Aws\Result listFunctions(array $args = []) (supported in versions 2020-05-31) |
| 196 | * @method \GuzzleHttp\Promise\Promise listFunctionsAsync(array $args = []) (supported in versions 2020-05-31) |
| 197 | * @method \Aws\Result listKeyGroups(array $args = []) (supported in versions 2020-05-31) |
| 198 | * @method \GuzzleHttp\Promise\Promise listKeyGroupsAsync(array $args = []) (supported in versions 2020-05-31) |
| 199 | * @method \Aws\Result listKeyValueStores(array $args = []) (supported in versions 2020-05-31) |
| 200 | * @method \GuzzleHttp\Promise\Promise listKeyValueStoresAsync(array $args = []) (supported in versions 2020-05-31) |
| 201 | * @method \Aws\Result listOriginAccessControls(array $args = []) (supported in versions 2020-05-31) |
| 202 | * @method \GuzzleHttp\Promise\Promise listOriginAccessControlsAsync(array $args = []) (supported in versions 2020-05-31) |
| 203 | * @method \Aws\Result listOriginRequestPolicies(array $args = []) (supported in versions 2020-05-31) |
| 204 | * @method \GuzzleHttp\Promise\Promise listOriginRequestPoliciesAsync(array $args = []) (supported in versions 2020-05-31) |
| 205 | * @method \Aws\Result listRealtimeLogConfigs(array $args = []) (supported in versions 2020-05-31) |
| 206 | * @method \GuzzleHttp\Promise\Promise listRealtimeLogConfigsAsync(array $args = []) (supported in versions 2020-05-31) |
| 207 | * @method \Aws\Result listResponseHeadersPolicies(array $args = []) (supported in versions 2020-05-31) |
| 208 | * @method \GuzzleHttp\Promise\Promise listResponseHeadersPoliciesAsync(array $args = []) (supported in versions 2020-05-31) |
| 209 | * @method \Aws\Result publishFunction(array $args = []) (supported in versions 2020-05-31) |
| 210 | * @method \GuzzleHttp\Promise\Promise publishFunctionAsync(array $args = []) (supported in versions 2020-05-31) |
| 211 | * @method \Aws\Result testFunction(array $args = []) (supported in versions 2020-05-31) |
| 212 | * @method \GuzzleHttp\Promise\Promise testFunctionAsync(array $args = []) (supported in versions 2020-05-31) |
| 213 | * @method \Aws\Result updateCachePolicy(array $args = []) (supported in versions 2020-05-31) |
| 214 | * @method \GuzzleHttp\Promise\Promise updateCachePolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 215 | * @method \Aws\Result updateContinuousDeploymentPolicy(array $args = []) (supported in versions 2020-05-31) |
| 216 | * @method \GuzzleHttp\Promise\Promise updateContinuousDeploymentPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 217 | * @method \Aws\Result updateDistributionWithStagingConfig(array $args = []) (supported in versions 2020-05-31) |
| 218 | * @method \GuzzleHttp\Promise\Promise updateDistributionWithStagingConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 219 | * @method \Aws\Result updateFunction(array $args = []) (supported in versions 2020-05-31) |
| 220 | * @method \GuzzleHttp\Promise\Promise updateFunctionAsync(array $args = []) (supported in versions 2020-05-31) |
| 221 | * @method \Aws\Result updateKeyGroup(array $args = []) (supported in versions 2020-05-31) |
| 222 | * @method \GuzzleHttp\Promise\Promise updateKeyGroupAsync(array $args = []) (supported in versions 2020-05-31) |
| 223 | * @method \Aws\Result updateKeyValueStore(array $args = []) (supported in versions 2020-05-31) |
| 224 | * @method \GuzzleHttp\Promise\Promise updateKeyValueStoreAsync(array $args = []) (supported in versions 2020-05-31) |
| 225 | * @method \Aws\Result updateOriginAccessControl(array $args = []) (supported in versions 2020-05-31) |
| 226 | * @method \GuzzleHttp\Promise\Promise updateOriginAccessControlAsync(array $args = []) (supported in versions 2020-05-31) |
| 227 | * @method \Aws\Result updateOriginRequestPolicy(array $args = []) (supported in versions 2020-05-31) |
| 228 | * @method \GuzzleHttp\Promise\Promise updateOriginRequestPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 229 | * @method \Aws\Result updateRealtimeLogConfig(array $args = []) (supported in versions 2020-05-31) |
| 230 | * @method \GuzzleHttp\Promise\Promise updateRealtimeLogConfigAsync(array $args = []) (supported in versions 2020-05-31) |
| 231 | * @method \Aws\Result updateResponseHeadersPolicy(array $args = []) (supported in versions 2020-05-31) |
| 232 | * @method \GuzzleHttp\Promise\Promise updateResponseHeadersPolicyAsync(array $args = []) (supported in versions 2020-05-31) |
| 233 | */ |
| 234 | class CloudFrontClient extends AwsClient |
| 235 | { |
| 236 | /** |
| 237 | * Create a signed Amazon CloudFront URL. |
| 238 | * |
| 239 | * This method accepts an array of configuration options: |
| 240 | * |
| 241 | * - url: (string) URL of the resource being signed (can include query |
| 242 | * string and wildcards). For example: rtmp://s5c39gqb8ow64r.cloudfront.net/videos/mp3_name.mp3 |
| 243 | * http://d111111abcdef8.cloudfront.net/images/horizon.jpg?size=large&license=yes |
| 244 | * - policy: (string) JSON policy. Use this option when creating a signed |
| 245 | * URL for a custom policy. |
| 246 | * - expires: (int) UTC Unix timestamp used when signing with a canned |
| 247 | * policy. Not required when passing a custom 'policy' option. |
| 248 | * - key_pair_id: (string) The ID of the key pair used to sign CloudFront |
| 249 | * URLs for private distributions. |
| 250 | * - private_key: (string) The filepath to the private key used to sign |
| 251 | * CloudFront URLs for private distributions. |
| 252 | * |
| 253 | * @param array $options Array of configuration options used when signing |
| 254 | * |
| 255 | * @return string Signed URL with authentication parameters |
| 256 | * @throws \InvalidArgumentException if url, key_pair_id, or private_key |
| 257 | * were not specified. |
| 258 | * @link http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/WorkingWithStreamingDistributions.html |
| 259 | */ |
| 260 | public function getSignedUrl(array $options) |
| 261 | { |
| 262 | foreach (['url', 'key_pair_id', 'private_key'] as $required) { |
| 263 | if (!isset($options[$required])) { |
| 264 | throw new \InvalidArgumentException("$required is required"); |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | $urlSigner = new UrlSigner( |
| 269 | $options['key_pair_id'], |
| 270 | $options['private_key'] |
| 271 | ); |
| 272 | |
| 273 | return $urlSigner->getSignedUrl( |
| 274 | $options['url'], |
| 275 | isset($options['expires']) ? $options['expires'] : null, |
| 276 | isset($options['policy']) ? $options['policy'] : null |
| 277 | ); |
| 278 | } |
| 279 | |
| 280 | /** |
| 281 | * Create a signed Amazon CloudFront cookie. |
| 282 | * |
| 283 | * This method accepts an array of configuration options: |
| 284 | * |
| 285 | * - url: (string) URL of the resource being signed (can include query |
| 286 | * string and wildcards). For example: http://d111111abcdef8.cloudfront.net/images/horizon.jpg?size=large&license=yes |
| 287 | * - policy: (string) JSON policy. Use this option when creating a signed |
| 288 | * URL for a custom policy. |
| 289 | * - expires: (int) UTC Unix timestamp used when signing with a canned |
| 290 | * policy. Not required when passing a custom 'policy' option. |
| 291 | * - key_pair_id: (string) The ID of the key pair used to sign CloudFront |
| 292 | * URLs for private distributions. |
| 293 | * - private_key: (string) The filepath ot the private key used to sign |
| 294 | * CloudFront URLs for private distributions. |
| 295 | * |
| 296 | * @param array $options Array of configuration options used when signing |
| 297 | * |
| 298 | * @return array Key => value pairs of signed cookies to set |
| 299 | * @throws \InvalidArgumentException if url, key_pair_id, or private_key |
| 300 | * were not specified. |
| 301 | * @link http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/WorkingWithStreamingDistributions.html |
| 302 | */ |
| 303 | public function getSignedCookie(array $options) |
| 304 | { |
| 305 | foreach (['key_pair_id', 'private_key'] as $required) { |
| 306 | if (!isset($options[$required])) { |
| 307 | throw new \InvalidArgumentException("$required is required"); |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | $cookieSigner = new CookieSigner( |
| 312 | $options['key_pair_id'], |
| 313 | $options['private_key'] |
| 314 | ); |
| 315 | |
| 316 | return $cookieSigner->getSignedCookie( |
| 317 | isset($options['url']) ? $options['url'] : null, |
| 318 | isset($options['expires']) ? $options['expires'] : null, |
| 319 | isset($options['policy']) ? $options['policy'] : null |
| 320 | ); |
| 321 | } |
| 322 | } |
| 323 |