public void ServiceDiscoveryCreateHttpNamespace() { #region createhttpnamespace-example-1590114811304 var response = client.CreateHttpNamespace(new CreateHttpNamespaceRequest { CreatorRequestId = "example-creator-request-id-0001", Description = "Example.com AWS Cloud Map HTTP Namespace", Name = "example-http.com" }); string operationId = response.OperationId; #endregion }
private Amazon.ServiceDiscovery.Model.CreateHttpNamespaceResponse CallAWSServiceOperation(IAmazonServiceDiscovery client, Amazon.ServiceDiscovery.Model.CreateHttpNamespaceRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Cloud Map", "CreateHttpNamespace"); try { #if DESKTOP return(client.CreateHttpNamespace(request)); #elif CORECLR return(client.CreateHttpNamespaceAsync(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; } }