English 中文(简体)
亚马孙云层分布
原标题:create Amazon CloudFront streaming distribution

I am creating an Amazon CloudFront streaming distribution using C#. When I provide my bucket name in s3origin, I get the error "Only Amazon S3 V2 style buckets are acceptable as Origin values". Here is my code:

CreateStreamingDistributionRequest objRequest = new CreateStreamingDistributionRequest();

objRequest.StreamingDistributionConfig.CallerReference = DateTime.Now.ToString(("yyyyMMddHHmmssffff"));
objRequest.StreamingDistributionConfig.Comment = "my First Clund front";
objRequest.StreamingDistributionConfig.Enabled = true;
objRequest.StreamingDistributionConfig.S3Origin = new S3Origin("XXXXXX.s3.amazonaws.com",originAccessIdentity);

CreateStreamingDistributionResponse objCFResponse = client.CreateStreamingDistribution(objRequest);

Can anybody help me create a StreamingDistribution?

最佳回答

我认为,问题在于,你的名字应当符合国家航天中心的名称标准。 检查亚马孙文件

To conform with DNS requirements, we recommend following these additional guidelines when creating buckets:

Buck名不应包含(_)

Buck名应当介于3至63之间,其特征为:

不应以散页标语结束。

Buck名不能包含两个相邻的时期。

Bucket names cannot contain dashes next to periods (e.g., "my-.bucket.com" and "my.-bucket" are invalid)

rel=“nofollow” http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?BucketRestrictions.html

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签