public void SecurityTokenServiceDecodeAuthorizationMessage() { #region to-decode-information-about-an-authorization-status-of-a-request-1480533854499 var response = client.DecodeAuthorizationMessage(new DecodeAuthorizationMessageRequest { EncodedMessage = "<encoded-message>" }); string decodedMessage = response.DecodedMessage; #endregion }
private Amazon.SecurityToken.Model.DecodeAuthorizationMessageResponse CallAWSServiceOperation(IAmazonSecurityTokenService client, Amazon.SecurityToken.Model.DecodeAuthorizationMessageRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Security Token Service (STS)", "DecodeAuthorizationMessage"); try { #if DESKTOP return(client.DecodeAuthorizationMessage(request)); #elif CORECLR return(client.DecodeAuthorizationMessageAsync(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; } }