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


            return response;
        }
示例#2
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            EnableKeyResponse response = new EnableKeyResponse();


            return(response);
        }
        public static EnableKeyResponse Unmarshall(UnmarshallerContext context)
        {
            EnableKeyResponse enableKeyResponse = new EnableKeyResponse();

            enableKeyResponse.HttpResponse = context.HttpResponse;
            enableKeyResponse.RequestId = context.StringValue("EnableKey.RequestId");

            return enableKeyResponse;
        }
示例#4
0
        public static EnableKeyResponse Unmarshall(UnmarshallerContext _ctx)
        {
            EnableKeyResponse enableKeyResponse = new EnableKeyResponse();

            enableKeyResponse.HttpResponse = _ctx.HttpResponse;
            enableKeyResponse.RequestId    = _ctx.StringValue("EnableKey.RequestId");

            return(enableKeyResponse);
        }
示例#5
0
        public static EnableKeyResponse Unmarshall(UnmarshallerContext context)
        {
            EnableKeyResponse enableKeyResponse = new EnableKeyResponse()
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("EnableKey.RequestId")
            };

            return(enableKeyResponse);
        }
示例#6
0
        private static async Task EnableKey(KmsManagementClient kmsManagementClient, string keyId)
        {
            logger.Info("Enable Key");

            EnableKeyRequest enableKeyRequest = new EnableKeyRequest
            {
                KeyId = keyId
            };
            EnableKeyResponse enableKeyResponse = await kmsManagementClient.EnableKey(enableKeyRequest);

            logger.Info($"Key Disabled Successfully: {enableKeyResponse.Key.DisplayName}");
        }