aws_sdk_codeguruprofiler/client/
post_agent_profile.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 [`PostAgentProfile`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`profiling_group_name(impl Into<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::profiling_group_name) / [`set_profiling_group_name(Option<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::set_profiling_group_name):<br>required: **true**<br><p>The name of the profiling group with the aggregated profile that receives the submitted profiling data.</p><br>
7    ///   - [`agent_profile(Blob)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::agent_profile) / [`set_agent_profile(Option<Blob>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::set_agent_profile):<br>required: **true**<br><p>The submitted profiling data.</p><br>
8    ///   - [`profile_token(impl Into<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::profile_token) / [`set_profile_token(Option<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::set_profile_token):<br>required: **false**<br><p>Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental submission of duplicate profiling data if there are failures and retries.</p><br>
9    ///   - [`content_type(impl Into<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::set_content_type):<br>required: **true**<br><p>The format of the submitted profiling data. The format maps to the <code>Accept</code> and <code>Content-Type</code> headers of the HTTP request. You can specify one of the following: or the default .</p> <ul>  <li>   <p><code>application/json</code> — standard JSON format</p></li>  <li>   <p><code>application/x-amzn-ion</code> — the Amazon Ion data format. For more information, see <a href="http://amzn.github.io/ion-docs/">Amazon Ion</a>.</p></li> </ul><br>
10    /// - On success, responds with [`PostAgentProfileOutput`](crate::operation::post_agent_profile::PostAgentProfileOutput)
11    /// - On failure, responds with [`SdkError<PostAgentProfileError>`](crate::operation::post_agent_profile::PostAgentProfileError)
12    pub fn post_agent_profile(&self) -> crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder {
13        crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::new(self.handle.clone())
14    }
15}