AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Implementation for accessing CloudFront

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonServiceClient
    Amazon.CloudFront.AmazonCloudFrontClient

Namespace: Amazon.CloudFront
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class AmazonCloudFrontClient : AmazonServiceClient
         IAmazonCloudFront, IDisposable

The AmazonCloudFrontClient type exposes the following members

Constructors

NameDescription
Public Method AmazonCloudFrontClient() Constructs AmazonCloudFrontClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             
Public Method AmazonCloudFrontClient(RegionEndpoint) Constructs AmazonCloudFrontClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             
Public Method AmazonCloudFrontClient(AmazonCloudFrontConfig) Constructs AmazonCloudFrontClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             
Public Method AmazonCloudFrontClient(AWSCredentials) Constructs AmazonCloudFrontClient with AWS Credentials
Public Method AmazonCloudFrontClient(AWSCredentials, RegionEndpoint) Constructs AmazonCloudFrontClient with AWS Credentials
Public Method AmazonCloudFrontClient(AWSCredentials, AmazonCloudFrontConfig) Constructs AmazonCloudFrontClient with AWS Credentials and an AmazonCloudFrontClient Configuration object.
Public Method AmazonCloudFrontClient(string, string) Constructs AmazonCloudFrontClient with AWS Access Key ID and AWS Secret Key
Public Method AmazonCloudFrontClient(string, string, RegionEndpoint) Constructs AmazonCloudFrontClient with AWS Access Key ID and AWS Secret Key
Public Method AmazonCloudFrontClient(string, string, AmazonCloudFrontConfig) Constructs AmazonCloudFrontClient with AWS Access Key ID, AWS Secret Key and an AmazonCloudFrontClient Configuration object.
Public Method AmazonCloudFrontClient(string, string, string) Constructs AmazonCloudFrontClient with AWS Access Key ID and AWS Secret Key
Public Method AmazonCloudFrontClient(string, string, string, RegionEndpoint) Constructs AmazonCloudFrontClient with AWS Access Key ID and AWS Secret Key
Public Method AmazonCloudFrontClient(string, string, string, AmazonCloudFrontConfig) Constructs AmazonCloudFrontClient with AWS Access Key ID, AWS Secret Key and an AmazonCloudFrontClient Configuration object.

Methods

