/// <summary> /// The Amazon AppIntegrations APIs are in preview release and are subject to change. /// /// /// <para> /// Creates an EventIntegration, given a specified name, description, and a reference /// to an Amazon Eventbridge bus in your account and a partner event source that will /// push events to that bus. No objects are created in the your account, only metadata /// that is persisted on the EventIntegration control plane. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration service method.</param> /// /// <returns>The response from the CreateEventIntegration service method, as returned by AppIntegrationsService.</returns> /// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException"> /// A resource with the specified name already exists. /// </exception> /// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException"> /// Request processing failed due to an error or failure with the service. /// </exception> /// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException"> /// The request is not valid. /// </exception> /// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException"> /// The allowed quota for the resource has been exceeded. /// </exception> /// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException"> /// The throttling limit has been exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso> public virtual CreateEventIntegrationResponse CreateEventIntegration(CreateEventIntegrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance; return(Invoke <CreateEventIntegrationResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the CreateEventIntegration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndCreateEventIntegration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso> public virtual IAsyncResult BeginCreateEventIntegration(CreateEventIntegrationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// The Amazon AppIntegrations APIs are in preview release and are subject to change. /// /// /// <para> /// Creates an EventIntegration, given a specified name, description, and a reference /// to an Amazon Eventbridge bus in your account and a partner event source that will /// push events to that bus. No objects are created in the your account, only metadata /// that is persisted on the EventIntegration control plane. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration 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 CreateEventIntegration service method, as returned by AppIntegrationsService.</returns> /// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException"> /// A resource with the specified name already exists. /// </exception> /// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException"> /// Request processing failed due to an error or failure with the service. /// </exception> /// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException"> /// The request is not valid. /// </exception> /// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException"> /// The allowed quota for the resource has been exceeded. /// </exception> /// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException"> /// The throttling limit has been exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso> public virtual Task <CreateEventIntegrationResponse> CreateEventIntegrationAsync(CreateEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance; return(InvokeAsync <CreateEventIntegrationResponse>(request, options, cancellationToken)); }