@aws-sdk/client-cloudfront 3.35.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist-cjs/CloudFront.js +0 -1
- package/dist-cjs/CloudFrontClient.js +0 -1
- package/dist-cjs/commands/AssociateAliasCommand.js +0 -1
- package/dist-cjs/commands/CreateCachePolicyCommand.js +0 -1
- package/dist-cjs/commands/CreateCloudFrontOriginAccessIdentityCommand.js +0 -1
- package/dist-cjs/commands/CreateDistributionCommand.js +0 -1
- package/dist-cjs/commands/CreateDistributionWithTagsCommand.js +0 -1
- package/dist-cjs/commands/CreateFieldLevelEncryptionConfigCommand.js +0 -1
- package/dist-cjs/commands/CreateFieldLevelEncryptionProfileCommand.js +0 -1
- package/dist-cjs/commands/CreateFunctionCommand.js +0 -1
- package/dist-cjs/commands/CreateInvalidationCommand.js +0 -1
- package/dist-cjs/commands/CreateKeyGroupCommand.js +0 -1
- package/dist-cjs/commands/CreateMonitoringSubscriptionCommand.js +0 -1
- package/dist-cjs/commands/CreateOriginRequestPolicyCommand.js +0 -1
- package/dist-cjs/commands/CreatePublicKeyCommand.js +0 -1
- package/dist-cjs/commands/CreateRealtimeLogConfigCommand.js +0 -1
- package/dist-cjs/commands/CreateStreamingDistributionCommand.js +0 -1
- package/dist-cjs/commands/CreateStreamingDistributionWithTagsCommand.js +0 -1
- package/dist-cjs/commands/DeleteCachePolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +0 -1
- package/dist-cjs/commands/DeleteDistributionCommand.js +0 -1
- package/dist-cjs/commands/DeleteFieldLevelEncryptionConfigCommand.js +0 -1
- package/dist-cjs/commands/DeleteFieldLevelEncryptionProfileCommand.js +0 -1
- package/dist-cjs/commands/DeleteFunctionCommand.js +0 -1
- package/dist-cjs/commands/DeleteKeyGroupCommand.js +0 -1
- package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js +0 -1
- package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeletePublicKeyCommand.js +0 -1
- package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js +0 -1
- package/dist-cjs/commands/DeleteStreamingDistributionCommand.js +0 -1
- package/dist-cjs/commands/DescribeFunctionCommand.js +0 -1
- package/dist-cjs/commands/GetCachePolicyCommand.js +0 -1
- package/dist-cjs/commands/GetCachePolicyConfigCommand.js +0 -1
- package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js +0 -1
- package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +0 -1
- package/dist-cjs/commands/GetDistributionCommand.js +0 -1
- package/dist-cjs/commands/GetDistributionConfigCommand.js +0 -1
- package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js +0 -1
- package/dist-cjs/commands/GetFieldLevelEncryptionConfigCommand.js +0 -1
- package/dist-cjs/commands/GetFieldLevelEncryptionProfileCommand.js +0 -1
- package/dist-cjs/commands/GetFieldLevelEncryptionProfileConfigCommand.js +0 -1
- package/dist-cjs/commands/GetFunctionCommand.js +0 -1
- package/dist-cjs/commands/GetInvalidationCommand.js +0 -1
- package/dist-cjs/commands/GetKeyGroupCommand.js +0 -1
- package/dist-cjs/commands/GetKeyGroupConfigCommand.js +0 -1
- package/dist-cjs/commands/GetMonitoringSubscriptionCommand.js +0 -1
- package/dist-cjs/commands/GetOriginRequestPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetOriginRequestPolicyConfigCommand.js +0 -1
- package/dist-cjs/commands/GetPublicKeyCommand.js +0 -1
- package/dist-cjs/commands/GetPublicKeyConfigCommand.js +0 -1
- package/dist-cjs/commands/GetRealtimeLogConfigCommand.js +0 -1
- package/dist-cjs/commands/GetStreamingDistributionCommand.js +0 -1
- package/dist-cjs/commands/GetStreamingDistributionConfigCommand.js +0 -1
- package/dist-cjs/commands/ListCachePoliciesCommand.js +0 -1
- package/dist-cjs/commands/ListCloudFrontOriginAccessIdentitiesCommand.js +0 -1
- package/dist-cjs/commands/ListConflictingAliasesCommand.js +0 -1
- package/dist-cjs/commands/ListDistributionsByCachePolicyIdCommand.js +0 -1
- package/dist-cjs/commands/ListDistributionsByKeyGroupCommand.js +0 -1
- package/dist-cjs/commands/ListDistributionsByOriginRequestPolicyIdCommand.js +0 -1
- package/dist-cjs/commands/ListDistributionsByRealtimeLogConfigCommand.js +0 -1
- package/dist-cjs/commands/ListDistributionsByWebACLIdCommand.js +0 -1
- package/dist-cjs/commands/ListDistributionsCommand.js +0 -1
- package/dist-cjs/commands/ListFieldLevelEncryptionConfigsCommand.js +0 -1
- package/dist-cjs/commands/ListFieldLevelEncryptionProfilesCommand.js +0 -1
- package/dist-cjs/commands/ListFunctionsCommand.js +0 -1
- package/dist-cjs/commands/ListInvalidationsCommand.js +0 -1
- package/dist-cjs/commands/ListKeyGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListOriginRequestPoliciesCommand.js +0 -1
- package/dist-cjs/commands/ListPublicKeysCommand.js +0 -1
- package/dist-cjs/commands/ListRealtimeLogConfigsCommand.js +0 -1
- package/dist-cjs/commands/ListStreamingDistributionsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PublishFunctionCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/TestFunctionCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateCachePolicyCommand.js +0 -1
- package/dist-cjs/commands/UpdateCloudFrontOriginAccessIdentityCommand.js +0 -1
- package/dist-cjs/commands/UpdateDistributionCommand.js +0 -1
- package/dist-cjs/commands/UpdateFieldLevelEncryptionConfigCommand.js +0 -1
- package/dist-cjs/commands/UpdateFieldLevelEncryptionProfileCommand.js +0 -1
- package/dist-cjs/commands/UpdateFunctionCommand.js +0 -1
- package/dist-cjs/commands/UpdateKeyGroupCommand.js +0 -1
- package/dist-cjs/commands/UpdateOriginRequestPolicyCommand.js +0 -1
- package/dist-cjs/commands/UpdatePublicKeyCommand.js +0 -1
- package/dist-cjs/commands/UpdateRealtimeLogConfigCommand.js +0 -1
- package/dist-cjs/commands/UpdateStreamingDistributionCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/models/models_1.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js +0 -1
- package/dist-cjs/pagination/ListDistributionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListInvalidationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListStreamingDistributionsPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_restXml.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-cjs/waiters/waitForDistributionDeployed.js +0 -1
- package/dist-cjs/waiters/waitForInvalidationCompleted.js +0 -1
- package/dist-cjs/waiters/waitForStreamingDistributionDeployed.js +0 -1
- package/dist-es/CloudFront.js +0 -1
- package/dist-es/CloudFrontClient.js +0 -1
- package/dist-es/commands/AssociateAliasCommand.js +0 -1
- package/dist-es/commands/CreateCachePolicyCommand.js +0 -1
- package/dist-es/commands/CreateCloudFrontOriginAccessIdentityCommand.js +0 -1
- package/dist-es/commands/CreateDistributionCommand.js +0 -1
- package/dist-es/commands/CreateDistributionWithTagsCommand.js +0 -1
- package/dist-es/commands/CreateFieldLevelEncryptionConfigCommand.js +0 -1
- package/dist-es/commands/CreateFieldLevelEncryptionProfileCommand.js +0 -1
- package/dist-es/commands/CreateFunctionCommand.js +0 -1
- package/dist-es/commands/CreateInvalidationCommand.js +0 -1
- package/dist-es/commands/CreateKeyGroupCommand.js +0 -1
- package/dist-es/commands/CreateMonitoringSubscriptionCommand.js +0 -1
- package/dist-es/commands/CreateOriginRequestPolicyCommand.js +0 -1
- package/dist-es/commands/CreatePublicKeyCommand.js +0 -1
- package/dist-es/commands/CreateRealtimeLogConfigCommand.js +0 -1
- package/dist-es/commands/CreateStreamingDistributionCommand.js +0 -1
- package/dist-es/commands/CreateStreamingDistributionWithTagsCommand.js +0 -1
- package/dist-es/commands/DeleteCachePolicyCommand.js +0 -1
- package/dist-es/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +0 -1
- package/dist-es/commands/DeleteDistributionCommand.js +0 -1
- package/dist-es/commands/DeleteFieldLevelEncryptionConfigCommand.js +0 -1
- package/dist-es/commands/DeleteFieldLevelEncryptionProfileCommand.js +0 -1
- package/dist-es/commands/DeleteFunctionCommand.js +0 -1
- package/dist-es/commands/DeleteKeyGroupCommand.js +0 -1
- package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js +0 -1
- package/dist-es/commands/DeleteOriginRequestPolicyCommand.js +0 -1
- package/dist-es/commands/DeletePublicKeyCommand.js +0 -1
- package/dist-es/commands/DeleteRealtimeLogConfigCommand.js +0 -1
- package/dist-es/commands/DeleteStreamingDistributionCommand.js +0 -1
- package/dist-es/commands/DescribeFunctionCommand.js +0 -1
- package/dist-es/commands/GetCachePolicyCommand.js +0 -1
- package/dist-es/commands/GetCachePolicyConfigCommand.js +0 -1
- package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js +0 -1
- package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +0 -1
- package/dist-es/commands/GetDistributionCommand.js +0 -1
- package/dist-es/commands/GetDistributionConfigCommand.js +0 -1
- package/dist-es/commands/GetFieldLevelEncryptionCommand.js +0 -1
- package/dist-es/commands/GetFieldLevelEncryptionConfigCommand.js +0 -1
- package/dist-es/commands/GetFieldLevelEncryptionProfileCommand.js +0 -1
- package/dist-es/commands/GetFieldLevelEncryptionProfileConfigCommand.js +0 -1
- package/dist-es/commands/GetFunctionCommand.js +0 -1
- package/dist-es/commands/GetInvalidationCommand.js +0 -1
- package/dist-es/commands/GetKeyGroupCommand.js +0 -1
- package/dist-es/commands/GetKeyGroupConfigCommand.js +0 -1
- package/dist-es/commands/GetMonitoringSubscriptionCommand.js +0 -1
- package/dist-es/commands/GetOriginRequestPolicyCommand.js +0 -1
- package/dist-es/commands/GetOriginRequestPolicyConfigCommand.js +0 -1
- package/dist-es/commands/GetPublicKeyCommand.js +0 -1
- package/dist-es/commands/GetPublicKeyConfigCommand.js +0 -1
- package/dist-es/commands/GetRealtimeLogConfigCommand.js +0 -1
- package/dist-es/commands/GetStreamingDistributionCommand.js +0 -1
- package/dist-es/commands/GetStreamingDistributionConfigCommand.js +0 -1
- package/dist-es/commands/ListCachePoliciesCommand.js +0 -1
- package/dist-es/commands/ListCloudFrontOriginAccessIdentitiesCommand.js +0 -1
- package/dist-es/commands/ListConflictingAliasesCommand.js +0 -1
- package/dist-es/commands/ListDistributionsByCachePolicyIdCommand.js +0 -1
- package/dist-es/commands/ListDistributionsByKeyGroupCommand.js +0 -1
- package/dist-es/commands/ListDistributionsByOriginRequestPolicyIdCommand.js +0 -1
- package/dist-es/commands/ListDistributionsByRealtimeLogConfigCommand.js +0 -1
- package/dist-es/commands/ListDistributionsByWebACLIdCommand.js +0 -1
- package/dist-es/commands/ListDistributionsCommand.js +0 -1
- package/dist-es/commands/ListFieldLevelEncryptionConfigsCommand.js +0 -1
- package/dist-es/commands/ListFieldLevelEncryptionProfilesCommand.js +0 -1
- package/dist-es/commands/ListFunctionsCommand.js +0 -1
- package/dist-es/commands/ListInvalidationsCommand.js +0 -1
- package/dist-es/commands/ListKeyGroupsCommand.js +0 -1
- package/dist-es/commands/ListOriginRequestPoliciesCommand.js +0 -1
- package/dist-es/commands/ListPublicKeysCommand.js +0 -1
- package/dist-es/commands/ListRealtimeLogConfigsCommand.js +0 -1
- package/dist-es/commands/ListStreamingDistributionsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PublishFunctionCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/TestFunctionCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateCachePolicyCommand.js +0 -1
- package/dist-es/commands/UpdateCloudFrontOriginAccessIdentityCommand.js +0 -1
- package/dist-es/commands/UpdateDistributionCommand.js +0 -1
- package/dist-es/commands/UpdateFieldLevelEncryptionConfigCommand.js +0 -1
- package/dist-es/commands/UpdateFieldLevelEncryptionProfileCommand.js +0 -1
- package/dist-es/commands/UpdateFunctionCommand.js +0 -1
- package/dist-es/commands/UpdateKeyGroupCommand.js +0 -1
- package/dist-es/commands/UpdateOriginRequestPolicyCommand.js +0 -1
- package/dist-es/commands/UpdatePublicKeyCommand.js +0 -1
- package/dist-es/commands/UpdateRealtimeLogConfigCommand.js +0 -1
- package/dist-es/commands/UpdateStreamingDistributionCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/models/models_1.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js +0 -1
- package/dist-es/pagination/ListDistributionsPaginator.js +0 -1
- package/dist-es/pagination/ListInvalidationsPaginator.js +0 -1
- package/dist-es/pagination/ListStreamingDistributionsPaginator.js +0 -1
- package/dist-es/protocols/Aws_restXml.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/waitForDistributionDeployed.js +0 -1
- package/dist-es/waiters/waitForInvalidationCompleted.js +0 -1
- package/dist-es/waiters/waitForStreamingDistributionDeployed.js +0 -1
- package/package.json +35 -32
- package/dist-cjs/CloudFront.js.map +0 -1
- package/dist-cjs/CloudFrontClient.js.map +0 -1
- package/dist-cjs/commands/AssociateAliasCommand.js.map +0 -1
- package/dist-cjs/commands/CreateCachePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/CreateCloudFrontOriginAccessIdentityCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDistributionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDistributionWithTagsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFieldLevelEncryptionConfigCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFieldLevelEncryptionProfileCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateInvalidationCommand.js.map +0 -1
- package/dist-cjs/commands/CreateKeyGroupCommand.js.map +0 -1
- package/dist-cjs/commands/CreateMonitoringSubscriptionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateOriginRequestPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/CreatePublicKeyCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRealtimeLogConfigCommand.js.map +0 -1
- package/dist-cjs/commands/CreateStreamingDistributionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateStreamingDistributionWithTagsCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteCachePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteCloudFrontOriginAccessIdentityCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDistributionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFieldLevelEncryptionConfigCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFieldLevelEncryptionProfileCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteKeyGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePublicKeyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteStreamingDistributionCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/GetCachePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetCachePolicyConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js.map +0 -1
- package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetDistributionCommand.js.map +0 -1
- package/dist-cjs/commands/GetDistributionConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js.map +0 -1
- package/dist-cjs/commands/GetFieldLevelEncryptionConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetFieldLevelEncryptionProfileCommand.js.map +0 -1
- package/dist-cjs/commands/GetFieldLevelEncryptionProfileConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/GetInvalidationCommand.js.map +0 -1
- package/dist-cjs/commands/GetKeyGroupCommand.js.map +0 -1
- package/dist-cjs/commands/GetKeyGroupConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetMonitoringSubscriptionCommand.js.map +0 -1
- package/dist-cjs/commands/GetOriginRequestPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetOriginRequestPolicyConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetPublicKeyCommand.js.map +0 -1
- package/dist-cjs/commands/GetPublicKeyConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetRealtimeLogConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetStreamingDistributionCommand.js.map +0 -1
- package/dist-cjs/commands/GetStreamingDistributionConfigCommand.js.map +0 -1
- package/dist-cjs/commands/ListCachePoliciesCommand.js.map +0 -1
- package/dist-cjs/commands/ListCloudFrontOriginAccessIdentitiesCommand.js.map +0 -1
- package/dist-cjs/commands/ListConflictingAliasesCommand.js.map +0 -1
- package/dist-cjs/commands/ListDistributionsByCachePolicyIdCommand.js.map +0 -1
- package/dist-cjs/commands/ListDistributionsByKeyGroupCommand.js.map +0 -1
- package/dist-cjs/commands/ListDistributionsByOriginRequestPolicyIdCommand.js.map +0 -1
- package/dist-cjs/commands/ListDistributionsByRealtimeLogConfigCommand.js.map +0 -1
- package/dist-cjs/commands/ListDistributionsByWebACLIdCommand.js.map +0 -1
- package/dist-cjs/commands/ListDistributionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListFieldLevelEncryptionConfigsCommand.js.map +0 -1
- package/dist-cjs/commands/ListFieldLevelEncryptionProfilesCommand.js.map +0 -1
- package/dist-cjs/commands/ListFunctionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListInvalidationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListKeyGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/ListOriginRequestPoliciesCommand.js.map +0 -1
- package/dist-cjs/commands/ListPublicKeysCommand.js.map +0 -1
- package/dist-cjs/commands/ListRealtimeLogConfigsCommand.js.map +0 -1
- package/dist-cjs/commands/ListStreamingDistributionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PublishFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/TestFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateCachePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateCloudFrontOriginAccessIdentityCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateDistributionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFieldLevelEncryptionConfigCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFieldLevelEncryptionProfileCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateKeyGroupCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateOriginRequestPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/UpdatePublicKeyCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRealtimeLogConfigCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateStreamingDistributionCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/models/models_1.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDistributionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListInvalidationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListStreamingDistributionsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restXml.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForDistributionDeployed.js.map +0 -1
- package/dist-cjs/waiters/waitForInvalidationCompleted.js.map +0 -1
- package/dist-cjs/waiters/waitForStreamingDistributionDeployed.js.map +0 -1
- package/dist-es/CloudFront.js.map +0 -1
- package/dist-es/CloudFrontClient.js.map +0 -1
- package/dist-es/commands/AssociateAliasCommand.js.map +0 -1
- package/dist-es/commands/CreateCachePolicyCommand.js.map +0 -1
- package/dist-es/commands/CreateCloudFrontOriginAccessIdentityCommand.js.map +0 -1
- package/dist-es/commands/CreateDistributionCommand.js.map +0 -1
- package/dist-es/commands/CreateDistributionWithTagsCommand.js.map +0 -1
- package/dist-es/commands/CreateFieldLevelEncryptionConfigCommand.js.map +0 -1
- package/dist-es/commands/CreateFieldLevelEncryptionProfileCommand.js.map +0 -1
- package/dist-es/commands/CreateFunctionCommand.js.map +0 -1
- package/dist-es/commands/CreateInvalidationCommand.js.map +0 -1
- package/dist-es/commands/CreateKeyGroupCommand.js.map +0 -1
- package/dist-es/commands/CreateMonitoringSubscriptionCommand.js.map +0 -1
- package/dist-es/commands/CreateOriginRequestPolicyCommand.js.map +0 -1
- package/dist-es/commands/CreatePublicKeyCommand.js.map +0 -1
- package/dist-es/commands/CreateRealtimeLogConfigCommand.js.map +0 -1
- package/dist-es/commands/CreateStreamingDistributionCommand.js.map +0 -1
- package/dist-es/commands/CreateStreamingDistributionWithTagsCommand.js.map +0 -1
- package/dist-es/commands/DeleteCachePolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteCloudFrontOriginAccessIdentityCommand.js.map +0 -1
- package/dist-es/commands/DeleteDistributionCommand.js.map +0 -1
- package/dist-es/commands/DeleteFieldLevelEncryptionConfigCommand.js.map +0 -1
- package/dist-es/commands/DeleteFieldLevelEncryptionProfileCommand.js.map +0 -1
- package/dist-es/commands/DeleteFunctionCommand.js.map +0 -1
- package/dist-es/commands/DeleteKeyGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js.map +0 -1
- package/dist-es/commands/DeleteOriginRequestPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeletePublicKeyCommand.js.map +0 -1
- package/dist-es/commands/DeleteRealtimeLogConfigCommand.js.map +0 -1
- package/dist-es/commands/DeleteStreamingDistributionCommand.js.map +0 -1
- package/dist-es/commands/DescribeFunctionCommand.js.map +0 -1
- package/dist-es/commands/GetCachePolicyCommand.js.map +0 -1
- package/dist-es/commands/GetCachePolicyConfigCommand.js.map +0 -1
- package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js.map +0 -1
- package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js.map +0 -1
- package/dist-es/commands/GetDistributionCommand.js.map +0 -1
- package/dist-es/commands/GetDistributionConfigCommand.js.map +0 -1
- package/dist-es/commands/GetFieldLevelEncryptionCommand.js.map +0 -1
- package/dist-es/commands/GetFieldLevelEncryptionConfigCommand.js.map +0 -1
- package/dist-es/commands/GetFieldLevelEncryptionProfileCommand.js.map +0 -1
- package/dist-es/commands/GetFieldLevelEncryptionProfileConfigCommand.js.map +0 -1
- package/dist-es/commands/GetFunctionCommand.js.map +0 -1
- package/dist-es/commands/GetInvalidationCommand.js.map +0 -1
- package/dist-es/commands/GetKeyGroupCommand.js.map +0 -1
- package/dist-es/commands/GetKeyGroupConfigCommand.js.map +0 -1
- package/dist-es/commands/GetMonitoringSubscriptionCommand.js.map +0 -1
- package/dist-es/commands/GetOriginRequestPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetOriginRequestPolicyConfigCommand.js.map +0 -1
- package/dist-es/commands/GetPublicKeyCommand.js.map +0 -1
- package/dist-es/commands/GetPublicKeyConfigCommand.js.map +0 -1
- package/dist-es/commands/GetRealtimeLogConfigCommand.js.map +0 -1
- package/dist-es/commands/GetStreamingDistributionCommand.js.map +0 -1
- package/dist-es/commands/GetStreamingDistributionConfigCommand.js.map +0 -1
- package/dist-es/commands/ListCachePoliciesCommand.js.map +0 -1
- package/dist-es/commands/ListCloudFrontOriginAccessIdentitiesCommand.js.map +0 -1
- package/dist-es/commands/ListConflictingAliasesCommand.js.map +0 -1
- package/dist-es/commands/ListDistributionsByCachePolicyIdCommand.js.map +0 -1
- package/dist-es/commands/ListDistributionsByKeyGroupCommand.js.map +0 -1
- package/dist-es/commands/ListDistributionsByOriginRequestPolicyIdCommand.js.map +0 -1
- package/dist-es/commands/ListDistributionsByRealtimeLogConfigCommand.js.map +0 -1
- package/dist-es/commands/ListDistributionsByWebACLIdCommand.js.map +0 -1
- package/dist-es/commands/ListDistributionsCommand.js.map +0 -1
- package/dist-es/commands/ListFieldLevelEncryptionConfigsCommand.js.map +0 -1
- package/dist-es/commands/ListFieldLevelEncryptionProfilesCommand.js.map +0 -1
- package/dist-es/commands/ListFunctionsCommand.js.map +0 -1
- package/dist-es/commands/ListInvalidationsCommand.js.map +0 -1
- package/dist-es/commands/ListKeyGroupsCommand.js.map +0 -1
- package/dist-es/commands/ListOriginRequestPoliciesCommand.js.map +0 -1
- package/dist-es/commands/ListPublicKeysCommand.js.map +0 -1
- package/dist-es/commands/ListRealtimeLogConfigsCommand.js.map +0 -1
- package/dist-es/commands/ListStreamingDistributionsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PublishFunctionCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/TestFunctionCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateCachePolicyCommand.js.map +0 -1
- package/dist-es/commands/UpdateCloudFrontOriginAccessIdentityCommand.js.map +0 -1
- package/dist-es/commands/UpdateDistributionCommand.js.map +0 -1
- package/dist-es/commands/UpdateFieldLevelEncryptionConfigCommand.js.map +0 -1
- package/dist-es/commands/UpdateFieldLevelEncryptionProfileCommand.js.map +0 -1
- package/dist-es/commands/UpdateFunctionCommand.js.map +0 -1
- package/dist-es/commands/UpdateKeyGroupCommand.js.map +0 -1
- package/dist-es/commands/UpdateOriginRequestPolicyCommand.js.map +0 -1
- package/dist-es/commands/UpdatePublicKeyCommand.js.map +0 -1
- package/dist-es/commands/UpdateRealtimeLogConfigCommand.js.map +0 -1
- package/dist-es/commands/UpdateStreamingDistributionCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/models/models_1.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js.map +0 -1
- package/dist-es/pagination/ListDistributionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListInvalidationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListStreamingDistributionsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restXml.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForDistributionDeployed.js.map +0 -1
- package/dist-es/waiters/waitForInvalidationCompleted.js.map +0 -1
- package/dist-es/waiters/waitForStreamingDistributionDeployed.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/CloudFront.ts +0 -3606
- package/src/CloudFrontClient.ts +0 -641
- package/src/commands/AssociateAliasCommand.ts +0 -105
- package/src/commands/CreateCachePolicyCommand.ts +0 -115
- package/src/commands/CreateCloudFrontOriginAccessIdentityCommand.ts +0 -109
- package/src/commands/CreateDistributionCommand.ts +0 -107
- package/src/commands/CreateDistributionWithTagsCommand.ts +0 -98
- package/src/commands/CreateFieldLevelEncryptionConfigCommand.ts +0 -103
- package/src/commands/CreateFieldLevelEncryptionProfileCommand.ts +0 -103
- package/src/commands/CreateFunctionCommand.ts +0 -105
- package/src/commands/CreateInvalidationCommand.ts +0 -95
- package/src/commands/CreateKeyGroupCommand.ts +0 -102
- package/src/commands/CreateMonitoringSubscriptionCommand.ts +0 -103
- package/src/commands/CreateOriginRequestPolicyCommand.ts +0 -122
- package/src/commands/CreatePublicKeyCommand.ts +0 -95
- package/src/commands/CreateRealtimeLogConfigCommand.ts +0 -98
- package/src/commands/CreateStreamingDistributionCommand.ts +0 -100
- package/src/commands/CreateStreamingDistributionWithTagsCommand.ts +0 -108
- package/src/commands/DeleteCachePolicyCommand.ts +0 -101
- package/src/commands/DeleteCloudFrontOriginAccessIdentityCommand.ts +0 -101
- package/src/commands/DeleteDistributionCommand.ts +0 -95
- package/src/commands/DeleteFieldLevelEncryptionConfigCommand.ts +0 -101
- package/src/commands/DeleteFieldLevelEncryptionProfileCommand.ts +0 -101
- package/src/commands/DeleteFunctionCommand.ts +0 -101
- package/src/commands/DeleteKeyGroupCommand.ts +0 -101
- package/src/commands/DeleteMonitoringSubscriptionCommand.ts +0 -100
- package/src/commands/DeleteOriginRequestPolicyCommand.ts +0 -104
- package/src/commands/DeletePublicKeyCommand.ts +0 -95
- package/src/commands/DeleteRealtimeLogConfigCommand.ts +0 -101
- package/src/commands/DeleteStreamingDistributionCommand.ts +0 -145
- package/src/commands/DescribeFunctionCommand.ts +0 -99
- package/src/commands/GetCachePolicyCommand.ts +0 -108
- package/src/commands/GetCachePolicyConfigCommand.ts +0 -100
- package/src/commands/GetCloudFrontOriginAccessIdentityCommand.ts +0 -103
- package/src/commands/GetCloudFrontOriginAccessIdentityConfigCommand.ts +0 -110
- package/src/commands/GetDistributionCommand.ts +0 -95
- package/src/commands/GetDistributionConfigCommand.ts +0 -95
- package/src/commands/GetFieldLevelEncryptionCommand.ts +0 -95
- package/src/commands/GetFieldLevelEncryptionConfigCommand.ts +0 -100
- package/src/commands/GetFieldLevelEncryptionProfileCommand.ts +0 -103
- package/src/commands/GetFieldLevelEncryptionProfileConfigCommand.ts +0 -106
- package/src/commands/GetFunctionCommand.ts +0 -98
- package/src/commands/GetInvalidationCommand.ts +0 -95
- package/src/commands/GetKeyGroupCommand.ts +0 -100
- package/src/commands/GetKeyGroupConfigCommand.ts +0 -100
- package/src/commands/GetMonitoringSubscriptionCommand.ts +0 -99
- package/src/commands/GetOriginRequestPolicyCommand.ts +0 -108
- package/src/commands/GetOriginRequestPolicyConfigCommand.ts +0 -106
- package/src/commands/GetPublicKeyCommand.ts +0 -95
- package/src/commands/GetPublicKeyConfigCommand.ts +0 -95
- package/src/commands/GetRealtimeLogConfigCommand.ts +0 -98
- package/src/commands/GetStreamingDistributionCommand.ts +0 -95
- package/src/commands/GetStreamingDistributionConfigCommand.ts +0 -103
- package/src/commands/ListCachePoliciesCommand.ts +0 -102
- package/src/commands/ListCloudFrontOriginAccessIdentitiesCommand.ts +0 -106
- package/src/commands/ListConflictingAliasesCommand.ts +0 -117
- package/src/commands/ListDistributionsByCachePolicyIdCommand.ts +0 -109
- package/src/commands/ListDistributionsByKeyGroupCommand.ts +0 -104
- package/src/commands/ListDistributionsByOriginRequestPolicyIdCommand.ts +0 -116
- package/src/commands/ListDistributionsByRealtimeLogConfigCommand.ts +0 -115
- package/src/commands/ListDistributionsByWebACLIdCommand.ts +0 -98
- package/src/commands/ListDistributionsCommand.ts +0 -95
- package/src/commands/ListFieldLevelEncryptionConfigsCommand.ts +0 -103
- package/src/commands/ListFieldLevelEncryptionProfilesCommand.ts +0 -103
- package/src/commands/ListFunctionsCommand.ts +0 -102
- package/src/commands/ListInvalidationsCommand.ts +0 -95
- package/src/commands/ListKeyGroupsCommand.ts +0 -100
- package/src/commands/ListOriginRequestPoliciesCommand.ts +0 -105
- package/src/commands/ListPublicKeysCommand.ts +0 -95
- package/src/commands/ListRealtimeLogConfigsCommand.ts +0 -100
- package/src/commands/ListStreamingDistributionsCommand.ts +0 -98
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PublishFunctionCommand.ts +0 -103
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/TestFunctionCommand.ts +0 -104
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateCachePolicyCommand.ts +0 -112
- package/src/commands/UpdateCloudFrontOriginAccessIdentityCommand.ts +0 -106
- package/src/commands/UpdateDistributionCommand.ts +0 -173
- package/src/commands/UpdateFieldLevelEncryptionConfigCommand.ts +0 -103
- package/src/commands/UpdateFieldLevelEncryptionProfileCommand.ts +0 -103
- package/src/commands/UpdateFunctionCommand.ts +0 -100
- package/src/commands/UpdateKeyGroupCommand.ts +0 -112
- package/src/commands/UpdateOriginRequestPolicyCommand.ts +0 -115
- package/src/commands/UpdatePublicKeyCommand.ts +0 -95
- package/src/commands/UpdateRealtimeLogConfigCommand.ts +0 -115
- package/src/commands/UpdateStreamingDistributionCommand.ts +0 -98
- package/src/endpoints.ts +0 -67
- package/src/index.ts +0 -96
- package/src/models/index.ts +0 -2
- package/src/models/models_0.ts +0 -8233
- package/src/models/models_1.ts +0 -3383
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.ts +0 -59
- package/src/pagination/ListDistributionsPaginator.ts +0 -59
- package/src/pagination/ListInvalidationsPaginator.ts +0 -59
- package/src/pagination/ListStreamingDistributionsPaginator.ts +0 -59
- package/src/protocols/Aws_restXml.ts +0 -19061
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForDistributionDeployed.ts +0 -47
- package/src/waiters/waitForInvalidationCompleted.ts +0 -47
- package/src/waiters/waitForStreamingDistributionDeployed.ts +0 -53
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
15
|
-
import { TestFunctionRequest, TestFunctionResult } from "../models/models_1";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restXmlTestFunctionCommand,
|
|
18
|
-
serializeAws_restXmlTestFunctionCommand,
|
|
19
|
-
} from "../protocols/Aws_restXml";
|
|
20
|
-
|
|
21
|
-
export interface TestFunctionCommandInput extends TestFunctionRequest {}
|
|
22
|
-
export interface TestFunctionCommandOutput extends TestFunctionResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Tests a CloudFront function.</p>
|
|
26
|
-
* <p>To test a function, you provide an <i>event object</i> that represents an HTTP
|
|
27
|
-
* request or response that your CloudFront distribution could receive in production. CloudFront runs
|
|
28
|
-
* the function, passing it the event object that you provided, and returns the function’s
|
|
29
|
-
* result (the modified event object) in the response. The response also contains function
|
|
30
|
-
* logs and error messages, if any exist. For more information about testing functions, see
|
|
31
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function">Testing functions</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
32
|
-
* <p>To test a function, you provide the function’s name and version (<code>ETag</code> value)
|
|
33
|
-
* along with the event object. To get the function’s name and version, you can use
|
|
34
|
-
* <code>ListFunctions</code> and <code>DescribeFunction</code>.</p>
|
|
35
|
-
* @example
|
|
36
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
-
* ```javascript
|
|
38
|
-
* import { CloudFrontClient, TestFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
39
|
-
* // const { CloudFrontClient, TestFunctionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
40
|
-
* const client = new CloudFrontClient(config);
|
|
41
|
-
* const command = new TestFunctionCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link TestFunctionCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link TestFunctionCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export class TestFunctionCommand extends $Command<
|
|
51
|
-
TestFunctionCommandInput,
|
|
52
|
-
TestFunctionCommandOutput,
|
|
53
|
-
CloudFrontClientResolvedConfig
|
|
54
|
-
> {
|
|
55
|
-
// Start section: command_properties
|
|
56
|
-
// End section: command_properties
|
|
57
|
-
|
|
58
|
-
constructor(readonly input: TestFunctionCommandInput) {
|
|
59
|
-
// Start section: command_constructor
|
|
60
|
-
super();
|
|
61
|
-
// End section: command_constructor
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
resolveMiddleware(
|
|
68
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
69
|
-
configuration: CloudFrontClientResolvedConfig,
|
|
70
|
-
options?: __HttpHandlerOptions
|
|
71
|
-
): Handler<TestFunctionCommandInput, TestFunctionCommandOutput> {
|
|
72
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
73
|
-
|
|
74
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
75
|
-
|
|
76
|
-
const { logger } = configuration;
|
|
77
|
-
const clientName = "CloudFrontClient";
|
|
78
|
-
const commandName = "TestFunctionCommand";
|
|
79
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
80
|
-
logger,
|
|
81
|
-
clientName,
|
|
82
|
-
commandName,
|
|
83
|
-
inputFilterSensitiveLog: TestFunctionRequest.filterSensitiveLog,
|
|
84
|
-
outputFilterSensitiveLog: TestFunctionResult.filterSensitiveLog,
|
|
85
|
-
};
|
|
86
|
-
const { requestHandler } = configuration;
|
|
87
|
-
return stack.resolve(
|
|
88
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
89
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
90
|
-
handlerExecutionContext
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private serialize(input: TestFunctionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
95
|
-
return serializeAws_restXmlTestFunctionCommand(input, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TestFunctionCommandOutput> {
|
|
99
|
-
return deserializeAws_restXmlTestFunctionCommand(output, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Start section: command_body_extra
|
|
103
|
-
// End section: command_body_extra
|
|
104
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
15
|
-
import { UntagResourceRequest } from "../models/models_1";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restXmlUntagResourceCommand,
|
|
18
|
-
serializeAws_restXmlUntagResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_restXml";
|
|
20
|
-
|
|
21
|
-
export interface UntagResourceCommandInput extends UntagResourceRequest {}
|
|
22
|
-
export interface UntagResourceCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Remove tags from a CloudFront resource.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { CloudFrontClient, UntagResourceCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
30
|
-
* // const { CloudFrontClient, UntagResourceCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
31
|
-
* const client = new CloudFrontClient(config);
|
|
32
|
-
* const command = new UntagResourceCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class UntagResourceCommand extends $Command<
|
|
42
|
-
UntagResourceCommandInput,
|
|
43
|
-
UntagResourceCommandOutput,
|
|
44
|
-
CloudFrontClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: UntagResourceCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: CloudFrontClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "CloudFrontClient";
|
|
69
|
-
const commandName = "UntagResourceCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restXmlUntagResourceCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
|
|
90
|
-
return deserializeAws_restXmlUntagResourceCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
15
|
-
import { UpdateCachePolicyRequest, UpdateCachePolicyResult } from "../models/models_1";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restXmlUpdateCachePolicyCommand,
|
|
18
|
-
serializeAws_restXmlUpdateCachePolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_restXml";
|
|
20
|
-
|
|
21
|
-
export interface UpdateCachePolicyCommandInput extends UpdateCachePolicyRequest {}
|
|
22
|
-
export interface UpdateCachePolicyCommandOutput extends UpdateCachePolicyResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Updates a cache policy configuration.</p>
|
|
26
|
-
* <p>When you update a cache policy configuration, all the fields are updated with the
|
|
27
|
-
* values provided in the request. You cannot update some fields independent of others. To
|
|
28
|
-
* update a cache policy configuration:</p>
|
|
29
|
-
* <ol>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>Use <code>GetCachePolicyConfig</code> to get the current configuration.</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>Locally modify the fields in the cache policy configuration that you want to
|
|
35
|
-
* update.</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>Call <code>UpdateCachePolicy</code> by providing the entire cache policy
|
|
39
|
-
* configuration, including the fields that you modified and those that you
|
|
40
|
-
* didn’t.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* </ol>
|
|
43
|
-
* @example
|
|
44
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
45
|
-
* ```javascript
|
|
46
|
-
* import { CloudFrontClient, UpdateCachePolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
47
|
-
* // const { CloudFrontClient, UpdateCachePolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
48
|
-
* const client = new CloudFrontClient(config);
|
|
49
|
-
* const command = new UpdateCachePolicyCommand(input);
|
|
50
|
-
* const response = await client.send(command);
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @see {@link UpdateCachePolicyCommandInput} for command's `input` shape.
|
|
54
|
-
* @see {@link UpdateCachePolicyCommandOutput} for command's `response` shape.
|
|
55
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
export class UpdateCachePolicyCommand extends $Command<
|
|
59
|
-
UpdateCachePolicyCommandInput,
|
|
60
|
-
UpdateCachePolicyCommandOutput,
|
|
61
|
-
CloudFrontClientResolvedConfig
|
|
62
|
-
> {
|
|
63
|
-
// Start section: command_properties
|
|
64
|
-
// End section: command_properties
|
|
65
|
-
|
|
66
|
-
constructor(readonly input: UpdateCachePolicyCommandInput) {
|
|
67
|
-
// Start section: command_constructor
|
|
68
|
-
super();
|
|
69
|
-
// End section: command_constructor
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
resolveMiddleware(
|
|
76
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
77
|
-
configuration: CloudFrontClientResolvedConfig,
|
|
78
|
-
options?: __HttpHandlerOptions
|
|
79
|
-
): Handler<UpdateCachePolicyCommandInput, UpdateCachePolicyCommandOutput> {
|
|
80
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
81
|
-
|
|
82
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
83
|
-
|
|
84
|
-
const { logger } = configuration;
|
|
85
|
-
const clientName = "CloudFrontClient";
|
|
86
|
-
const commandName = "UpdateCachePolicyCommand";
|
|
87
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
88
|
-
logger,
|
|
89
|
-
clientName,
|
|
90
|
-
commandName,
|
|
91
|
-
inputFilterSensitiveLog: UpdateCachePolicyRequest.filterSensitiveLog,
|
|
92
|
-
outputFilterSensitiveLog: UpdateCachePolicyResult.filterSensitiveLog,
|
|
93
|
-
};
|
|
94
|
-
const { requestHandler } = configuration;
|
|
95
|
-
return stack.resolve(
|
|
96
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
97
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
98
|
-
handlerExecutionContext
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private serialize(input: UpdateCachePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
103
|
-
return serializeAws_restXmlUpdateCachePolicyCommand(input, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateCachePolicyCommandOutput> {
|
|
107
|
-
return deserializeAws_restXmlUpdateCachePolicyCommand(output, context);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Start section: command_body_extra
|
|
111
|
-
// End section: command_body_extra
|
|
112
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
15
|
-
import {
|
|
16
|
-
UpdateCloudFrontOriginAccessIdentityRequest,
|
|
17
|
-
UpdateCloudFrontOriginAccessIdentityResult,
|
|
18
|
-
} from "../models/models_1";
|
|
19
|
-
import {
|
|
20
|
-
deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand,
|
|
21
|
-
serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand,
|
|
22
|
-
} from "../protocols/Aws_restXml";
|
|
23
|
-
|
|
24
|
-
export interface UpdateCloudFrontOriginAccessIdentityCommandInput extends UpdateCloudFrontOriginAccessIdentityRequest {}
|
|
25
|
-
export interface UpdateCloudFrontOriginAccessIdentityCommandOutput
|
|
26
|
-
extends UpdateCloudFrontOriginAccessIdentityResult,
|
|
27
|
-
__MetadataBearer {}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* <p>Update an origin access identity. </p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { CloudFrontClient, UpdateCloudFrontOriginAccessIdentityCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
35
|
-
* // const { CloudFrontClient, UpdateCloudFrontOriginAccessIdentityCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
36
|
-
* const client = new CloudFrontClient(config);
|
|
37
|
-
* const command = new UpdateCloudFrontOriginAccessIdentityCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link UpdateCloudFrontOriginAccessIdentityCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link UpdateCloudFrontOriginAccessIdentityCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class UpdateCloudFrontOriginAccessIdentityCommand extends $Command<
|
|
47
|
-
UpdateCloudFrontOriginAccessIdentityCommandInput,
|
|
48
|
-
UpdateCloudFrontOriginAccessIdentityCommandOutput,
|
|
49
|
-
CloudFrontClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: UpdateCloudFrontOriginAccessIdentityCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: CloudFrontClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<UpdateCloudFrontOriginAccessIdentityCommandInput, UpdateCloudFrontOriginAccessIdentityCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "CloudFrontClient";
|
|
74
|
-
const commandName = "UpdateCloudFrontOriginAccessIdentityCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: UpdateCloudFrontOriginAccessIdentityRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: UpdateCloudFrontOriginAccessIdentityResult.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(
|
|
91
|
-
input: UpdateCloudFrontOriginAccessIdentityCommandInput,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(
|
|
98
|
-
output: __HttpResponse,
|
|
99
|
-
context: __SerdeContext
|
|
100
|
-
): Promise<UpdateCloudFrontOriginAccessIdentityCommandOutput> {
|
|
101
|
-
return deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
15
|
-
import { UpdateDistributionRequest, UpdateDistributionResult } from "../models/models_1";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restXmlUpdateDistributionCommand,
|
|
18
|
-
serializeAws_restXmlUpdateDistributionCommand,
|
|
19
|
-
} from "../protocols/Aws_restXml";
|
|
20
|
-
|
|
21
|
-
export interface UpdateDistributionCommandInput extends UpdateDistributionRequest {}
|
|
22
|
-
export interface UpdateDistributionCommandOutput extends UpdateDistributionResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Updates the configuration for a web distribution. </p>
|
|
26
|
-
* <important>
|
|
27
|
-
* <p>When you update a distribution, there are more required fields than when you create a distribution.
|
|
28
|
-
* When you update your distribution by using this API action, follow the steps here to get the current configuration
|
|
29
|
-
* and then make your updates, to make sure that you include all of the required fields. To view a summary,
|
|
30
|
-
* see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html">Required
|
|
31
|
-
* Fields for Create Distribution and Update Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
32
|
-
* </important>
|
|
33
|
-
* <p>The update process includes getting the current distribution configuration, updating the XML document that is
|
|
34
|
-
* returned to make your changes, and then submitting an <code>UpdateDistribution</code> request to make the updates.</p>
|
|
35
|
-
* <p>For information about updating a distribution using the CloudFront console instead, see
|
|
36
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-creating-console.html">Creating a
|
|
37
|
-
* Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
38
|
-
*
|
|
39
|
-
* <p>
|
|
40
|
-
* <b>To update a web distribution using the CloudFront API</b>
|
|
41
|
-
* </p>
|
|
42
|
-
* <ol>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>Submit a
|
|
45
|
-
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistributionConfig.html">GetDistributionConfig</a>
|
|
46
|
-
* request to get the current configuration and an <code>Etag</code> header
|
|
47
|
-
* for the distribution.</p>
|
|
48
|
-
* <note>
|
|
49
|
-
* <p>If you update the distribution again, you must get a new <code>Etag</code> header.</p>
|
|
50
|
-
* </note>
|
|
51
|
-
* </li>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>Update the XML document that was returned in the response to your <code>GetDistributionConfig</code> request to include
|
|
54
|
-
* your changes. </p>
|
|
55
|
-
* <important>
|
|
56
|
-
* <p>When you edit the XML file, be aware of the following:</p>
|
|
57
|
-
* <ul>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>You must strip out the ETag parameter that is returned.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>Additional fields are required when you update a distribution. There may be fields included in the
|
|
63
|
-
* XML file for features that you haven't configured for your distribution. This is expected and required to
|
|
64
|
-
* successfully update the distribution.</p>
|
|
65
|
-
* </li>
|
|
66
|
-
* <li>
|
|
67
|
-
* <p>You can't change the value of <code>CallerReference</code>. If you try to change this value, CloudFront returns an
|
|
68
|
-
* <code>IllegalUpdate</code> error. </p>
|
|
69
|
-
* </li>
|
|
70
|
-
* <li>
|
|
71
|
-
* <p>The new configuration replaces the existing configuration; the values that you specify in an
|
|
72
|
-
* <code>UpdateDistribution</code> request are not merged into your existing configuration. When you add, delete, or
|
|
73
|
-
* replace values in an element that allows multiple values (for example, <code>CNAME</code>), you must specify all of the
|
|
74
|
-
* values that you want to appear in the updated distribution. In addition,
|
|
75
|
-
* you must update the corresponding <code>Quantity</code> element.</p>
|
|
76
|
-
* </li>
|
|
77
|
-
* </ul>
|
|
78
|
-
* </important>
|
|
79
|
-
* </li>
|
|
80
|
-
* <li>
|
|
81
|
-
* <p>Submit an <code>UpdateDistribution</code> request to update the configuration for your distribution:</p>
|
|
82
|
-
* <ul>
|
|
83
|
-
* <li>
|
|
84
|
-
* <p>In the request body, include the XML document that you updated in Step 2. The request body must include an
|
|
85
|
-
* XML document with a <code>DistributionConfig</code> element.</p>
|
|
86
|
-
* </li>
|
|
87
|
-
* <li>
|
|
88
|
-
* <p>Set the value of the HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that CloudFront returned
|
|
89
|
-
* when you submitted the <code>GetDistributionConfig</code> request in Step 1.</p>
|
|
90
|
-
* </li>
|
|
91
|
-
* </ul>
|
|
92
|
-
* </li>
|
|
93
|
-
* <li>
|
|
94
|
-
* <p>Review the response to the <code>UpdateDistribution</code> request to confirm that the configuration was
|
|
95
|
-
* successfully updated.</p>
|
|
96
|
-
* </li>
|
|
97
|
-
* <li>
|
|
98
|
-
* <p>Optional: Submit a
|
|
99
|
-
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html">GetDistribution</a>
|
|
100
|
-
* request to confirm that your changes have propagated.
|
|
101
|
-
* When propagation is complete, the value of <code>Status</code> is <code>Deployed</code>.</p>
|
|
102
|
-
* </li>
|
|
103
|
-
* </ol>
|
|
104
|
-
* @example
|
|
105
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
106
|
-
* ```javascript
|
|
107
|
-
* import { CloudFrontClient, UpdateDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
108
|
-
* // const { CloudFrontClient, UpdateDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
109
|
-
* const client = new CloudFrontClient(config);
|
|
110
|
-
* const command = new UpdateDistributionCommand(input);
|
|
111
|
-
* const response = await client.send(command);
|
|
112
|
-
* ```
|
|
113
|
-
*
|
|
114
|
-
* @see {@link UpdateDistributionCommandInput} for command's `input` shape.
|
|
115
|
-
* @see {@link UpdateDistributionCommandOutput} for command's `response` shape.
|
|
116
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
117
|
-
*
|
|
118
|
-
*/
|
|
119
|
-
export class UpdateDistributionCommand extends $Command<
|
|
120
|
-
UpdateDistributionCommandInput,
|
|
121
|
-
UpdateDistributionCommandOutput,
|
|
122
|
-
CloudFrontClientResolvedConfig
|
|
123
|
-
> {
|
|
124
|
-
// Start section: command_properties
|
|
125
|
-
// End section: command_properties
|
|
126
|
-
|
|
127
|
-
constructor(readonly input: UpdateDistributionCommandInput) {
|
|
128
|
-
// Start section: command_constructor
|
|
129
|
-
super();
|
|
130
|
-
// End section: command_constructor
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @internal
|
|
135
|
-
*/
|
|
136
|
-
resolveMiddleware(
|
|
137
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
138
|
-
configuration: CloudFrontClientResolvedConfig,
|
|
139
|
-
options?: __HttpHandlerOptions
|
|
140
|
-
): Handler<UpdateDistributionCommandInput, UpdateDistributionCommandOutput> {
|
|
141
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
142
|
-
|
|
143
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
144
|
-
|
|
145
|
-
const { logger } = configuration;
|
|
146
|
-
const clientName = "CloudFrontClient";
|
|
147
|
-
const commandName = "UpdateDistributionCommand";
|
|
148
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
149
|
-
logger,
|
|
150
|
-
clientName,
|
|
151
|
-
commandName,
|
|
152
|
-
inputFilterSensitiveLog: UpdateDistributionRequest.filterSensitiveLog,
|
|
153
|
-
outputFilterSensitiveLog: UpdateDistributionResult.filterSensitiveLog,
|
|
154
|
-
};
|
|
155
|
-
const { requestHandler } = configuration;
|
|
156
|
-
return stack.resolve(
|
|
157
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
158
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
159
|
-
handlerExecutionContext
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
private serialize(input: UpdateDistributionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
164
|
-
return serializeAws_restXmlUpdateDistributionCommand(input, context);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateDistributionCommandOutput> {
|
|
168
|
-
return deserializeAws_restXmlUpdateDistributionCommand(output, context);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// Start section: command_body_extra
|
|
172
|
-
// End section: command_body_extra
|
|
173
|
-
}
|