UpdateUsageProfileCommand

Update an Glue usage profile.

Example Syntax

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

import { GlueClient, UpdateUsageProfileCommand } from "@aws-sdk/client-glue"; // ES Modules import
// const { GlueClient, UpdateUsageProfileCommand } = require("@aws-sdk/client-glue"); // CommonJS import
const client = new GlueClient(config);
const input = { // UpdateUsageProfileRequest
  Name: "STRING_VALUE", // required
  Description: "STRING_VALUE",
  Configuration: { // ProfileConfiguration
    SessionConfiguration: { // ConfigurationMap
      "<keys>": { // ConfigurationObject
        DefaultValue: "STRING_VALUE",
        AllowedValues: [ // AllowedValuesStringList
          "STRING_VALUE",
        ],
        MinValue: "STRING_VALUE",
        MaxValue: "STRING_VALUE",
      },
    },
    JobConfiguration: {
      "<keys>": {
        DefaultValue: "STRING_VALUE",
        AllowedValues: [
          "STRING_VALUE",
        ],
        MinValue: "STRING_VALUE",
        MaxValue: "STRING_VALUE",
      },
    },
  },
};
const command = new UpdateUsageProfileCommand(input);
const response = await client.send(command);
// { // UpdateUsageProfileResponse
//   Name: "STRING_VALUE",
// };

UpdateUsageProfileCommand Input

See UpdateUsageProfileCommandInput for more details

Parameter
Type
Description
Configuration
Required
ProfileConfiguration | undefined

A ProfileConfiguration object specifying the job and session values for the profile.

Name
Required
string | undefined

The name of the usage profile.

Description
string | undefined

A description of the usage profile.

UpdateUsageProfileCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
Name
string | undefined

The name of the usage profile that was updated.

Throws

Name
Fault
Details
ConcurrentModificationException
client

Two processes are trying to modify a resource simultaneously.

EntityNotFoundException
client

A specified entity does not exist

InternalServiceException
server

An internal service error occurred.

InvalidInputException
client

The input provided was not valid.

OperationNotSupportedException
client

The operation is not available in the region.

OperationTimeoutException
client

The operation timed out.

GlueServiceException
Base exception class for all service exceptions from Glue service.