View on GitHub

aws-sdk-swift

CloudFrontClientProtocol

Amazon CloudFront This is the Amazon CloudFront API Reference. This guide is for developers who need detailed information about CloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the Amazon CloudFront Developer Guide.

public protocol CloudFrontClientProtocol 

Requirements

associateAlias(input:completion:)

Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront distribution. With this operation you can move an alias that’s already in use on a CloudFront distribution to a different distribution in one step. This prevents the downtime that could occur if you first remove the alias from one distribution and then separately add the alias to another distribution. To use this operation to associate an alias with a distribution, you provide the alias and the ID of the target distribution for the alias. For more information, including how to set up the target distribution, prerequisites that you must complete, and other restrictions, see Moving an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.

func associateAlias(input: AssociateAliasInput, completion: @escaping (ClientRuntime.SdkResult<AssociateAliasOutputResponse, AssociateAliasOutputError>) -> Void)

createCachePolicy(input:completion:)

Creates a cache policy. After you create a cache policy, you can attach it to one or more cache behaviors. When it’s attached to a cache behavior, the cache policy determines the following:

func createCachePolicy(input: CreateCachePolicyInput, completion: @escaping (ClientRuntime.SdkResult<CreateCachePolicyOutputResponse, CreateCachePolicyOutputError>) -> Void)

The headers, cookies, and query strings that are included in the cache key are automatically included in requests that CloudFront sends to the origin. CloudFront sends a request when it can’t find an object in its cache that matches the request’s cache key. If you want to send values to the origin but not include them in the cache key, use OriginRequestPolicy. For more information about cache policies, see Controlling the cache key in the Amazon CloudFront Developer Guide.

createCloudFrontOriginAccessIdentity(input:completion:)

Creates a new origin access identity. If you’re using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.

func createCloudFrontOriginAccessIdentity(input: CreateCloudFrontOriginAccessIdentityInput, completion: @escaping (ClientRuntime.SdkResult<CreateCloudFrontOriginAccessIdentityOutputResponse, CreateCloudFrontOriginAccessIdentityOutputError>) -> Void)

createDistribution(input:completion:)

Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery. Send a POST request to the /CloudFront API version/distribution/distribution ID resource. When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using UpdateDistribution, follow the steps included in the documentation to get the current configuration and then make your updates. This helps to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide.

func createDistribution(input: CreateDistributionInput, completion: @escaping (ClientRuntime.SdkResult<CreateDistributionOutputResponse, CreateDistributionOutputError>) -> Void)

createDistributionWithTags(input:completion:)

Create a new distribution with tags.

func createDistributionWithTags(input: CreateDistributionWithTagsInput, completion: @escaping (ClientRuntime.SdkResult<CreateDistributionWithTagsOutputResponse, CreateDistributionWithTagsOutputError>) -> Void)

createFieldLevelEncryptionConfig(input:completion:)

Create a new field-level encryption configuration.

func createFieldLevelEncryptionConfig(input: CreateFieldLevelEncryptionConfigInput, completion: @escaping (ClientRuntime.SdkResult<CreateFieldLevelEncryptionConfigOutputResponse, CreateFieldLevelEncryptionConfigOutputError>) -> Void)

createFieldLevelEncryptionProfile(input:completion:)

Create a field-level encryption profile.

func createFieldLevelEncryptionProfile(input: CreateFieldLevelEncryptionProfileInput, completion: @escaping (ClientRuntime.SdkResult<CreateFieldLevelEncryptionProfileOutputResponse, CreateFieldLevelEncryptionProfileOutputError>) -> Void)

createFunction(input:completion:)

Creates a CloudFront function. To create a function, you provide the function code and some configuration information about the function. The response contains an Amazon Resource Name (ARN) that uniquely identifies the function. When you create a function, it’s in the DEVELOPMENT stage. In this stage, you can test the function with TestFunction, and update it with UpdateFunction. When you’re ready to use your function with a CloudFront distribution, use PublishFunction to copy the function from the DEVELOPMENT stage to LIVE. When it’s live, you can attach the function to a distribution’s cache behavior, using the function’s ARN.

func createFunction(input: CreateFunctionInput, completion: @escaping (ClientRuntime.SdkResult<CreateFunctionOutputResponse, CreateFunctionOutputError>) -> Void)

createInvalidation(input:completion:)

Create a new invalidation.

func createInvalidation(input: CreateInvalidationInput, completion: @escaping (ClientRuntime.SdkResult<CreateInvalidationOutputResponse, CreateInvalidationOutputError>) -> Void)

