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 Builder
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 CreateAddonInstance
operation has
a Client::create_addon_instance
, 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.create_addon_instance()
.client_token("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
CreateAddonInstanceOutput
with 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
CreateAddonSubscriptionOutput
with 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_address_list(&self) -> CreateAddressListFluentBuilder
pub fn create_address_list(&self) -> CreateAddressListFluentBuilder
Constructs a fluent builder for the CreateAddressList
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.
address_list_name(impl Into<String>)
/set_address_list_name(Option<String>)
:
required: trueA user-friendly name for the address list.
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
CreateAddressListOutput
with field(s):address_list_id(String)
:The identifier of the created address list.
- On failure, responds with
SdkError<CreateAddressListError>
Source§impl Client
impl Client
Sourcepub fn create_address_list_import_job(
&self,
) -> CreateAddressListImportJobFluentBuilder
pub fn create_address_list_import_job( &self, ) -> CreateAddressListImportJobFluentBuilder
Constructs a fluent builder for the CreateAddressListImportJob
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.
address_list_id(impl Into<String>)
/set_address_list_id(Option<String>)
:
required: trueThe unique identifier of the address list for importing addresses to.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueA user-friendly name for the import job.
import_data_format(ImportDataFormat)
/set_import_data_format(Option<ImportDataFormat>)
:
required: trueThe format of the input for an import job.
- On success, responds with
CreateAddressListImportJobOutput
with field(s):job_id(String)
:The identifier of the created import job.
pre_signed_url(String)
:The pre-signed URL target for uploading the input file.
- On failure, responds with
SdkError<CreateAddressListImportJobError>
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
CreateArchiveOutput
with 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.
network_configuration(NetworkConfiguration)
/set_network_configuration(Option<NetworkConfiguration>)
:
required: falseSpecifies the network configuration for the ingress point. This allows you to create an IPv4-only, Dual-Stack, or PrivateLink type of ingress point. If not specified, the default network type is IPv4-only.
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
CreateIngressPointOutput
with 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
CreateRelayOutput
with 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
CreateRuleSetOutput
with 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
CreateTrafficPolicyOutput
with 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_address_list(&self) -> DeleteAddressListFluentBuilder
pub fn delete_address_list(&self) -> DeleteAddressListFluentBuilder
Constructs a fluent builder for the DeleteAddressList
operation.
- The fluent builder is configurable:
address_list_id(impl Into<String>)
/set_address_list_id(Option<String>)
:
required: trueThe identifier of an existing address list resource to delete.
- On success, responds with
DeleteAddressListOutput
- On failure, responds with
SdkError<DeleteAddressListError>
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 deregister_member_from_address_list(
&self,
) -> DeregisterMemberFromAddressListFluentBuilder
pub fn deregister_member_from_address_list( &self, ) -> DeregisterMemberFromAddressListFluentBuilder
Constructs a fluent builder for the DeregisterMemberFromAddressList
operation.
- The fluent builder is configurable:
address_list_id(impl Into<String>)
/set_address_list_id(Option<String>)
:
required: trueThe unique identifier of the address list to remove the address from.
address(impl Into<String>)
/set_address(Option<String>)
:
required: trueThe address to be removed from the address list.
- On success, responds with
DeregisterMemberFromAddressListOutput
- On failure, responds with
SdkError<DeregisterMemberFromAddressListError>
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
GetAddonInstanceOutput
with 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
GetAddonSubscriptionOutput
with 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_address_list(&self) -> GetAddressListFluentBuilder
pub fn get_address_list(&self) -> GetAddressListFluentBuilder
Constructs a fluent builder for the GetAddressList
operation.
- The fluent builder is configurable:
address_list_id(impl Into<String>)
/set_address_list_id(Option<String>)
:
required: trueThe identifier of an existing address list resource to be retrieved.
- On success, responds with
GetAddressListOutput
with field(s):address_list_id(String)
:The identifier of the address list resource.
address_list_arn(String)
:The Amazon Resource Name (ARN) of the address list resource.
address_list_name(String)
:A user-friendly name for the address list resource.
created_timestamp(DateTime)
:The date of when then address list was created.
last_updated_timestamp(DateTime)
:The date of when the address list was last updated.
- On failure, responds with
SdkError<GetAddressListError>
Source§impl Client
impl Client
Sourcepub fn get_address_list_import_job(
&self,
) -> GetAddressListImportJobFluentBuilder
pub fn get_address_list_import_job( &self, ) -> GetAddressListImportJobFluentBuilder
Constructs a fluent builder for the GetAddressListImportJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: trueThe identifier of the import job that needs to be retrieved.
- On success, responds with
GetAddressListImportJobOutput
with field(s):job_id(String)
:The identifier of the import job.
name(String)
:A user-friendly name for the import job.
status(ImportJobStatus)
:The status of the import job.
pre_signed_url(String)
:The pre-signed URL target for uploading the input file.
imported_items_count(Option<i32>)
:The number of input addresses successfully imported into the address list.
failed_items_count(Option<i32>)
:The number of input addresses that failed to be imported into the address list.
import_data_format(Option<ImportDataFormat>)
:The format of the input for an import job.
address_list_id(String)
:The unique identifier of the address list the import job was created for.
created_timestamp(DateTime)
:The timestamp of when the import job was created.
start_timestamp(Option<DateTime>)
:The timestamp of when the import job was started.
completed_timestamp(Option<DateTime>)
:The timestamp of when the import job was completed.
error(Option<String>)
:The reason for failure of an import job.
- On failure, responds with
SdkError<GetAddressListImportJobError>
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
GetArchiveOutput
with 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
GetArchiveExportOutput
with 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
GetArchiveMessageOutput
with field(s):message_download_link(Option<String>)
:A pre-signed URL to temporarily download the full message content.
metadata(Option<Metadata>)
:The metadata about the email.
envelope(Option<Envelope>)
:The SMTP envelope information of the email.
- 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
GetArchiveMessageContentOutput
with 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
GetArchiveSearchOutput
with 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
GetArchiveSearchResultsOutput
with 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
GetIngressPointOutput
with 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.
network_configuration(Option<NetworkConfiguration>)
:The network configuration for the ingress point.
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_member_of_address_list(&self) -> GetMemberOfAddressListFluentBuilder
pub fn get_member_of_address_list(&self) -> GetMemberOfAddressListFluentBuilder
Constructs a fluent builder for the GetMemberOfAddressList
operation.
- The fluent builder is configurable:
address_list_id(impl Into<String>)
/set_address_list_id(Option<String>)
:
required: trueThe unique identifier of the address list to retrieve the address from.
address(impl Into<String>)
/set_address(Option<String>)
:
required: trueThe address to be retrieved from the address list.
- On success, responds with
GetMemberOfAddressListOutput
with field(s):address(String)
:The address retrieved from the address list.
created_timestamp(DateTime)
:The timestamp of when the address was created.
- On failure, responds with
SdkError<GetMemberOfAddressListError>
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
GetRelayOutput
with 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
GetRuleSetOutput
with 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
GetTrafficPolicyOutput
with 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
ListAddonInstancesOutput
with 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
ListAddonSubscriptionsOutput
with 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_address_list_import_jobs(
&self,
) -> ListAddressListImportJobsFluentBuilder
pub fn list_address_list_import_jobs( &self, ) -> ListAddressListImportJobsFluentBuilder
Constructs a fluent builder for the ListAddressListImportJobs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
address_list_id(impl Into<String>)
/set_address_list_id(Option<String>)
:
required: trueThe unique identifier of the address list for listing import jobs.
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 import jobs that are returned per call. You can use NextToken to retrieve the next page of jobs.
- On success, responds with
ListAddressListImportJobsOutput
with field(s):import_jobs(Vec::<ImportJob>)
:The list of import jobs.
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<ListAddressListImportJobsError>
Source§impl Client
impl Client
Sourcepub fn list_address_lists(&self) -> ListAddressListsFluentBuilder
pub fn list_address_lists(&self) -> ListAddressListsFluentBuilder
Constructs a fluent builder for the ListAddressLists
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 address list resources that are returned per call. You can use NextToken to retrieve the next page of address lists.
- On success, responds with
ListAddressListsOutput
with field(s):address_lists(Vec::<AddressList>)
:The list of address lists.
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<ListAddressListsError>
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
ListArchiveExportsOutput
with 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
ListArchiveSearchesOutput
with 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
ListArchivesOutput
with 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
ListIngressPointsOutput
with 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_members_of_address_list(
&self,
) -> ListMembersOfAddressListFluentBuilder
pub fn list_members_of_address_list( &self, ) -> ListMembersOfAddressListFluentBuilder
Constructs a fluent builder for the ListMembersOfAddressList
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
address_list_id(impl Into<String>)
/set_address_list_id(Option<String>)
:
required: trueThe unique identifier of the address list to list the addresses from.
filter(AddressFilter)
/set_filter(Option<AddressFilter>)
:
required: falseFilter to be used to limit the results.
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 address list members that are returned per call. You can use NextToken to retrieve the next page of members.
- On success, responds with
ListMembersOfAddressListOutput
with field(s):addresses(Vec::<SavedAddress>)
:The list of addresses.
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<ListMembersOfAddressListError>
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
ListRelaysOutput
with 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
ListRuleSetsOutput
with 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
ListTagsForResourceOutput
with 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
ListTrafficPoliciesOutput
with 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 register_member_to_address_list(
&self,
) -> RegisterMemberToAddressListFluentBuilder
pub fn register_member_to_address_list( &self, ) -> RegisterMemberToAddressListFluentBuilder
Constructs a fluent builder for the RegisterMemberToAddressList
operation.
- The fluent builder is configurable:
address_list_id(impl Into<String>)
/set_address_list_id(Option<String>)
:
required: trueThe unique identifier of the address list where the address should be added.
address(impl Into<String>)
/set_address(Option<String>)
:
required: trueThe address to be added to the address list.
- On success, responds with
RegisterMemberToAddressListOutput
- On failure, responds with
SdkError<RegisterMemberToAddressListError>
Source§impl Client
impl Client
Sourcepub fn start_address_list_import_job(
&self,
) -> StartAddressListImportJobFluentBuilder
pub fn start_address_list_import_job( &self, ) -> StartAddressListImportJobFluentBuilder
Constructs a fluent builder for the StartAddressListImportJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: trueThe identifier of the import job that needs to be started.
- On success, responds with
StartAddressListImportJobOutput
- On failure, responds with
SdkError<StartAddressListImportJobError>
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.
include_metadata(bool)
/set_include_metadata(Option<bool>)
:
required: falseWhether to include message metadata as JSON files in the export.
- On success, responds with
StartArchiveExportOutput
with 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
StartArchiveSearchOutput
with 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_address_list_import_job(
&self,
) -> StopAddressListImportJobFluentBuilder
pub fn stop_address_list_import_job( &self, ) -> StopAddressListImportJobFluentBuilder
Constructs a fluent builder for the StopAddressListImportJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: trueThe identifier of the import job that needs to be stopped.
- On success, responds with
StopAddressListImportJobOutput
- On failure, responds with
SdkError<StopAddressListImportJobError>
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_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is 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_config
is missing an async sleep implementation. If you experience this panic, set thesleep_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 thehttp_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, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);