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

Client for Amazon GuardDuty

Client for invoking operations on Amazon GuardDuty. Each operation on Amazon GuardDuty is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_guardduty::Client::new(&config);

Occasionally, SDKs may have additional service-specific that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_guardduty::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

Using the Client

A client has a function for every operation that can be performed by the service. For example, the AcceptAdministratorInvitation operation has a Client::accept_administrator_invitation, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.accept_administrator_invitation()
    .detector_id("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

Implementations§

source§

impl Client

source

pub fn accept_administrator_invitation( &self ) -> AcceptAdministratorInvitationFluentBuilder

Constructs a fluent builder for the AcceptAdministratorInvitation operation.

source§

impl Client

source

pub fn accept_invitation(&self) -> AcceptInvitationFluentBuilder

👎Deprecated: This operation is deprecated, use AcceptAdministratorInvitation instead

Constructs a fluent builder for the AcceptInvitation operation.

source§

impl Client

source

pub fn archive_findings(&self) -> ArchiveFindingsFluentBuilder

Constructs a fluent builder for the ArchiveFindings operation.

source§

impl Client

source

pub fn create_detector(&self) -> CreateDetectorFluentBuilder

Constructs a fluent builder for the CreateDetector operation.

source§

impl Client

source

pub fn create_filter(&self) -> CreateFilterFluentBuilder

Constructs a fluent builder for the CreateFilter operation.

  • The fluent builder is configurable:
    • detector_id(impl Into<String>) / set_detector_id(Option<String>):
      required: true

      The ID of the detector belonging to the GuardDuty account that you want to create a filter for.


    • name(impl Into<String>) / set_name(Option<String>):
      required: true

      The name of the filter. Valid characters include period (.), underscore (_), dash (-), and alphanumeric characters. A whitespace is considered to be an invalid character.


    • description(impl Into<String>) / set_description(Option<String>):
      required: false

      The description of the filter. Valid characters include alphanumeric characters, and special characters such as hyphen, period, colon, underscore, parentheses ({ }, [ ], and ( )), forward slash, horizontal tab, vertical tab, newline, form feed, return, and whitespace.


    • action(FilterAction) / set_action(Option<FilterAction>):
      required: false

      Specifies the action that is to be applied to the findings that match the filter.


    • rank(i32) / set_rank(Option<i32>):
      required: false

      Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.


    • finding_criteria(FindingCriteria) / set_finding_criteria(Option<FindingCriteria>):
      required: true

      Represents the criteria to be used in the filter for querying findings.

      You can only use the following attributes to query findings:

      • accountId

      • id

      • region

      • severity

        To filter on the basis of severity, the API and CLI use the following input list for the FindingCriteria condition:

        • Low: [“1”, “2”, “3”]

        • Medium: [“4”, “5”, “6”]

        • High: [“7”, “8”, “9”]

        For more information, see Severity levels for GuardDuty findings.

      • type

      • updatedAt

        Type: ISO 8601 string format: YYYY-MM-DDTHH:MM:SS.SSSZ or YYYY-MM-DDTHH:MM:SSZ depending on whether the value contains milliseconds.

      • resource.accessKeyDetails.accessKeyId

      • resource.accessKeyDetails.principalId

      • resource.accessKeyDetails.userName

      • resource.accessKeyDetails.userType

      • resource.instanceDetails.iamInstanceProfile.id

      • resource.instanceDetails.imageId

      • resource.instanceDetails.instanceId

      • resource.instanceDetails.tags.key

      • resource.instanceDetails.tags.value

      • resource.instanceDetails.networkInterfaces.ipv6Addresses

      • resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress

      • resource.instanceDetails.networkInterfaces.publicDnsName

      • resource.instanceDetails.networkInterfaces.publicIp

      • resource.instanceDetails.networkInterfaces.securityGroups.groupId

      • resource.instanceDetails.networkInterfaces.securityGroups.groupName

      • resource.instanceDetails.networkInterfaces.subnetId

      • resource.instanceDetails.networkInterfaces.vpcId

      • resource.instanceDetails.outpostArn

      • resource.resourceType

      • resource.s3BucketDetails.publicAccess.effectivePermissions

      • resource.s3BucketDetails.name

      • resource.s3BucketDetails.tags.key

      • resource.s3BucketDetails.tags.value

      • resource.s3BucketDetails.type

      • service.action.actionType

      • service.action.awsApiCallAction.api

      • service.action.awsApiCallAction.callerType

      • service.action.awsApiCallAction.errorCode

      • service.action.awsApiCallAction.remoteIpDetails.city.cityName

      • service.action.awsApiCallAction.remoteIpDetails.country.countryName

      • service.action.awsApiCallAction.remoteIpDetails.ipAddressV4

      • service.action.awsApiCallAction.remoteIpDetails.organization.asn

      • service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg

      • service.action.awsApiCallAction.serviceName

      • service.action.dnsRequestAction.domain

      • service.action.dnsRequestAction.domainWithSuffix

      • service.action.networkConnectionAction.blocked

      • service.action.networkConnectionAction.connectionDirection

      • service.action.networkConnectionAction.localPortDetails.port

      • service.action.networkConnectionAction.protocol

      • service.action.networkConnectionAction.remoteIpDetails.city.cityName

      • service.action.networkConnectionAction.remoteIpDetails.country.countryName

      • service.action.networkConnectionAction.remoteIpDetails.ipAddressV4

      • service.action.networkConnectionAction.remoteIpDetails.organization.asn

      • service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg

      • service.action.networkConnectionAction.remotePortDetails.port

      • service.action.awsApiCallAction.remoteAccountDetails.affiliated

      • service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV4

      • service.action.kubernetesApiCallAction.namespace

      • service.action.kubernetesApiCallAction.remoteIpDetails.organization.asn

      • service.action.kubernetesApiCallAction.requestUri

      • service.action.kubernetesApiCallAction.statusCode

      • service.action.networkConnectionAction.localIpDetails.ipAddressV4

      • service.action.networkConnectionAction.protocol

      • service.action.awsApiCallAction.serviceName

      • service.action.awsApiCallAction.remoteAccountDetails.accountId

      • service.additionalInfo.threatListName

      • service.resourceRole

      • resource.eksClusterDetails.name

      • resource.kubernetesDetails.kubernetesWorkloadDetails.name

      • resource.kubernetesDetails.kubernetesWorkloadDetails.namespace

      • resource.kubernetesDetails.kubernetesUserDetails.username

      • resource.kubernetesDetails.kubernetesWorkloadDetails.containers.image

      • resource.kubernetesDetails.kubernetesWorkloadDetails.containers.imagePrefix

      • service.ebsVolumeScanDetails.scanId

      • service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.name

      • service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.severity

      • service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.hash

      • resource.ecsClusterDetails.name

      • resource.ecsClusterDetails.taskDetails.containers.image

      • resource.ecsClusterDetails.taskDetails.definitionArn

      • resource.containerDetails.image

      • resource.rdsDbInstanceDetails.dbInstanceIdentifier

      • resource.rdsDbInstanceDetails.dbClusterIdentifier

      • resource.rdsDbInstanceDetails.engine

      • resource.rdsDbUserDetails.user

      • resource.rdsDbInstanceDetails.tags.key

      • resource.rdsDbInstanceDetails.tags.value

      • service.runtimeDetails.process.executableSha256

      • service.runtimeDetails.process.name

      • service.runtimeDetails.process.name

      • resource.lambdaDetails.functionName

      • resource.lambdaDetails.functionArn

      • resource.lambdaDetails.tags.key

      • resource.lambdaDetails.tags.value


    • client_token(impl Into<String>) / set_client_token(Option<String>):
      required: false

      The idempotency token for the create request.


    • tags(impl Into<String>, impl Into<String>) / set_tags(Option<HashMap::<String, String>>):
      required: false

      The tags to be added to a new filter resource.


  • On success, responds with CreateFilterOutput with field(s):
  • On failure, responds with SdkError<CreateFilterError>
source§

impl Client

source

pub fn create_ip_set(&self) -> CreateIPSetFluentBuilder

Constructs a fluent builder for the CreateIPSet operation.

source§

impl Client

source

pub fn create_members(&self) -> CreateMembersFluentBuilder

Constructs a fluent builder for the CreateMembers operation.

source§

impl Client

source

pub fn create_publishing_destination( &self ) -> CreatePublishingDestinationFluentBuilder

Constructs a fluent builder for the CreatePublishingDestination operation.

source§

impl Client

source

pub fn create_sample_findings(&self) -> CreateSampleFindingsFluentBuilder

Constructs a fluent builder for the CreateSampleFindings operation.

source§

impl Client

source

pub fn create_threat_intel_set(&self) -> CreateThreatIntelSetFluentBuilder

Constructs a fluent builder for the CreateThreatIntelSet operation.

source§

impl Client

source

pub fn decline_invitations(&self) -> DeclineInvitationsFluentBuilder

Constructs a fluent builder for the DeclineInvitations operation.

source§

impl Client

source

pub fn delete_detector(&self) -> DeleteDetectorFluentBuilder

Constructs a fluent builder for the DeleteDetector operation.

source§

impl Client

source

pub fn delete_filter(&self) -> DeleteFilterFluentBuilder

Constructs a fluent builder for the DeleteFilter operation.

source§

impl Client

source

pub fn delete_invitations(&self) -> DeleteInvitationsFluentBuilder

Constructs a fluent builder for the DeleteInvitations operation.

source§

impl Client

source

pub fn delete_ip_set(&self) -> DeleteIPSetFluentBuilder

Constructs a fluent builder for the DeleteIPSet operation.

source§

impl Client

source

pub fn delete_members(&self) -> DeleteMembersFluentBuilder

Constructs a fluent builder for the DeleteMembers operation.

source§

impl Client

source

pub fn delete_publishing_destination( &self ) -> DeletePublishingDestinationFluentBuilder

Constructs a fluent builder for the DeletePublishingDestination operation.

source§

impl Client

source

pub fn delete_threat_intel_set(&self) -> DeleteThreatIntelSetFluentBuilder

Constructs a fluent builder for the DeleteThreatIntelSet operation.

source§

impl Client

source

pub fn describe_malware_scans(&self) -> DescribeMalwareScansFluentBuilder

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

source§

impl Client

source

pub fn describe_organization_configuration( &self ) -> DescribeOrganizationConfigurationFluentBuilder

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

source§

impl Client

source

pub fn describe_publishing_destination( &self ) -> DescribePublishingDestinationFluentBuilder

Constructs a fluent builder for the DescribePublishingDestination operation.

source§

impl Client

source

pub fn disable_organization_admin_account( &self ) -> DisableOrganizationAdminAccountFluentBuilder

Constructs a fluent builder for the DisableOrganizationAdminAccount operation.

source§

impl Client

source

pub fn disassociate_from_administrator_account( &self ) -> DisassociateFromAdministratorAccountFluentBuilder

Constructs a fluent builder for the DisassociateFromAdministratorAccount operation.

source§

impl Client

source

pub fn disassociate_from_master_account( &self ) -> DisassociateFromMasterAccountFluentBuilder

👎Deprecated: This operation is deprecated, use DisassociateFromAdministratorAccount instead

Constructs a fluent builder for the DisassociateFromMasterAccount operation.

source§

impl Client

source

pub fn disassociate_members(&self) -> DisassociateMembersFluentBuilder

Constructs a fluent builder for the DisassociateMembers operation.

source§

impl Client

source

pub fn enable_organization_admin_account( &self ) -> EnableOrganizationAdminAccountFluentBuilder

Constructs a fluent builder for the EnableOrganizationAdminAccount operation.

source§

impl Client

source

pub fn get_administrator_account(&self) -> GetAdministratorAccountFluentBuilder

Constructs a fluent builder for the GetAdministratorAccount operation.

source§

impl Client

source

pub fn get_coverage_statistics(&self) -> GetCoverageStatisticsFluentBuilder

Constructs a fluent builder for the GetCoverageStatistics operation.

source§

impl Client

source

pub fn get_detector(&self) -> GetDetectorFluentBuilder

Constructs a fluent builder for the GetDetector operation.

source§

impl Client

source

pub fn get_filter(&self) -> GetFilterFluentBuilder

Constructs a fluent builder for the GetFilter operation.

source§

impl Client

source

pub fn get_findings(&self) -> GetFindingsFluentBuilder

Constructs a fluent builder for the GetFindings operation.

source§

impl Client

source

pub fn get_findings_statistics(&self) -> GetFindingsStatisticsFluentBuilder

Constructs a fluent builder for the GetFindingsStatistics operation.

source§

impl Client

source

pub fn get_invitations_count(&self) -> GetInvitationsCountFluentBuilder

Constructs a fluent builder for the GetInvitationsCount operation.

source§

impl Client

source

pub fn get_ip_set(&self) -> GetIPSetFluentBuilder

Constructs a fluent builder for the GetIPSet operation.

source§

impl Client

source

pub fn get_malware_scan_settings(&self) -> GetMalwareScanSettingsFluentBuilder

Constructs a fluent builder for the GetMalwareScanSettings operation.

source§

impl Client

source

pub fn get_master_account(&self) -> GetMasterAccountFluentBuilder

👎Deprecated: This operation is deprecated, use GetAdministratorAccount instead

Constructs a fluent builder for the GetMasterAccount operation.

source§

impl Client

source

pub fn get_member_detectors(&self) -> GetMemberDetectorsFluentBuilder

Constructs a fluent builder for the GetMemberDetectors operation.

source§

impl Client

source

pub fn get_members(&self) -> GetMembersFluentBuilder

Constructs a fluent builder for the GetMembers operation.

source§

impl Client

source

pub fn get_remaining_free_trial_days( &self ) -> GetRemainingFreeTrialDaysFluentBuilder

Constructs a fluent builder for the GetRemainingFreeTrialDays operation.

source§

impl Client

source

pub fn get_threat_intel_set(&self) -> GetThreatIntelSetFluentBuilder

Constructs a fluent builder for the GetThreatIntelSet operation.

source§

impl Client

source

pub fn get_usage_statistics(&self) -> GetUsageStatisticsFluentBuilder

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

source§

impl Client

source

pub fn invite_members(&self) -> InviteMembersFluentBuilder

Constructs a fluent builder for the InviteMembers operation.

source§

impl Client

source

pub fn list_coverage(&self) -> ListCoverageFluentBuilder

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

source§

impl Client

source

pub fn list_detectors(&self) -> ListDetectorsFluentBuilder

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

source§

impl Client

source

pub fn list_filters(&self) -> ListFiltersFluentBuilder

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

source§

impl Client

source

pub fn list_findings(&self) -> ListFindingsFluentBuilder

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

  • The fluent builder is configurable:
    • detector_id(impl Into<String>) / set_detector_id(Option<String>):
      required: true

      The ID of the detector that specifies the GuardDuty service whose findings you want to list.


    • finding_criteria(FindingCriteria) / set_finding_criteria(Option<FindingCriteria>):
      required: false

      Represents the criteria used for querying findings. Valid values include:

      • JSON field name

      • accountId

      • region

      • confidence

      • id

      • resource.accessKeyDetails.accessKeyId

      • resource.accessKeyDetails.principalId

      • resource.accessKeyDetails.userName

      • resource.accessKeyDetails.userType

      • resource.instanceDetails.iamInstanceProfile.id

      • resource.instanceDetails.imageId

      • resource.instanceDetails.instanceId

      • resource.instanceDetails.networkInterfaces.ipv6Addresses

      • resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress

      • resource.instanceDetails.networkInterfaces.publicDnsName

      • resource.instanceDetails.networkInterfaces.publicIp

      • resource.instanceDetails.networkInterfaces.securityGroups.groupId

      • resource.instanceDetails.networkInterfaces.securityGroups.groupName

      • resource.instanceDetails.networkInterfaces.subnetId

      • resource.instanceDetails.networkInterfaces.vpcId

      • resource.instanceDetails.tags.key

      • resource.instanceDetails.tags.value

      • resource.resourceType

      • service.action.actionType

      • service.action.awsApiCallAction.api

      • service.action.awsApiCallAction.callerType

      • service.action.awsApiCallAction.remoteIpDetails.city.cityName

      • service.action.awsApiCallAction.remoteIpDetails.country.countryName

      • service.action.awsApiCallAction.remoteIpDetails.ipAddressV4

      • service.action.awsApiCallAction.remoteIpDetails.organization.asn

      • service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg

      • service.action.awsApiCallAction.serviceName

      • service.action.dnsRequestAction.domain

      • service.action.dnsRequestAction.domainWithSuffix

      • service.action.networkConnectionAction.blocked

      • service.action.networkConnectionAction.connectionDirection

      • service.action.networkConnectionAction.localPortDetails.port

      • service.action.networkConnectionAction.protocol

      • service.action.networkConnectionAction.remoteIpDetails.country.countryName

      • service.action.networkConnectionAction.remoteIpDetails.ipAddressV4

      • service.action.networkConnectionAction.remoteIpDetails.organization.asn

      • service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg

      • service.action.networkConnectionAction.remotePortDetails.port

      • service.additionalInfo.threatListName

      • service.archived

        When this attribute is set to ‘true’, only archived findings are listed. When it’s set to ‘false’, only unarchived findings are listed. When this attribute is not set, all existing findings are listed.

      • service.resourceRole

      • severity

      • type

      • updatedAt

        Type: Timestamp in Unix Epoch millisecond format: 1486685375000


    • sort_criteria(SortCriteria) / set_sort_criteria(Option<SortCriteria>):
      required: false

      Represents the criteria used for sorting findings.


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

      You can use this parameter to indicate the maximum number of items you want in the response. The default value is 50. The maximum value is 50.


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

      You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data.


  • On success, responds with ListFindingsOutput with field(s):
  • On failure, responds with SdkError<ListFindingsError>
source§

impl Client

source

pub fn list_invitations(&self) -> ListInvitationsFluentBuilder

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

source§

impl Client

source

pub fn list_ip_sets(&self) -> ListIPSetsFluentBuilder

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

source§

impl Client

source

pub fn list_members(&self) -> ListMembersFluentBuilder

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

source§

impl Client

source

pub fn list_organization_admin_accounts( &self ) -> ListOrganizationAdminAccountsFluentBuilder

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

source§

impl Client

source

pub fn list_publishing_destinations( &self ) -> ListPublishingDestinationsFluentBuilder

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

source§

impl Client

source

pub fn list_tags_for_resource(&self) -> ListTagsForResourceFluentBuilder

Constructs a fluent builder for the ListTagsForResource operation.

source§

impl Client

source

pub fn list_threat_intel_sets(&self) -> ListThreatIntelSetsFluentBuilder

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

source§

impl Client

source

pub fn start_malware_scan(&self) -> StartMalwareScanFluentBuilder

Constructs a fluent builder for the StartMalwareScan operation.

source§

impl Client

source

pub fn start_monitoring_members(&self) -> StartMonitoringMembersFluentBuilder

Constructs a fluent builder for the StartMonitoringMembers operation.

source§

impl Client

source

pub fn stop_monitoring_members(&self) -> StopMonitoringMembersFluentBuilder

Constructs a fluent builder for the StopMonitoringMembers operation.

source§

impl Client

source

pub fn tag_resource(&self) -> TagResourceFluentBuilder

Constructs a fluent builder for the TagResource operation.

source§

impl Client

source

pub fn unarchive_findings(&self) -> UnarchiveFindingsFluentBuilder

Constructs a fluent builder for the UnarchiveFindings operation.

source§

impl Client

source

pub fn untag_resource(&self) -> UntagResourceFluentBuilder

Constructs a fluent builder for the UntagResource operation.

source§

impl Client

source

pub fn update_detector(&self) -> UpdateDetectorFluentBuilder

Constructs a fluent builder for the UpdateDetector operation.

source§

impl Client

source

pub fn update_filter(&self) -> UpdateFilterFluentBuilder

Constructs a fluent builder for the UpdateFilter operation.

source§

impl Client

source

pub fn update_findings_feedback(&self) -> UpdateFindingsFeedbackFluentBuilder

Constructs a fluent builder for the UpdateFindingsFeedback operation.

source§

impl Client

source

pub fn update_ip_set(&self) -> UpdateIPSetFluentBuilder

Constructs a fluent builder for the UpdateIPSet operation.

source§

impl Client

source

pub fn update_malware_scan_settings( &self ) -> UpdateMalwareScanSettingsFluentBuilder

Constructs a fluent builder for the UpdateMalwareScanSettings operation.

source§

impl Client

source

pub fn update_member_detectors(&self) -> UpdateMemberDetectorsFluentBuilder

Constructs a fluent builder for the UpdateMemberDetectors operation.

source§

impl Client

source

pub fn update_organization_configuration( &self ) -> UpdateOrganizationConfigurationFluentBuilder

Constructs a fluent builder for the UpdateOrganizationConfiguration operation.

source§

impl Client

source

pub fn update_publishing_destination( &self ) -> UpdatePublishingDestinationFluentBuilder

Constructs a fluent builder for the UpdatePublishingDestination operation.

source§

impl Client

source

pub fn update_threat_intel_set(&self) -> UpdateThreatIntelSetFluentBuilder

Constructs a fluent builder for the UpdateThreatIntelSet operation.

source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

Panics

This method will panic in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

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.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more