AWS SDK for .NET Documentation
AmazonCloudFrontClient Class
AmazonAmazon.CloudFront_2012_03_15AmazonCloudFrontClient Did this page help you?   Yes   No    Tell us about it...
AmazonCloudFrontClient is an implementation of AmazonCloudFront; the client allows you to manage your CloudFront distributions and origin access identities.
If you want to use the AmazonCloudFrontClient from a Medium Trust hosting environment, please create the client with an AmazonCloudFrontConfig object whose UseSecureStringForAwsSecretKey property is false.
Declaration Syntax
C#
[ObsoleteAttribute("This version of the CloudFront SDK has been obsoleted but is kept around due to breaking changes in the main Amazon.CloudFront namespace. No further updates will be made to this version and applications should migrate to the Amazon.CloudFront namespace.")]
public class AmazonCloudFrontClient : AmazonCloudFront, 
	IDisposable
Members
All MembersConstructorsMethods



IconMemberDescription
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.
CopyC#
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSAccessKey" value="********************"/>
        <add key="AWSSecretKey" value="****************************************"/>
    </appSettings>
</configuration>

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.
CopyC#
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSAccessKey" value="********************"/>
        <add key="AWSSecretKey" value="****************************************"/>
    </appSettings>
</configuration>

AmazonCloudFrontClient(String, String)
Constructs AmazonCloudFrontClient with AWS Access Key ID and AWS Secret Key

AmazonCloudFrontClient(String, String, AmazonCloudFrontConfig)
Constructs AmazonCloudFrontClient with AWS Access Key ID, AWS Secret Key and an AmazonCloudFront Configuration object. If the config object's UseSecureStringForAwsSecretKey is false, the AWS Secret Key is stored as a clear-text string. Please use this option only if the application environment doesn't allow the use of SecureStrings.

AmazonCloudFrontClient(String, SecureString, AmazonCloudFrontConfig)
Constructs an AmazonCloudFrontClient with AWS Access Key ID, AWS Secret Key and an Amazon CloudFront Configuration object

AmazonCloudFrontClient(AWSCredentials)
Constructs an AmazonCloudFrontClient with AWSCredentials

AmazonCloudFrontClient(AWSCredentials, AmazonCloudFrontConfig)
Constructs an AmazonCloudFrontClient with AWSCredentials and an AmazonCloudFront Configuration object

CreateDistribution(CreateDistributionRequest)
The CreateDistribution operation creates a new CloudFront Distribution.

CreateOriginAccessIdentity(CreateOriginAccessIdentityRequest)
The CreateOriginAccessIdentity operation creates a new CloudFront Access Identity. You can create up to 100 per AWS account. http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html

CreateStreamingDistribution(CreateStreamingDistributionRequest)
The CreateStreamingDistribution operation creates a new CloudFront StreamingDistribution.

DeleteDistribution(DeleteDistributionRequest)
The DeleteDistribution operation deletes the distribution specified in the request.

DeleteOriginAccessIdentity(DeleteOriginAccessIdentityRequest)
The DeleteOriginAccessIdentity operation deletes the origin access identity specified in the request.

DeleteStreamingDistribution(DeleteStreamingDistributionRequest)
The DeleteStreamingDistribution operation deletes the distribution specified in the request.

Dispose()()()()
Disposes of all managed and unmanaged resources.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetDistributionConfig(GetDistributionConfigRequest)
The GetDistributionConfig gets the Configuration for the CloudFront distribution. For more information on the format of the CloudFront Distribution Configuration object, please refer: http://docs.amazonwebservices.com/cloudfront/latest/APIReference/API_DistributionConfig.html

GetDistributionInfo(GetDistributionInfoRequest)
The GetDistributionInfo operation gets the complete information asociated with a distribution. For more information on what information is returned by CloudFront, please refer: - http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/AboutCreatingDistributions.html
- http://docs.amazonwebservices.com/cloudfront/latest/APIReference/API_Distribution.html

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetInvalidation(GetInvalidationRequest)
The GetInvalidation operation returns back the details for a specific invalidation.
CopyC#
GetInvalidationRequest request = new GetInvalidationRequest()
    .WithDistribtionId(distributionId)
    .WithInvalidationId(invalidationId);
