pub struct Client { /* private fields */ }
Expand description

Client for AWS Health APIs and Notifications

Client for invoking operations on AWS Health APIs and Notifications. Each operation on AWS Health APIs and Notifications is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_health::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_health::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_health::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the DescribeAffectedAccountsForOrganization operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • event_arn(impl Into<String>) / set_event_arn(Option<String>):

      The unique identifier for the event. The event ARN has the arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID format.

      For example, an event ARN might look like the following:

      arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456

    • next_token(impl Into<String>) / set_next_token(Option<String>):

      If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

    • max_results(i32) / set_max_results(Option<i32>):

      The maximum number of items to return in one batch, between 10 and 100, inclusive.

  • On success, responds with DescribeAffectedAccountsForOrganizationOutput with field(s):
    • affected_accounts(Option<Vec<String>>):

      A JSON set of elements of the affected accounts.

    • event_scope_code(Option<EventScopeCode>):

      This parameter specifies if the Health event is a public Amazon Web Services service event or an account-specific event.

      • If the eventScopeCode value is PUBLIC, then the affectedAccounts value is always empty.

      • If the eventScopeCode value is ACCOUNT_SPECIFIC, then the affectedAccounts value lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response.

      • If the eventScopeCode value is NONE, then the eventArn that you specified in the request is invalid or doesn’t exist.

    • next_token(Option<String>):

      If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

  • On failure, responds with SdkError<DescribeAffectedAccountsForOrganizationError>

Constructs a fluent builder for the DescribeAffectedEntities operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeAffectedEntitiesForOrganization operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeEntityAggregates operation.

Constructs a fluent builder for the DescribeEventAggregates operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeEventDetails operation.

Constructs a fluent builder for the DescribeEventDetailsForOrganization operation.

Constructs a fluent builder for the DescribeEvents operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeEventsForOrganization operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeEventTypes operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
  • On success, responds with DescribeEventTypesOutput with field(s):
    • event_types(Option<Vec<EventType>>):

      A list of event types that match the filter criteria. Event types have a category (issue, accountNotification, or scheduledChange), a service (for example, EC2, RDS, DATAPIPELINE, BILLING), and a code (in the format AWS_SERVICE_DESCRIPTION ; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT).

    • next_token(Option<String>):

      If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

  • On failure, responds with SdkError<DescribeEventTypesError>

Constructs a fluent builder for the DescribeHealthServiceStatusForOrganization operation.

Constructs a fluent builder for the DisableHealthServiceAccessForOrganization operation.

Constructs a fluent builder for the EnableHealthServiceAccessForOrganization operation.

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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