Ejemplo n.º 1
0
        /// <summary>
        /// Calling this operation disables Health from working with AWS Organizations. This does
        /// not remove the Service Linked Role (SLR) from the the master account in your organization.
        /// Use the IAM console, API, or AWS CLI to remove the SLR if desired. To call this operation,
        /// you must sign in as an IAM user, assume an IAM role, or sign in as the root user (not
        /// recommended) in the organization's master account.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization 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 DisableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
        /// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
        /// <a>EnableHealthServiceAccessForOrganization</a> is already in progress. Wait for
        /// the action to complete before trying again. To get the current status, use the <a>DescribeHealthServiceStatusForOrganization</a>
        /// operation.
        /// </exception>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
        public virtual Task <DisableHealthServiceAccessForOrganizationResponse> DisableHealthServiceAccessForOrganizationAsync(DisableHealthServiceAccessForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DisableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DisableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;

            return(InvokeAsync <DisableHealthServiceAccessForOrganizationResponse>(request, options, cancellationToken));
        }
Ejemplo n.º 2
0
        internal virtual DisableHealthServiceAccessForOrganizationResponse DisableHealthServiceAccessForOrganization(DisableHealthServiceAccessForOrganizationRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DisableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DisableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;

            return(Invoke <DisableHealthServiceAccessForOrganizationResponse>(request, options));
        }