pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description

Client for Amazon Pinpoint Email Service

Client for invoking operations on Amazon Pinpoint Email Service. Each operation on Amazon Pinpoint Email Service 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_pinpointemail::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_pinpointemail::config::Builder::from(&shared_config)
        .retry_config(RetryConfig::disabled())
        .build();
    let client = aws_sdk_pinpointemail::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the CreateConfigurationSet operation.

Constructs a fluent builder for the CreateConfigurationSetEventDestination operation.

Constructs a fluent builder for the CreateDedicatedIpPool operation.

Constructs a fluent builder for the CreateDeliverabilityTestReport operation.

Constructs a fluent builder for the CreateEmailIdentity operation.

Constructs a fluent builder for the DeleteConfigurationSet operation.

Constructs a fluent builder for the DeleteConfigurationSetEventDestination operation.

Constructs a fluent builder for the DeleteDedicatedIpPool operation.

Constructs a fluent builder for the DeleteEmailIdentity operation.

Constructs a fluent builder for the GetAccount operation.

  • The fluent builder takes no input, just send it.
  • On success, responds with GetAccountOutput with field(s):
    • send_quota(Option<SendQuota>):

      An object that contains information about the per-day and per-second sending limits for your Amazon Pinpoint account in the current AWS Region.

    • sending_enabled(bool):

      Indicates whether or not email sending is enabled for your Amazon Pinpoint account in the current AWS Region.

    • dedicated_ip_auto_warmup_enabled(bool):

      Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated with your account.

    • enforcement_status(Option<String>):

      The reputation status of your Amazon Pinpoint account. The status can be one of the following:

      • HEALTHY – There are no reputation-related issues that currently impact your account.

      • PROBATION – We’ve identified some issues with your Amazon Pinpoint account. We’re placing your account under review while you work on correcting these issues.

      • SHUTDOWN – Your account’s ability to send email is currently paused because of an issue with the email sent from your account. When you correct the issue, you can contact us and request that your account’s ability to send email is resumed.

    • production_access_enabled(bool):

      Indicates whether or not your account has production access in the current AWS Region.

      If the value is false, then your account is in the sandbox. When your account is in the sandbox, you can only send email to verified identities. Additionally, the maximum number of emails you can send in a 24-hour period (your sending quota) is 200, and the maximum number of emails you can send per second (your maximum sending rate) is 1.

      If the value is true, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case.

  • On failure, responds with SdkError<GetAccountError>

Constructs a fluent builder for the GetBlacklistReports operation.

Constructs a fluent builder for the GetConfigurationSet operation.

Constructs a fluent builder for the GetConfigurationSetEventDestinations operation.

Constructs a fluent builder for the GetDedicatedIp operation.

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

Constructs a fluent builder for the GetDeliverabilityDashboardOptions operation.

Constructs a fluent builder for the GetDeliverabilityTestReport operation.

Constructs a fluent builder for the GetDomainDeliverabilityCampaign operation.

Constructs a fluent builder for the GetDomainStatisticsReport operation.

Constructs a fluent builder for the GetEmailIdentity operation.

  • The fluent builder is configurable:
  • On success, responds with GetEmailIdentityOutput with field(s):
    • identity_type(Option<IdentityType>):

      The email identity type.

    • feedback_forwarding_status(bool):

      The feedback forwarding configuration for the identity.

      If the value is true, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.

      When you set this value to false, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You’re required to have a method of tracking bounces and complaints. If you haven’t set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).

    • verified_for_sending_status(bool):

      Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint User Guide.

    • dkim_attributes(Option<DkimAttributes>):

      An object that contains information about the DKIM attributes for the identity. This object includes the tokens that you use to create the CNAME records that are required to complete the DKIM verification process.

    • mail_from_attributes(Option<MailFromAttributes>):

      An object that contains information about the Mail-From attributes for the email identity.

    • tags(Option<Vec<Tag>>):

      An array of objects that define the tags (keys and values) that are associated with the email identity.

  • On failure, responds with SdkError<GetEmailIdentityError>

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

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

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

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

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

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the PutAccountDedicatedIpWarmupAttributes operation.

Constructs a fluent builder for the PutAccountSendingAttributes operation.

Constructs a fluent builder for the PutConfigurationSetDeliveryOptions operation.

Constructs a fluent builder for the PutConfigurationSetReputationOptions operation.

Constructs a fluent builder for the PutConfigurationSetSendingOptions operation.

Constructs a fluent builder for the PutConfigurationSetTrackingOptions operation.

Constructs a fluent builder for the PutDedicatedIpInPool operation.

Constructs a fluent builder for the PutDedicatedIpWarmupAttributes operation.

Constructs a fluent builder for the PutDeliverabilityDashboardOption operation.

Constructs a fluent builder for the PutEmailIdentityDkimAttributes operation.

Constructs a fluent builder for the PutEmailIdentityFeedbackAttributes operation.

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

      The email identity that you want to configure bounce and complaint feedback forwarding for.

    • email_forwarding_enabled(bool) / set_email_forwarding_enabled(bool):

      Sets the feedback forwarding configuration for the identity.

      If the value is true, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.

      When you set this value to false, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You’re required to have a method of tracking bounces and complaints. If you haven’t set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).

  • On success, responds with PutEmailIdentityFeedbackAttributesOutput
  • On failure, responds with SdkError<PutEmailIdentityFeedbackAttributesError>

Constructs a fluent builder for the PutEmailIdentityMailFromAttributes operation.

Constructs a fluent builder for the SendEmail operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the UntagResource operation.

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

Performs the conversion.

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

Performs the conversion.

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