Struct aws_sdk_health::client::fluent_builders::DisableHealthServiceAccessForOrganization [−][src]
pub struct DisableHealthServiceAccessForOrganization<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DisableHealthServiceAccessForOrganization
.
Disables AWS Health from working with AWS Organizations. To call this operation, you must sign in as an AWS Identity and Access Management (IAM) user, assume an IAM role, or sign in as the root user (not recommended) in the organization's management account. For more information, see Aggregating AWS Health events in the AWS Health User Guide.
This operation doesn't remove the service-linked role from the management account in your organization. You must use the IAM console, API, or AWS Command Line Interface (AWS CLI) to remove the service-linked role. For more information, see Deleting a Service-Linked Role in the IAM User Guide.
You can also disable the organizational feature by using the Organizations DisableAWSServiceAccess API operation. After you call this operation, AWS Health stops aggregating events for all other AWS accounts in your organization. If you call the AWS Health API operations for organizational view, AWS Health returns an error. AWS Health continues to aggregate health events for your AWS account.
Implementations
impl<C, M, R> DisableHealthServiceAccessForOrganization<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DisableHealthServiceAccessForOrganization<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DisableHealthServiceAccessForOrganizationOutput, SdkError<DisableHealthServiceAccessForOrganizationError>> where
R::Policy: SmithyRetryPolicy<DisableHealthServiceAccessForOrganizationInputOperationOutputAlias, DisableHealthServiceAccessForOrganizationOutput, DisableHealthServiceAccessForOrganizationError, DisableHealthServiceAccessForOrganizationInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DisableHealthServiceAccessForOrganizationOutput, SdkError<DisableHealthServiceAccessForOrganizationError>> where
R::Policy: SmithyRetryPolicy<DisableHealthServiceAccessForOrganizationInputOperationOutputAlias, DisableHealthServiceAccessForOrganizationOutput, DisableHealthServiceAccessForOrganizationError, DisableHealthServiceAccessForOrganizationInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for DisableHealthServiceAccessForOrganization<C, M, R>
impl<C, M, R> Send for DisableHealthServiceAccessForOrganization<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DisableHealthServiceAccessForOrganization<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DisableHealthServiceAccessForOrganization<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for DisableHealthServiceAccessForOrganization<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more