Struct aws_sdk_codeguruprofiler::Client
source · pub struct Client { /* private fields */ }Expand description
Client for Amazon CodeGuru Profiler
Client for invoking operations on Amazon CodeGuru Profiler. Each operation on Amazon CodeGuru Profiler is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_codeguruprofiler::Client::new(&config);Occasionally, SDKs may have additional service-specific that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Config struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_codeguruprofiler::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
Using the Client
A client has a function for every operation that can be performed by the service.
For example, the GetFindingsReportAccountSummary operation has
a Client::get_findings_report_account_summary, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.get_findings_report_account_summary()
.next_token("example")
.send()
.await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
Implementations§
source§impl Client
impl Client
sourcepub fn add_notification_channels(&self) -> AddNotificationChannelsFluentBuilder
pub fn add_notification_channels(&self) -> AddNotificationChannelsFluentBuilder
Constructs a fluent builder for the AddNotificationChannels operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group that we are setting up notifications for.
channels(Channel)/set_channels(Option<Vec::<Channel>>):
required: trueOne or 2 channels to report to when anomalies are detected.
- On success, responds with
AddNotificationChannelsOutputwith field(s):notification_configuration(Option<NotificationConfiguration>):The new notification configuration for this profiling group.
- On failure, responds with
SdkError<AddNotificationChannelsError>
source§impl Client
impl Client
sourcepub fn batch_get_frame_metric_data(
&self
) -> BatchGetFrameMetricDataFluentBuilder
pub fn batch_get_frame_metric_data( &self ) -> BatchGetFrameMetricDataFluentBuilder
Constructs a fluent builder for the BatchGetFrameMetricData operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group associated with the the frame metrics used to return the time series values.
start_time(DateTime)/set_start_time(Option<DateTime>):
required: falseThe start time of the time period for the frame metrics used to return the time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
end_time(DateTime)/set_end_time(Option<DateTime>):
required: falseThe end time of the time period for the returned time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
period(impl Into<String>)/set_period(Option<String>):
required: falseThe duration of the frame metrics used to return the time series values. Specify using the ISO 8601 format. The maximum period duration is one day (
PT24HorP1D).target_resolution(AggregationPeriod)/set_target_resolution(Option<AggregationPeriod>):
required: falseThe requested resolution of time steps for the returned time series of values. If the requested target resolution is not available due to data not being retained we provide a best effort result by falling back to the most granular available resolution after the target resolution. There are 3 valid values.
-
P1D— 1 day -
PT1H— 1 hour -
PT5M— 5 minutes
-
frame_metrics(FrameMetric)/set_frame_metrics(Option<Vec::<FrameMetric>>):
required: falseThe details of the metrics that are used to request a time series of values. The metric includes the name of the frame, the aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for the metric value of the frame.
- On success, responds with
BatchGetFrameMetricDataOutputwith field(s):start_time(DateTime):The start time of the time period for the returned time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
end_time(DateTime):The end time of the time period for the returned time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
resolution(AggregationPeriod):Resolution or granularity of the profile data used to generate the time series. This is the value used to jump through time steps in a time series. There are 3 valid values.
-
P1D— 1 day -
PT1H— 1 hour -
PT5M— 5 minutes
-
end_times(Vec::<TimestampStructure>):List of instances, or time steps, in the time series. For example, if the
periodis one day (PT24H)), and theresolutionis five minutes (PT5M), then there are 288endTimesin the list that are each five minutes appart.unprocessed_end_times(HashMap::<String, Vec::<TimestampStructure>>):List of instances which remained unprocessed. This will create a missing time step in the list of end times.
frame_metric_data(Vec::<FrameMetricDatum>):Details of the metrics to request a time series of values. The metric includes the name of the frame, the aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for the metric value of the frame.
- On failure, responds with
SdkError<BatchGetFrameMetricDataError>
source§impl Client
impl Client
sourcepub fn configure_agent(&self) -> ConfigureAgentFluentBuilder
pub fn configure_agent(&self) -> ConfigureAgentFluentBuilder
Constructs a fluent builder for the ConfigureAgent operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group for which the configured agent is collecting profiling data.
fleet_instance_id(impl Into<String>)/set_fleet_instance_id(Option<String>):
required: falseA 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.
metadata(MetadataField, impl Into<String>)/set_metadata(Option<HashMap::<MetadataField, String>>):
required: falseMetadata 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.
-
- On success, responds with
ConfigureAgentOutputwith field(s):configuration(Option<AgentConfiguration>):An
AgentConfigurationobject that specifies if an agent profiles or not and for how long to return profiling data.
- On failure, responds with
SdkError<ConfigureAgentError>
source§impl Client
impl Client
sourcepub fn create_profiling_group(&self) -> CreateProfilingGroupFluentBuilder
pub fn create_profiling_group(&self) -> CreateProfilingGroupFluentBuilder
Constructs a fluent builder for the CreateProfilingGroup operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group to create.
compute_platform(ComputePlatform)/set_compute_platform(Option<ComputePlatform>):
required: falseThe compute platform of the profiling group. Use
AWSLambdaif your application runs on AWS Lambda. UseDefaultif your application runs on a compute platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises server, or a different platform. If not specified,Defaultis used.client_token(impl Into<String>)/set_client_token(Option<String>):
required: trueAmazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental creation of duplicate profiling groups if there are failures and retries.
agent_orchestration_config(AgentOrchestrationConfig)/set_agent_orchestration_config(Option<AgentOrchestrationConfig>):
required: falseSpecifies whether profiling is enabled or disabled for the created profiling group.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseA list of tags to add to the created profiling group.
- On success, responds with
CreateProfilingGroupOutputwith field(s):profiling_group(Option<ProfilingGroupDescription>):The returned
ProfilingGroupDescriptionobject that contains information about the created profiling group.
- On failure, responds with
SdkError<CreateProfilingGroupError>
source§impl Client
impl Client
sourcepub fn delete_profiling_group(&self) -> DeleteProfilingGroupFluentBuilder
pub fn delete_profiling_group(&self) -> DeleteProfilingGroupFluentBuilder
Constructs a fluent builder for the DeleteProfilingGroup operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group to delete.
- On success, responds with
DeleteProfilingGroupOutput - On failure, responds with
SdkError<DeleteProfilingGroupError>
source§impl Client
impl Client
sourcepub fn describe_profiling_group(&self) -> DescribeProfilingGroupFluentBuilder
pub fn describe_profiling_group(&self) -> DescribeProfilingGroupFluentBuilder
Constructs a fluent builder for the DescribeProfilingGroup operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group to get information about.
- On success, responds with
DescribeProfilingGroupOutputwith field(s):profiling_group(Option<ProfilingGroupDescription>):The returned
ProfilingGroupDescriptionobject that contains information about the requested profiling group.
- On failure, responds with
SdkError<DescribeProfilingGroupError>
source§impl Client
impl Client
sourcepub fn get_findings_report_account_summary(
&self
) -> GetFindingsReportAccountSummaryFluentBuilder
pub fn get_findings_report_account_summary( &self ) -> GetFindingsReportAccountSummaryFluentBuilder
Constructs a fluent builder for the GetFindingsReportAccountSummary operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe
nextTokenvalue returned from a previous paginatedGetFindingsReportAccountSummaryrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results returned by
GetFindingsReportAccountSummaryin paginated output. When this parameter is used,GetFindingsReportAccountSummaryonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherGetFindingsReportAccountSummaryrequest with the returnednextTokenvalue.daily_reports_only(bool)/set_daily_reports_only(Option<bool>):
required: falseA
Booleanvalue indicating whether to only return reports from daily profiles. If set toTrue, only analysis data from daily profiles is returned. If set toFalse, analysis data is returned from smaller time windows (for example, one hour).
- On success, responds with
GetFindingsReportAccountSummaryOutputwith field(s):report_summaries(Vec::<FindingsReportSummary>):The return list of
FindingsReportSummaryobjects taht contain summaries of analysis results for all profiling groups in your AWS account.next_token(Option<String>):The
nextTokenvalue to include in a futureGetFindingsReportAccountSummaryrequest. When the results of aGetFindingsReportAccountSummaryrequest exceedmaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.
- On failure, responds with
SdkError<GetFindingsReportAccountSummaryError>
source§impl Client
impl Client
sourcepub fn get_notification_configuration(
&self
) -> GetNotificationConfigurationFluentBuilder
pub fn get_notification_configuration( &self ) -> GetNotificationConfigurationFluentBuilder
Constructs a fluent builder for the GetNotificationConfiguration operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group we want to get the notification configuration for.
- On success, responds with
GetNotificationConfigurationOutputwith field(s):notification_configuration(Option<NotificationConfiguration>):The current notification configuration for this profiling group.
- On failure, responds with
SdkError<GetNotificationConfigurationError>
source§impl Client
impl Client
sourcepub fn get_policy(&self) -> GetPolicyFluentBuilder
pub fn get_policy(&self) -> GetPolicyFluentBuilder
Constructs a fluent builder for the GetPolicy operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group.
- On success, responds with
GetPolicyOutputwith field(s):policy(String):The JSON-formatted resource-based policy attached to the
ProfilingGroup.revision_id(String):A unique identifier for the current revision of the returned policy.
- On failure, responds with
SdkError<GetPolicyError>
source§impl Client
impl Client
sourcepub fn get_profile(&self) -> GetProfileFluentBuilder
pub fn get_profile(&self) -> GetProfileFluentBuilder
Constructs a fluent builder for the GetProfile operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group to get.
start_time(DateTime)/set_start_time(Option<DateTime>):
required: falseThe start time of the profile to get. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
If you specify
startTime, then you must also specifyperiodorendTime, but not both.period(impl Into<String>)/set_period(Option<String>):
required: falseUsed with
startTimeorendTimeto specify the time range for the returned aggregated profile. Specify using the ISO 8601 format. For example,P1DT1H1M1S.To get the latest aggregated profile, specify only
period.end_time(DateTime)/set_end_time(Option<DateTime>):
required: falseThe end time of the requested profile. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
If you specify
endTime, then you must also specifyperiodorstartTime, but not both.max_depth(i32)/set_max_depth(Option<i32>):
required: falseThe maximum depth of the stacks in the code that is represented in the aggregated profile. For example, if CodeGuru Profiler finds a method
A, which calls methodB, which calls methodC, which calls methodD, then the depth is 4. If themaxDepthis set to 2, then the aggregated profile contains representations of methodsAandB.accept(impl Into<String>)/set_accept(Option<String>):
required: falseThe format of the returned profiling data. The format maps to the
AcceptandContent-Typeheaders of the HTTP request. You can specify one of the following: or the default .-
application/json— standard JSON format -
application/x-amzn-ion— the Amazon Ion data format. For more information, see Amazon Ion.
-
- On success, responds with
GetProfileOutputwith field(s):profile(Blob):Information about the profile.
content_type(String):The content type of the profile in the payload. It is either
application/jsonor the defaultapplication/x-amzn-ion.content_encoding(Option<String>):The content encoding of the profile.
- On failure, responds with
SdkError<GetProfileError>
source§impl Client
impl Client
sourcepub fn get_recommendations(&self) -> GetRecommendationsFluentBuilder
pub fn get_recommendations(&self) -> GetRecommendationsFluentBuilder
Constructs a fluent builder for the GetRecommendations operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group to get analysis data about.
start_time(DateTime)/set_start_time(Option<DateTime>):
required: trueThe end time of the profile to get analysis data about. You must specify
startTimeandendTime. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.end_time(DateTime)/set_end_time(Option<DateTime>):
required: trueThe start time of the profile to get analysis data about. You must specify
startTimeandendTime. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.locale(impl Into<String>)/set_locale(Option<String>):
required: falseThe language used to provide analysis. Specify using a string that is one of the following
BCP 47language codes.-
de-DE- German, Germany -
en-GB- English, United Kingdom -
en-US- English, United States -
es-ES- Spanish, Spain -
fr-FR- French, France -
it-IT- Italian, Italy -
ja-JP- Japanese, Japan -
ko-KR- Korean, Republic of Korea -
pt-BR- Portugese, Brazil -
zh-CN- Chinese, China -
zh-TW- Chinese, Taiwan
-
- On success, responds with
GetRecommendationsOutputwith field(s):profiling_group_name(String):The name of the profiling group the analysis data is about.
profile_start_time(DateTime):The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
profile_end_time(DateTime):The end time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
recommendations(Vec::<Recommendation>):The list of recommendations that the analysis found for this profile.
anomalies(Vec::<Anomaly>):The list of anomalies that the analysis has found for this profile.
- On failure, responds with
SdkError<GetRecommendationsError>
source§impl Client
impl Client
sourcepub fn list_findings_reports(&self) -> ListFindingsReportsFluentBuilder
pub fn list_findings_reports(&self) -> ListFindingsReportsFluentBuilder
Constructs a fluent builder for the ListFindingsReports operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group from which to search for analysis data.
start_time(DateTime)/set_start_time(Option<DateTime>):
required: trueThe start time of the profile to get analysis data about. You must specify
startTimeandendTime. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.end_time(DateTime)/set_end_time(Option<DateTime>):
required: trueThe end time of the profile to get analysis data about. You must specify
startTimeandendTime. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe
nextTokenvalue returned from a previous paginatedListFindingsReportsRequestrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of report results returned by
ListFindingsReportsin paginated output. When this parameter is used,ListFindingsReportsonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListFindingsReportsrequest with the returnednextTokenvalue.daily_reports_only(bool)/set_daily_reports_only(Option<bool>):
required: falseA
Booleanvalue indicating whether to only return reports from daily profiles. If set toTrue, only analysis data from daily profiles is returned. If set toFalse, analysis data is returned from smaller time windows (for example, one hour).
- On success, responds with
ListFindingsReportsOutputwith field(s):findings_report_summaries(Vec::<FindingsReportSummary>):The list of analysis results summaries.
next_token(Option<String>):The
nextTokenvalue to include in a futureListFindingsReportsrequest. When the results of aListFindingsReportsrequest exceedmaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.
- On failure, responds with
SdkError<ListFindingsReportsError>
source§impl Client
impl Client
sourcepub fn list_profile_times(&self) -> ListProfileTimesFluentBuilder
pub fn list_profile_times(&self) -> ListProfileTimesFluentBuilder
Constructs a fluent builder for the ListProfileTimes operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group.
start_time(DateTime)/set_start_time(Option<DateTime>):
required: trueThe start time of the time range from which to list the profiles.
end_time(DateTime)/set_end_time(Option<DateTime>):
required: trueThe end time of the time range from which to list the profiles.
period(AggregationPeriod)/set_period(Option<AggregationPeriod>):
required: trueThe aggregation period. This specifies the period during which an aggregation profile collects posted agent profiles for a profiling group. There are 3 valid values.
-
P1D— 1 day -
PT1H— 1 hour -
PT5M— 5 minutes
-
order_by(OrderBy)/set_order_by(Option<OrderBy>):
required: falseThe order (ascending or descending by start time of the profile) to use when listing profiles. Defaults to
TIMESTAMP_DESCENDING.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of profile time results returned by
ListProfileTimesin paginated output. When this parameter is used,ListProfileTimesonly returnsmaxResultsresults in a single page with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListProfileTimesrequest with the returnednextTokenvalue.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe
nextTokenvalue returned from a previous paginatedListProfileTimesrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
- On success, responds with
ListProfileTimesOutputwith field(s):profile_times(Vec::<ProfileTime>):The list of start times of the available profiles for the aggregation period in the specified time range.
next_token(Option<String>):The
nextTokenvalue to include in a futureListProfileTimesrequest. When the results of aListProfileTimesrequest exceedmaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.
- On failure, responds with
SdkError<ListProfileTimesError>
source§impl Client
impl Client
sourcepub fn list_profiling_groups(&self) -> ListProfilingGroupsFluentBuilder
pub fn list_profiling_groups(&self) -> ListProfilingGroupsFluentBuilder
Constructs a fluent builder for the ListProfilingGroups operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe
nextTokenvalue returned from a previous paginatedListProfilingGroupsrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of profiling groups results returned by
ListProfilingGroupsin paginated output. When this parameter is used,ListProfilingGroupsonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListProfilingGroupsrequest with the returnednextTokenvalue.include_description(bool)/set_include_description(Option<bool>):
required: falseA
Booleanvalue indicating whether to include a description. Iftrue, then a list ofProfilingGroupDescriptionobjects that contain detailed information about profiling groups is returned. Iffalse, then a list of profiling group names is returned.
- On success, responds with
ListProfilingGroupsOutputwith field(s):profiling_group_names(Vec::<String>):A returned list of profiling group names. A list of the names is returned only if
includeDescriptionisfalse, otherwise a list ofProfilingGroupDescriptionobjects is returned.profiling_groups(Option<Vec::<ProfilingGroupDescription>>):A returned list
ProfilingGroupDescriptionobjects. A list ofProfilingGroupDescriptionobjects is returned only ifincludeDescriptionistrue, otherwise a list of profiling group names is returned.next_token(Option<String>):The
nextTokenvalue to include in a futureListProfilingGroupsrequest. When the results of aListProfilingGroupsrequest exceedmaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.
- On failure, responds with
SdkError<ListProfilingGroupsError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource that contains the tags to return.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap::<String, String>>):The list of tags assigned to the specified resource. This is the list of tags returned in the response.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn post_agent_profile(&self) -> PostAgentProfileFluentBuilder
pub fn post_agent_profile(&self) -> PostAgentProfileFluentBuilder
Constructs a fluent builder for the PostAgentProfile operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group with the aggregated profile that receives the submitted profiling data.
agent_profile(Blob)/set_agent_profile(Option<Blob>):
required: trueThe submitted profiling data.
profile_token(impl Into<String>)/set_profile_token(Option<String>):
required: falseAmazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental submission of duplicate profiling data if there are failures and retries.
content_type(impl Into<String>)/set_content_type(Option<String>):
required: trueThe format of the submitted profiling data. The format maps to the
AcceptandContent-Typeheaders of the HTTP request. You can specify one of the following: or the default .-
application/json— standard JSON format -
application/x-amzn-ion— the Amazon Ion data format. For more information, see Amazon Ion.
-
- On success, responds with
PostAgentProfileOutput - On failure, responds with
SdkError<PostAgentProfileError>
source§impl Client
impl Client
sourcepub fn put_permission(&self) -> PutPermissionFluentBuilder
pub fn put_permission(&self) -> PutPermissionFluentBuilder
Constructs a fluent builder for the PutPermission operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group to grant access to.
action_group(ActionGroup)/set_action_group(Option<ActionGroup>):
required: trueSpecifies an action group that contains permissions to add to a profiling group resource. One action group is supported,
agentPermissions, which grants permission to perform actions required by the profiling agent,ConfigureAgentandPostAgentProfilepermissions.principals(impl Into<String>)/set_principals(Option<Vec::<String>>):
required: trueA list ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not are supported in the ARNs.
revision_id(impl Into<String>)/set_revision_id(Option<String>):
required: falseA universally unique identifier (UUID) for the revision of the policy you are adding to the profiling group. Do not specify this when you add permissions to a profiling group for the first time. If a policy already exists on the profiling group, you must specify the
revisionId.
- On success, responds with
PutPermissionOutputwith field(s):policy(String):The JSON-formatted resource-based policy on the profiling group that includes the added permissions.
revision_id(String):A universally unique identifier (UUID) for the revision of the resource-based policy that includes the added permissions. The JSON-formatted policy is in the
policyelement of the response.
- On failure, responds with
SdkError<PutPermissionError>
source§impl Client
impl Client
sourcepub fn remove_notification_channel(
&self
) -> RemoveNotificationChannelFluentBuilder
pub fn remove_notification_channel( &self ) -> RemoveNotificationChannelFluentBuilder
Constructs a fluent builder for the RemoveNotificationChannel operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group we want to change notification configuration for.
channel_id(impl Into<String>)/set_channel_id(Option<String>):
required: trueThe id of the channel that we want to stop receiving notifications.
- On success, responds with
RemoveNotificationChannelOutputwith field(s):notification_configuration(Option<NotificationConfiguration>):The new notification configuration for this profiling group.
- On failure, responds with
SdkError<RemoveNotificationChannelError>
source§impl Client
impl Client
sourcepub fn remove_permission(&self) -> RemovePermissionFluentBuilder
pub fn remove_permission(&self) -> RemovePermissionFluentBuilder
Constructs a fluent builder for the RemovePermission operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group.
action_group(ActionGroup)/set_action_group(Option<ActionGroup>):
required: trueSpecifies an action group that contains the permissions to remove from a profiling group’s resource-based policy. One action group is supported,
agentPermissions, which grantsConfigureAgentandPostAgentProfilepermissions.revision_id(impl Into<String>)/set_revision_id(Option<String>):
required: trueA universally unique identifier (UUID) for the revision of the resource-based policy from which you want to remove permissions.
- On success, responds with
RemovePermissionOutputwith field(s):policy(String):The JSON-formatted resource-based policy on the profiling group after the specified permissions were removed.
revision_id(String):A universally unique identifier (UUID) for the revision of the resource-based policy after the specified permissions were removed. The updated JSON-formatted policy is in the
policyelement of the response.
- On failure, responds with
SdkError<RemovePermissionError>
source§impl Client
impl Client
sourcepub fn submit_feedback(&self) -> SubmitFeedbackFluentBuilder
pub fn submit_feedback(&self) -> SubmitFeedbackFluentBuilder
Constructs a fluent builder for the SubmitFeedback operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group that is associated with the analysis data.
anomaly_instance_id(impl Into<String>)/set_anomaly_instance_id(Option<String>):
required: trueThe universally unique identifier (UUID) of the
AnomalyInstanceobject that is included in the analysis data.r#type(FeedbackType)/set_type(Option<FeedbackType>):
required: trueThe feedback tpye. Thee are two valid values,
PositiveandNegative.comment(impl Into<String>)/set_comment(Option<String>):
required: falseOptional feedback about this anomaly.
- On success, responds with
SubmitFeedbackOutput - On failure, responds with
SdkError<SubmitFeedbackError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource that the tags are added to.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: trueThe list of tags that are added to the specified resource.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource that contains the tags to remove.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueA list of tag keys. Existing tags of resources with keys in this list are removed from the specified resource.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_profiling_group(&self) -> UpdateProfilingGroupFluentBuilder
pub fn update_profiling_group(&self) -> UpdateProfilingGroupFluentBuilder
Constructs a fluent builder for the UpdateProfilingGroup operation.
- The fluent builder is configurable:
profiling_group_name(impl Into<String>)/set_profiling_group_name(Option<String>):
required: trueThe name of the profiling group to update.
agent_orchestration_config(AgentOrchestrationConfig)/set_agent_orchestration_config(Option<AgentOrchestrationConfig>):
required: trueSpecifies whether profiling is enabled or disabled for a profiling group.
- On success, responds with
UpdateProfilingGroupOutputwith field(s):profiling_group(Option<ProfilingGroupDescription>):A
ProfilingGroupDescriptionthat contains information about the returned updated profiling group.
- On failure, responds with
SdkError<UpdateProfilingGroupError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.