/// <summary> /// Create a new streaming distribution with tags. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistributionWithTags service method.</param> /// /// <returns>The response from the CreateStreamingDistributionWithTags service method, as returned by CloudFront.</returns> /// <exception cref="Amazon.CloudFront.Model.AccessDeniedException"> /// Access denied. /// </exception> /// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException"> /// /// </exception> /// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException"> /// The value of <code>Quantity</code> and the size of <code>Items</code> do not match. /// </exception> /// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException"> /// The argument is invalid. /// </exception> /// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException"> /// The origin access identity is not valid or doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFront.Model.InvalidOriginException"> /// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. /// </exception> /// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException"> /// /// </exception> /// <exception cref="Amazon.CloudFront.Model.MissingBodyException"> /// This operation requires a body. Ensure that the body is present and the Content-Type /// header is set. /// </exception> /// <exception cref="Amazon.CloudFront.Model.StreamingDistributionAlreadyExistsException"> /// /// </exception> /// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionCNAMEsException"> /// /// </exception> /// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionsException"> /// Processing your request would cause you to exceed the maximum number of streaming /// distributions allowed. /// </exception> /// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException"> /// Your request contains more trusted signers than are allowed per distribution. /// </exception> /// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException"> /// One or more of your trusted signers do not exist. /// </exception> public CreateStreamingDistributionWithTagsResponse CreateStreamingDistributionWithTags(CreateStreamingDistributionWithTagsRequest request) { var marshaller = new CreateStreamingDistributionWithTagsRequestMarshaller(); var unmarshaller = CreateStreamingDistributionWithTagsResponseUnmarshaller.Instance; return Invoke<CreateStreamingDistributionWithTagsRequest,CreateStreamingDistributionWithTagsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the CreateStreamingDistributionWithTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistributionWithTags operation on AmazonCloudFrontClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateStreamingDistributionWithTags /// operation.</returns> public IAsyncResult BeginCreateStreamingDistributionWithTags(CreateStreamingDistributionWithTagsRequest request, AsyncCallback callback, object state) { var marshaller = new CreateStreamingDistributionWithTagsRequestMarshaller(); var unmarshaller = CreateStreamingDistributionWithTagsResponseUnmarshaller.Instance; return BeginInvoke<CreateStreamingDistributionWithTagsRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the CreateStreamingDistributionWithTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistributionWithTags operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<CreateStreamingDistributionWithTagsResponse> CreateStreamingDistributionWithTagsAsync(CreateStreamingDistributionWithTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateStreamingDistributionWithTagsRequestMarshaller(); var unmarshaller = CreateStreamingDistributionWithTagsResponseUnmarshaller.Instance; return InvokeAsync<CreateStreamingDistributionWithTagsRequest,CreateStreamingDistributionWithTagsResponse>(request, marshaller, unmarshaller, cancellationToken); }