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

Client for AWS SecurityHub

Client for invoking operations on AWS SecurityHub. Each operation on AWS SecurityHub 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_securityhub::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::retry::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_securityhub::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_securityhub::Client::from_conf(config);

Implementations§

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AcceptAdministratorInvitation operation.

Constructs a fluent builder for the AcceptInvitation operation.

Constructs a fluent builder for the BatchDisableStandards operation.

Constructs a fluent builder for the BatchEnableStandards operation.

Constructs a fluent builder for the BatchImportFindings operation.

Constructs a fluent builder for the BatchUpdateFindings operation.

Constructs a fluent builder for the CreateActionTarget operation.

Constructs a fluent builder for the CreateFindingAggregator operation.

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

      Indicates whether to aggregate findings from all of the available Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.

      The selected option also determines how to use the Regions provided in the Regions list.

      The options are as follows:

      • ALL_REGIONS - Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them.

      • ALL_REGIONS_EXCEPT_SPECIFIED - Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in the Regions parameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them.

      • SPECIFIED_REGIONS - Indicates to aggregate findings only from the Regions listed in the Regions parameter. Security Hub does not automatically aggregate findings from new Regions.

    • regions(Vec<String>) / set_regions(Option<Vec<String>>):

      If RegionLinkingMode is ALL_REGIONS_EXCEPT_SPECIFIED, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.

      If RegionLinkingMode is SPECIFIED_REGIONS, then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.

  • On success, responds with CreateFindingAggregatorOutput with field(s):
  • On failure, responds with SdkError<CreateFindingAggregatorError>

Constructs a fluent builder for the CreateInsight operation.

Constructs a fluent builder for the CreateMembers operation.

Constructs a fluent builder for the DeclineInvitations operation.

Constructs a fluent builder for the DeleteActionTarget operation.

Constructs a fluent builder for the DeleteFindingAggregator operation.

Constructs a fluent builder for the DeleteInsight operation.

Constructs a fluent builder for the DeleteInvitations operation.

Constructs a fluent builder for the DeleteMembers operation.

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

Constructs a fluent builder for the DescribeHub operation.

Constructs a fluent builder for the DescribeOrganizationConfiguration operation.

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

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

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

Constructs a fluent builder for the DisableImportFindingsForProduct operation.

Constructs a fluent builder for the DisableOrganizationAdminAccount operation.

Constructs a fluent builder for the DisableSecurityHub operation.

Constructs a fluent builder for the DisassociateFromAdministratorAccount operation.

Constructs a fluent builder for the DisassociateFromMasterAccount operation.

Constructs a fluent builder for the DisassociateMembers operation.

Constructs a fluent builder for the EnableImportFindingsForProduct operation.

Constructs a fluent builder for the EnableOrganizationAdminAccount operation.

Constructs a fluent builder for the EnableSecurityHub operation.

Constructs a fluent builder for the GetAdministratorAccount operation.

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

Constructs a fluent builder for the GetFindingAggregator operation.

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

Constructs a fluent builder for the GetInsightResults operation.

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

Constructs a fluent builder for the GetInvitationsCount operation.

Constructs a fluent builder for the GetMasterAccount operation.

Constructs a fluent builder for the GetMembers operation.

Constructs a fluent builder for the InviteMembers operation.

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

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

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

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

  • The fluent builder is configurable:
    • only_associated(bool) / set_only_associated(bool):

      Specifies which member accounts to include in the response based on their relationship status with the administrator account. The default value is TRUE.

      If OnlyAssociated is set to TRUE, the response includes member accounts whose relationship status with the administrator account is set to ENABLED.

      If OnlyAssociated is set to FALSE, the response includes all existing member accounts.

    • max_results(i32) / set_max_results(i32):

      The maximum number of items to return in the response.

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

      The token that is required for pagination. On your first call to the ListMembers operation, set the value of this parameter to NULL.

      For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

  • On success, responds with ListMembersOutput with field(s):
  • On failure, responds with SdkError<ListMembersError>

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

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the UntagResource operation.

Constructs a fluent builder for the UpdateActionTarget operation.

Constructs a fluent builder for the UpdateFindingAggregator operation.

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

      The ARN of the finding aggregator. To obtain the ARN, use ListFindingAggregators.

    • region_linking_mode(impl Into<String>) / set_region_linking_mode(Option<String>):

      Indicates whether to aggregate findings from all of the available Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.

      The selected option also determines how to use the Regions provided in the Regions list.

      The options are as follows:

      • ALL_REGIONS - Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them.

      • ALL_REGIONS_EXCEPT_SPECIFIED - Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in the Regions parameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them.

      • SPECIFIED_REGIONS - Indicates to aggregate findings only from the Regions listed in the Regions parameter. Security Hub does not automatically aggregate findings from new Regions.

    • regions(Vec<String>) / set_regions(Option<Vec<String>>):

      If RegionLinkingMode is ALL_REGIONS_EXCEPT_SPECIFIED, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.

      If RegionLinkingMode is SPECIFIED_REGIONS, then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.

  • On success, responds with UpdateFindingAggregatorOutput with field(s):
  • On failure, responds with SdkError<UpdateFindingAggregatorError>

Constructs a fluent builder for the UpdateFindings operation.

Constructs a fluent builder for the UpdateInsight operation.

Constructs a fluent builder for the UpdateOrganizationConfiguration operation.

Constructs a fluent builder for the UpdateSecurityHubConfiguration operation.

Constructs a fluent builder for the UpdateStandardsControl operation.

Creates a new client from an SDK Config.

Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Creates a new client from the service Config.

Panics
  • This method will panic if the conf is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the conf is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

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.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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