Struct aws_sdk_codeguruprofiler::operation::configure_agent::builders::ConfigureAgentInputBuilder
source · #[non_exhaustive]pub struct ConfigureAgentInputBuilder { /* private fields */ }
Expand description
A builder for ConfigureAgentInput
.
Implementations§
source§impl ConfigureAgentInputBuilder
impl ConfigureAgentInputBuilder
sourcepub fn profiling_group_name(self, input: impl Into<String>) -> Self
pub fn profiling_group_name(self, input: impl Into<String>) -> Self
The name of the profiling group for which the configured agent is collecting profiling data.
sourcepub fn set_profiling_group_name(self, input: Option<String>) -> Self
pub fn set_profiling_group_name(self, input: Option<String>) -> Self
The name of the profiling group for which the configured agent is collecting profiling data.
sourcepub fn get_profiling_group_name(&self) -> &Option<String>
pub fn get_profiling_group_name(&self) -> &Option<String>
The name of the profiling group for which the configured agent is collecting profiling data.
sourcepub fn fleet_instance_id(self, input: impl Into<String>) -> Self
pub fn fleet_instance_id(self, input: impl Into<String>) -> Self
A universally unique identifier (UUID) for a profiling instance. For example, if the profiling instance is an Amazon EC2 instance, it is the instance ID. If it is an AWS Fargate container, it is the container's task ID.
sourcepub fn set_fleet_instance_id(self, input: Option<String>) -> Self
pub fn set_fleet_instance_id(self, input: Option<String>) -> Self
A universally unique identifier (UUID) for a profiling instance. For example, if the profiling instance is an Amazon EC2 instance, it is the instance ID. If it is an AWS Fargate container, it is the container's task ID.
sourcepub fn get_fleet_instance_id(&self) -> &Option<String>
pub fn get_fleet_instance_id(&self) -> &Option<String>
A universally unique identifier (UUID) for a profiling instance. For example, if the profiling instance is an Amazon EC2 instance, it is the instance ID. If it is an AWS Fargate container, it is the container's task ID.
sourcepub fn metadata(self, k: MetadataField, v: impl Into<String>) -> Self
pub fn metadata(self, k: MetadataField, v: impl Into<String>) -> Self
Adds a key-value pair to metadata
.
To override the contents of this collection use set_metadata
.
Metadata captured about the compute platform the agent is running on. It includes information about sampling and reporting. The valid fields are:
-
COMPUTE_PLATFORM
- The compute platform on which the agent is running -
AGENT_ID
- The ID for an agent instance. -
AWS_REQUEST_ID
- The AWS request ID of a Lambda invocation. -
EXECUTION_ENVIRONMENT
- The execution environment a Lambda function is running on. -
LAMBDA_FUNCTION_ARN
- The Amazon Resource Name (ARN) that is used to invoke a Lambda function. -
LAMBDA_MEMORY_LIMIT_IN_MB
- The memory allocated to a Lambda function. -
LAMBDA_REMAINING_TIME_IN_MILLISECONDS
- The time in milliseconds before execution of a Lambda function times out. -
LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS
- The time in milliseconds between two invocations of a Lambda function. -
LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS
- The time in milliseconds for the previous Lambda invocation.
sourcepub fn set_metadata(self, input: Option<HashMap<MetadataField, String>>) -> Self
pub fn set_metadata(self, input: Option<HashMap<MetadataField, String>>) -> Self
Metadata captured about the compute platform the agent is running on. It includes information about sampling and reporting. The valid fields are:
-
COMPUTE_PLATFORM
- The compute platform on which the agent is running -
AGENT_ID
- The ID for an agent instance. -
AWS_REQUEST_ID
- The AWS request ID of a Lambda invocation. -
EXECUTION_ENVIRONMENT
- The execution environment a Lambda function is running on. -
LAMBDA_FUNCTION_ARN
- The Amazon Resource Name (ARN) that is used to invoke a Lambda function. -
LAMBDA_MEMORY_LIMIT_IN_MB
- The memory allocated to a Lambda function. -
LAMBDA_REMAINING_TIME_IN_MILLISECONDS
- The time in milliseconds before execution of a Lambda function times out. -
LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS
- The time in milliseconds between two invocations of a Lambda function. -
LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS
- The time in milliseconds for the previous Lambda invocation.
sourcepub fn get_metadata(&self) -> &Option<HashMap<MetadataField, String>>
pub fn get_metadata(&self) -> &Option<HashMap<MetadataField, String>>
Metadata captured about the compute platform the agent is running on. It includes information about sampling and reporting. The valid fields are:
-
COMPUTE_PLATFORM
- The compute platform on which the agent is running -
AGENT_ID
- The ID for an agent instance. -
AWS_REQUEST_ID
- The AWS request ID of a Lambda invocation. -
EXECUTION_ENVIRONMENT
- The execution environment a Lambda function is running on. -
LAMBDA_FUNCTION_ARN
- The Amazon Resource Name (ARN) that is used to invoke a Lambda function. -
LAMBDA_MEMORY_LIMIT_IN_MB
- The memory allocated to a Lambda function. -
LAMBDA_REMAINING_TIME_IN_MILLISECONDS
- The time in milliseconds before execution of a Lambda function times out. -
LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS
- The time in milliseconds between two invocations of a Lambda function. -
LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS
- The time in milliseconds for the previous Lambda invocation.
sourcepub fn build(self) -> Result<ConfigureAgentInput, BuildError>
pub fn build(self) -> Result<ConfigureAgentInput, BuildError>
Consumes the builder and constructs a ConfigureAgentInput
.
source§impl ConfigureAgentInputBuilder
impl ConfigureAgentInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ConfigureAgentOutput, SdkError<ConfigureAgentError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ConfigureAgentOutput, SdkError<ConfigureAgentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ConfigureAgentInputBuilder
impl Clone for ConfigureAgentInputBuilder
source§fn clone(&self) -> ConfigureAgentInputBuilder
fn clone(&self) -> ConfigureAgentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConfigureAgentInputBuilder
impl Debug for ConfigureAgentInputBuilder
source§impl Default for ConfigureAgentInputBuilder
impl Default for ConfigureAgentInputBuilder
source§fn default() -> ConfigureAgentInputBuilder
fn default() -> ConfigureAgentInputBuilder
source§impl PartialEq<ConfigureAgentInputBuilder> for ConfigureAgentInputBuilder
impl PartialEq<ConfigureAgentInputBuilder> for ConfigureAgentInputBuilder
source§fn eq(&self, other: &ConfigureAgentInputBuilder) -> bool
fn eq(&self, other: &ConfigureAgentInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.