Struct aws_sdk_support::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for AWS Support
Client for invoking operations on AWS Support. Each operation on AWS Support is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_support::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_support::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_support::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn add_attachments_to_set(&self) -> AddAttachmentsToSet
pub fn add_attachments_to_set(&self) -> AddAttachmentsToSet
Constructs a fluent builder for the AddAttachmentsToSet
operation.
- The fluent builder is configurable:
attachment_set_id(impl Into<String>)
/set_attachment_set_id(Option<String>)
:The ID of the attachment set. If an
attachmentSetId
is not specified, a new attachment set is created, and the ID of the set is returned in the response. If anattachmentSetId
is specified, the attachments are added to the specified set, if it exists.attachments(Vec<Attachment>)
/set_attachments(Option<Vec<Attachment>>)
:One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.
In the
Attachment
object, use thedata
parameter to specify the contents of the attachment file. In the previous request syntax, the value fordata
appear asblob
, which is represented as a base64-encoded string. The value forfileName
is the name of the attachment, such astroubleshoot-screenshot.png
.
- On success, responds with
AddAttachmentsToSetOutput
with field(s):attachment_set_id(Option<String>)
:The ID of the attachment set. If an
attachmentSetId
was not specified, a new attachment set is created, and the ID of the set is returned in the response. If anattachmentSetId
was specified, the attachments are added to the specified set, if it exists.expiry_time(Option<String>)
:The time and date when the attachment set expires.
- On failure, responds with
SdkError<AddAttachmentsToSetError>
sourcepub fn add_communication_to_case(&self) -> AddCommunicationToCase
pub fn add_communication_to_case(&self) -> AddCommunicationToCase
Constructs a fluent builder for the AddCommunicationToCase
operation.
- The fluent builder is configurable:
case_id(impl Into<String>)
/set_case_id(Option<String>)
:The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
communication_body(impl Into<String>)
/set_communication_body(Option<String>)
:The body of an email communication to add to the support case.
cc_email_addresses(Vec<String>)
/set_cc_email_addresses(Option<Vec<String>>)
:The email addresses in the CC line of an email to be added to the support case.
attachment_set_id(impl Into<String>)
/set_attachment_set_id(Option<String>)
:The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling
AddAttachmentsToSet
- On success, responds with
AddCommunicationToCaseOutput
with field(s):result(bool)
:True if
AddCommunicationToCase
succeeds. Otherwise, returns an error.
- On failure, responds with
SdkError<AddCommunicationToCaseError>
sourcepub fn create_case(&self) -> CreateCase
pub fn create_case(&self) -> CreateCase
Constructs a fluent builder for the CreateCase
operation.
- The fluent builder is configurable:
subject(impl Into<String>)
/set_subject(Option<String>)
:The title of the support case. The title appears in the Subject field on the Amazon Web Services Support Center Create Case page.
service_code(impl Into<String>)
/set_service_code(Option<String>)
:The code for the Amazon Web Services service. You can use the
DescribeServices
operation to get the possibleserviceCode
values.severity_code(impl Into<String>)
/set_severity_code(Option<String>)
:A value that indicates the urgency of the case. This value determines the response time according to your service level agreement with Amazon Web Services Support. You can use the
DescribeSeverityLevels
operation to get the possible values forseverityCode
.For more information, see
SeverityLevel
and Choosing a Severity in the Amazon Web Services Support User Guide.The availability of severity levels depends on the support plan for the Amazon Web Services account.
category_code(impl Into<String>)
/set_category_code(Option<String>)
:The category of problem for the support case. You also use the
DescribeServices
operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes.communication_body(impl Into<String>)
/set_communication_body(Option<String>)
:The communication body text that describes the issue. This text appears in the Description field on the Amazon Web Services Support Center Create Case page.
cc_email_addresses(Vec<String>)
/set_cc_email_addresses(Option<Vec<String>>)
:A list of email addresses that Amazon Web Services Support copies on case correspondence. Amazon Web Services Support identifies the account that creates the case when you specify your Amazon Web Services credentials in an HTTP POST method or use the Amazon Web Services SDKs.
language(impl Into<String>)
/set_language(Option<String>)
:The language in which Amazon Web Services Support handles the case. You must specify the ISO 639-1 code for the
language
parameter if you want support in that language. Currently, English (“en”) and Japanese (“ja”) are supported.issue_type(impl Into<String>)
/set_issue_type(Option<String>)
:The type of issue for the case. You can specify
customer-service
ortechnical
. If you don’t specify a value, the default istechnical
.attachment_set_id(impl Into<String>)
/set_attachment_set_id(Option<String>)
:The ID of a set of one or more attachments for the case. Create the set by using the
AddAttachmentsToSet
operation.
- On success, responds with
CreateCaseOutput
with field(s):case_id(Option<String>)
:The support case ID requested or returned in the call. The case ID is an alphanumeric string in the following format: case-12345678910-2013-c4c1d2bf33c5cf47
- On failure, responds with
SdkError<CreateCaseError>
sourcepub fn describe_attachment(&self) -> DescribeAttachment
pub fn describe_attachment(&self) -> DescribeAttachment
Constructs a fluent builder for the DescribeAttachment
operation.
- The fluent builder is configurable:
attachment_id(impl Into<String>)
/set_attachment_id(Option<String>)
:The ID of the attachment to return. Attachment IDs are returned by the
DescribeCommunications
operation.
- On success, responds with
DescribeAttachmentOutput
with field(s):attachment(Option<Attachment>)
:This object includes the attachment content and file name.
In the previous response syntax, the value for the
data
parameter appears asblob
, which is represented as a base64-encoded string. The value forfileName
is the name of the attachment, such astroubleshoot-screenshot.png
.
- On failure, responds with
SdkError<DescribeAttachmentError>
sourcepub fn describe_cases(&self) -> DescribeCases
pub fn describe_cases(&self) -> DescribeCases
Constructs a fluent builder for the DescribeCases
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
case_id_list(Vec<String>)
/set_case_id_list(Option<Vec<String>>)
:A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.
display_id(impl Into<String>)
/set_display_id(Option<String>)
:The ID displayed for a case in the Amazon Web Services Support Center user interface.
after_time(impl Into<String>)
/set_after_time(Option<String>)
:The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
before_time(impl Into<String>)
/set_before_time(Option<String>)
:The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
include_resolved_cases(bool)
/set_include_resolved_cases(bool)
:Specifies whether to include resolved support cases in the
DescribeCases
response. By default, resolved cases aren’t included.next_token(impl Into<String>)
/set_next_token(Option<String>)
:A resumption point for pagination.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return before paginating.
language(impl Into<String>)
/set_language(Option<String>)
:The ISO 639-1 code for the language in which Amazon Web Services provides support. Amazon Web Services Support currently supports English (“en”) and Japanese (“ja”). Language parameters must be passed explicitly for operations that take them.
include_communications(bool)
/set_include_communications(Option<bool>)
:Specifies whether to include communications in the
DescribeCases
response. By default, communications are included.
- On success, responds with
DescribeCasesOutput
with field(s):cases(Option<Vec<CaseDetails>>)
:The details for the cases that match the request.
next_token(Option<String>)
:A resumption point for pagination.
- On failure, responds with
SdkError<DescribeCasesError>
sourcepub fn describe_communications(&self) -> DescribeCommunications
pub fn describe_communications(&self) -> DescribeCommunications
Constructs a fluent builder for the DescribeCommunications
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
case_id(impl Into<String>)
/set_case_id(Option<String>)
:The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
before_time(impl Into<String>)
/set_before_time(Option<String>)
:The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
after_time(impl Into<String>)
/set_after_time(Option<String>)
:The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:A resumption point for pagination.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return before paginating.
- On success, responds with
DescribeCommunicationsOutput
with field(s):communications(Option<Vec<Communication>>)
:The communications for the case.
next_token(Option<String>)
:A resumption point for pagination.
- On failure, responds with
SdkError<DescribeCommunicationsError>
sourcepub fn describe_services(&self) -> DescribeServices
pub fn describe_services(&self) -> DescribeServices
Constructs a fluent builder for the DescribeServices
operation.
- The fluent builder is configurable:
service_code_list(Vec<String>)
/set_service_code_list(Option<Vec<String>>)
:A JSON-formatted list of service codes available for Amazon Web Services services.
language(impl Into<String>)
/set_language(Option<String>)
:The ISO 639-1 code for the language in which Amazon Web Services provides support. Amazon Web Services Support currently supports English (“en”) and Japanese (“ja”). Language parameters must be passed explicitly for operations that take them.
- On success, responds with
DescribeServicesOutput
with field(s):services(Option<Vec<Service>>)
:A JSON-formatted list of Amazon Web Services services.
- On failure, responds with
SdkError<DescribeServicesError>
sourcepub fn describe_severity_levels(&self) -> DescribeSeverityLevels
pub fn describe_severity_levels(&self) -> DescribeSeverityLevels
Constructs a fluent builder for the DescribeSeverityLevels
operation.
- The fluent builder is configurable:
language(impl Into<String>)
/set_language(Option<String>)
:The ISO 639-1 code for the language in which Amazon Web Services provides support. Amazon Web Services Support currently supports English (“en”) and Japanese (“ja”). Language parameters must be passed explicitly for operations that take them.
- On success, responds with
DescribeSeverityLevelsOutput
with field(s):severity_levels(Option<Vec<SeverityLevel>>)
:The available severity levels for the support case. Available severity levels are defined by your service level agreement with Amazon Web Services.
- On failure, responds with
SdkError<DescribeSeverityLevelsError>
sourcepub fn describe_trusted_advisor_check_refresh_statuses(
&self
) -> DescribeTrustedAdvisorCheckRefreshStatuses
pub fn describe_trusted_advisor_check_refresh_statuses(
&self
) -> DescribeTrustedAdvisorCheckRefreshStatuses
Constructs a fluent builder for the DescribeTrustedAdvisorCheckRefreshStatuses
operation.
- The fluent builder is configurable:
check_ids(Vec<String>)
/set_check_ids(Option<Vec<String>>)
:The IDs of the Trusted Advisor checks to get the status.
If you specify the check ID of a check that is automatically refreshed, you might see an
InvalidParameterValue
error.
- On success, responds with
DescribeTrustedAdvisorCheckRefreshStatusesOutput
with field(s):statuses(Option<Vec<TrustedAdvisorCheckRefreshStatus>>)
:The refresh status of the specified Trusted Advisor checks.
- On failure, responds with
SdkError<DescribeTrustedAdvisorCheckRefreshStatusesError>
sourcepub fn describe_trusted_advisor_check_result(
&self
) -> DescribeTrustedAdvisorCheckResult
pub fn describe_trusted_advisor_check_result(
&self
) -> DescribeTrustedAdvisorCheckResult
Constructs a fluent builder for the DescribeTrustedAdvisorCheckResult
operation.
- The fluent builder is configurable:
check_id(impl Into<String>)
/set_check_id(Option<String>)
:The unique identifier for the Trusted Advisor check.
language(impl Into<String>)
/set_language(Option<String>)
:The ISO 639-1 code for the language in which Amazon Web Services provides support. Amazon Web Services Support currently supports English (“en”) and Japanese (“ja”). Language parameters must be passed explicitly for operations that take them.
- On success, responds with
DescribeTrustedAdvisorCheckResultOutput
with field(s):result(Option<TrustedAdvisorCheckResult>)
:The detailed results of the Trusted Advisor check.
- On failure, responds with
SdkError<DescribeTrustedAdvisorCheckResultError>
sourcepub fn describe_trusted_advisor_checks(&self) -> DescribeTrustedAdvisorChecks
pub fn describe_trusted_advisor_checks(&self) -> DescribeTrustedAdvisorChecks
Constructs a fluent builder for the DescribeTrustedAdvisorChecks
operation.
- The fluent builder is configurable:
language(impl Into<String>)
/set_language(Option<String>)
:The ISO 639-1 code for the language in which Amazon Web Services provides support. Amazon Web Services Support currently supports English (“en”) and Japanese (“ja”). Language parameters must be passed explicitly for operations that take them.
- On success, responds with
DescribeTrustedAdvisorChecksOutput
with field(s):checks(Option<Vec<TrustedAdvisorCheckDescription>>)
:Information about all available Trusted Advisor checks.
- On failure, responds with
SdkError<DescribeTrustedAdvisorChecksError>
sourcepub fn describe_trusted_advisor_check_summaries(
&self
) -> DescribeTrustedAdvisorCheckSummaries
pub fn describe_trusted_advisor_check_summaries(
&self
) -> DescribeTrustedAdvisorCheckSummaries
Constructs a fluent builder for the DescribeTrustedAdvisorCheckSummaries
operation.
- The fluent builder is configurable:
check_ids(Vec<String>)
/set_check_ids(Option<Vec<String>>)
:The IDs of the Trusted Advisor checks.
- On success, responds with
DescribeTrustedAdvisorCheckSummariesOutput
with field(s):summaries(Option<Vec<TrustedAdvisorCheckSummary>>)
:The summary information for the requested Trusted Advisor checks.
- On failure, responds with
SdkError<DescribeTrustedAdvisorCheckSummariesError>
sourcepub fn refresh_trusted_advisor_check(&self) -> RefreshTrustedAdvisorCheck
pub fn refresh_trusted_advisor_check(&self) -> RefreshTrustedAdvisorCheck
Constructs a fluent builder for the RefreshTrustedAdvisorCheck
operation.
- The fluent builder is configurable:
check_id(impl Into<String>)
/set_check_id(Option<String>)
:The unique identifier for the Trusted Advisor check to refresh.
Specifying the check ID of a check that is automatically refreshed causes an
InvalidParameterValue
error.
- On success, responds with
RefreshTrustedAdvisorCheckOutput
with field(s):status(Option<TrustedAdvisorCheckRefreshStatus>)
:The current refresh status for a check, including the amount of time until the check is eligible for refresh.
- On failure, responds with
SdkError<RefreshTrustedAdvisorCheckError>
sourcepub fn resolve_case(&self) -> ResolveCase
pub fn resolve_case(&self) -> ResolveCase
Constructs a fluent builder for the ResolveCase
operation.
- The fluent builder is configurable:
case_id(impl Into<String>)
/set_case_id(Option<String>)
:The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
- On success, responds with
ResolveCaseOutput
with field(s):initial_case_status(Option<String>)
:The status of the case when the
ResolveCase
request was sent.final_case_status(Option<String>)
:The status of the case after the
ResolveCase
request was processed.
- On failure, responds with
SdkError<ResolveCaseError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more