createKeyGroup(input:completion:)

Creates a key group that you can use with CloudFront signed URLs and signed cookies. To create a key group, you must specify at least one public key for the key group. After you create a key group, you can reference it from one or more cache behaviors. When you reference a key group in a cache behavior, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.

func createKeyGroup(input: CreateKeyGroupInput, completion: @escaping (ClientRuntime.SdkResult<CreateKeyGroupOutputResponse, CreateKeyGroupOutputError>) -> Void)

createMonitoringSubscription(input:completion:)

Enables additional CloudWatch metrics for the specified CloudFront distribution. The additional metrics incur an additional cost. For more information, see Viewing additional CloudFront distribution metrics in the Amazon CloudFront Developer Guide.

func createMonitoringSubscription(input: CreateMonitoringSubscriptionInput, completion: @escaping (ClientRuntime.SdkResult<CreateMonitoringSubscriptionOutputResponse, CreateMonitoringSubscriptionOutputError>) -> Void)

createOriginRequestPolicy(input:completion:)

Creates an origin request policy. After you create an origin request policy, you can attach it to one or more cache behaviors. When it’s attached to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:

func createOriginRequestPolicy(input: CreateOriginRequestPolicyInput, completion: @escaping (ClientRuntime.SdkResult<CreateOriginRequestPolicyOutputResponse, CreateOriginRequestPolicyOutputError>) -> Void)

CloudFront sends a request when it can’t find a valid object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use CachePolicy. For more information about origin request policies, see Controlling origin requests in the Amazon CloudFront Developer Guide.

createPublicKey(input:completion:)

Uploads a public key to CloudFront that you can use with signed URLs and signed cookies, or with field-level encryption.

func createPublicKey(input: CreatePublicKeyInput, completion: @escaping (ClientRuntime.SdkResult<CreatePublicKeyOutputResponse, CreatePublicKeyOutputError>) -> Void)

createRealtimeLogConfig(input:completion:)

Creates a real-time log configuration. After you create a real-time log configuration, you can attach it to one or more cache behaviors to send real-time log data to the specified Amazon Kinesis data stream. For more information about real-time log configurations, see Real-time logs in the Amazon CloudFront Developer Guide.

func createRealtimeLogConfig(input: CreateRealtimeLogConfigInput, completion: @escaping (ClientRuntime.SdkResult<CreateRealtimeLogConfigOutputResponse, CreateRealtimeLogConfigOutputError>) -> Void)

createStreamingDistribution(input:completion:)

This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, read the announcement on the Amazon CloudFront discussion forum.

func createStreamingDistribution(input: CreateStreamingDistributionInput, completion: @escaping (ClientRuntime.SdkResult<CreateStreamingDistributionOutputResponse, CreateStreamingDistributionOutputError>) -> Void)

createStreamingDistributionWithTags(input:completion:)

This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, read the announcement on the Amazon CloudFront discussion forum.

func createStreamingDistributionWithTags(input: CreateStreamingDistributionWithTagsInput, completion: @escaping (ClientRuntime.SdkResult<CreateStreamingDistributionWithTagsOutputResponse, CreateStreamingDistributionWithTagsOutputError>) -> Void)

deleteCachePolicy(input:completion:)

Deletes a cache policy. You cannot delete a cache policy if it’s attached to a cache behavior. First update your distributions to remove the cache policy from all cache behaviors, then delete the cache policy. To delete a cache policy, you must provide the policy’s identifier and version. To get these values, you can use ListCachePolicies or GetCachePolicy.

func deleteCachePolicy(input: DeleteCachePolicyInput, completion: @escaping (ClientRuntime.SdkResult<DeleteCachePolicyOutputResponse, DeleteCachePolicyOutputError>) -> Void)

deleteCloudFrontOriginAccessIdentity(input:completion:)

Delete an origin access identity.

func deleteCloudFrontOriginAccessIdentity(input: DeleteCloudFrontOriginAccessIdentityInput, completion: @escaping (ClientRuntime.SdkResult<DeleteCloudFrontOriginAccessIdentityOutputResponse, DeleteCloudFrontOriginAccessIdentityOutputError>) -> Void)

deleteDistribution(input:completion:)

Delete a distribution.

func deleteDistribution(input: DeleteDistributionInput, completion: @escaping (ClientRuntime.SdkResult<DeleteDistributionOutputResponse, DeleteDistributionOutputError>) -> Void)

deleteFieldLevelEncryptionConfig(input:completion:)

