Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class CreateProfilingGroupCommandProtected

Creates a profiling group.

Example

Use a bare-bones client and the command you need to make an API call.

import { CodeGuruProfilerClient, CreateProfilingGroupCommand } from "@aws-sdk/client-codeguruprofiler"; // ES Modules import
// const { CodeGuruProfilerClient, CreateProfilingGroupCommand } = require("@aws-sdk/client-codeguruprofiler"); // CommonJS import
const client = new CodeGuruProfilerClient(config);
const input = { // CreateProfilingGroupRequest
profilingGroupName: "STRING_VALUE", // required
computePlatform: "STRING_VALUE",
clientToken: "STRING_VALUE", // required
agentOrchestrationConfig: { // AgentOrchestrationConfig
profilingEnabled: true || false, // required
},
tags: { // TagsMap
"<keys>": "STRING_VALUE",
},
};
const command = new CreateProfilingGroupCommand(input);
const response = await client.send(command);
// { // CreateProfilingGroupResponse
// profilingGroup: { // ProfilingGroupDescription
// name: "STRING_VALUE",
// agentOrchestrationConfig: { // AgentOrchestrationConfig
// profilingEnabled: true || false, // required
// },
// arn: "STRING_VALUE",
// createdAt: new Date("TIMESTAMP"),
// updatedAt: new Date("TIMESTAMP"),
// profilingStatus: { // ProfilingStatus
// latestAgentProfileReportedAt: new Date("TIMESTAMP"),
// latestAggregatedProfile: { // AggregatedProfileTime
// start: new Date("TIMESTAMP"),
// period: "STRING_VALUE",
// },
// latestAgentOrchestratedAt: new Date("TIMESTAMP"),
// },
// computePlatform: "STRING_VALUE",
// tags: { // TagsMap
// "<keys>": "STRING_VALUE",
// },
// },
// };

Param

CreateProfilingGroupCommandInput

Returns

CreateProfilingGroupCommandOutput

See

Throws

ConflictException (client fault)

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.

Throws

InternalServerException (server fault)

The server encountered an internal error and is unable to complete the request.

Throws

ServiceQuotaExceededException (client fault)

You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.

Throws

ThrottlingException (client fault)

The request was denied due to request throttling.

Throws

ValidationException (client fault)

The parameter is not valid.

Throws

CodeGuruProfilerServiceException

Base exception class for all service exceptions from CodeGuruProfiler service.

Hierarchy

Constructors

Properties

Methods