NameDescription
Public Method CreateCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest) Create a new origin access identity.
Public Method CreateCloudFrontOriginAccessIdentityAsync(CreateCloudFrontOriginAccessIdentityRequest, CancellationToken) Initiates the asynchronous execution of the CreateCloudFrontOriginAccessIdentity operation.
Public Method CreateDistribution(CreateDistributionRequest) Create a new distribution.
Public Method CreateDistributionAsync(CreateDistributionRequest, CancellationToken) Initiates the asynchronous execution of the CreateDistribution operation.
Public Method CreateInvalidation(CreateInvalidationRequest) Create a new invalidation.
Public Method CreateInvalidationAsync(CreateInvalidationRequest, CancellationToken) Initiates the asynchronous execution of the CreateInvalidation operation.
Public Method CreateStreamingDistribution(CreateStreamingDistributionRequest) Create a new streaming distribution.
Public Method CreateStreamingDistributionAsync(CreateStreamingDistributionRequest, CancellationToken) Initiates the asynchronous execution of the CreateStreamingDistribution operation.
Public Method DeleteCloudFrontOriginAccessIdentity() Delete an origin access identity.
Public Method DeleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest) Delete an origin access identity.
Public Method DeleteCloudFrontOriginAccessIdentityAsync(DeleteCloudFrontOriginAccessIdentityRequest, CancellationToken) Initiates the asynchronous execution of the DeleteCloudFrontOriginAccessIdentity operation.
Public Method DeleteDistribution() Delete a distribution.
Public Method DeleteDistribution(DeleteDistributionRequest) Delete a distribution.
Public Method DeleteDistributionAsync(DeleteDistributionRequest, CancellationToken) Initiates the asynchronous execution of the DeleteDistribution operation.
Public Method DeleteStreamingDistribution() Delete a streaming distribution.
Public Method DeleteStreamingDistribution(DeleteStreamingDistributionRequest) Delete a streaming distribution.
Public Method DeleteStreamingDistributionAsync(DeleteStreamingDistributionRequest, CancellationToken) Initiates the asynchronous execution of the DeleteStreamingDistribution operation.
Public Method Dispose() Inherited from Amazon.Runtime.AmazonServiceClient.
Public Method GetCloudFrontOriginAccessIdentity() Get the information about an origin access identity.
Public Method GetCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest) Get the information about an origin access identity.
Public Method GetCloudFrontOriginAccessIdentityAsync(GetCloudFrontOriginAccessIdentityRequest, CancellationToken) Initiates the asynchronous execution of the GetCloudFrontOriginAccessIdentity operation.
Public Method GetCloudFrontOriginAccessIdentityConfig() Get the configuration information about an origin access identity.
Public Method GetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest) Get the configuration information about an origin access identity.
Public Method GetCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest, CancellationToken) Initiates the asynchronous execution of the GetCloudFrontOriginAccessIdentityConfig operation.
Public Method GetDistribution() Get the information about a distribution.
Public Method GetDistribution(GetDistributionRequest) Get the information about a distribution.
Public Method GetDistributionAsync(GetDistributionRequest, CancellationToken) Initiates the asynchronous execution of the GetDistribution operation.
Public Method GetDistributionConfig() Get the configuration information about a distribution.
Public Method GetDistributionConfig(GetDistributionConfigRequest) Get the configuration information about a distribution.
Public Method GetDistributionConfigAsync(GetDistributionConfigRequest, CancellationToken) Initiates the asynchronous execution of the GetDistributionConfig operation.
Public Method GetInvalidation(GetInvalidationRequest) Get the information about an invalidation.
Public Method GetInvalidationAsync(GetInvalidationRequest, CancellationToken) Initiates the asynchronous execution of the GetInvalidation operation.
Public Method GetStreamingDistribution() Get the information about a streaming distribution.
Public Method GetStreamingDistribution(GetStreamingDistributionRequest) Get the information about a streaming distribution.
Public Method GetStreamingDistributionAsync(GetStreamingDistributionRequest, CancellationToken) Initiates the asynchronous execution of the GetStreamingDistribution operation.
Public Method GetStreamingDistributionConfig() Get the configuration information about a streaming distribution.
Public Method GetStreamingDistributionConfig(GetStreamingDistributionConfigRequest) Get the configuration information about a streaming distribution.
Public Method GetStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest, CancellationToken) Initiates the asynchronous execution of the GetStreamingDistributionConfig operation.
Public Method ListCloudFrontOriginAccessIdentities() List origin access identities.
Public Method ListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest) List origin access identities.
Public Method ListCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest, CancellationToken) Initiates the asynchronous execution of the ListCloudFrontOriginAccessIdentities operation.
Public Method ListDistributions() List distributions.
Public Method ListDistributions(ListDistributionsRequest) List distributions.
Public Method ListDistributionsAsync(ListDistributionsRequest, CancellationToken) Initiates the asynchronous execution of the ListDistributions operation.
Public Method ListInvalidations(ListInvalidationsRequest) List invalidation batches.
Public Method ListInvalidationsAsync(ListInvalidationsRequest, CancellationToken) Initiates the asynchronous execution of the ListInvalidations operation.
Public Method ListStreamingDistributions() List streaming distributions.
Public Method ListStreamingDistributions(ListStreamingDistributionsRequest) List streaming distributions.
Public Method ListStreamingDistributionsAsync(ListStreamingDistributionsRequest, CancellationToken) Initiates the asynchronous execution of the ListStreamingDistributions operation.
Public Method UpdateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest) Update an origin access identity.
Public Method UpdateCloudFrontOriginAccessIdentityAsync(UpdateCloudFrontOriginAccessIdentityRequest, CancellationToken) Initiates the asynchronous execution of the UpdateCloudFrontOriginAccessIdentity operation.
Public Method UpdateDistribution(UpdateDistributionRequest) Update a distribution.
Public Method UpdateDistributionAsync(UpdateDistributionRequest, CancellationToken) Initiates the asynchronous execution of the UpdateDistribution operation.
Public Method UpdateStreamingDistribution(UpdateStreamingDistributionRequest) Update a streaming distribution.
Public Method UpdateStreamingDistributionAsync(UpdateStreamingDistributionRequest, CancellationToken) Initiates the asynchronous execution of the UpdateStreamingDistribution operation.

Events

NameDescription
Event AfterResponseEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event BeforeRequestEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event ExceptionEvent Inherited from Amazon.Runtime.AmazonServiceClient.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8