Beispiel #1
0
        public void IdentityManagementServiceCreateAccountAlias()
        {
            #region 5adaf6fb-94fc-4ca2-b825-2fbc2062add1

            var client   = new AmazonIdentityManagementServiceClient();
            var response = client.CreateAccountAlias(new CreateAccountAliasRequest
            {
                AccountAlias = "examplecorp"
            });


            #endregion
        }
Beispiel #2
0
 public static void CreateAccountAlias()
 {
     try
     {
         var iamClient = new AmazonIdentityManagementServiceClient();
         var request   = new CreateAccountAliasRequest();
         request.AccountAlias = "my-aws-account-alias-2017";
         var response = iamClient.CreateAccountAlias(request);
         if (response.HttpStatusCode.ToString() == "OK")
         {
             Console.WriteLine(request.AccountAlias + " created.");
         }
         else
         {
             Console.WriteLine("HTTpStatusCode returned = " + response.HttpStatusCode.ToString());
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
     }
 }