Remove a field-level encryption configuration.

func deleteFieldLevelEncryptionConfig(input: DeleteFieldLevelEncryptionConfigInput, completion: @escaping (ClientRuntime.SdkResult<DeleteFieldLevelEncryptionConfigOutputResponse, DeleteFieldLevelEncryptionConfigOutputError>) -> Void)

deleteFieldLevelEncryptionProfile(input:completion:)

Remove a field-level encryption profile.

func deleteFieldLevelEncryptionProfile(input: DeleteFieldLevelEncryptionProfileInput, completion: @escaping (ClientRuntime.SdkResult<DeleteFieldLevelEncryptionProfileOutputResponse, DeleteFieldLevelEncryptionProfileOutputError>) -> Void)

deleteFunction(input:completion:)

Deletes a CloudFront function. You cannot delete a function if it’s associated with a cache behavior. First, update your distributions to remove the function association from all cache behaviors, then delete the function. To delete a function, you must provide the function’s name and version (ETag value). To get these values, you can use ListFunctions and DescribeFunction.

func deleteFunction(input: DeleteFunctionInput, completion: @escaping (ClientRuntime.SdkResult<DeleteFunctionOutputResponse, DeleteFunctionOutputError>) -> Void)

deleteKeyGroup(input:completion:)

Deletes a key group. You cannot delete a key group that is referenced in a cache behavior. First update your distributions to remove the key group from all cache behaviors, then delete the key group. To delete a key group, you must provide the key group’s identifier and version. To get these values, use ListKeyGroups followed by GetKeyGroup or GetKeyGroupConfig.

func deleteKeyGroup(input: DeleteKeyGroupInput, completion: @escaping (ClientRuntime.SdkResult<DeleteKeyGroupOutputResponse, DeleteKeyGroupOutputError>) -> Void)

deleteMonitoringSubscription(input:completion:)

Disables additional CloudWatch metrics for the specified CloudFront distribution.

func deleteMonitoringSubscription(input: DeleteMonitoringSubscriptionInput, completion: @escaping (ClientRuntime.SdkResult<DeleteMonitoringSubscriptionOutputResponse, DeleteMonitoringSubscriptionOutputError>) -> Void)

deleteOriginRequestPolicy(input:completion:)

Deletes an origin request policy. You cannot delete an origin request policy if it’s attached to any cache behaviors. First update your distributions to remove the origin request policy from all cache behaviors, then delete the origin request policy. To delete an origin request policy, you must provide the policy’s identifier and version. To get the identifier, you can use ListOriginRequestPolicies or GetOriginRequestPolicy.

func deleteOriginRequestPolicy(input: DeleteOriginRequestPolicyInput, completion: @escaping (ClientRuntime.SdkResult<DeleteOriginRequestPolicyOutputResponse, DeleteOriginRequestPolicyOutputError>) -> Void)

deletePublicKey(input:completion:)

Remove a public key you previously added to CloudFront.

func deletePublicKey(input: DeletePublicKeyInput, completion: @escaping (ClientRuntime.SdkResult<DeletePublicKeyOutputResponse, DeletePublicKeyOutputError>) -> Void)

deleteRealtimeLogConfig(input:completion:)

Deletes a real-time log configuration. You cannot delete a real-time log configuration if it’s attached to a cache behavior. First update your distributions to remove the real-time log configuration from all cache behaviors, then delete the real-time log configuration. To delete a real-time log configuration, you can provide the configuration’s name or its Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to delete.

func deleteRealtimeLogConfig(input: DeleteRealtimeLogConfigInput, completion: @escaping (ClientRuntime.SdkResult<DeleteRealtimeLogConfigOutputResponse, DeleteRealtimeLogConfigOutputError>) -> Void)

deleteStreamingDistribution(input:completion:)

Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps. To delete an RTMP distribution using the CloudFront API:

func deleteStreamingDistribution(input: DeleteStreamingDistributionInput, completion: @escaping (ClientRuntime.SdkResult<DeleteStreamingDistributionOutputResponse, DeleteStreamingDistributionOutputError>) -> Void)

For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.

describeFunction(input:completion:)

Gets configuration information and metadata about a CloudFront function, but not the function’s code. To get a function’s code, use GetFunction. To get configuration information and metadata about a function, you must provide the function’s name and stage. To get these values, you can use ListFunctions.

func describeFunction(input: DescribeFunctionInput, completion: @escaping (ClientRuntime.SdkResult<DescribeFunctionOutputResponse, DescribeFunctionOutputError>) -> Void)

