aws_sdk_ssmcontacts/client/
get_contact.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetContact`](crate::operation::get_contact::builders::GetContactFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`contact_id(impl Into<String>)`](crate::operation::get_contact::builders::GetContactFluentBuilder::contact_id) / [`set_contact_id(Option<String>)`](crate::operation::get_contact::builders::GetContactFluentBuilder::set_contact_id):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the contact or escalation plan.</p><br>
7    /// - On success, responds with [`GetContactOutput`](crate::operation::get_contact::GetContactOutput) with field(s):
8    ///   - [`contact_arn(String)`](crate::operation::get_contact::GetContactOutput::contact_arn): <p>The ARN of the contact or escalation plan.</p>
9    ///   - [`alias(String)`](crate::operation::get_contact::GetContactOutput::alias): <p>The alias of the contact or escalation plan. The alias is unique and identifiable.</p>
10    ///   - [`display_name(Option<String>)`](crate::operation::get_contact::GetContactOutput::display_name): <p>The full name of the contact or escalation plan.</p>
11    ///   - [`r#type(ContactType)`](crate::operation::get_contact::GetContactOutput::type): <p>The type of contact.</p>
12    ///   - [`plan(Option<Plan>)`](crate::operation::get_contact::GetContactOutput::plan): <p>Details about the specific timing or stages and targets of the escalation plan or engagement plan.</p>
13    /// - On failure, responds with [`SdkError<GetContactError>`](crate::operation::get_contact::GetContactError)
14    pub fn get_contact(&self) -> crate::operation::get_contact::builders::GetContactFluentBuilder {
15        crate::operation::get_contact::builders::GetContactFluentBuilder::new(self.handle.clone())
16    }
17}