Amazon.CloudFront.AmazonCloudFrontClient.CreateDistribution C# (CSharp) Method

CreateDistribution() public method

Creates a new web distribution. Send a GET request to the /CloudFront API version/distribution/distribution ID resource.
/// Access denied. /// /// /// /// The caller reference you attempted to create the distribution with is associated with /// another distribution. /// /// The value of Quantity and the size of Items do not match. /// /// The argument is invalid. /// /// The default root object file name is too big or contains an invalid character. /// /// /// /// Your request contains forward cookies option which doesn't match with the expectation /// for the whitelisted list of cookie names. Either list of cookie names /// has been specified when not allowed or list of cookie names is missing when expected. /// /// /// /// /// /// The specified Lambda function association is invalid. /// /// /// /// /// /// The origin access identity is not valid or doesn't exist. /// /// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. /// /// You cannot specify SSLv3 as the minimum protocol version if you only want to support /// only clients that support Server Name Indication (SNI). /// /// /// /// The relative path is too big, is not URL-encoded, or does not begin with a slash (/). /// /// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol /// in your request, or omit the RequiredProtocols element from your distribution /// configuration. /// /// /// /// /// /// /// /// /// /// This operation requires a body. Ensure that the body is present and the Content-Type /// header is set. /// /// No origin exists with the specified Origin Id. /// /// You cannot create more cache behaviors for the distribution. /// /// You cannot create anymore custom SSL/TLS certificates. /// /// Your request contains more cookie names in the whitelist than are allowed per cache /// behavior. /// /// Your request contains more CNAMEs than are allowed per distribution. /// /// Processing your request would cause you to exceed the maximum number of distributions /// allowed. /// /// Processing your request would cause the maximum number of distributions with Lambda /// function associations per owner to be exceeded. /// /// /// /// Your request contains more Lambda function associations than are allowed per distribution. /// /// /// /// You cannot create more origins for the distribution. /// /// /// /// Your request contains more trusted signers than are allowed per distribution. /// /// One or more of your trusted signers do not exist. ///
public CreateDistribution ( CreateDistributionRequest request ) : CreateDistributionResponse
request Amazon.CloudFront.Model.CreateDistributionRequest Container for the necessary parameters to execute the CreateDistribution service method.
return Amazon.CloudFront.Model.CreateDistributionResponse
        public CreateDistributionResponse CreateDistribution(CreateDistributionRequest request)
        {
            var marshaller = new CreateDistributionRequestMarshaller();
            var unmarshaller = CreateDistributionResponseUnmarshaller.Instance;

            return Invoke<CreateDistributionRequest,CreateDistributionResponse>(request, marshaller, unmarshaller);
        }
AmazonCloudFrontClient