Struct aws_sdk_mailmanager::Client
source · pub struct Client { /* private fields */ }Expand description
Client for MailManager
Client for invoking operations on MailManager. Each operation on MailManager 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_mailmanager::Client::new(&config);Occasionally, SDKs may have additional service-specific values 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_mailmanager::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 GetArchiveExport operation has
a Client::get_archive_export, 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.get_archive_export()
.export_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
impl Client
sourcepub fn create_addon_instance(&self) -> CreateAddonInstanceFluentBuilder
pub fn create_addon_instance(&self) -> CreateAddonInstanceFluentBuilder
Constructs a fluent builder for the CreateAddonInstance operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique token that Amazon SES uses to recognize subsequent retries of the same request.
addon_subscription_id(impl Into<String>)/set_addon_subscription_id(Option<String>):
required: trueThe unique ID of a previously created subscription that an Add On instance is created for. You can only have one instance per subscription.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseThe tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:“value1”, “key2”:“value2”} }.
- On success, responds with
CreateAddonInstanceOutputwith field(s):addon_instance_id(String):The unique ID of the Add On instance created by this API.
- On failure, responds with
SdkError<CreateAddonInstanceError>
source§impl Client
impl Client
sourcepub fn create_addon_subscription(&self) -> CreateAddonSubscriptionFluentBuilder
pub fn create_addon_subscription(&self) -> CreateAddonSubscriptionFluentBuilder
Constructs a fluent builder for the CreateAddonSubscription operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique token that Amazon SES uses to recognize subsequent retries of the same request.
addon_name(impl Into<String>)/set_addon_name(Option<String>):
required: trueThe name of the Add On to subscribe to. You can only have one subscription for each Add On name.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseThe tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:“value1”, “key2”:“value2”} }.
- On success, responds with
CreateAddonSubscriptionOutputwith field(s):addon_subscription_id(String):The unique ID of the Add On subscription created by this API.
- On failure, responds with
SdkError<CreateAddonSubscriptionError>
source§impl Client
impl Client
sourcepub fn create_archive(&self) -> CreateArchiveFluentBuilder
pub fn create_archive(&self) -> CreateArchiveFluentBuilder
Constructs a fluent builder for the CreateArchive operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique token Amazon SES uses to recognize retries of this request.
archive_name(impl Into<String>)/set_archive_name(Option<String>):
required: trueA unique name for the new archive.
retention(ArchiveRetention)/set_retention(Option<ArchiveRetention>):
required: falseThe period for retaining emails in the archive before automatic deletion.
kms_key_arn(impl Into<String>)/set_kms_key_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseThe tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:“value1”, “key2”:“value2”} }.
- On success, responds with
CreateArchiveOutputwith field(s):archive_id(String):The unique identifier for the newly created archive.
- On failure, responds with
SdkError<CreateArchiveError>
source§impl Client
impl Client
sourcepub fn create_ingress_point(&self) -> CreateIngressPointFluentBuilder
pub fn create_ingress_point(&self) -> CreateIngressPointFluentBuilder
Constructs a fluent builder for the CreateIngressPoint operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique token that Amazon SES uses to recognize subsequent retries of the same request.
ingress_point_name(impl Into<String>)/set_ingress_point_name(Option<String>):
required: trueA user friendly name for an ingress endpoint resource.
r#type(IngressPointType)/set_type(Option<IngressPointType>):
required: trueThe type of the ingress endpoint to create.
rule_set_id(impl Into<String>)/set_rule_set_id(Option<String>):
required: trueThe identifier of an existing rule set that you attach to an ingress endpoint resource.
traffic_policy_id(impl Into<String>)/set_traffic_policy_id(Option<String>):
required: trueThe identifier of an existing traffic policy that you attach to an ingress endpoint resource.
ingress_point_configuration(IngressPointConfiguration)/set_ingress_point_configuration(Option<IngressPointConfiguration>):
required: falseIf you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseThe tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:“value1”, “key2”:“value2”} }.
- On success, responds with
CreateIngressPointOutputwith field(s):ingress_point_id(String):The unique identifier for a previously created ingress endpoint.
- On failure, responds with
SdkError<CreateIngressPointError>
source§impl Client
impl Client
sourcepub fn create_relay(&self) -> CreateRelayFluentBuilder
pub fn create_relay(&self) -> CreateRelayFluentBuilder
Constructs a fluent builder for the CreateRelay operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique token that Amazon SES uses to recognize subsequent retries of the same request.
relay_name(impl Into<String>)/set_relay_name(Option<String>):
required: trueThe unique name of the relay resource.
server_name(impl Into<String>)/set_server_name(Option<String>):
required: trueThe destination relay server address.
server_port(i32)/set_server_port(Option<i32>):
required: trueThe destination relay server port.
authentication(RelayAuthentication)/set_authentication(Option<RelayAuthentication>):
required: trueAuthentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseThe tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:“value1”, “key2”:“value2”} }.
- On success, responds with
CreateRelayOutputwith field(s):relay_id(String):A unique identifier of the created relay resource.
- On failure, responds with
SdkError<CreateRelayError>
source§impl Client
impl Client
sourcepub fn create_rule_set(&self) -> CreateRuleSetFluentBuilder
pub fn create_rule_set(&self) -> CreateRuleSetFluentBuilder
Constructs a fluent builder for the CreateRuleSet operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique token that Amazon SES uses to recognize subsequent retries of the same request.
rule_set_name(impl Into<String>)/set_rule_set_name(Option<String>):
required: trueA user-friendly name for the rule set.
rules(Rule)/set_rules(Option<Vec::<Rule>>):
required: trueConditional rules that are evaluated for determining actions on email.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseThe tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:“value1”, “key2”:“value2”} }.
- On success, responds with
CreateRuleSetOutputwith field(s):rule_set_id(String):The identifier of the created rule set.
- On failure, responds with
SdkError<CreateRuleSetError>
source§impl Client
impl Client
sourcepub fn create_traffic_policy(&self) -> CreateTrafficPolicyFluentBuilder
pub fn create_traffic_policy(&self) -> CreateTrafficPolicyFluentBuilder
Constructs a fluent builder for the CreateTrafficPolicy operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique token that Amazon SES uses to recognize subsequent retries of the same request.
traffic_policy_name(impl Into<String>)/set_traffic_policy_name(Option<String>):
required: trueA user-friendly name for the traffic policy resource.
policy_statements(PolicyStatement)/set_policy_statements(Option<Vec::<PolicyStatement>>):
required: trueConditional statements for filtering email traffic.
default_action(AcceptAction)/set_default_action(Option<AcceptAction>):
required: trueDefault action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
max_message_size_bytes(i32)/set_max_message_size_bytes(Option<i32>):
required: falseThe maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseThe tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:“value1”, “key2”:“value2”} }.
- On success, responds with
CreateTrafficPolicyOutputwith field(s):traffic_policy_id(String):The identifier of the traffic policy resource.
- On failure, responds with
SdkError<CreateTrafficPolicyError>
source§impl Client
impl Client
sourcepub fn delete_addon_instance(&self) -> DeleteAddonInstanceFluentBuilder
pub fn delete_addon_instance(&self) -> DeleteAddonInstanceFluentBuilder
Constructs a fluent builder for the DeleteAddonInstance operation.
- The fluent builder is configurable:
addon_instance_id(impl Into<String>)/set_addon_instance_id(Option<String>):
required: trueThe Add On instance ID to delete.
- On success, responds with
DeleteAddonInstanceOutput - On failure, responds with
SdkError<DeleteAddonInstanceError>
source§impl Client
impl Client
sourcepub fn delete_addon_subscription(&self) -> DeleteAddonSubscriptionFluentBuilder
pub fn delete_addon_subscription(&self) -> DeleteAddonSubscriptionFluentBuilder
Constructs a fluent builder for the DeleteAddonSubscription operation.
- The fluent builder is configurable:
addon_subscription_id(impl Into<String>)/set_addon_subscription_id(Option<String>):
required: trueThe Add On subscription ID to delete.
- On success, responds with
DeleteAddonSubscriptionOutput - On failure, responds with
SdkError<DeleteAddonSubscriptionError>
source§impl Client
impl Client
sourcepub fn delete_archive(&self) -> DeleteArchiveFluentBuilder
pub fn delete_archive(&self) -> DeleteArchiveFluentBuilder
Constructs a fluent builder for the DeleteArchive operation.
- The fluent builder is configurable:
archive_id(impl Into<String>)/set_archive_id(Option<String>):
required: trueThe identifier of the archive to delete.
- On success, responds with
DeleteArchiveOutput - On failure, responds with
SdkError<DeleteArchiveError>
source§impl Client
impl Client
sourcepub fn delete_ingress_point(&self) -> DeleteIngressPointFluentBuilder
pub fn delete_ingress_point(&self) -> DeleteIngressPointFluentBuilder
Constructs a fluent builder for the DeleteIngressPoint operation.
- The fluent builder is configurable:
ingress_point_id(impl Into<String>)/set_ingress_point_id(Option<String>):
required: trueThe identifier of the ingress endpoint resource that you want to delete.
- On success, responds with
DeleteIngressPointOutput - On failure, responds with
SdkError<DeleteIngressPointError>
source§impl Client
impl Client
sourcepub fn delete_relay(&self) -> DeleteRelayFluentBuilder
pub fn delete_relay(&self) -> DeleteRelayFluentBuilder
Constructs a fluent builder for the DeleteRelay operation.
- The fluent builder is configurable:
relay_id(impl Into<String>)/set_relay_id(Option<String>):
required: trueThe unique relay identifier.
- On success, responds with
DeleteRelayOutput - On failure, responds with
SdkError<DeleteRelayError>
source§impl Client
impl Client
sourcepub fn delete_rule_set(&self) -> DeleteRuleSetFluentBuilder
pub fn delete_rule_set(&self) -> DeleteRuleSetFluentBuilder
Constructs a fluent builder for the DeleteRuleSet operation.
- The fluent builder is configurable:
rule_set_id(impl Into<String>)/set_rule_set_id(Option<String>):
required: trueThe identifier of an existing rule set resource to delete.
- On success, responds with
DeleteRuleSetOutput - On failure, responds with
SdkError<DeleteRuleSetError>
source§impl Client
impl Client
sourcepub fn delete_traffic_policy(&self) -> DeleteTrafficPolicyFluentBuilder
pub fn delete_traffic_policy(&self) -> DeleteTrafficPolicyFluentBuilder
Constructs a fluent builder for the DeleteTrafficPolicy operation.
- The fluent builder is configurable:
traffic_policy_id(impl Into<String>)/set_traffic_policy_id(Option<String>):
required: trueThe identifier of the traffic policy that you want to delete.
- On success, responds with
DeleteTrafficPolicyOutput - On failure, responds with
SdkError<DeleteTrafficPolicyError>
source§impl Client
impl Client
sourcepub fn get_addon_instance(&self) -> GetAddonInstanceFluentBuilder
pub fn get_addon_instance(&self) -> GetAddonInstanceFluentBuilder
Constructs a fluent builder for the GetAddonInstance operation.
- The fluent builder is configurable:
addon_instance_id(impl Into<String>)/set_addon_instance_id(Option<String>):
required: trueThe Add On instance ID to retrieve information for.
- On success, responds with
GetAddonInstanceOutputwith field(s):addon_subscription_id(Option<String>):The subscription ID associated to the instance.
addon_name(Option<String>):The name of the Add On provider associated to the subscription of the instance.
addon_instance_arn(Option<String>):The Amazon Resource Name (ARN) of the Add On instance.
created_timestamp(Option<DateTime>):The timestamp of when the Add On instance was created.
- On failure, responds with
SdkError<GetAddonInstanceError>
source§impl Client
impl Client
sourcepub fn get_addon_subscription(&self) -> GetAddonSubscriptionFluentBuilder
pub fn get_addon_subscription(&self) -> GetAddonSubscriptionFluentBuilder
Constructs a fluent builder for the GetAddonSubscription operation.
- The fluent builder is configurable:
addon_subscription_id(impl Into<String>)/set_addon_subscription_id(Option<String>):
required: trueThe Add On subscription ID to retrieve information for.
- On success, responds with
GetAddonSubscriptionOutputwith field(s):addon_name(Option<String>):The name of the Add On for the subscription.
addon_subscription_arn(Option<String>):Amazon Resource Name (ARN) for the subscription.
created_timestamp(Option<DateTime>):The timestamp of when the Add On subscription was created.
- On failure, responds with
SdkError<GetAddonSubscriptionError>
source§impl Client
impl Client
sourcepub fn get_archive(&self) -> GetArchiveFluentBuilder
pub fn get_archive(&self) -> GetArchiveFluentBuilder
Constructs a fluent builder for the GetArchive operation.
- The fluent builder is configurable:
archive_id(impl Into<String>)/set_archive_id(Option<String>):
required: trueThe identifier of the archive to retrieve.
- On success, responds with
GetArchiveOutputwith field(s):archive_id(String):The unique identifier of the archive.
archive_name(String):The unique name assigned to the archive.
archive_arn(String):The Amazon Resource Name (ARN) of the archive.
archive_state(ArchiveState):The current state of the archive:
-
ACTIVE– The archive is ready and available for use. -
PENDING_DELETION– The archive has been marked for deletion and will be permanently deleted in 30 days. No further modifications can be made in this state.
-
retention(Option<ArchiveRetention>):The retention period for emails in this archive.
created_timestamp(Option<DateTime>):The timestamp of when the archive was created.
last_updated_timestamp(Option<DateTime>):The timestamp of when the archive was modified.
kms_key_arn(Option<String>):The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.
- On failure, responds with
SdkError<GetArchiveError>
source§impl Client
impl Client
sourcepub fn get_archive_export(&self) -> GetArchiveExportFluentBuilder
pub fn get_archive_export(&self) -> GetArchiveExportFluentBuilder
Constructs a fluent builder for the GetArchiveExport operation.
- The fluent builder is configurable:
export_id(impl Into<String>)/set_export_id(Option<String>):
required: trueThe identifier of the export job to get details for.
- On success, responds with
GetArchiveExportOutputwith field(s):archive_id(Option<String>):The identifier of the archive the email export was performed from.
filters(Option<ArchiveFilters>):The criteria used to filter emails included in the export.
from_timestamp(Option<DateTime>):The start of the timestamp range the exported emails cover.
to_timestamp(Option<DateTime>):The end of the date range the exported emails cover.
max_results(Option<i32>):The maximum number of email items included in the export.
export_destination_configuration(Option<ExportDestinationConfiguration>):Where the exported emails are being delivered.
status(Option<ExportStatus>):The current status of the export job.
- On failure, responds with
SdkError<GetArchiveExportError>
source§impl Client
impl Client
sourcepub fn get_archive_message(&self) -> GetArchiveMessageFluentBuilder
pub fn get_archive_message(&self) -> GetArchiveMessageFluentBuilder
Constructs a fluent builder for the GetArchiveMessage operation.
- The fluent builder is configurable:
archived_message_id(impl Into<String>)/set_archived_message_id(Option<String>):
required: trueThe unique identifier of the archived email message.
- On success, responds with
GetArchiveMessageOutputwith field(s):message_download_link(Option<String>):A pre-signed URL to temporarily download the full message content.
- On failure, responds with
SdkError<GetArchiveMessageError>
source§impl Client
impl Client
sourcepub fn get_archive_message_content(
&self,
) -> GetArchiveMessageContentFluentBuilder
pub fn get_archive_message_content( &self, ) -> GetArchiveMessageContentFluentBuilder
Constructs a fluent builder for the GetArchiveMessageContent operation.
- The fluent builder is configurable:
archived_message_id(impl Into<String>)/set_archived_message_id(Option<String>):
required: trueThe unique identifier of the archived email message.
- On success, responds with
GetArchiveMessageContentOutputwith field(s):body(Option<MessageBody>):The textual body content of the email message.
- On failure, responds with
SdkError<GetArchiveMessageContentError>
source§impl Client
impl Client
sourcepub fn get_archive_search(&self) -> GetArchiveSearchFluentBuilder
pub fn get_archive_search(&self) -> GetArchiveSearchFluentBuilder
Constructs a fluent builder for the GetArchiveSearch operation.
- The fluent builder is configurable:
search_id(impl Into<String>)/set_search_id(Option<String>):
required: trueThe identifier of the search job to get details for.
- On success, responds with
GetArchiveSearchOutputwith field(s):archive_id(Option<String>):The identifier of the archive the email search was performed in.
filters(Option<ArchiveFilters>):The criteria used to filter emails included in the search.
from_timestamp(Option<DateTime>):The start timestamp of the range the searched emails cover.
to_timestamp(Option<DateTime>):The end timestamp of the range the searched emails cover.
max_results(Option<i32>):The maximum number of search results to return.
status(Option<SearchStatus>):The current status of the search job.
- On failure, responds with
SdkError<GetArchiveSearchError>
source§impl Client
impl Client
sourcepub fn get_archive_search_results(&self) -> GetArchiveSearchResultsFluentBuilder
pub fn get_archive_search_results(&self) -> GetArchiveSearchResultsFluentBuilder
Constructs a fluent builder for the GetArchiveSearchResults operation.
- The fluent builder is configurable:
search_id(impl Into<String>)/set_search_id(Option<String>):
required: trueThe identifier of the completed search job.
- On success, responds with
GetArchiveSearchResultsOutputwith field(s):rows(Option<Vec::<Row>>):The list of email result objects matching the search criteria.
- On failure, responds with
SdkError<GetArchiveSearchResultsError>
source§impl Client
impl Client
sourcepub fn get_ingress_point(&self) -> GetIngressPointFluentBuilder
pub fn get_ingress_point(&self) -> GetIngressPointFluentBuilder
Constructs a fluent builder for the GetIngressPoint operation.
- The fluent builder is configurable:
ingress_point_id(impl Into<String>)/set_ingress_point_id(Option<String>):
required: trueThe identifier of an ingress endpoint.
- On success, responds with
GetIngressPointOutputwith field(s):ingress_point_id(String):The identifier of an ingress endpoint resource.
ingress_point_name(String):A user friendly name for the ingress endpoint.
ingress_point_arn(Option<String>):The Amazon Resource Name (ARN) of the ingress endpoint resource.
status(Option<IngressPointStatus>):The status of the ingress endpoint resource.
r#type(Option<IngressPointType>):The type of ingress endpoint.
a_record(Option<String>):The DNS A Record that identifies your ingress endpoint. Configure your DNS Mail Exchange (MX) record with this value to route emails to Mail Manager.
rule_set_id(Option<String>):The identifier of a rule set resource associated with the ingress endpoint.
traffic_policy_id(Option<String>):The identifier of the traffic policy resource associated with the ingress endpoint.
ingress_point_auth_configuration(Option<IngressPointAuthConfiguration>):The authentication configuration of the ingress endpoint resource.
created_timestamp(Option<DateTime>):The timestamp of when the ingress endpoint was created.
last_updated_timestamp(Option<DateTime>):The timestamp of when the ingress endpoint was last updated.
- On failure, responds with
SdkError<GetIngressPointError>
source§impl Client
impl Client
sourcepub fn get_relay(&self) -> GetRelayFluentBuilder
pub fn get_relay(&self) -> GetRelayFluentBuilder
Constructs a fluent builder for the GetRelay operation.
- The fluent builder is configurable:
relay_id(impl Into<String>)/set_relay_id(Option<String>):
required: trueA unique relay identifier.
- On success, responds with
GetRelayOutputwith field(s):relay_id(String):The unique relay identifier.
relay_arn(Option<String>):The Amazon Resource Name (ARN) of the relay.
relay_name(Option<String>):The unique name of the relay.
server_name(Option<String>):The destination relay server address.
server_port(Option<i32>):The destination relay server port.
authentication(Option<RelayAuthentication>):The authentication attribute—contains the secret ARN where the customer relay server credentials are stored.
created_timestamp(Option<DateTime>):The timestamp of when the relay was created.
last_modified_timestamp(Option<DateTime>):The timestamp of when relay was last updated.
- On failure, responds with
SdkError<GetRelayError>
source§impl Client
impl Client
sourcepub fn get_rule_set(&self) -> GetRuleSetFluentBuilder
pub fn get_rule_set(&self) -> GetRuleSetFluentBuilder
Constructs a fluent builder for the GetRuleSet operation.
- The fluent builder is configurable:
rule_set_id(impl Into<String>)/set_rule_set_id(Option<String>):
required: trueThe identifier of an existing rule set to be retrieved.
- On success, responds with
GetRuleSetOutputwith field(s):rule_set_id(String):The identifier of the rule set resource.
rule_set_arn(String):The Amazon Resource Name (ARN) of the rule set resource.
rule_set_name(String):A user-friendly name for the rule set resource.
created_date(DateTime):The date of when then rule set was created.
last_modification_date(DateTime):The date of when the rule set was last modified.
rules(Vec::<Rule>):The rules contained in the rule set.
- On failure, responds with
SdkError<GetRuleSetError>
source§impl Client
impl Client
sourcepub fn get_traffic_policy(&self) -> GetTrafficPolicyFluentBuilder
pub fn get_traffic_policy(&self) -> GetTrafficPolicyFluentBuilder
Constructs a fluent builder for the GetTrafficPolicy operation.
- The fluent builder is configurable:
traffic_policy_id(impl Into<String>)/set_traffic_policy_id(Option<String>):
required: trueThe identifier of the traffic policy resource.
- On success, responds with
GetTrafficPolicyOutputwith field(s):traffic_policy_name(String):A user-friendly name for the traffic policy resource.
traffic_policy_id(String):The identifier of the traffic policy resource.
traffic_policy_arn(Option<String>):The Amazon Resource Name (ARN) of the traffic policy resource.
policy_statements(Option<Vec::<PolicyStatement>>):The list of conditions which are in the traffic policy resource.
max_message_size_bytes(Option<i32>):The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
default_action(Option<AcceptAction>):The default action of the traffic policy.
created_timestamp(Option<DateTime>):The timestamp of when the traffic policy was created.
last_updated_timestamp(Option<DateTime>):The timestamp of when the traffic policy was last updated.
- On failure, responds with
SdkError<GetTrafficPolicyError>
source§impl Client
impl Client
sourcepub fn list_addon_instances(&self) -> ListAddonInstancesFluentBuilder
pub fn list_addon_instances(&self) -> ListAddonInstancesFluentBuilder
Constructs a fluent builder for the ListAddonInstances operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.
page_size(i32)/set_page_size(Option<i32>):
required: falseThe maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.
- On success, responds with
ListAddonInstancesOutputwith field(s):addon_instances(Option<Vec::<AddonInstance>>):The list of ingress endpoints.
next_token(Option<String>):If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
- On failure, responds with
SdkError<ListAddonInstancesError>
source§impl Client
impl Client
sourcepub fn list_addon_subscriptions(&self) -> ListAddonSubscriptionsFluentBuilder
pub fn list_addon_subscriptions(&self) -> ListAddonSubscriptionsFluentBuilder
Constructs a fluent builder for the ListAddonSubscriptions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.
page_size(i32)/set_page_size(Option<i32>):
required: falseThe maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.
- On success, responds with
ListAddonSubscriptionsOutputwith field(s):addon_subscriptions(Option<Vec::<AddonSubscription>>):The list of ingress endpoints.
next_token(Option<String>):If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
- On failure, responds with
SdkError<ListAddonSubscriptionsError>
source§impl Client
impl Client
sourcepub fn list_archive_exports(&self) -> ListArchiveExportsFluentBuilder
pub fn list_archive_exports(&self) -> ListArchiveExportsFluentBuilder
Constructs a fluent builder for the ListArchiveExports operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
archive_id(impl Into<String>)/set_archive_id(Option<String>):
required: trueThe identifier of the archive.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
page_size(i32)/set_page_size(Option<i32>):
required: falseThe maximum number of archive export jobs that are returned per call. You can use NextToken to obtain further pages of archives.
- On success, responds with
ListArchiveExportsOutputwith field(s):exports(Option<Vec::<ExportSummary>>):The list of export job identifiers and statuses.
next_token(Option<String>):If present, use to retrieve the next page of results.
- On failure, responds with
SdkError<ListArchiveExportsError>
source§impl Client
impl Client
sourcepub fn list_archive_searches(&self) -> ListArchiveSearchesFluentBuilder
pub fn list_archive_searches(&self) -> ListArchiveSearchesFluentBuilder
Constructs a fluent builder for the ListArchiveSearches operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
archive_id(impl Into<String>)/set_archive_id(Option<String>):
required: trueThe identifier of the archive.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
page_size(i32)/set_page_size(Option<i32>):
required: falseThe maximum number of archive search jobs that are returned per call. You can use NextToken to obtain further pages of archives.
- On success, responds with
ListArchiveSearchesOutputwith field(s):searches(Option<Vec::<SearchSummary>>):The list of search job identifiers and statuses.
next_token(Option<String>):If present, use to retrieve the next page of results.
- On failure, responds with
SdkError<ListArchiveSearchesError>
source§impl Client
impl Client
sourcepub fn list_archives(&self) -> ListArchivesFluentBuilder
pub fn list_archives(&self) -> ListArchivesFluentBuilder
Constructs a fluent builder for the ListArchives operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
page_size(i32)/set_page_size(Option<i32>):
required: falseThe maximum number of archives that are returned per call. You can use NextToken to obtain further pages of archives.
- On success, responds with
ListArchivesOutputwith field(s):archives(Vec::<Archive>):The list of archive details.
next_token(Option<String>):If present, use to retrieve the next page of results.
- On failure, responds with
SdkError<ListArchivesError>
source§impl Client
impl Client
sourcepub fn list_ingress_points(&self) -> ListIngressPointsFluentBuilder
pub fn list_ingress_points(&self) -> ListIngressPointsFluentBuilder
Constructs a fluent builder for the ListIngressPoints operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
page_size(i32)/set_page_size(Option<i32>):
required: falseThe maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.
- On success, responds with
ListIngressPointsOutputwith field(s):ingress_points(Option<Vec::<IngressPoint>>):The list of ingress endpoints.
next_token(Option<String>):If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
- On failure, responds with
SdkError<ListIngressPointsError>
source§impl Client
impl Client
sourcepub fn list_relays(&self) -> ListRelaysFluentBuilder
pub fn list_relays(&self) -> ListRelaysFluentBuilder
Constructs a fluent builder for the ListRelays operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
page_size(i32)/set_page_size(Option<i32>):
required: falseThe number of relays to be returned in one request.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.
- On success, responds with
ListRelaysOutputwith field(s):relays(Vec::<Relay>):The list of returned relays.
next_token(Option<String>):If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
- On failure, responds with
SdkError<ListRelaysError>
source§impl Client
impl Client
sourcepub fn list_rule_sets(&self) -> ListRuleSetsFluentBuilder
pub fn list_rule_sets(&self) -> ListRuleSetsFluentBuilder
Constructs a fluent builder for the ListRuleSets operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.
page_size(i32)/set_page_size(Option<i32>):
required: falseThe maximum number of rule set resources that are returned per call. You can use NextToken to obtain further rule sets.
- On success, responds with
ListRuleSetsOutputwith field(s):rule_sets(Vec::<RuleSet>):The list of rule sets.
next_token(Option<String>):If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
- On failure, responds with
SdkError<ListRuleSetsError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource to retrieve tags from.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Vec::<Tag>):The tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:“value1”, “key2”:“value2”} }.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn list_traffic_policies(&self) -> ListTrafficPoliciesFluentBuilder
pub fn list_traffic_policies(&self) -> ListTrafficPoliciesFluentBuilder
Constructs a fluent builder for the ListTrafficPolicies operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
page_size(i32)/set_page_size(Option<i32>):
required: falseThe maximum number of traffic policy resources that are returned per call. You can use NextToken to obtain further traffic policies.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.
- On success, responds with
ListTrafficPoliciesOutputwith field(s):traffic_policies(Option<Vec::<TrafficPolicy>>):The list of traffic policies.
next_token(Option<String>):If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
- On failure, responds with
SdkError<ListTrafficPoliciesError>
source§impl Client
impl Client
sourcepub fn start_archive_export(&self) -> StartArchiveExportFluentBuilder
pub fn start_archive_export(&self) -> StartArchiveExportFluentBuilder
Constructs a fluent builder for the StartArchiveExport operation.
- The fluent builder is configurable:
archive_id(impl Into<String>)/set_archive_id(Option<String>):
required: trueThe identifier of the archive to export emails from.
filters(ArchiveFilters)/set_filters(Option<ArchiveFilters>):
required: falseCriteria to filter which emails are included in the export.
from_timestamp(DateTime)/set_from_timestamp(Option<DateTime>):
required: trueThe start of the timestamp range to include emails from.
to_timestamp(DateTime)/set_to_timestamp(Option<DateTime>):
required: trueThe end of the timestamp range to include emails from.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of email items to include in the export.
export_destination_configuration(ExportDestinationConfiguration)/set_export_destination_configuration(Option<ExportDestinationConfiguration>):
required: trueDetails on where to deliver the exported email data.
- On success, responds with
StartArchiveExportOutputwith field(s):export_id(Option<String>):The unique identifier for the initiated export job.
- On failure, responds with
SdkError<StartArchiveExportError>
source§impl Client
impl Client
sourcepub fn start_archive_search(&self) -> StartArchiveSearchFluentBuilder
pub fn start_archive_search(&self) -> StartArchiveSearchFluentBuilder
Constructs a fluent builder for the StartArchiveSearch operation.
- The fluent builder is configurable:
archive_id(impl Into<String>)/set_archive_id(Option<String>):
required: trueThe identifier of the archive to search emails in.
filters(ArchiveFilters)/set_filters(Option<ArchiveFilters>):
required: falseCriteria to filter which emails are included in the search results.
from_timestamp(DateTime)/set_from_timestamp(Option<DateTime>):
required: trueThe start timestamp of the range to search emails from.
to_timestamp(DateTime)/set_to_timestamp(Option<DateTime>):
required: trueThe end timestamp of the range to search emails from.
max_results(i32)/set_max_results(Option<i32>):
required: trueThe maximum number of search results to return.
- On success, responds with
StartArchiveSearchOutputwith field(s):search_id(Option<String>):The unique identifier for the initiated search job.
- On failure, responds with
SdkError<StartArchiveSearchError>
source§impl Client
impl Client
sourcepub fn stop_archive_export(&self) -> StopArchiveExportFluentBuilder
pub fn stop_archive_export(&self) -> StopArchiveExportFluentBuilder
Constructs a fluent builder for the StopArchiveExport operation.
- The fluent builder is configurable:
export_id(impl Into<String>)/set_export_id(Option<String>):
required: trueThe identifier of the export job to stop.
- On success, responds with
StopArchiveExportOutput - On failure, responds with
SdkError<StopArchiveExportError>
source§impl Client
impl Client
sourcepub fn stop_archive_search(&self) -> StopArchiveSearchFluentBuilder
pub fn stop_archive_search(&self) -> StopArchiveSearchFluentBuilder
Constructs a fluent builder for the StopArchiveSearch operation.
- The fluent builder is configurable:
search_id(impl Into<String>)/set_search_id(Option<String>):
required: trueThe identifier of the search job to stop.
- On success, responds with
StopArchiveSearchOutput - On failure, responds with
SdkError<StopArchiveSearchError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource that you want to tag.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: trueThe tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:“value1”, “key2”:“value2”} }.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource that you want to untag.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueThe keys of the key-value pairs for the tag or tags you want to remove from the specified resource.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_archive(&self) -> UpdateArchiveFluentBuilder
pub fn update_archive(&self) -> UpdateArchiveFluentBuilder
Constructs a fluent builder for the UpdateArchive operation.
- The fluent builder is configurable:
archive_id(impl Into<String>)/set_archive_id(Option<String>):
required: trueThe identifier of the archive to update.
archive_name(impl Into<String>)/set_archive_name(Option<String>):
required: falseA new, unique name for the archive.
retention(ArchiveRetention)/set_retention(Option<ArchiveRetention>):
required: falseA new retention period for emails in the archive.
- On success, responds with
UpdateArchiveOutput - On failure, responds with
SdkError<UpdateArchiveError>
source§impl Client
impl Client
sourcepub fn update_ingress_point(&self) -> UpdateIngressPointFluentBuilder
pub fn update_ingress_point(&self) -> UpdateIngressPointFluentBuilder
Constructs a fluent builder for the UpdateIngressPoint operation.
- The fluent builder is configurable:
ingress_point_id(impl Into<String>)/set_ingress_point_id(Option<String>):
required: trueThe identifier for the ingress endpoint you want to update.
ingress_point_name(impl Into<String>)/set_ingress_point_name(Option<String>):
required: falseA user friendly name for the ingress endpoint resource.
status_to_update(IngressPointStatusToUpdate)/set_status_to_update(Option<IngressPointStatusToUpdate>):
required: falseThe update status of an ingress endpoint.
rule_set_id(impl Into<String>)/set_rule_set_id(Option<String>):
required: falseThe identifier of an existing rule set that you attach to an ingress endpoint resource.
traffic_policy_id(impl Into<String>)/set_traffic_policy_id(Option<String>):
required: falseThe identifier of an existing traffic policy that you attach to an ingress endpoint resource.
ingress_point_configuration(IngressPointConfiguration)/set_ingress_point_configuration(Option<IngressPointConfiguration>):
required: falseIf you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.
- On success, responds with
UpdateIngressPointOutput - On failure, responds with
SdkError<UpdateIngressPointError>
source§impl Client
impl Client
sourcepub fn update_relay(&self) -> UpdateRelayFluentBuilder
pub fn update_relay(&self) -> UpdateRelayFluentBuilder
Constructs a fluent builder for the UpdateRelay operation.
- The fluent builder is configurable:
relay_id(impl Into<String>)/set_relay_id(Option<String>):
required: trueThe unique relay identifier.
relay_name(impl Into<String>)/set_relay_name(Option<String>):
required: falseThe name of the relay resource.
server_name(impl Into<String>)/set_server_name(Option<String>):
required: falseThe destination relay server address.
server_port(i32)/set_server_port(Option<i32>):
required: falseThe destination relay server port.
authentication(RelayAuthentication)/set_authentication(Option<RelayAuthentication>):
required: falseAuthentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
- On success, responds with
UpdateRelayOutput - On failure, responds with
SdkError<UpdateRelayError>
source§impl Client
impl Client
sourcepub fn update_rule_set(&self) -> UpdateRuleSetFluentBuilder
pub fn update_rule_set(&self) -> UpdateRuleSetFluentBuilder
Constructs a fluent builder for the UpdateRuleSet operation.
- The fluent builder is configurable:
rule_set_id(impl Into<String>)/set_rule_set_id(Option<String>):
required: trueThe identifier of a rule set you want to update.
rule_set_name(impl Into<String>)/set_rule_set_name(Option<String>):
required: falseA user-friendly name for the rule set resource.
rules(Rule)/set_rules(Option<Vec::<Rule>>):
required: falseA new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.
- On success, responds with
UpdateRuleSetOutput - On failure, responds with
SdkError<UpdateRuleSetError>
source§impl Client
impl Client
sourcepub fn update_traffic_policy(&self) -> UpdateTrafficPolicyFluentBuilder
pub fn update_traffic_policy(&self) -> UpdateTrafficPolicyFluentBuilder
Constructs a fluent builder for the UpdateTrafficPolicy operation.
- The fluent builder is configurable:
traffic_policy_id(impl Into<String>)/set_traffic_policy_id(Option<String>):
required: trueThe identifier of the traffic policy that you want to update.
traffic_policy_name(impl Into<String>)/set_traffic_policy_name(Option<String>):
required: falseA user-friendly name for the traffic policy resource.
policy_statements(PolicyStatement)/set_policy_statements(Option<Vec::<PolicyStatement>>):
required: falseThe list of conditions to be updated for filtering email traffic.
default_action(AcceptAction)/set_default_action(Option<AcceptAction>):
required: falseDefault action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
max_message_size_bytes(i32)/set_max_message_size_bytes(Option<i32>):
required: falseThe maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
- On success, responds with
UpdateTrafficPolicyOutput - On failure, responds with
SdkError<UpdateTrafficPolicyError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
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_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more