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
?