getCachePolicy(input:completion:)

Gets a cache policy, including the following metadata:

func getCachePolicy(input: GetCachePolicyInput, completion: @escaping (ClientRuntime.SdkResult<GetCachePolicyOutputResponse, GetCachePolicyOutputError>) -> Void)

To get a cache policy, you must provide the policy’s identifier. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies.

getCachePolicyConfig(input:completion:)

Gets a cache policy configuration. To get a cache policy configuration, you must provide the policy’s identifier. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies.

func getCachePolicyConfig(input: GetCachePolicyConfigInput, completion: @escaping (ClientRuntime.SdkResult<GetCachePolicyConfigOutputResponse, GetCachePolicyConfigOutputError>) -> Void)

getCloudFrontOriginAccessIdentity(input:completion:)

Get the information about an origin access identity.

func getCloudFrontOriginAccessIdentity(input: GetCloudFrontOriginAccessIdentityInput, completion: @escaping (ClientRuntime.SdkResult<GetCloudFrontOriginAccessIdentityOutputResponse, GetCloudFrontOriginAccessIdentityOutputError>) -> Void)

getCloudFrontOriginAccessIdentityConfig(input:completion:)

Get the configuration information about an origin access identity.

func getCloudFrontOriginAccessIdentityConfig(input: GetCloudFrontOriginAccessIdentityConfigInput, completion: @escaping (ClientRuntime.SdkResult<GetCloudFrontOriginAccessIdentityConfigOutputResponse, GetCloudFrontOriginAccessIdentityConfigOutputError>) -> Void)

getDistribution(input:completion:)

Get the information about a distribution.

func getDistribution(input: GetDistributionInput, completion: @escaping (ClientRuntime.SdkResult<GetDistributionOutputResponse, GetDistributionOutputError>) -> Void)

getDistributionConfig(input:completion:)

Get the configuration information about a distribution.

func getDistributionConfig(input: GetDistributionConfigInput, completion: @escaping (ClientRuntime.SdkResult<GetDistributionConfigOutputResponse, GetDistributionConfigOutputError>) -> Void)

getFieldLevelEncryption(input:completion:)

Get the field-level encryption configuration information.

func getFieldLevelEncryption(input: GetFieldLevelEncryptionInput, completion: @escaping (ClientRuntime.SdkResult<GetFieldLevelEncryptionOutputResponse, GetFieldLevelEncryptionOutputError>) -> Void)

getFieldLevelEncryptionConfig(input:completion:)

Get the field-level encryption configuration information.

func getFieldLevelEncryptionConfig(input: GetFieldLevelEncryptionConfigInput, completion: @escaping (ClientRuntime.SdkResult<GetFieldLevelEncryptionConfigOutputResponse, GetFieldLevelEncryptionConfigOutputError>) -> Void)

getFieldLevelEncryptionProfile(input:completion:)

Get the field-level encryption profile information.

func getFieldLevelEncryptionProfile(input: GetFieldLevelEncryptionProfileInput, completion: @escaping (ClientRuntime.SdkResult<GetFieldLevelEncryptionProfileOutputResponse, GetFieldLevelEncryptionProfileOutputError>) -> Void)

getFieldLevelEncryptionProfileConfig(input:completion:)

Get the field-level encryption profile configuration information.

func getFieldLevelEncryptionProfileConfig(input: GetFieldLevelEncryptionProfileConfigInput, completion: @escaping (ClientRuntime.SdkResult<GetFieldLevelEncryptionProfileConfigOutputResponse, GetFieldLevelEncryptionProfileConfigOutputError>) -> Void)

getFunction(input:completion:)

Gets the code of a CloudFront function. To get configuration information and metadata about a function, use DescribeFunction. To get a function’s code, you must provide the function’s name and stage. To get these values, you can use ListFunctions.

func getFunction(input: GetFunctionInput, completion: @escaping (ClientRuntime.SdkResult<GetFunctionOutputResponse, GetFunctionOutputError>) -> Void)

getInvalidation(input:completion:)

Get the information about an invalidation.

func getInvalidation(input: GetInvalidationInput, completion: @escaping (ClientRuntime.SdkResult<GetInvalidationOutputResponse, GetInvalidationOutputError>) -> Void)

getKeyGroup(input:completion:)

Gets a key group, including the date and time when the key group was last modified. To get a key group, you must provide the key group’s identifier. If the key group is referenced in a distribution’s cache behavior, you can get the key group’s identifier using ListDistributions or GetDistribution. If the key group is not referenced in a cache behavior, you can get the identifier using ListKeyGroups.

