/// <summary>
        /// Deletes an attribute group, specified either by its attribute group ID or name.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the DeleteAttributeGroup service method.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        ///
        /// <returns>The response from the DeleteAttributeGroup service method, as returned by AppRegistry.</returns>
        /// <exception cref="Amazon.AppRegistry.Model.InternalServerException">
        /// The service is experiencing internal problems.
        /// </exception>
        /// <exception cref="Amazon.AppRegistry.Model.ResourceNotFoundException">
        /// The specified resource does not exist.
        /// </exception>
        /// <exception cref="Amazon.AppRegistry.Model.ValidationException">
        /// The request has invalid or missing parameters.
        /// </exception>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/DeleteAttributeGroup">REST API Reference for DeleteAttributeGroup Operation</seealso>
        public virtual Task <DeleteAttributeGroupResponse> DeleteAttributeGroupAsync(DeleteAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DeleteAttributeGroupRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DeleteAttributeGroupResponseUnmarshaller.Instance;

            return(InvokeAsync <DeleteAttributeGroupResponse>(request, options, cancellationToken));
        }
        internal virtual DeleteAttributeGroupResponse DeleteAttributeGroup(DeleteAttributeGroupRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DeleteAttributeGroupRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DeleteAttributeGroupResponseUnmarshaller.Instance;

            return(Invoke <DeleteAttributeGroupResponse>(request, options));
        }