Пример #1
0
        /// <summary>
        /// Updates an existing attribute group with new details.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the UpdateAttributeGroup 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 UpdateAttributeGroup 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.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/UpdateAttributeGroup">REST API Reference for UpdateAttributeGroup Operation</seealso>
        public virtual Task <UpdateAttributeGroupResponse> UpdateAttributeGroupAsync(UpdateAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = UpdateAttributeGroupRequestMarshaller.Instance;
            options.ResponseUnmarshaller = UpdateAttributeGroupResponseUnmarshaller.Instance;

            return(InvokeAsync <UpdateAttributeGroupResponse>(request, options, cancellationToken));
        }
Пример #2
0
        internal virtual UpdateAttributeGroupResponse UpdateAttributeGroup(UpdateAttributeGroupRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = UpdateAttributeGroupRequestMarshaller.Instance;
            options.ResponseUnmarshaller = UpdateAttributeGroupResponseUnmarshaller.Instance;

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