/// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ModifyVpcEndpointResponse response = new ModifyVpcEndpointResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            if (context.IsStartOfDocument) 
               targetDepth = 2;

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {

                } 
            }

            return response;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ModifyVpcEndpointResponse response = new ModifyVpcEndpointResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                }
            }

            return(response);
        }
Ejemplo n.º 3
0
        public static void ModifyVPCEndPoint()
        {
            AmazonEC2Client          client        = new AmazonEC2Client();
            ModifyVpcEndpointRequest modifyRequest = new ModifyVpcEndpointRequest();

            modifyRequest.VpcEndpointId    = "vpce-17b05a7e";
            modifyRequest.AddRouteTableIds = new List <string> {
                "rtb-c46f15a3"
            };
            ModifyVpcEndpointResponse modifyResponse = client.ModifyVpcEndpoint(modifyRequest);
            HttpStatusCode            status         = modifyResponse.HttpStatusCode;

            if (status.ToString() == "OK")
            {
                Console.WriteLine("ModifyHostsRequest succeeded");
            }
            else
            {
                Console.WriteLine("ModifyHostsRequest failed");
            }
        }