Struct aws_sdk_cloudfront::model::RealtimeLogConfig
source · #[non_exhaustive]pub struct RealtimeLogConfig { /* private fields */ }
Expand description
A real-time log configuration.
Implementations§
source§impl RealtimeLogConfig
impl RealtimeLogConfig
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of this real-time log configuration.
sourcepub fn sampling_rate(&self) -> Option<i64>
pub fn sampling_rate(&self) -> Option<i64>
The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.
sourcepub fn end_points(&self) -> Option<&[EndPoint]>
pub fn end_points(&self) -> Option<&[EndPoint]>
Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
sourcepub fn fields(&self) -> Option<&[String]>
pub fn fields(&self) -> Option<&[String]>
A list of fields that are included in each real-time log record. In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
source§impl RealtimeLogConfig
impl RealtimeLogConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RealtimeLogConfig
.
Examples found in repository?
6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136
pub fn deser_structure_crate_model_realtime_log_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RealtimeLogConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RealtimeLogConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ARN") /* ARN com.amazonaws.cloudfront#RealtimeLogConfig$ARN */ => {
let var_142 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_arn(var_142);
}
,
s if s.matches("Name") /* Name com.amazonaws.cloudfront#RealtimeLogConfig$Name */ => {
let var_143 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_143);
}
,
s if s.matches("SamplingRate") /* SamplingRate com.amazonaws.cloudfront#RealtimeLogConfig$SamplingRate */ => {
let var_144 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.cloudfront#long`)"))
}
?
)
;
builder = builder.set_sampling_rate(var_144);
}
,
s if s.matches("EndPoints") /* EndPoints com.amazonaws.cloudfront#RealtimeLogConfig$EndPoints */ => {
let var_145 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_end_point_list(&mut tag)
?
)
;
builder = builder.set_end_points(var_145);
}
,
s if s.matches("Fields") /* Fields com.amazonaws.cloudfront#RealtimeLogConfig$Fields */ => {
let var_146 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_field_list(&mut tag)
?
)
;
builder = builder.set_fields(var_146);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for RealtimeLogConfig
impl Clone for RealtimeLogConfig
source§fn clone(&self) -> RealtimeLogConfig
fn clone(&self) -> RealtimeLogConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more