func getKeyGroup(input: GetKeyGroupInput, completion: @escaping (ClientRuntime.SdkResult<GetKeyGroupOutputResponse, GetKeyGroupOutputError>) -> Void)

getKeyGroupConfig(input:completion:)

Gets a key group configuration. To get a key group configuration, you must provide the key group’s identifier. If the key group is referenced in a distribution’s cache behavior, you can get the key group’s identifier using ListDistributions or GetDistribution. If the key group is not referenced in a cache behavior, you can get the identifier using ListKeyGroups.

func getKeyGroupConfig(input: GetKeyGroupConfigInput, completion: @escaping (ClientRuntime.SdkResult<GetKeyGroupConfigOutputResponse, GetKeyGroupConfigOutputError>) -> Void)

getMonitoringSubscription(input:completion:)

Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront distribution.

func getMonitoringSubscription(input: GetMonitoringSubscriptionInput, completion: @escaping (ClientRuntime.SdkResult<GetMonitoringSubscriptionOutputResponse, GetMonitoringSubscriptionOutputError>) -> Void)

getOriginRequestPolicy(input:completion:)

Gets an origin request policy, including the following metadata:

func getOriginRequestPolicy(input: GetOriginRequestPolicyInput, completion: @escaping (ClientRuntime.SdkResult<GetOriginRequestPolicyOutputResponse, GetOriginRequestPolicyOutputError>) -> Void)

To get an origin request policy, you must provide the policy’s identifier. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the origin request policy is not attached to a cache behavior, you can get the identifier using ListOriginRequestPolicies.

getOriginRequestPolicyConfig(input:completion:)

Gets an origin request policy configuration. To get an origin request policy configuration, you must provide the policy’s identifier. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the origin request policy is not attached to a cache behavior, you can get the identifier using ListOriginRequestPolicies.

func getOriginRequestPolicyConfig(input: GetOriginRequestPolicyConfigInput, completion: @escaping (ClientRuntime.SdkResult<GetOriginRequestPolicyConfigOutputResponse, GetOriginRequestPolicyConfigOutputError>) -> Void)

getPublicKey(input:completion:)

Gets a public key.

func getPublicKey(input: GetPublicKeyInput, completion: @escaping (ClientRuntime.SdkResult<GetPublicKeyOutputResponse, GetPublicKeyOutputError>) -> Void)

getPublicKeyConfig(input:completion:)

Gets a public key configuration.

func getPublicKeyConfig(input: GetPublicKeyConfigInput, completion: @escaping (ClientRuntime.SdkResult<GetPublicKeyConfigOutputResponse, GetPublicKeyConfigOutputError>) -> Void)

getRealtimeLogConfig(input:completion:)

Gets a real-time log configuration. To get a real-time log configuration, you can provide the configuration’s name or its Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to get.

func getRealtimeLogConfig(input: GetRealtimeLogConfigInput, completion: @escaping (ClientRuntime.SdkResult<GetRealtimeLogConfigOutputResponse, GetRealtimeLogConfigOutputError>) -> Void)

getStreamingDistribution(input:completion:)

Gets information about a specified RTMP distribution, including the distribution configuration.

func getStreamingDistribution(input: GetStreamingDistributionInput, completion: @escaping (ClientRuntime.SdkResult<GetStreamingDistributionOutputResponse, GetStreamingDistributionOutputError>) -> Void)

getStreamingDistributionConfig(input:completion:)

Get the configuration information about a streaming distribution.

func getStreamingDistributionConfig(input: GetStreamingDistributionConfigInput, completion: @escaping (ClientRuntime.SdkResult<GetStreamingDistributionConfigOutputResponse, GetStreamingDistributionConfigOutputError>) -> Void)

listCachePolicies(input:completion:)

Gets a list of cache policies. You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or only the custom policies created in your account. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

func listCachePolicies(input: ListCachePoliciesInput, completion: @escaping (ClientRuntime.SdkResult<ListCachePoliciesOutputResponse, ListCachePoliciesOutputError>) -> Void)

listCloudFrontOriginAccessIdentities(input:completion:)

Lists origin access identities.

func listCloudFrontOriginAccessIdentities(input: ListCloudFrontOriginAccessIdentitiesInput, completion: @escaping (ClientRuntime.SdkResult<ListCloudFrontOriginAccessIdentitiesOutputResponse, ListCloudFrontOriginAccessIdentitiesOutputError>) -> Void)

listConflictingAliases(input:completion:)

