pub struct GetDashboardEmbedUrl { /* private fields */ }Expand description
Operation shape for GetDashboardEmbedUrl.
This is usually constructed for you using the the fluent builder returned by
get_dashboard_embed_url.
See crate::client::fluent_builders::GetDashboardEmbedUrl for more details about the operation.
Implementations§
source§impl GetDashboardEmbedUrl
impl GetDashboardEmbedUrl
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetDashboardEmbedUrlInput.
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new GetDashboardEmbedUrl operation.
Examples found in repository?
src/input.rs (line 14934)
14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942
pub async fn make_operation(
&self,
_config: &crate::config::Config,
) -> std::result::Result<
aws_smithy_http::operation::Operation<
crate::operation::GetDashboardEmbedUrl,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::operation::error::BuildError,
> {
let mut request = {
fn uri_base(
_input: &crate::input::GetDashboardEmbedUrlInput,
output: &mut String,
) -> Result<(), aws_smithy_http::operation::error::BuildError> {
let input_156 = &_input.aws_account_id;
let input_156 = input_156.as_ref().ok_or_else(|| {
aws_smithy_http::operation::error::BuildError::missing_field(
"aws_account_id",
"cannot be empty or unset",
)
})?;
let aws_account_id = aws_smithy_http::label::fmt_string(
input_156,
aws_smithy_http::label::EncodingStrategy::Default,
);
if aws_account_id.is_empty() {
return Err(
aws_smithy_http::operation::error::BuildError::missing_field(
"aws_account_id",
"cannot be empty or unset",
),
);
}
let input_157 = &_input.dashboard_id;
let input_157 = input_157.as_ref().ok_or_else(|| {
aws_smithy_http::operation::error::BuildError::missing_field(
"dashboard_id",
"cannot be empty or unset",
)
})?;
let dashboard_id = aws_smithy_http::label::fmt_string(
input_157,
aws_smithy_http::label::EncodingStrategy::Default,
);
if dashboard_id.is_empty() {
return Err(
aws_smithy_http::operation::error::BuildError::missing_field(
"dashboard_id",
"cannot be empty or unset",
),
);
}
write!(
output,
"/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url",
AwsAccountId = aws_account_id,
DashboardId = dashboard_id
)
.expect("formatting should succeed");
Ok(())
}
fn uri_query(
_input: &crate::input::GetDashboardEmbedUrlInput,
mut output: &mut String,
) -> Result<(), aws_smithy_http::operation::error::BuildError> {
let mut query = aws_smithy_http::query::Writer::new(&mut output);
let inner_158 = &_input.identity_type;
let inner_158 = inner_158.as_ref().ok_or_else(|| {
aws_smithy_http::operation::error::BuildError::missing_field(
"identity_type",
"cannot be empty or unset",
)
})?;
query.push_kv(
"creds-type",
&aws_smithy_http::query::fmt_string(&inner_158),
);
if let Some(inner_159) = &_input.session_lifetime_in_minutes {
if *inner_159 != 0 {
query.push_kv(
"session-lifetime",
aws_smithy_types::primitive::Encoder::from(*inner_159).encode(),
);
}
}
if _input.undo_redo_disabled {
query.push_kv(
"undo-redo-disabled",
aws_smithy_types::primitive::Encoder::from(_input.undo_redo_disabled)
.encode(),
);
}
if _input.reset_disabled {
query.push_kv(
"reset-disabled",
aws_smithy_types::primitive::Encoder::from(_input.reset_disabled).encode(),
);
}
if _input.state_persistence_enabled {
query.push_kv(
"state-persistence-enabled",
aws_smithy_types::primitive::Encoder::from(
_input.state_persistence_enabled,
)
.encode(),
);
}
if let Some(inner_160) = &_input.user_arn {
{
query.push_kv("user-arn", &aws_smithy_http::query::fmt_string(&inner_160));
}
}
if let Some(inner_161) = &_input.namespace {
{
query.push_kv("namespace", &aws_smithy_http::query::fmt_string(&inner_161));
}
}
if let Some(inner_162) = &_input.additional_dashboard_ids {
{
for inner_163 in inner_162 {
query.push_kv(
"additional-dashboard-ids",
&aws_smithy_http::query::fmt_string(&inner_163),
);
}
}
}
Ok(())
}
#[allow(clippy::unnecessary_wraps)]
fn update_http_builder(
input: &crate::input::GetDashboardEmbedUrlInput,
builder: http::request::Builder,
) -> std::result::Result<
http::request::Builder,
aws_smithy_http::operation::error::BuildError,
> {
let mut uri = String::new();
uri_base(input, &mut uri)?;
uri_query(input, &mut uri)?;
Ok(builder.method("GET").uri(uri))
}
let mut builder = update_http_builder(&self, http::request::Builder::new())?;
builder
};
let mut properties = aws_smithy_http::property_bag::SharedPropertyBag::new();
#[allow(clippy::useless_conversion)]
let body = aws_smithy_http::body::SdkBody::from("");
let request = request.body(body).expect("should be valid request");
let mut request = aws_smithy_http::operation::Request::from_parts(request, properties);
request
.properties_mut()
.insert(aws_smithy_http::http_versions::DEFAULT_HTTP_VERSION_LIST.clone());
let mut user_agent = aws_http::user_agent::AwsUserAgent::new_from_environment(
aws_types::os_shim_internal::Env::real(),
crate::API_METADATA.clone(),
);
if let Some(app_name) = _config.app_name() {
user_agent = user_agent.with_app_name(app_name.clone());
}
request.properties_mut().insert(user_agent);
let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config();
request.properties_mut().insert(signing_config);
request
.properties_mut()
.insert(aws_types::SigningService::from_static(
_config.signing_service(),
));
if let Some(region) = &_config.region {
request
.properties_mut()
.insert(aws_types::region::SigningRegion::from(region.clone()));
}
let endpoint_params = aws_endpoint::Params::new(_config.region.clone());
request
.properties_mut()
.insert::<aws_smithy_http::endpoint::Result>(
_config.endpoint_resolver.resolve_endpoint(&endpoint_params),
);
if let Some(region) = &_config.region {
request.properties_mut().insert(region.clone());
}
aws_http::auth::set_provider(
&mut request.properties_mut(),
_config.credentials_provider.clone(),
);
let op = aws_smithy_http::operation::Operation::new(
request,
crate::operation::GetDashboardEmbedUrl::new(),
)
.with_metadata(aws_smithy_http::operation::Metadata::new(
"GetDashboardEmbedUrl",
"quicksight",
));
let op = op.with_retry_classifier(aws_http::retry::AwsResponseRetryClassifier::new());
Ok(op)
}Trait Implementations§
source§impl Clone for GetDashboardEmbedUrl
impl Clone for GetDashboardEmbedUrl
source§fn clone(&self) -> GetDashboardEmbedUrl
fn clone(&self) -> GetDashboardEmbedUrl
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GetDashboardEmbedUrl
impl Debug for GetDashboardEmbedUrl
source§impl Default for GetDashboardEmbedUrl
impl Default for GetDashboardEmbedUrl
source§fn default() -> GetDashboardEmbedUrl
fn default() -> GetDashboardEmbedUrl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GetDashboardEmbedUrl
impl Send for GetDashboardEmbedUrl
impl Sync for GetDashboardEmbedUrl
impl Unpin for GetDashboardEmbedUrl
impl UnwindSafe for GetDashboardEmbedUrl
Blanket Implementations§
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> ParseHttpResponse for Twhere
T: ParseStrictResponse,
impl<T> ParseHttpResponse for Twhere
T: ParseStrictResponse,
§type Output = <T as ParseStrictResponse>::Output
type Output = <T as ParseStrictResponse>::Output
Output type of the HttpResponse. Read more
source§fn parse_unloaded(
&self,
_response: &mut Response
) -> Option<<T as ParseHttpResponse>::Output>
fn parse_unloaded(
&self,
_response: &mut Response
) -> Option<<T as ParseHttpResponse>::Output>
Parse an HTTP request without reading the body. If the body must be provided to proceed,
return
None Read moresource§fn parse_loaded(
&self,
response: &Response<Bytes>
) -> <T as ParseHttpResponse>::Output
fn parse_loaded(
&self,
response: &Response<Bytes>
) -> <T as ParseHttpResponse>::Output
Parse an HTTP request from a fully loaded body. This is for standard request/response style
APIs like AwsJson 1.0/1.1 and the error path of most streaming APIs Read more