Returns the JSON-formatted resource-based policy on a profiling group.
Use a bare-bones client and the command you need to make an API call.
import { CodeGuruProfilerClient, GetPolicyCommand } from "@aws-sdk/client-codeguruprofiler"; // ES Modules import // const { CodeGuruProfilerClient, GetPolicyCommand } = require("@aws-sdk/client-codeguruprofiler"); // CommonJS import const client = new CodeGuruProfilerClient(config); const command = new GetPolicyCommand(input); const response = await client.send(command);
GetPolicyCommandInput for command's input shape.
input
GetPolicyCommandOutput for command's response shape.
response
config for CodeGuruProfilerClient's config shape.
config
Returns the JSON-formatted resource-based policy on a profiling group.
Use a bare-bones client and the command you need to make an API call.
import { CodeGuruProfilerClient, GetPolicyCommand } from "@aws-sdk/client-codeguruprofiler"; // ES Modules import // const { CodeGuruProfilerClient, GetPolicyCommand } = require("@aws-sdk/client-codeguruprofiler"); // CommonJS import const client = new CodeGuruProfilerClient(config); const command = new GetPolicyCommand(input); const response = await client.send(command);
GetPolicyCommandInput for command's
input
shape.GetPolicyCommandOutput for command's
response
shape.config for CodeGuruProfilerClient's
config
shape.