createStorageLocation method

Future<CreateStorageLocationResultMessage> createStorageLocation()

Creates a bucket in Amazon S3 to store application versions, logs, and other files used by Elastic Beanstalk environments. The Elastic Beanstalk console and EB CLI call this API the first time you create an environment in a region. If the storage location already exists, CreateStorageLocation still returns the bucket name but does not create a new bucket.

May throw TooManyBucketsException. May throw S3SubscriptionRequiredException. May throw InsufficientPrivilegesException.

Implementation

Future<CreateStorageLocationResultMessage> createStorageLocation() async {
  final $request = <String, dynamic>{};
  final $result = await _protocol.send(
    $request,
    action: 'CreateStorageLocation',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shapes: shapes,
    resultWrapper: 'CreateStorageLocationResult',
  );
  return CreateStorageLocationResultMessage.fromXml($result);
}