// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct PutTraceInput {
/// <p>The agent session this trace belongs to and the grouping key: multiple PutTrace calls with the same <code>sessionId</code> are one session. Optional. If you omit it, the service generates one and returns it in the response. It is not the <code>traceId</code>: an OTLP batch carries many trace_ids under one session.</p>
pub session_id: ::std::option::Option<::std::string::String>,
/// <p>Makes the call idempotent. A retry with the same token and the same request returns the same <code>sessionId</code> and does not write the traces again. Reusing the token fails with <code>ValidationException</code> if the request is different, or if another caller reuses it when <code>accessControlConfig</code> names no entries. A token is honored for 8 hours after its first use. When <code>accessControlConfig</code> names no entries and the caller's end user cannot be resolved at the time of the retry, the retry fails with <code>ValidationException</code> even if the first attempt stored traces. To complete them, resend with explicit entries under a new token.</p>
pub client_token: ::std::option::Option<::std::string::String>,
/// <p>The format of the documents in <code>traceDocuments</code>. Valid values:</p>
/// <ul>
/// <li>
/// <p><code>OTEL</code> - OpenTelemetry traces in OTLP/JSON.</p></li>
/// <li>
/// <p><code>ANTHROPIC</code> - Claude Code session logs, one log line per document.</p></li>
/// <li>
/// <p><code>BEDROCK_CONVERSE</code> - Amazon Bedrock Converse messages, one message (<code>role</code> and <code>content</code>) per document, in conversation order.</p></li>
/// <li>
/// <p><code>KIRO</code> - Kiro IDE or Kiro CLI session logs.</p></li>
/// </ul>
pub format: ::std::option::Option<crate::types::TraceFormat>,
/// <p>The raw trace documents, in the trace schema that <code>format</code> selects. You can send 1–100 documents per call, and each document can be up to 5 MiB (5,242,880 bytes) before encoding. If you use an AWS SDK, pass each document's raw bytes. If you call PutTrace through the agent context's MCP server or another JSON client, send each document as a base64-encoded string.</p>
pub trace_documents: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>>,
/// <p>The ARNs of the agent contexts that the traces are about: 1–10 <code>agent-context/</code> ARNs that name at most 5 distinct agent contexts, in this Region and partition, all in your account. If you name more, the request fails with <code>ValidationException</code>. AWS Context authorizes <code>context:PutTrace</code> once for each agent context. If any authorization is denied, the whole call fails with <code>AccessDeniedException</code>, and nothing is stored. After authorization, if trace analysis is disabled for an agent context, the call fails with <code>ValidationException</code>, and nothing is stored.</p>
pub agent_context_arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>Client-supplied key-value pairs, stored with the traces as-is. The key <code>analysisMode</code> is reserved. A request that sets it fails with <code>AccessDeniedException</code>.</p>
pub trace_metadata: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
/// <p>The principals who can see the insights that AWS Context generates from the traces. If you provide entries, the caller is not included unless an entry names it.</p>
/// <p>If you provide no entries (<code>accessControlConfig</code> absent, or <code>accessControlList</code> absent or empty), only the end user that the caller's trusted identity propagation session names can see the insights. If the session names no end user, or there is no session, the call fails with <code>ValidationException</code> and stores nothing. In that case, name the principals, or send <code>ALLOW</code> for <code>*</code> so that every reader of the agent contexts can see the insights.</p>
/// <p>An entry other than <code>*</code> without <code>principalType</code>, a <code>principalId</code> that is not valid Unicode, or entries that total more than 65,536 bytes of UTF-8 are rejected with <code>ValidationException</code>. AWS Context stores principal IDs as given and does not verify them against a directory. A session's access control is the union of its traces' entries. A call that would take that union over 100 entries, or over 65,536 bytes of UTF-8, fails with <code>ValidationException</code> and stores nothing.</p>
pub access_control_config: ::std::option::Option<crate::types::AccessControlConfig>,
}
impl PutTraceInput {
/// <p>The agent session this trace belongs to and the grouping key: multiple PutTrace calls with the same <code>sessionId</code> are one session. Optional. If you omit it, the service generates one and returns it in the response. It is not the <code>traceId</code>: an OTLP batch carries many trace_ids under one session.</p>
pub fn session_id(&self) -> ::std::option::Option<&str> {
self.session_id.as_deref()
}
/// <p>Makes the call idempotent. A retry with the same token and the same request returns the same <code>sessionId</code> and does not write the traces again. Reusing the token fails with <code>ValidationException</code> if the request is different, or if another caller reuses it when <code>accessControlConfig</code> names no entries. A token is honored for 8 hours after its first use. When <code>accessControlConfig</code> names no entries and the caller's end user cannot be resolved at the time of the retry, the retry fails with <code>ValidationException</code> even if the first attempt stored traces. To complete them, resend with explicit entries under a new token.</p>
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
/// <p>The format of the documents in <code>traceDocuments</code>. Valid values:</p>
/// <ul>
/// <li>
/// <p><code>OTEL</code> - OpenTelemetry traces in OTLP/JSON.</p></li>
/// <li>
/// <p><code>ANTHROPIC</code> - Claude Code session logs, one log line per document.</p></li>
/// <li>
/// <p><code>BEDROCK_CONVERSE</code> - Amazon Bedrock Converse messages, one message (<code>role</code> and <code>content</code>) per document, in conversation order.</p></li>
/// <li>
/// <p><code>KIRO</code> - Kiro IDE or Kiro CLI session logs.</p></li>
/// </ul>
pub fn format(&self) -> ::std::option::Option<&crate::types::TraceFormat> {
self.format.as_ref()
}
/// <p>The raw trace documents, in the trace schema that <code>format</code> selects. You can send 1–100 documents per call, and each document can be up to 5 MiB (5,242,880 bytes) before encoding. If you use an AWS SDK, pass each document's raw bytes. If you call PutTrace through the agent context's MCP server or another JSON client, send each document as a base64-encoded string.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.trace_documents.is_none()`.
pub fn trace_documents(&self) -> &[::aws_smithy_types::Blob] {
self.trace_documents.as_deref().unwrap_or_default()
}
/// <p>The ARNs of the agent contexts that the traces are about: 1–10 <code>agent-context/</code> ARNs that name at most 5 distinct agent contexts, in this Region and partition, all in your account. If you name more, the request fails with <code>ValidationException</code>. AWS Context authorizes <code>context:PutTrace</code> once for each agent context. If any authorization is denied, the whole call fails with <code>AccessDeniedException</code>, and nothing is stored. After authorization, if trace analysis is disabled for an agent context, the call fails with <code>ValidationException</code>, and nothing is stored.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.agent_context_arns.is_none()`.
pub fn agent_context_arns(&self) -> &[::std::string::String] {
self.agent_context_arns.as_deref().unwrap_or_default()
}
/// <p>Client-supplied key-value pairs, stored with the traces as-is. The key <code>analysisMode</code> is reserved. A request that sets it fails with <code>AccessDeniedException</code>.</p>
pub fn trace_metadata(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.trace_metadata.as_ref()
}
/// <p>The principals who can see the insights that AWS Context generates from the traces. If you provide entries, the caller is not included unless an entry names it.</p>
/// <p>If you provide no entries (<code>accessControlConfig</code> absent, or <code>accessControlList</code> absent or empty), only the end user that the caller's trusted identity propagation session names can see the insights. If the session names no end user, or there is no session, the call fails with <code>ValidationException</code> and stores nothing. In that case, name the principals, or send <code>ALLOW</code> for <code>*</code> so that every reader of the agent contexts can see the insights.</p>
/// <p>An entry other than <code>*</code> without <code>principalType</code>, a <code>principalId</code> that is not valid Unicode, or entries that total more than 65,536 bytes of UTF-8 are rejected with <code>ValidationException</code>. AWS Context stores principal IDs as given and does not verify them against a directory. A session's access control is the union of its traces' entries. A call that would take that union over 100 entries, or over 65,536 bytes of UTF-8, fails with <code>ValidationException</code> and stores nothing.</p>
pub fn access_control_config(&self) -> ::std::option::Option<&crate::types::AccessControlConfig> {
self.access_control_config.as_ref()
}
}
impl ::std::fmt::Debug for PutTraceInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("PutTraceInput");
formatter.field("session_id", &self.session_id);
formatter.field("client_token", &self.client_token);
formatter.field("format", &self.format);
formatter.field("trace_documents", &"*** Sensitive Data Redacted ***");
formatter.field("agent_context_arns", &self.agent_context_arns);
formatter.field("trace_metadata", &"*** Sensitive Data Redacted ***");
formatter.field("access_control_config", &self.access_control_config);
formatter.finish()
}
}
impl PutTraceInput {
/// Creates a new builder-style object to manufacture [`PutTraceInput`](crate::operation::put_trace::PutTraceInput).
pub fn builder() -> crate::operation::put_trace::builders::PutTraceInputBuilder {
crate::operation::put_trace::builders::PutTraceInputBuilder::default()
}
}
/// A builder for [`PutTraceInput`](crate::operation::put_trace::PutTraceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct PutTraceInputBuilder {
pub(crate) session_id: ::std::option::Option<::std::string::String>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
pub(crate) format: ::std::option::Option<crate::types::TraceFormat>,
pub(crate) trace_documents: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>>,
pub(crate) agent_context_arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) trace_metadata: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) access_control_config: ::std::option::Option<crate::types::AccessControlConfig>,
}
impl PutTraceInputBuilder {
/// <p>The agent session this trace belongs to and the grouping key: multiple PutTrace calls with the same <code>sessionId</code> are one session. Optional. If you omit it, the service generates one and returns it in the response. It is not the <code>traceId</code>: an OTLP batch carries many trace_ids under one session.</p>
pub fn session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.session_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The agent session this trace belongs to and the grouping key: multiple PutTrace calls with the same <code>sessionId</code> are one session. Optional. If you omit it, the service generates one and returns it in the response. It is not the <code>traceId</code>: an OTLP batch carries many trace_ids under one session.</p>
pub fn set_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.session_id = input;
self
}
/// <p>The agent session this trace belongs to and the grouping key: multiple PutTrace calls with the same <code>sessionId</code> are one session. Optional. If you omit it, the service generates one and returns it in the response. It is not the <code>traceId</code>: an OTLP batch carries many trace_ids under one session.</p>
pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
&self.session_id
}
/// <p>Makes the call idempotent. A retry with the same token and the same request returns the same <code>sessionId</code> and does not write the traces again. Reusing the token fails with <code>ValidationException</code> if the request is different, or if another caller reuses it when <code>accessControlConfig</code> names no entries. A token is honored for 8 hours after its first use. When <code>accessControlConfig</code> names no entries and the caller's end user cannot be resolved at the time of the retry, the retry fails with <code>ValidationException</code> even if the first attempt stored traces. To complete them, resend with explicit entries under a new token.</p>
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
/// <p>Makes the call idempotent. A retry with the same token and the same request returns the same <code>sessionId</code> and does not write the traces again. Reusing the token fails with <code>ValidationException</code> if the request is different, or if another caller reuses it when <code>accessControlConfig</code> names no entries. A token is honored for 8 hours after its first use. When <code>accessControlConfig</code> names no entries and the caller's end user cannot be resolved at the time of the retry, the retry fails with <code>ValidationException</code> even if the first attempt stored traces. To complete them, resend with explicit entries under a new token.</p>
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
/// <p>Makes the call idempotent. A retry with the same token and the same request returns the same <code>sessionId</code> and does not write the traces again. Reusing the token fails with <code>ValidationException</code> if the request is different, or if another caller reuses it when <code>accessControlConfig</code> names no entries. A token is honored for 8 hours after its first use. When <code>accessControlConfig</code> names no entries and the caller's end user cannot be resolved at the time of the retry, the retry fails with <code>ValidationException</code> even if the first attempt stored traces. To complete them, resend with explicit entries under a new token.</p>
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
/// <p>The format of the documents in <code>traceDocuments</code>. Valid values:</p>
/// <ul>
/// <li>
/// <p><code>OTEL</code> - OpenTelemetry traces in OTLP/JSON.</p></li>
/// <li>
/// <p><code>ANTHROPIC</code> - Claude Code session logs, one log line per document.</p></li>
/// <li>
/// <p><code>BEDROCK_CONVERSE</code> - Amazon Bedrock Converse messages, one message (<code>role</code> and <code>content</code>) per document, in conversation order.</p></li>
/// <li>
/// <p><code>KIRO</code> - Kiro IDE or Kiro CLI session logs.</p></li>
/// </ul>
/// This field is required.
pub fn format(mut self, input: crate::types::TraceFormat) -> Self {
self.format = ::std::option::Option::Some(input);
self
}
/// <p>The format of the documents in <code>traceDocuments</code>. Valid values:</p>
/// <ul>
/// <li>
/// <p><code>OTEL</code> - OpenTelemetry traces in OTLP/JSON.</p></li>
/// <li>
/// <p><code>ANTHROPIC</code> - Claude Code session logs, one log line per document.</p></li>
/// <li>
/// <p><code>BEDROCK_CONVERSE</code> - Amazon Bedrock Converse messages, one message (<code>role</code> and <code>content</code>) per document, in conversation order.</p></li>
/// <li>
/// <p><code>KIRO</code> - Kiro IDE or Kiro CLI session logs.</p></li>
/// </ul>
pub fn set_format(mut self, input: ::std::option::Option<crate::types::TraceFormat>) -> Self {
self.format = input;
self
}
/// <p>The format of the documents in <code>traceDocuments</code>. Valid values:</p>
/// <ul>
/// <li>
/// <p><code>OTEL</code> - OpenTelemetry traces in OTLP/JSON.</p></li>
/// <li>
/// <p><code>ANTHROPIC</code> - Claude Code session logs, one log line per document.</p></li>
/// <li>
/// <p><code>BEDROCK_CONVERSE</code> - Amazon Bedrock Converse messages, one message (<code>role</code> and <code>content</code>) per document, in conversation order.</p></li>
/// <li>
/// <p><code>KIRO</code> - Kiro IDE or Kiro CLI session logs.</p></li>
/// </ul>
pub fn get_format(&self) -> &::std::option::Option<crate::types::TraceFormat> {
&self.format
}
/// Appends an item to `trace_documents`.
///
/// To override the contents of this collection use [`set_trace_documents`](Self::set_trace_documents).
///
/// <p>The raw trace documents, in the trace schema that <code>format</code> selects. You can send 1–100 documents per call, and each document can be up to 5 MiB (5,242,880 bytes) before encoding. If you use an AWS SDK, pass each document's raw bytes. If you call PutTrace through the agent context's MCP server or another JSON client, send each document as a base64-encoded string.</p>
pub fn trace_documents(mut self, input: ::aws_smithy_types::Blob) -> Self {
let mut v = self.trace_documents.unwrap_or_default();
v.push(input);
self.trace_documents = ::std::option::Option::Some(v);
self
}
/// <p>The raw trace documents, in the trace schema that <code>format</code> selects. You can send 1–100 documents per call, and each document can be up to 5 MiB (5,242,880 bytes) before encoding. If you use an AWS SDK, pass each document's raw bytes. If you call PutTrace through the agent context's MCP server or another JSON client, send each document as a base64-encoded string.</p>
pub fn set_trace_documents(mut self, input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>>) -> Self {
self.trace_documents = input;
self
}
/// <p>The raw trace documents, in the trace schema that <code>format</code> selects. You can send 1–100 documents per call, and each document can be up to 5 MiB (5,242,880 bytes) before encoding. If you use an AWS SDK, pass each document's raw bytes. If you call PutTrace through the agent context's MCP server or another JSON client, send each document as a base64-encoded string.</p>
pub fn get_trace_documents(&self) -> &::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>> {
&self.trace_documents
}
/// Appends an item to `agent_context_arns`.
///
/// To override the contents of this collection use [`set_agent_context_arns`](Self::set_agent_context_arns).
///
/// <p>The ARNs of the agent contexts that the traces are about: 1–10 <code>agent-context/</code> ARNs that name at most 5 distinct agent contexts, in this Region and partition, all in your account. If you name more, the request fails with <code>ValidationException</code>. AWS Context authorizes <code>context:PutTrace</code> once for each agent context. If any authorization is denied, the whole call fails with <code>AccessDeniedException</code>, and nothing is stored. After authorization, if trace analysis is disabled for an agent context, the call fails with <code>ValidationException</code>, and nothing is stored.</p>
pub fn agent_context_arns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.agent_context_arns.unwrap_or_default();
v.push(input.into());
self.agent_context_arns = ::std::option::Option::Some(v);
self
}
/// <p>The ARNs of the agent contexts that the traces are about: 1–10 <code>agent-context/</code> ARNs that name at most 5 distinct agent contexts, in this Region and partition, all in your account. If you name more, the request fails with <code>ValidationException</code>. AWS Context authorizes <code>context:PutTrace</code> once for each agent context. If any authorization is denied, the whole call fails with <code>AccessDeniedException</code>, and nothing is stored. After authorization, if trace analysis is disabled for an agent context, the call fails with <code>ValidationException</code>, and nothing is stored.</p>
pub fn set_agent_context_arns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.agent_context_arns = input;
self
}
/// <p>The ARNs of the agent contexts that the traces are about: 1–10 <code>agent-context/</code> ARNs that name at most 5 distinct agent contexts, in this Region and partition, all in your account. If you name more, the request fails with <code>ValidationException</code>. AWS Context authorizes <code>context:PutTrace</code> once for each agent context. If any authorization is denied, the whole call fails with <code>AccessDeniedException</code>, and nothing is stored. After authorization, if trace analysis is disabled for an agent context, the call fails with <code>ValidationException</code>, and nothing is stored.</p>
pub fn get_agent_context_arns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.agent_context_arns
}
/// Adds a key-value pair to `trace_metadata`.
///
/// To override the contents of this collection use [`set_trace_metadata`](Self::set_trace_metadata).
///
/// <p>Client-supplied key-value pairs, stored with the traces as-is. The key <code>analysisMode</code> is reserved. A request that sets it fails with <code>AccessDeniedException</code>.</p>
pub fn trace_metadata(
mut self,
k: impl ::std::convert::Into<::std::string::String>,
v: impl ::std::convert::Into<::std::string::String>,
) -> Self {
let mut hash_map = self.trace_metadata.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.trace_metadata = ::std::option::Option::Some(hash_map);
self
}
/// <p>Client-supplied key-value pairs, stored with the traces as-is. The key <code>analysisMode</code> is reserved. A request that sets it fails with <code>AccessDeniedException</code>.</p>
pub fn set_trace_metadata(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
) -> Self {
self.trace_metadata = input;
self
}
/// <p>Client-supplied key-value pairs, stored with the traces as-is. The key <code>analysisMode</code> is reserved. A request that sets it fails with <code>AccessDeniedException</code>.</p>
pub fn get_trace_metadata(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.trace_metadata
}
/// <p>The principals who can see the insights that AWS Context generates from the traces. If you provide entries, the caller is not included unless an entry names it.</p>
/// <p>If you provide no entries (<code>accessControlConfig</code> absent, or <code>accessControlList</code> absent or empty), only the end user that the caller's trusted identity propagation session names can see the insights. If the session names no end user, or there is no session, the call fails with <code>ValidationException</code> and stores nothing. In that case, name the principals, or send <code>ALLOW</code> for <code>*</code> so that every reader of the agent contexts can see the insights.</p>
/// <p>An entry other than <code>*</code> without <code>principalType</code>, a <code>principalId</code> that is not valid Unicode, or entries that total more than 65,536 bytes of UTF-8 are rejected with <code>ValidationException</code>. AWS Context stores principal IDs as given and does not verify them against a directory. A session's access control is the union of its traces' entries. A call that would take that union over 100 entries, or over 65,536 bytes of UTF-8, fails with <code>ValidationException</code> and stores nothing.</p>
pub fn access_control_config(mut self, input: crate::types::AccessControlConfig) -> Self {
self.access_control_config = ::std::option::Option::Some(input);
self
}
/// <p>The principals who can see the insights that AWS Context generates from the traces. If you provide entries, the caller is not included unless an entry names it.</p>
/// <p>If you provide no entries (<code>accessControlConfig</code> absent, or <code>accessControlList</code> absent or empty), only the end user that the caller's trusted identity propagation session names can see the insights. If the session names no end user, or there is no session, the call fails with <code>ValidationException</code> and stores nothing. In that case, name the principals, or send <code>ALLOW</code> for <code>*</code> so that every reader of the agent contexts can see the insights.</p>
/// <p>An entry other than <code>*</code> without <code>principalType</code>, a <code>principalId</code> that is not valid Unicode, or entries that total more than 65,536 bytes of UTF-8 are rejected with <code>ValidationException</code>. AWS Context stores principal IDs as given and does not verify them against a directory. A session's access control is the union of its traces' entries. A call that would take that union over 100 entries, or over 65,536 bytes of UTF-8, fails with <code>ValidationException</code> and stores nothing.</p>
pub fn set_access_control_config(mut self, input: ::std::option::Option<crate::types::AccessControlConfig>) -> Self {
self.access_control_config = input;
self
}
/// <p>The principals who can see the insights that AWS Context generates from the traces. If you provide entries, the caller is not included unless an entry names it.</p>
/// <p>If you provide no entries (<code>accessControlConfig</code> absent, or <code>accessControlList</code> absent or empty), only the end user that the caller's trusted identity propagation session names can see the insights. If the session names no end user, or there is no session, the call fails with <code>ValidationException</code> and stores nothing. In that case, name the principals, or send <code>ALLOW</code> for <code>*</code> so that every reader of the agent contexts can see the insights.</p>
/// <p>An entry other than <code>*</code> without <code>principalType</code>, a <code>principalId</code> that is not valid Unicode, or entries that total more than 65,536 bytes of UTF-8 are rejected with <code>ValidationException</code>. AWS Context stores principal IDs as given and does not verify them against a directory. A session's access control is the union of its traces' entries. A call that would take that union over 100 entries, or over 65,536 bytes of UTF-8, fails with <code>ValidationException</code> and stores nothing.</p>
pub fn get_access_control_config(&self) -> &::std::option::Option<crate::types::AccessControlConfig> {
&self.access_control_config
}
/// Consumes the builder and constructs a [`PutTraceInput`](crate::operation::put_trace::PutTraceInput).
pub fn build(self) -> ::std::result::Result<crate::operation::put_trace::PutTraceInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::put_trace::PutTraceInput {
session_id: self.session_id,
client_token: self.client_token,
format: self.format,
trace_documents: self.trace_documents,
agent_context_arns: self.agent_context_arns,
trace_metadata: self.trace_metadata,
access_control_config: self.access_control_config,
})
}
}
impl ::std::fmt::Debug for PutTraceInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("PutTraceInputBuilder");
formatter.field("session_id", &self.session_id);
formatter.field("client_token", &self.client_token);
formatter.field("format", &self.format);
formatter.field("trace_documents", &"*** Sensitive Data Redacted ***");
formatter.field("agent_context_arns", &self.agent_context_arns);
formatter.field("trace_metadata", &"*** Sensitive Data Redacted ***");
formatter.field("access_control_config", &self.access_control_config);
formatter.finish()
}
}