Gets a list of aliases (also called CNAMEs or alternate domain names) that conflict or overlap with the provided alias, and the associated CloudFront distributions and Amazon Web Services accounts for each conflicting alias. In the returned list, the distribution and account IDs are partially hidden, which allows you to identify the distributions and accounts that you own, but helps to protect the information of ones that you don’t own. Use this operation to find aliases that are in use in CloudFront that conflict or overlap with the provided alias. For example, if you provide www.example.com as input, the returned list can include www.example.com and the overlapping wildcard alternate domain name (*.example.com), if they exist. If you provide *.example.com as input, the returned list can include *.example.com and any alternate domain names covered by that wildcard (for example, www.example.com, test.example.com, dev.example.com, and so on), if they exist. To list conflicting aliases, you provide the alias to search and the ID of a distribution in your account that has an attached SSL/TLS certificate that includes the provided alias. For more information, including how to set up the distribution and certificate, see Moving an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

func listConflictingAliases(input: ListConflictingAliasesInput, completion: @escaping (ClientRuntime.SdkResult<ListConflictingAliasesOutputResponse, ListConflictingAliasesOutputError>) -> Void)

listDistributions(input:completion:)

List CloudFront distributions.

func listDistributions(input: ListDistributionsInput, completion: @escaping (ClientRuntime.SdkResult<ListDistributionsOutputResponse, ListDistributionsOutputError>) -> Void)

listDistributionsByCachePolicyId(input:completion:)

Gets a list of distribution IDs for distributions that have a cache behavior that’s associated with the specified cache policy. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

func listDistributionsByCachePolicyId(input: ListDistributionsByCachePolicyIdInput, completion: @escaping (ClientRuntime.SdkResult<ListDistributionsByCachePolicyIdOutputResponse, ListDistributionsByCachePolicyIdOutputError>) -> Void)

listDistributionsByKeyGroup(input:completion:)

Gets a list of distribution IDs for distributions that have a cache behavior that references the specified key group. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

func listDistributionsByKeyGroup(input: ListDistributionsByKeyGroupInput, completion: @escaping (ClientRuntime.SdkResult<ListDistributionsByKeyGroupOutputResponse, ListDistributionsByKeyGroupOutputError>) -> Void)

listDistributionsByOriginRequestPolicyId(input:completion:)

Gets a list of distribution IDs for distributions that have a cache behavior that’s associated with the specified origin request policy. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

func listDistributionsByOriginRequestPolicyId(input: ListDistributionsByOriginRequestPolicyIdInput, completion: @escaping (ClientRuntime.SdkResult<ListDistributionsByOriginRequestPolicyIdOutputResponse, ListDistributionsByOriginRequestPolicyIdOutputError>) -> Void)

listDistributionsByRealtimeLogConfig(input:completion:)

Gets a list of distributions that have a cache behavior that’s associated with the specified real-time log configuration. You can specify the real-time log configuration by its name or its Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to list distributions for. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

func listDistributionsByRealtimeLogConfig(input: ListDistributionsByRealtimeLogConfigInput, completion: @escaping (ClientRuntime.SdkResult<ListDistributionsByRealtimeLogConfigOutputResponse, ListDistributionsByRealtimeLogConfigOutputError>) -> Void)

listDistributionsByWebACLId(input:completion:)

List the distributions that are associated with a specified WAF web ACL.

func listDistributionsByWebACLId(input: ListDistributionsByWebACLIdInput, completion: @escaping (ClientRuntime.SdkResult<ListDistributionsByWebACLIdOutputResponse, ListDistributionsByWebACLIdOutputError>) -> Void)

listFieldLevelEncryptionConfigs(input:completion:)

List all field-level encryption configurations that have been created in CloudFront for this account.

func listFieldLevelEncryptionConfigs(input: ListFieldLevelEncryptionConfigsInput, completion: @escaping (ClientRuntime.SdkResult<ListFieldLevelEncryptionConfigsOutputResponse, ListFieldLevelEncryptionConfigsOutputError>) -> Void)

listFieldLevelEncryptionProfiles(input:completion:)

Request a list of field-level encryption profiles that have been created in CloudFront for this account.

func listFieldLevelEncryptionProfiles(input: ListFieldLevelEncryptionProfilesInput, completion: @escaping (ClientRuntime.SdkResult<ListFieldLevelEncryptionProfilesOutputResponse, ListFieldLevelEncryptionProfilesOutputError>) -> Void)

listFunctions(input:completion:)

