/// <summary> /// Retrieves an attribute group, either by its name or its ID. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAttributeGroup 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 GetAttributeGroup 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/GetAttributeGroup">REST API Reference for GetAttributeGroup Operation</seealso> public virtual Task <GetAttributeGroupResponse> GetAttributeGroupAsync(GetAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAttributeGroupResponseUnmarshaller.Instance; return(InvokeAsync <GetAttributeGroupResponse>(request, options, cancellationToken)); }
internal virtual GetAttributeGroupResponse GetAttributeGroup(GetAttributeGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAttributeGroupResponseUnmarshaller.Instance; return(Invoke <GetAttributeGroupResponse>(request, options)); }