createStreamingDistributionWithTags2018_06_18 method

Future<CreateStreamingDistributionWithTagsResult> createStreamingDistributionWithTags2018_06_18(
  1. {@required StreamingDistributionConfigWithTags streamingDistributionConfigWithTags}
)

Create a new streaming distribution with tags.

May throw CNAMEAlreadyExists. May throw StreamingDistributionAlreadyExists. May throw InvalidOrigin. May throw InvalidOriginAccessIdentity. May throw AccessDenied. May throw TooManyTrustedSigners. May throw TrustedSignerDoesNotExist. May throw MissingBody. May throw TooManyStreamingDistributionCNAMEs. May throw TooManyStreamingDistributions. May throw InvalidArgument. May throw InconsistentQuantities. May throw InvalidTagging.

Parameter streamingDistributionConfigWithTags : The streaming distribution's configuration information.

Implementation

Future<CreateStreamingDistributionWithTagsResult>
    createStreamingDistributionWithTags2018_06_18({
  @_s.required
      StreamingDistributionConfigWithTags streamingDistributionConfigWithTags,
}) async {
  ArgumentError.checkNotNull(streamingDistributionConfigWithTags,
      'streamingDistributionConfigWithTags');
  final $result = await _protocol.sendRaw(
    method: 'POST',
    requestUri: '/2018-06-18/streaming-distribution?WithTags',
    payload: streamingDistributionConfigWithTags
        .toXml('StreamingDistributionConfigWithTags'),
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return CreateStreamingDistributionWithTagsResult(
    streamingDistribution: StreamingDistribution.fromXml($elem),
    eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
    location: _s.extractHeaderStringValue($result.headers, 'Location'),
  );
}