Skip to content
GitHubXDiscord

ExecutionPlan

The ExecutionPlan resource allows you to create, update, and manage AWS KendraRanking ExecutionPlans. For more information, refer to the AWS KendraRanking ExecutionPlans documentation.

This example demonstrates how to create a basic ExecutionPlan with a name and a description.

import AWS from "alchemy/aws/control";
const basicExecutionPlan = await AWS.KendraRanking.ExecutionPlan("basicExecutionPlan", {
name: "BasicExecutionPlan",
description: "This is a basic execution plan for KendraRanking",
capacityUnits: {
queryCapacityUnits: 5,
documentCapacityUnits: 10
}
});

Here’s how to create an ExecutionPlan with tags and more detailed capacity configuration.

const advancedExecutionPlan = await AWS.KendraRanking.ExecutionPlan("advancedExecutionPlan", {
name: "AdvancedExecutionPlan",
description: "An advanced execution plan with detailed capacity and tags",
capacityUnits: {
queryCapacityUnits: 10,
documentCapacityUnits: 20
},
tags: [
{ key: "Environment", value: "Production" },
{ key: "Team", value: "DataScience" }
]
});

In this example, we demonstrate how to adopt an existing ExecutionPlan if it already exists.

const adoptedExecutionPlan = await AWS.KendraRanking.ExecutionPlan("adoptedExecutionPlan", {
name: "ExistingExecutionPlan",
description: "Adopting an existing execution plan.",
adopt: true
});

This example shows how to create an ExecutionPlan with custom capacity units for specialized needs.

const customCapacityExecutionPlan = await AWS.KendraRanking.ExecutionPlan("customCapacityExecutionPlan", {
name: "CustomCapacityExecutionPlan",
description: "Execution plan with custom capacity units for high-demand queries",
capacityUnits: {
queryCapacityUnits: 15,
documentCapacityUnits: 30
}
});