CodeGuruProfilerClient#
Index > CodeGuruProfiler > CodeGuruProfilerClient
Auto-generated documentation for CodeGuruProfiler type annotations stubs module types-boto3-codeguruprofiler.
CodeGuruProfilerClient#
Type annotations and code completion for boto3.client("codeguruprofiler").
 boto3 documentation
# CodeGuruProfilerClient usage example
from boto3.session import Session
from types_boto3_codeguruprofiler.client import CodeGuruProfilerClient
def get_codeguruprofiler_client() -> CodeGuruProfilerClient:
    return Session().client("codeguruprofiler")Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("codeguruprofiler").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("codeguruprofiler")
try:
    do_something(client)
except (
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceQuotaExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)# Exceptions.exceptions type checking example
from types_boto3_codeguruprofiler.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
    ...Methods#
can_paginate#
Type annotations and code completion for boto3.client("codeguruprofiler").can_paginate method.
 boto3 documentation
# can_paginate method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...generate_presigned_url#
Type annotations and code completion for boto3.client("codeguruprofiler").generate_presigned_url method.
 boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...add_notification_channels#
Add up to 2 anomaly notifications channels for a profiling group.
Type annotations and code completion for boto3.client("codeguruprofiler").add_notification_channels method.
 boto3 documentation
# add_notification_channels method definition
def add_notification_channels(
    self,
    *,
    channels: Sequence[ChannelUnionTypeDef],  # (1)
    profilingGroupName: str,
) -> AddNotificationChannelsResponseTypeDef:  # (2)
    ...- See Sequence[ChannelUnionTypeDef]
- See AddNotificationChannelsResponseTypeDef
# add_notification_channels method usage example with argument unpacking
kwargs: AddNotificationChannelsRequestTypeDef = {  # (1)
    "channels": ...,
    "profilingGroupName": ...,
}
parent.add_notification_channels(**kwargs)batch_get_frame_metric_data#
Returns the time series of values for a requested list of frame metrics from a time period.
Type annotations and code completion for boto3.client("codeguruprofiler").batch_get_frame_metric_data method.
 boto3 documentation
# batch_get_frame_metric_data method definition
def batch_get_frame_metric_data(
    self,
    *,
    profilingGroupName: str,
    endTime: TimestampTypeDef = ...,
    frameMetrics: Sequence[FrameMetricUnionTypeDef] = ...,  # (1)
    period: str = ...,
    startTime: TimestampTypeDef = ...,
    targetResolution: AggregationPeriodType = ...,  # (2)
) -> BatchGetFrameMetricDataResponseTypeDef:  # (3)
    ...- See Sequence[FrameMetricUnionTypeDef]
- See AggregationPeriodType
- See BatchGetFrameMetricDataResponseTypeDef
# batch_get_frame_metric_data method usage example with argument unpacking
kwargs: BatchGetFrameMetricDataRequestTypeDef = {  # (1)
    "profilingGroupName": ...,
}
parent.batch_get_frame_metric_data(**kwargs)configure_agent#
Used by profiler agents to report their current state and to receive remote configuration updates.
Type annotations and code completion for boto3.client("codeguruprofiler").configure_agent method.
 boto3 documentation
# configure_agent method definition
def configure_agent(
    self,
    *,
    profilingGroupName: str,
    fleetInstanceId: str = ...,
    metadata: Mapping[MetadataFieldType, str] = ...,  # (1)
) -> ConfigureAgentResponseTypeDef:  # (2)
    ...- See Mapping[MetadataFieldType, str]
- See ConfigureAgentResponseTypeDef
# configure_agent method usage example with argument unpacking
kwargs: ConfigureAgentRequestTypeDef = {  # (1)
    "profilingGroupName": ...,
}
parent.configure_agent(**kwargs)create_profiling_group#
Creates a profiling group.
Type annotations and code completion for boto3.client("codeguruprofiler").create_profiling_group method.
 boto3 documentation
# create_profiling_group method definition
def create_profiling_group(
    self,
    *,
    clientToken: str,
    profilingGroupName: str,
    agentOrchestrationConfig: AgentOrchestrationConfigTypeDef = ...,  # (1)
    computePlatform: ComputePlatformType = ...,  # (2)
    tags: Mapping[str, str] = ...,
) -> CreateProfilingGroupResponseTypeDef:  # (3)
    ...# create_profiling_group method usage example with argument unpacking
kwargs: CreateProfilingGroupRequestTypeDef = {  # (1)
    "clientToken": ...,
    "profilingGroupName": ...,
}
parent.create_profiling_group(**kwargs)delete_profiling_group#
Deletes a profiling group.
Type annotations and code completion for boto3.client("codeguruprofiler").delete_profiling_group method.
 boto3 documentation
# delete_profiling_group method definition
def delete_profiling_group(
    self,
    *,
    profilingGroupName: str,
) -> Dict[str, Any]:
    ...# delete_profiling_group method usage example with argument unpacking
kwargs: DeleteProfilingGroupRequestTypeDef = {  # (1)
    "profilingGroupName": ...,
}
parent.delete_profiling_group(**kwargs)describe_profiling_group#
Returns a 
ProfilingGroupDescription  object that contains information
about the requested profiling group.
Type annotations and code completion for boto3.client("codeguruprofiler").describe_profiling_group method.
 boto3 documentation
# describe_profiling_group method definition
def describe_profiling_group(
    self,
    *,
    profilingGroupName: str,
) -> DescribeProfilingGroupResponseTypeDef:  # (1)
    ...# describe_profiling_group method usage example with argument unpacking
kwargs: DescribeProfilingGroupRequestTypeDef = {  # (1)
    "profilingGroupName": ...,
}
parent.describe_profiling_group(**kwargs)get_findings_report_account_summary#
Returns a list of 
FindingsReportSummary  objects that contain analysis results
for all profiling groups in your AWS account.
Type annotations and code completion for boto3.client("codeguruprofiler").get_findings_report_account_summary method.
 boto3 documentation
# get_findings_report_account_summary method definition
def get_findings_report_account_summary(
    self,
    *,
    dailyReportsOnly: bool = ...,
    maxResults: int = ...,
    nextToken: str = ...,
) -> GetFindingsReportAccountSummaryResponseTypeDef:  # (1)
    ...# get_findings_report_account_summary method usage example with argument unpacking
kwargs: GetFindingsReportAccountSummaryRequestTypeDef = {  # (1)
    "dailyReportsOnly": ...,
}
parent.get_findings_report_account_summary(**kwargs)get_notification_configuration#
Get the current configuration for anomaly notifications for a profiling group.
Type annotations and code completion for boto3.client("codeguruprofiler").get_notification_configuration method.
 boto3 documentation
# get_notification_configuration method definition
def get_notification_configuration(
    self,
    *,
    profilingGroupName: str,
) -> GetNotificationConfigurationResponseTypeDef:  # (1)
    ...# get_notification_configuration method usage example with argument unpacking
kwargs: GetNotificationConfigurationRequestTypeDef = {  # (1)
    "profilingGroupName": ...,
}
parent.get_notification_configuration(**kwargs)get_policy#
Returns the JSON-formatted resource-based policy on a profiling group.
Type annotations and code completion for boto3.client("codeguruprofiler").get_policy method.
 boto3 documentation
# get_policy method definition
def get_policy(
    self,
    *,
    profilingGroupName: str,
) -> GetPolicyResponseTypeDef:  # (1)
    ...# get_policy method usage example with argument unpacking
kwargs: GetPolicyRequestTypeDef = {  # (1)
    "profilingGroupName": ...,
}
parent.get_policy(**kwargs)get_profile#
Gets the aggregated profile of a profiling group for a specified time range.
Type annotations and code completion for boto3.client("codeguruprofiler").get_profile method.
 boto3 documentation
# get_profile method definition
def get_profile(
    self,
    *,
    profilingGroupName: str,
    accept: str = ...,
    endTime: TimestampTypeDef = ...,
    maxDepth: int = ...,
    period: str = ...,
    startTime: TimestampTypeDef = ...,
) -> GetProfileResponseTypeDef:  # (1)
    ...# get_profile method usage example with argument unpacking
kwargs: GetProfileRequestTypeDef = {  # (1)
    "profilingGroupName": ...,
}
parent.get_profile(**kwargs)get_recommendations#
Returns a list of 
Recommendation  objects that contain recommendations for a
profiling group for a given time period.
Type annotations and code completion for boto3.client("codeguruprofiler").get_recommendations method.
 boto3 documentation
# get_recommendations method definition
def get_recommendations(
    self,
    *,
    endTime: TimestampTypeDef,
    profilingGroupName: str,
    startTime: TimestampTypeDef,
    locale: str = ...,
) -> GetRecommendationsResponseTypeDef:  # (1)
    ...# get_recommendations method usage example with argument unpacking
kwargs: GetRecommendationsRequestTypeDef = {  # (1)
    "endTime": ...,
    "profilingGroupName": ...,
    "startTime": ...,
}
parent.get_recommendations(**kwargs)list_findings_reports#
List the available reports for a given profiling group and time range.
Type annotations and code completion for boto3.client("codeguruprofiler").list_findings_reports method.
 boto3 documentation
# list_findings_reports method definition
def list_findings_reports(
    self,
    *,
    endTime: TimestampTypeDef,
    profilingGroupName: str,
    startTime: TimestampTypeDef,
    dailyReportsOnly: bool = ...,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListFindingsReportsResponseTypeDef:  # (1)
    ...# list_findings_reports method usage example with argument unpacking
kwargs: ListFindingsReportsRequestTypeDef = {  # (1)
    "endTime": ...,
    "profilingGroupName": ...,
    "startTime": ...,
}
parent.list_findings_reports(**kwargs)list_profile_times#
Lists the start times of the available aggregated profiles of a profiling group for an aggregation period within the specified time range.
Type annotations and code completion for boto3.client("codeguruprofiler").list_profile_times method.
 boto3 documentation
# list_profile_times method definition
def list_profile_times(
    self,
    *,
    endTime: TimestampTypeDef,
    period: AggregationPeriodType,  # (1)
    profilingGroupName: str,
    startTime: TimestampTypeDef,
    maxResults: int = ...,
    nextToken: str = ...,
    orderBy: OrderByType = ...,  # (2)
) -> ListProfileTimesResponseTypeDef:  # (3)
    ...# list_profile_times method usage example with argument unpacking
kwargs: ListProfileTimesRequestTypeDef = {  # (1)
    "endTime": ...,
    "period": ...,
    "profilingGroupName": ...,
    "startTime": ...,
}
parent.list_profile_times(**kwargs)list_profiling_groups#
Returns a list of profiling groups.
Type annotations and code completion for boto3.client("codeguruprofiler").list_profiling_groups method.
 boto3 documentation
# list_profiling_groups method definition
def list_profiling_groups(
    self,
    *,
    includeDescription: bool = ...,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListProfilingGroupsResponseTypeDef:  # (1)
    ...# list_profiling_groups method usage example with argument unpacking
kwargs: ListProfilingGroupsRequestTypeDef = {  # (1)
    "includeDescription": ...,
}
parent.list_profiling_groups(**kwargs)list_tags_for_resource#
Returns a list of the tags that are assigned to a specified resource.
Type annotations and code completion for boto3.client("codeguruprofiler").list_tags_for_resource method.
 boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)post_agent_profile#
Submits profiling data to an aggregated profile of a profiling group.
Type annotations and code completion for boto3.client("codeguruprofiler").post_agent_profile method.
 boto3 documentation
# post_agent_profile method definition
def post_agent_profile(
    self,
    *,
    agentProfile: BlobTypeDef,
    contentType: str,
    profilingGroupName: str,
    profileToken: str = ...,
) -> Dict[str, Any]:
    ...# post_agent_profile method usage example with argument unpacking
kwargs: PostAgentProfileRequestTypeDef = {  # (1)
    "agentProfile": ...,
    "contentType": ...,
    "profilingGroupName": ...,
}
parent.post_agent_profile(**kwargs)put_permission#
Adds permissions to a profiling group's resource-based policy that are provided using an action group.
Type annotations and code completion for boto3.client("codeguruprofiler").put_permission method.
 boto3 documentation
# put_permission method definition
def put_permission(
    self,
    *,
    actionGroup: ActionGroupType,  # (1)
    principals: Sequence[str],
    profilingGroupName: str,
    revisionId: str = ...,
) -> PutPermissionResponseTypeDef:  # (2)
    ...# put_permission method usage example with argument unpacking
kwargs: PutPermissionRequestTypeDef = {  # (1)
    "actionGroup": ...,
    "principals": ...,
    "profilingGroupName": ...,
}
parent.put_permission(**kwargs)remove_notification_channel#
Remove one anomaly notifications channel for a profiling group.
Type annotations and code completion for boto3.client("codeguruprofiler").remove_notification_channel method.
 boto3 documentation
# remove_notification_channel method definition
def remove_notification_channel(
    self,
    *,
    channelId: str,
    profilingGroupName: str,
) -> RemoveNotificationChannelResponseTypeDef:  # (1)
    ...# remove_notification_channel method usage example with argument unpacking
kwargs: RemoveNotificationChannelRequestTypeDef = {  # (1)
    "channelId": ...,
    "profilingGroupName": ...,
}
parent.remove_notification_channel(**kwargs)remove_permission#
Removes permissions from a profiling group's resource-based policy that are provided using an action group.
Type annotations and code completion for boto3.client("codeguruprofiler").remove_permission method.
 boto3 documentation
# remove_permission method definition
def remove_permission(
    self,
    *,
    actionGroup: ActionGroupType,  # (1)
    profilingGroupName: str,
    revisionId: str,
) -> RemovePermissionResponseTypeDef:  # (2)
    ...# remove_permission method usage example with argument unpacking
kwargs: RemovePermissionRequestTypeDef = {  # (1)
    "actionGroup": ...,
    "profilingGroupName": ...,
    "revisionId": ...,
}
parent.remove_permission(**kwargs)submit_feedback#
Sends feedback to CodeGuru Profiler about whether the anomaly detected by the analysis is useful or not.
Type annotations and code completion for boto3.client("codeguruprofiler").submit_feedback method.
 boto3 documentation
# submit_feedback method definition
def submit_feedback(
    self,
    *,
    anomalyInstanceId: str,
    profilingGroupName: str,
    type: FeedbackTypeType,  # (1)
    comment: str = ...,
) -> Dict[str, Any]:
    ...- See FeedbackTypeType
# submit_feedback method usage example with argument unpacking
kwargs: SubmitFeedbackRequestTypeDef = {  # (1)
    "anomalyInstanceId": ...,
    "profilingGroupName": ...,
    "type": ...,
}
parent.submit_feedback(**kwargs)tag_resource#
Use to assign one or more tags to a resource.
Type annotations and code completion for boto3.client("codeguruprofiler").tag_resource method.
 boto3 documentation
# tag_resource method definition
def tag_resource(
    self,
    *,
    resourceArn: str,
    tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tags": ...,
}
parent.tag_resource(**kwargs)untag_resource#
Use to remove one or more tags from a resource.
Type annotations and code completion for boto3.client("codeguruprofiler").untag_resource method.
 boto3 documentation
# untag_resource method definition
def untag_resource(
    self,
    *,
    resourceArn: str,
    tagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}
parent.untag_resource(**kwargs)update_profiling_group#
Updates a profiling group.
Type annotations and code completion for boto3.client("codeguruprofiler").update_profiling_group method.
 boto3 documentation
# update_profiling_group method definition
def update_profiling_group(
    self,
    *,
    agentOrchestrationConfig: AgentOrchestrationConfigTypeDef,  # (1)
    profilingGroupName: str,
) -> UpdateProfilingGroupResponseTypeDef:  # (2)
    ...# update_profiling_group method usage example with argument unpacking
kwargs: UpdateProfilingGroupRequestTypeDef = {  # (1)
    "agentOrchestrationConfig": ...,
    "profilingGroupName": ...,
}
parent.update_profiling_group(**kwargs)get_paginator#
Type annotations and code completion for boto3.client("codeguruprofiler").get_paginator method with overloads.
- client.get_paginator("list_profile_times")-> ListProfileTimesPaginator