/// <summary>
        /// Initiates the asynchronous execution of the CreateApplication operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the CreateApplication 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<CreateApplicationResponse> CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CreateApplicationRequestMarshaller();
            var unmarshaller = CreateApplicationResponseUnmarshaller.Instance;

            return InvokeAsync<CreateApplicationRequest,CreateApplicationResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
 /// <summary>
 /// Creates a new application using the resource group ARN generated by <a>CreateResourceGroup</a>.
 /// You can create up to 50 applications per AWS account. You can run up to 500 concurrent
 /// agents per AWS account. For more information, see <a href="https://docs.aws.amazon.com/inspector/latest/userguide//inspector_applications.html">
 /// Inspector Applications.</a>
 /// </summary>
 /// <param name="applicationName">The user-defined name identifying the application that you want to create. The name must be unique within the AWS account.</param>
 /// <param name="resourceGroupArn">The ARN specifying the resource group that is used to create the application.</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 CreateApplication service method, as returned by Inspector.</returns>
 /// <exception cref="Amazon.Inspector.Model.AccessDeniedException">
 /// 
 /// </exception>
 /// <exception cref="Amazon.Inspector.Model.InternalException">
 /// 
 /// </exception>
 /// <exception cref="Amazon.Inspector.Model.InvalidInputException">
 /// 
 /// </exception>
 /// <exception cref="Amazon.Inspector.Model.NoSuchEntityException">
 /// 
 /// </exception>
 public Task<CreateApplicationResponse> CreateApplicationAsync(string applicationName, string resourceGroupArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new CreateApplicationRequest();
     request.ApplicationName = applicationName;
     request.ResourceGroupArn = resourceGroupArn;
     return CreateApplicationAsync(request, cancellationToken);
 }
        /// <summary>
        /// Initiates the asynchronous execution of the CreateApplication operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the CreateApplication operation on AmazonInspectorClient.</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 EndCreateApplication
        ///         operation.</returns>
        public IAsyncResult BeginCreateApplication(CreateApplicationRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new CreateApplicationRequestMarshaller();
            var unmarshaller = CreateApplicationResponseUnmarshaller.Instance;

            return BeginInvoke<CreateApplicationRequest>(request, marshaller, unmarshaller,
                callback, state);
        }
        internal CreateApplicationResponse CreateApplication(CreateApplicationRequest request)
        {
            var marshaller = new CreateApplicationRequestMarshaller();
            var unmarshaller = CreateApplicationResponseUnmarshaller.Instance;

            return Invoke<CreateApplicationRequest,CreateApplicationResponse>(request, marshaller, unmarshaller);
        }
 /// <summary>
 /// Creates a new application using the resource group ARN generated by <a>CreateResourceGroup</a>.
 /// You can create up to 50 applications per AWS account. You can run up to 500 concurrent
 /// agents per AWS account. For more information, see <a href="https://docs.aws.amazon.com/inspector/latest/userguide//inspector_applications.html">
 /// Inspector Applications.</a>
 /// </summary>
 /// <param name="applicationName">The user-defined name identifying the application that you want to create. The name must be unique within the AWS account.</param>
 /// <param name="resourceGroupArn">The ARN specifying the resource group that is used to create the application.</param>
 /// 
 /// <returns>The response from the CreateApplication service method, as returned by Inspector.</returns>
 /// <exception cref="Amazon.Inspector.Model.AccessDeniedException">
 /// 
 /// </exception>
 /// <exception cref="Amazon.Inspector.Model.InternalException">
 /// 
 /// </exception>
 /// <exception cref="Amazon.Inspector.Model.InvalidInputException">
 /// 
 /// </exception>
 /// <exception cref="Amazon.Inspector.Model.NoSuchEntityException">
 /// 
 /// </exception>
 public CreateApplicationResponse CreateApplication(string applicationName, string resourceGroupArn)
 {
     var request = new CreateApplicationRequest();
     request.ApplicationName = applicationName;
     request.ResourceGroupArn = resourceGroupArn;
     return CreateApplication(request);
 }