Exemplo n.º 1
0
        /// <summary>
        /// Disassociates an attribute group from an application to remove the extra attributes
        /// contained in the attribute group from the application's metadata. This operation reverts
        /// AssociateAttributeGroup.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the DisassociateAttributeGroup 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 DisassociateAttributeGroup 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/DisassociateAttributeGroup">REST API Reference for DisassociateAttributeGroup Operation</seealso>
        public virtual Task <DisassociateAttributeGroupResponse> DisassociateAttributeGroupAsync(DisassociateAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DisassociateAttributeGroupRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DisassociateAttributeGroupResponseUnmarshaller.Instance;

            return(InvokeAsync <DisassociateAttributeGroupResponse>(request, options, cancellationToken));
        }
Exemplo n.º 2
0
        internal virtual DisassociateAttributeGroupResponse DisassociateAttributeGroup(DisassociateAttributeGroupRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DisassociateAttributeGroupRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DisassociateAttributeGroupResponseUnmarshaller.Instance;

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