Gets a list of all CloudFront functions in your account. You can optionally apply a filter to return only the functions that are in the specified stage, either DEVELOPMENT or LIVE. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

func listFunctions(input: ListFunctionsInput, completion: @escaping (ClientRuntime.SdkResult<ListFunctionsOutputResponse, ListFunctionsOutputError>) -> Void)

listInvalidations(input:completion:)

Lists invalidation batches.

func listInvalidations(input: ListInvalidationsInput, completion: @escaping (ClientRuntime.SdkResult<ListInvalidationsOutputResponse, ListInvalidationsOutputError>) -> Void)

listKeyGroups(input:completion:)

Gets a list of key groups. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

func listKeyGroups(input: ListKeyGroupsInput, completion: @escaping (ClientRuntime.SdkResult<ListKeyGroupsOutputResponse, ListKeyGroupsOutputError>) -> Void)

listOriginRequestPolicies(input:completion:)

Gets a list of origin request policies. You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or only the custom policies created in your account. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

func listOriginRequestPolicies(input: ListOriginRequestPoliciesInput, completion: @escaping (ClientRuntime.SdkResult<ListOriginRequestPoliciesOutputResponse, ListOriginRequestPoliciesOutputError>) -> Void)

listPublicKeys(input:completion:)

List all public keys that have been added to CloudFront for this account.

func listPublicKeys(input: ListPublicKeysInput, completion: @escaping (ClientRuntime.SdkResult<ListPublicKeysOutputResponse, ListPublicKeysOutputError>) -> Void)

listRealtimeLogConfigs(input:completion:)

Gets a list of real-time log configurations. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

func listRealtimeLogConfigs(input: ListRealtimeLogConfigsInput, completion: @escaping (ClientRuntime.SdkResult<ListRealtimeLogConfigsOutputResponse, ListRealtimeLogConfigsOutputError>) -> Void)

listStreamingDistributions(input:completion:)

List streaming distributions.

func listStreamingDistributions(input: ListStreamingDistributionsInput, completion: @escaping (ClientRuntime.SdkResult<ListStreamingDistributionsOutputResponse, ListStreamingDistributionsOutputError>) -> Void)

listTagsForResource(input:completion:)

List tags for a CloudFront resource.

func listTagsForResource(input: ListTagsForResourceInput, completion: @escaping (ClientRuntime.SdkResult<ListTagsForResourceOutputResponse, ListTagsForResourceOutputError>) -> Void)

publishFunction(input:completion:)

Publishes a CloudFront function by copying the function code from the DEVELOPMENT stage to LIVE. This automatically updates all cache behaviors that are using this function to use the newly published copy in the LIVE stage. When a function is published to the LIVE stage, you can attach the function to a distribution’s cache behavior, using the function’s Amazon Resource Name (ARN). To publish a function, you must provide the function’s name and version (ETag value). To get these values, you can use ListFunctions and DescribeFunction.

func publishFunction(input: PublishFunctionInput, completion: @escaping (ClientRuntime.SdkResult<PublishFunctionOutputResponse, PublishFunctionOutputError>) -> Void)

tagResource(input:completion:)

Add tags to a CloudFront resource.

func tagResource(input: TagResourceInput, completion: @escaping (ClientRuntime.SdkResult<TagResourceOutputResponse, TagResourceOutputError>) -> Void)

testFunction(input:completion:)

Tests a CloudFront function. To test a function, you provide an event object that represents an HTTP request or response that your CloudFront distribution could receive in production. CloudFront runs the function, passing it the event object that you provided, and returns the function’s result (the modified event object) in the response. The response also contains function logs and error messages, if any exist. For more information about testing functions, see Testing functions in the Amazon CloudFront Developer Guide. To test a function, you provide the function’s name and version (ETag value) along with the event object. To get the function’s name and version, you can use ListFunctions and DescribeFunction.

func testFunction(input: TestFunctionInput, completion: @escaping (ClientRuntime.SdkResult<TestFunctionOutputResponse, TestFunctionOutputError>) -> Void)

untagResource(input:completion:)

Remove tags from a CloudFront resource.

func untagResource(input: UntagResourceInput, completion: @escaping (ClientRuntime.SdkResult<UntagResourceOutputResponse, UntagResourceOutputError>) -> Void)

updateCachePolicy(input:completion:)

Updates a cache policy configuration. When you update a cache policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a cache policy configuration:

func updateCachePolicy(input: UpdateCachePolicyInput, completion: @escaping (ClientRuntime.SdkResult<UpdateCachePolicyOutputResponse, UpdateCachePolicyOutputError>) -> Void)

