public void GetCloudFrontOriginAccessIdentityConfigMarshallTest() { var operation = service_model.FindOperation("GetCloudFrontOriginAccessIdentityConfig"); var request = InstantiateClassGenerator.Execute <GetCloudFrontOriginAccessIdentityConfigRequest>(); var marshaller = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller(); var internalRequest = marshaller.Marshall(request); TestTools.RequestValidator.Validate("GetCloudFrontOriginAccessIdentityConfig", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { { "ETag", "ETag_Value" }, { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as GetCloudFrontOriginAccessIdentityConfigResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the GetCloudFrontOriginAccessIdentityConfig operation. /// <seealso cref="Amazon.CloudFront.IAmazonCloudFront"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig 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 <GetCloudFrontOriginAccessIdentityConfigResponse> GetCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller(); var unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance; return(Invoke <IRequest, GetCloudFrontOriginAccessIdentityConfigRequest, GetCloudFrontOriginAccessIdentityConfigResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
internal GetCloudFrontOriginAccessIdentityConfigResponse GetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request) { var marshaller = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller(); var unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance; return(Invoke <GetCloudFrontOriginAccessIdentityConfigRequest, GetCloudFrontOriginAccessIdentityConfigResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the GetCloudFrontOriginAccessIdentityConfig operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig operation on AmazonCloudFrontClient.</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 EndGetCloudFrontOriginAccessIdentityConfig /// operation.</returns> public IAsyncResult BeginGetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request, AsyncCallback callback, object state) { var marshaller = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller(); var unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance; return BeginInvoke<GetCloudFrontOriginAccessIdentityConfigRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Get the configuration information about an origin access identity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig service method.</param> /// /// <returns>The response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by CloudFront.</returns> /// <exception cref="Amazon.CloudFront.Model.AccessDeniedException"> /// Access denied. /// </exception> /// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException"> /// The specified origin access identity does not exist. /// </exception> public GetCloudFrontOriginAccessIdentityConfigResponse GetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request) { var marshaller = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller(); var unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance; return Invoke<GetCloudFrontOriginAccessIdentityConfigRequest,GetCloudFrontOriginAccessIdentityConfigResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the GetCloudFrontOriginAccessIdentityConfig operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig 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<GetCloudFrontOriginAccessIdentityConfigResponse> GetCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller(); var unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance; return InvokeAsync<GetCloudFrontOriginAccessIdentityConfigRequest,GetCloudFrontOriginAccessIdentityConfigResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void GetCloudFrontOriginAccessIdentityConfigMarshallTest() { var operation = service_model.FindOperation("GetCloudFrontOriginAccessIdentityConfig"); var request = InstantiateClassGenerator.Execute<GetCloudFrontOriginAccessIdentityConfigRequest>(); var marshaller = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller(); var internalRequest = marshaller.Marshall(request); RequestValidator.Validate("GetCloudFrontOriginAccessIdentityConfig", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { {"ETag","ETag_Value"}, {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as GetCloudFrontOriginAccessIdentityConfigResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeGetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest getCloudFrontOriginAccessIdentityConfigRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller().Marshall(getCloudFrontOriginAccessIdentityConfigRequest); var unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para> Get the configuration information about an origin access identity. </para> /// </summary> /// /// <param name="getCloudFrontOriginAccessIdentityConfigRequest">Container for the necessary parameters to execute the /// GetCloudFrontOriginAccessIdentityConfig service method on AmazonCloudFront.</param> /// /// <returns>The response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by AmazonCloudFront.</returns> /// /// <exception cref="T:Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException" /> /// <exception cref="T:Amazon.CloudFront.Model.AccessDeniedException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<GetCloudFrontOriginAccessIdentityConfigResponse> GetCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest getCloudFrontOriginAccessIdentityConfigRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller(); var unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.GetInstance(); return Invoke<IRequest, GetCloudFrontOriginAccessIdentityConfigRequest, GetCloudFrontOriginAccessIdentityConfigResponse>(getCloudFrontOriginAccessIdentityConfigRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeGetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller(); var unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// Initiates the asynchronous execution of the GetCloudFrontOriginAccessIdentityConfig operation. /// <seealso cref="Amazon.CloudFront.IAmazonCloudFront.GetCloudFrontOriginAccessIdentityConfig"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig 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<GetCloudFrontOriginAccessIdentityConfigResponse> GetCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller(); var unmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, GetCloudFrontOriginAccessIdentityConfigRequest, GetCloudFrontOriginAccessIdentityConfigResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }