/// <summary>
        /// Creates a new attribute group as a container for user-defined attributes. This approach
        /// enables users to have full control over their cloud application's metadata in a rich
        /// machine-readable format to facilitate integration with automated workflows and third-party
        /// tools.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the CreateAttributeGroup 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 CreateAttributeGroup service method, as returned by AppRegistry.</returns>
        /// <exception cref="Amazon.AppRegistry.Model.ConflictException">
        /// There was a conflict when processing the request (for example, a resource with the
        /// given name already exists within the account).
        /// </exception>
        /// <exception cref="Amazon.AppRegistry.Model.InternalServerException">
        /// The service is experiencing internal problems.
        /// </exception>
        /// <exception cref="Amazon.AppRegistry.Model.ServiceQuotaExceededException">
        /// The maximum number of resources per account has been reached.
        /// </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/CreateAttributeGroup">REST API Reference for CreateAttributeGroup Operation</seealso>
        public virtual Task <CreateAttributeGroupResponse> CreateAttributeGroupAsync(CreateAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = CreateAttributeGroupRequestMarshaller.Instance;
            options.ResponseUnmarshaller = CreateAttributeGroupResponseUnmarshaller.Instance;

            return(InvokeAsync <CreateAttributeGroupResponse>(request, options, cancellationToken));
        }
        internal virtual CreateAttributeGroupResponse CreateAttributeGroup(CreateAttributeGroupRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = CreateAttributeGroupRequestMarshaller.Instance;
            options.ResponseUnmarshaller = CreateAttributeGroupResponseUnmarshaller.Instance;

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