MCPcopy Index your code
hub / github.com/simstudioai/sim / updateEnvironment

Function updateEnvironment

apps/sim/app/api/tools/appconfig/utils.ts:547–570  ·  view source on GitHub ↗
(
  client: AppConfigClient,
  applicationId: string,
  environmentId: string,
  name?: string | null,
  description?: string | null
)

Source from the content-addressed store, hash-verified

545}
546
547export async function updateEnvironment(
548 client: AppConfigClient,
549 applicationId: string,
550 environmentId: string,
551 name?: string | null,
552 description?: string | null
553) {
554 const response = await client.send(
555 new UpdateEnvironmentCommand({
556 ApplicationId: applicationId,
557 EnvironmentId: environmentId,
558 ...(name ? { Name: name } : {}),
559 ...(description != null ? { Description: description } : {}),
560 })
561 )
562
563 return {
564 message: `Environment "${response.Name ?? environmentId}" updated`,
565 applicationId: response.ApplicationId ?? applicationId,
566 id: response.Id ?? '',
567 name: response.Name ?? '',
568 state: response.State ?? null,
569 }
570}
571
572export async function deleteEnvironment(
573 client: AppConfigClient,

Callers 1

route.tsFile · 0.90

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected