コード例 #1
0
        public void GlacierCreateVault()
        {
            #region 1dc0313d-ace1-4e6c-9d13-1ec7813b14b7

            var response = client.CreateVault(new CreateVaultRequest
            {
                AccountId = "-",
                VaultName = "my-vault"
            });

            string location = response.Location;

            #endregion
        }
コード例 #2
0
 private Amazon.Glacier.Model.CreateVaultResponse CallAWSServiceOperation(IAmazonGlacier client, Amazon.Glacier.Model.CreateVaultRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Glacier", "CreateVault");
     try
     {
         #if DESKTOP
         return(client.CreateVault(request));
         #elif CORECLR
         return(client.CreateVaultAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }