How can I programmatically add an entry to Cloudfront behavior settings through .NET?

I cannot find examples for this, has anyone done this via C # using AWSSDK?

Amazon.CloudFront.AmazonCloudFrontConfig config = new Amazon.CloudFront.AmazonCloudFrontConfig(); config.ServiceURL = "https://cloudfront.amazonaws.com/"; Amazon.CloudFront.AmazonCloudFrontClient cl = new AmazonCloudFrontClient("xx", "xxxx",RegionEndpoint.EUWest1); cl.GetDistribution("cloudfrontid").Dump(); 

He always replies that there is no cloud distribution for this account:

 No account found for the given parameters 

Internal exception:

 The remote server returned an error: (403) Forbidden. 
+6
source share

All Articles