updateCloudFrontOriginAccessIdentity(input:completion:)

Update an origin access identity.

func updateCloudFrontOriginAccessIdentity(input: UpdateCloudFrontOriginAccessIdentityInput, completion: @escaping (ClientRuntime.SdkResult<UpdateCloudFrontOriginAccessIdentityOutputResponse, UpdateCloudFrontOriginAccessIdentityOutputError>) -> Void)

updateDistribution(input:completion:)

Updates the configuration for a web distribution. When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using this API action, follow the steps here to get the current configuration and then make your updates, to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide. The update process includes getting the current distribution configuration, updating the XML document that is returned to make your changes, and then submitting an UpdateDistribution request to make the updates. For information about updating a distribution using the CloudFront console instead, see Creating a Distribution in the Amazon CloudFront Developer Guide. To update a web distribution using the CloudFront API

func updateDistribution(input: UpdateDistributionInput, completion: @escaping (ClientRuntime.SdkResult<UpdateDistributionOutputResponse, UpdateDistributionOutputError>) -> Void)

for the distribution. If you update the distribution again, you must get a new Etag header.

IllegalUpdate error.

you must update the corresponding Quantity element.

XML document with a DistributionConfig element.

when you submitted the GetDistributionConfig request in Step 1.

successfully updated.

When propagation is complete, the value of Status is Deployed.

updateFieldLevelEncryptionConfig(input:completion:)

Update a field-level encryption configuration.

func updateFieldLevelEncryptionConfig(input: UpdateFieldLevelEncryptionConfigInput, completion: @escaping (ClientRuntime.SdkResult<UpdateFieldLevelEncryptionConfigOutputResponse, UpdateFieldLevelEncryptionConfigOutputError>) -> Void)

updateFieldLevelEncryptionProfile(input:completion:)

Update a field-level encryption profile.

func updateFieldLevelEncryptionProfile(input: UpdateFieldLevelEncryptionProfileInput, completion: @escaping (ClientRuntime.SdkResult<UpdateFieldLevelEncryptionProfileOutputResponse, UpdateFieldLevelEncryptionProfileOutputError>) -> Void)

updateFunction(input:completion:)

Updates a CloudFront function. You can update a function’s code or the comment that describes the function. You cannot update a function’s name. To update a function, you provide the function’s name and version (ETag value) along with the updated function code. To get the name and version, you can use ListFunctions and DescribeFunction.

func updateFunction(input: UpdateFunctionInput, completion: @escaping (ClientRuntime.SdkResult<UpdateFunctionOutputResponse, UpdateFunctionOutputError>) -> Void)

updateKeyGroup(input:completion:)

Updates a key group. When you update a key group, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a key group:

func updateKeyGroup(input: UpdateKeyGroupInput, completion: @escaping (ClientRuntime.SdkResult<UpdateKeyGroupOutputResponse, UpdateKeyGroupOutputError>) -> Void)

updateOriginRequestPolicy(input:completion:)

Updates an origin request policy configuration. When you update an origin request policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update an origin request policy configuration:

func updateOriginRequestPolicy(input: UpdateOriginRequestPolicyInput, completion: @escaping (ClientRuntime.SdkResult<UpdateOriginRequestPolicyOutputResponse, UpdateOriginRequestPolicyOutputError>) -> Void)

updatePublicKey(input:completion:)

Update public key information. Note that the only value you can change is the comment.

func updatePublicKey(input: UpdatePublicKeyInput, completion: @escaping (ClientRuntime.SdkResult<UpdatePublicKeyOutputResponse, UpdatePublicKeyOutputError>) -> Void)

updateRealtimeLogConfig(input:completion:)

Updates a real-time log configuration. When you update a real-time log configuration, all the parameters are updated with the values provided in the request. You cannot update some parameters independent of others. To update a real-time log configuration:

func updateRealtimeLogConfig(input: UpdateRealtimeLogConfigInput, completion: @escaping (ClientRuntime.SdkResult<UpdateRealtimeLogConfigOutputResponse, UpdateRealtimeLogConfigOutputError>) -> Void)

You cannot update a real-time log configuration’s Name or ARN.

updateStreamingDistribution(input:completion:)

Update a streaming distribution.

func updateStreamingDistribution(input: UpdateStreamingDistributionInput, completion: @escaping (ClientRuntime.SdkResult<UpdateStreamingDistributionOutputResponse, UpdateStreamingDistributionOutputError>) -> Void)