GetInvalidationResponse response = cfcClient.GetInvalidation(request);

GetInvalidationList(GetInvalidationListRequest)
The GetInvalidationList operation will return back a list of all the invalidations done for a distribution for the current and previous billing period. If the list is long, you can paginate it using the MaxItems and Marker parameters
CopyC#
GetInvalidationListRequest request = new GetInvalidationListRequest();
request.DistributionId = distributionId;
GetInvalidationListResponse response = cfcClient.GetInvalidationList(request);

GetOriginAccessIdentityConfig(GetOriginAccessIdentityConfigRequest)
The GetOriginAccessIdentityConfig gets the Configuration for the CloudFront Origin Access Identity. For more information on the format of the CloudFront Origin Access Identity Configuration object, please refer: http://docs.amazonwebservices.com/cloudfront/latest/APIReference/API_GetCloudFrontOriginAccessIdentityConfig.html

GetOriginAccessIdentityInfo(GetOriginAccessIdentityInfoRequest)
The GetOriginAccessIdentityInfo operation gets the complete information asociated with an Origin Access Identity. For more information on what information is returned by CloudFront, please refer: - http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetOAI.html
- http://docs.amazonwebservices.com/cloudfront/latest/APIReference/OAIDatatype.html

GetStreamingDistributionConfig(GetStreamingDistributionConfigRequest)
The GetStreamingDistributionConfig gets the Configuration for the streaming distribution. For more information on the format of the CloudFront StreamingDistribution Configuration object, please refer: http://docs.amazonwebservices.com/latest/APIReference/API_StreamingDistributionConfig.html

GetStreamingDistributionInfo(GetStreamingDistributionInfoRequest)
The GetStreamingDistributionInfo operation gets the complete information asociated with a streaming distribution. For more information on what information is returned by CloudFront, please refer: - http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/AboutCreatingStreamingDistributions.html
- http://docs.amazonwebservices.com/cloudfront/latest/APIReference/API_StreamingDistribution.html

GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
ListDistributions()()()()
The ListDistributions operation returns a list of all of the distributions owned by the authenticated sender of the request.

ListDistributions(ListDistributionsRequest)
The ListDistributions operation returns a list of all of the distributions owned by the authenticated sender of the request.

ListOriginAccessIdentities()()()()
The ListOriginAccessIdentities operation returns a list of all of the Origin Access Identities owned by the authenticated sender of the request.

ListOriginAccessIdentities(ListOriginAccessIdentitiesRequest)
The ListOriginAccessIdentities operation returns a list of all of the Origin Access Identities owned by the authenticated sender of the request.

ListStreamingDistributions()()()()
List CloudFront Streaming Distributions

ListStreamingDistributions(ListStreamingDistributionsRequest)
List CloudFront Streaming Distributions

PostInvalidation(PostInvalidationRequest)
The PostInvalidation operation invalidates objects specified in the PostInvalidationRequest which will cause Cloudfront to go back to the origin to get a new copy.
CopyC#
PostInvalidationRequest request = new PostInvalidationRequest();
request.DistributionId = distributionId;
request.InvalidationBatch.CallerReference = callerReference;
request.InvalidationBatch.WithPaths("/image1.jpg", "/image2.jpg");
PostInvalidationResponse response = cfcClient.PostInvalidation(request);

SetDistributionConfig(SetDistributionConfigRequest)
The SetDistributionConfig operation sets the configuration for a CloudFront distribution.

SetOriginAccessIdentityConfig(SetOriginAccessIdentityConfigRequest)
The SetOriginAccessIdentityConfig operation sets the configuration for a CloudFront Origin Access Identity.

SetStreamingDistributionConfig(SetStreamingDistributionConfigRequest)
The SetStreamingDistributionConfig operation sets the configuration for a CloudFront distribution.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
Remarks
Amazon CloudFront provides a simple web services interface that can be used to store and retrieve any amount of data, at any time, from anywhere on the web. It gives any developer access to the same highly scalable, reliable, fast, inexpensive data storage infrastructure that Amazon uses to run its own global network of web sites. The service aims to maximize benefits of scale and to pass those benefits on to developers.
Inheritance Hierarchy
Object
AmazonCloudFrontClient
See Also
UseSecureStringForAwsSecretKey

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)