Amazon.DirectoryService.AmazonDirectoryServiceClient.AddIpRoutes C# (CSharp) Method

AddIpRoutes() public method

If the DNS server for your on-premises domain uses a publicly addressable IP address, you must add a CIDR address block to correctly route traffic to and from your Microsoft AD on Amazon Web Services. AddIpRoutes adds this address block. You can also use AddIpRoutes to facilitate routing traffic that uses public IP ranges from your Microsoft AD on AWS to a peer VPC.

Before you call AddIpRoutes, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the AddIpRoutes operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.

/// A client exception has occurred. /// /// The specified directory is unavailable or could not be found. /// /// The specified entity already exists. /// /// The specified entity could not be found. /// /// One or more parameters are not valid. /// /// The maximum allowed number of IP addresses was exceeded. The default limit is 100 /// IP address blocks. /// /// An exception has occurred in AWS Directory Service. ///
public AddIpRoutes ( AddIpRoutesRequest request ) : AddIpRoutesResponse
request Amazon.DirectoryService.Model.AddIpRoutesRequest Container for the necessary parameters to execute the AddIpRoutes service method.
return AddIpRoutesResponse
        public AddIpRoutesResponse AddIpRoutes(AddIpRoutesRequest request)
        {
            var marshaller = new AddIpRoutesRequestMarshaller();
            var unmarshaller = AddIpRoutesResponseUnmarshaller.Instance;

            return Invoke<AddIpRoutesRequest,AddIpRoutesResponse>(request, marshaller, unmarshaller);
        }
AmazonDirectoryServiceClient