/// <summary> /// Initiates the asynchronous execution of the GetGroupPolicy operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetGroupPolicy operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<GetGroupPolicyResponse> GetGroupPolicyAsync(GetGroupPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetGroupPolicyRequestMarshaller(); var unmarshaller = GetGroupPolicyResponseUnmarshaller.Instance; return InvokeAsync<GetGroupPolicyRequest,GetGroupPolicyResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeGetGroupPolicy(GetGroupPolicyRequest getGroupPolicyRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetGroupPolicyRequestMarshaller().Marshall(getGroupPolicyRequest); var unmarshaller = GetGroupPolicyResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
internal GetGroupPolicyResponse GetGroupPolicy(GetGroupPolicyRequest request) { var marshaller = new GetGroupPolicyRequestMarshaller(); var unmarshaller = GetGroupPolicyResponseUnmarshaller.Instance; return Invoke<GetGroupPolicyRequest,GetGroupPolicyResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the GetGroupPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetGroupPolicy operation on AmazonIdentityManagementServiceClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetGroupPolicy /// operation.</returns> public IAsyncResult BeginGetGroupPolicy(GetGroupPolicyRequest request, AsyncCallback callback, object state) { var marshaller = new GetGroupPolicyRequestMarshaller(); var unmarshaller = GetGroupPolicyResponseUnmarshaller.Instance; return BeginInvoke<GetGroupPolicyRequest>(request, marshaller, unmarshaller, callback, state); }
public void GetGroupPolicyMarshallTest() { var operation = service_model.FindOperation("GetGroupPolicy"); var request = InstantiateClassGenerator.Execute<GetGroupPolicyRequest>(); var marshaller = new GetGroupPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = GetGroupPolicyResponseUnmarshaller.Instance.Unmarshall(context) as GetGroupPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para>Retrieves the specified policy document for the specified group. /// The returned policy is URL-encoded according to RFC 3986. For more /// information about RFC 3986, go to /// http://www.faqs.org/rfcs/rfc3986.html.</para> /// </summary> /// /// <param name="getGroupPolicyRequest">Container for the necessary /// parameters to execute the GetGroupPolicy service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetGroupPolicy service method, as /// returned by AmazonIdentityManagementService.</returns> /// /// <exception cref="NoSuchEntityException"/> public GetGroupPolicyResponse GetGroupPolicy(GetGroupPolicyRequest getGroupPolicyRequest) { IRequest<GetGroupPolicyRequest> request = new GetGroupPolicyRequestMarshaller().Marshall(getGroupPolicyRequest); GetGroupPolicyResponse response = Invoke<GetGroupPolicyRequest, GetGroupPolicyResponse> (request, this.signer, GetGroupPolicyResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the GetGroupPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetGroupPolicy operation on AmazonIdentityManagementServiceClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public void GetGroupPolicyAsync(GetGroupPolicyRequest request, AmazonServiceCallback<GetGroupPolicyRequest, GetGroupPolicyResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new GetGroupPolicyRequestMarshaller(); var unmarshaller = GetGroupPolicyResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<GetGroupPolicyRequest,GetGroupPolicyResponse> responseObject = new AmazonServiceResult<GetGroupPolicyRequest,GetGroupPolicyResponse>((GetGroupPolicyRequest)req, (GetGroupPolicyResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<GetGroupPolicyRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the GetGroupPolicy operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.GetGroupPolicy"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetGroupPolicy operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public async Task<GetGroupPolicyResponse> GetGroupPolicyAsync(GetGroupPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetGroupPolicyRequestMarshaller(); var unmarshaller = GetGroupPolicyResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, GetGroupPolicyRequest, GetGroupPolicyResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Retrieves the specified policy document for the specified group. The returned policy is URL-encoded according to RFC 3986. For more /// information about RFC 3986, go to <a href="http://www.faqs.org/rfcs/rfc3986.html">http://www.faqs.org/rfcs/rfc3986.html</a> .</para> /// </summary> /// /// <param name="getGroupPolicyRequest">Container for the necessary parameters to execute the GetGroupPolicy service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetGroupPolicy service method, as returned by AmazonIdentityManagementService.</returns> /// /// <exception cref="T:Amazon.IdentityManagement.Model.NoSuchEntityException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<GetGroupPolicyResponse> GetGroupPolicyAsync(GetGroupPolicyRequest getGroupPolicyRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetGroupPolicyRequestMarshaller(); var unmarshaller = GetGroupPolicyResponseUnmarshaller.GetInstance(); return Invoke<IRequest, GetGroupPolicyRequest, GetGroupPolicyResponse>(getGroupPolicyRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeGetGroupPolicy(GetGroupPolicyRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new GetGroupPolicyRequestMarshaller(); var unmarshaller = GetGroupPolicyResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }