Skip to content

Create Profiling Group

codeguruprofiler_create_profiling_group R Documentation

Creates a profiling group

Description

Creates a profiling group.

Usage

codeguruprofiler_create_profiling_group(agentOrchestrationConfig,
  clientToken, computePlatform, profilingGroupName, tags)

Arguments

agentOrchestrationConfig

Specifies whether profiling is enabled or disabled for the created profiling group.

clientToken

[required] Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental creation of duplicate profiling groups if there are failures and retries.

computePlatform

The compute platform of the profiling group. Use AWSLambda if your application runs on AWS Lambda. Use Default if 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, Default is used.

profilingGroupName

[required] The name of the profiling group to create.

tags

A list of tags to add to the created profiling group.

Value

A list with the following syntax:

list(
  profilingGroup = list(
    agentOrchestrationConfig = list(
      profilingEnabled = TRUE|FALSE
    ),
    arn = "string",
    computePlatform = "Default"|"AWSLambda",
    createdAt = as.POSIXct(
      "2015-01-01"
    ),
    name = "string",
    profilingStatus = list(
      latestAgentOrchestratedAt = as.POSIXct(
        "2015-01-01"
      ),
      latestAgentProfileReportedAt = as.POSIXct(
        "2015-01-01"
      ),
      latestAggregatedProfile = list(
        period = "PT5M"|"PT1H"|"P1D",
        start = as.POSIXct(
          "2015-01-01"
        )
      )
    ),
    tags = list(
      "string"
    ),
    updatedAt = as.POSIXct(
      "2015-01-01"
    )
  )
)

Request syntax

svc$create_profiling_group(
  agentOrchestrationConfig = list(
    profilingEnabled = TRUE|FALSE
  ),
  clientToken = "string",
  computePlatform = "Default"|"AWSLambda",
  profilingGroupName = "string",
  tags = list(
    "string"
  )
)