Data.Cloud.AmazonAPI.TAmazonStorageService.GetBucketLocation

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.Cloud.AmazonAPI.pas
Data.Cloud.AmazonAPI.hpp
Unit: Data.Cloud.AmazonAPI
Parent: TAmazonStorageService

Delphi

function GetBucketLocation(const BucketName: string;
ResponseInfo: TCloudResponseInfo = nil): TAmazonRegion;

C++

TAmazonRegion __fastcall GetBucketLocation(const System::UnicodeString BucketName, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0));

Description

The name of the bucket to get the location for.

GetBucketLocation returns the bucket's location.

The location is one of the following:

  • 'EU'
  • 'us-west-1'
  • 'ap-southeast-1'
  • (empty string - US Classic Region)

The following table shows the significance of the parameters:

Parameter Description

BucketName

The name of the bucket to get the location for.

ResponseInfo

The optional class for storing response info into.

The method returns amzrNotSpecified if the request fails.

See Also