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

Client for AWS Config

Client for invoking operations on AWS Config. Each operation on AWS Config 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_config::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_config::config::Builder::from(&shared_config)
        .retry_config(RetryConfig::disabled())
        .build();
    let client = aws_sdk_config::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the BatchGetAggregateResourceConfig operation.

Constructs a fluent builder for the BatchGetResourceConfig operation.

Constructs a fluent builder for the DeleteAggregationAuthorization operation.

Constructs a fluent builder for the DeleteConfigRule operation.

Constructs a fluent builder for the DeleteConfigurationAggregator operation.

Constructs a fluent builder for the DeleteConfigurationRecorder operation.

Constructs a fluent builder for the DeleteConformancePack operation.

Constructs a fluent builder for the DeleteDeliveryChannel operation.

Constructs a fluent builder for the DeleteEvaluationResults operation.

Constructs a fluent builder for the DeleteOrganizationConfigRule operation.

Constructs a fluent builder for the DeleteOrganizationConformancePack operation.

Constructs a fluent builder for the DeletePendingAggregationRequest operation.

Constructs a fluent builder for the DeleteRemediationConfiguration operation.

Constructs a fluent builder for the DeleteRemediationExceptions operation.

Constructs a fluent builder for the DeleteResourceConfig operation.

Constructs a fluent builder for the DeleteRetentionConfiguration operation.

Constructs a fluent builder for the DeleteStoredQuery operation.

Constructs a fluent builder for the DeliverConfigSnapshot operation.

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

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

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

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

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

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

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

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

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

Constructs a fluent builder for the DescribeConfigurationRecorders operation.

Constructs a fluent builder for the DescribeConfigurationRecorderStatus operation.

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

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

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

Constructs a fluent builder for the DescribeDeliveryChannels operation.

Constructs a fluent builder for the DescribeDeliveryChannelStatus operation.

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

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

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

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

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

Constructs a fluent builder for the DescribeRemediationConfigurations operation.

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

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

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

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

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

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

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

Constructs a fluent builder for the GetAggregateResourceConfig operation.

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

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

Constructs a fluent builder for the GetComplianceSummaryByConfigRule operation.

Constructs a fluent builder for the GetComplianceSummaryByResourceType operation.

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

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

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

  • The fluent builder is configurable:
    • resource_types(Vec<String>) / set_resource_types(Option<Vec<String>>):

      The comma-separated list that specifies the resource types that you want Config to return (for example, “AWS::EC2::Instance”, “AWS::IAM::User”).

      If a value for resourceTypes is not specified, Config returns all resource types that Config is recording in the region for your account.

      If the configuration recorder is turned off, Config returns an empty list of ResourceCount objects. If the configuration recorder is not recording a specific resource type (for example, S3 buckets), that resource type is not returned in the list of ResourceCount objects.

    • limit(i32) / set_limit(i32):

      The maximum number of ResourceCount objects returned on each page. The default is 100. You cannot specify a number greater than 100. If you specify 0, Config uses the default.

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

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

  • On success, responds with GetDiscoveredResourceCountsOutput with field(s):
    • total_discovered_resources(i64):

      The total number of resources that Config is recording in the region for your account. If you specify resource types in the request, Config returns only the total number of resources for those resource types.

      Example

      1. Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets, for a total of 60 resources.

      2. You make a call to the GetDiscoveredResourceCounts action and specify the resource type, “AWS::EC2::Instances”, in the request.

      3. Config returns 25 for totalDiscoveredResources.

    • resource_counts(Option<Vec<ResourceCount>>):

      The list of ResourceCount objects. Each object is listed in descending order by the number of resources.

    • next_token(Option<String>):

      The string that you use in a subsequent request to get the next page of results in a paginated response.

  • On failure, responds with SdkError<GetDiscoveredResourceCountsError>

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

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

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

Constructs a fluent builder for the GetStoredQuery operation.

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

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

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

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

Constructs a fluent builder for the PutAggregationAuthorization operation.

Constructs a fluent builder for the PutConfigRule operation.

Constructs a fluent builder for the PutConfigurationRecorder operation.

Constructs a fluent builder for the PutConformancePack operation.

Constructs a fluent builder for the PutDeliveryChannel operation.

Constructs a fluent builder for the PutEvaluations operation.

Constructs a fluent builder for the PutExternalEvaluation operation.

Constructs a fluent builder for the PutOrganizationConfigRule operation.

Constructs a fluent builder for the PutOrganizationConformancePack operation.

Constructs a fluent builder for the PutRemediationConfigurations operation.

Constructs a fluent builder for the PutRemediationExceptions operation.

Constructs a fluent builder for the PutResourceConfig operation.

Constructs a fluent builder for the PutRetentionConfiguration operation.

Constructs a fluent builder for the PutStoredQuery operation.

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

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

Constructs a fluent builder for the StartConfigRulesEvaluation operation.

Constructs a fluent builder for the StartConfigurationRecorder operation.

Constructs a fluent builder for the StartRemediationExecution operation.

Constructs a fluent builder for the StopConfigurationRecorder operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the UntagResource 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

Performs the conversion.

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