Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Provides details about a specific Amazon Connect Prompt.
Example Usage
By name
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.connect.getPrompt({
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
name: "Beep.wav",
});
import pulumi
import pulumi_aws as aws
example = aws.connect.get_prompt(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
name="Beep.wav")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/connect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connect.GetPrompt(ctx, &connect.GetPromptArgs{
InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name: "Beep.wav",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Connect.GetPrompt.Invoke(new()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name = "Beep.wav",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.inputs.GetPromptArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = ConnectFunctions.getPrompt(GetPromptArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.name("Beep.wav")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:connect:getPrompt
arguments:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
name: Beep.wav
Using getPrompt
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPrompt(args: GetPromptArgs, opts?: InvokeOptions): Promise<GetPromptResult>
function getPromptOutput(args: GetPromptOutputArgs, opts?: InvokeOptions): Output<GetPromptResult>def get_prompt(instance_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPromptResult
def get_prompt_output(instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPromptResult]func GetPrompt(ctx *Context, args *GetPromptArgs, opts ...InvokeOption) (*GetPromptResult, error)
func GetPromptOutput(ctx *Context, args *GetPromptOutputArgs, opts ...InvokeOption) GetPromptResultOutput> Note: This function is named GetPrompt in the Go SDK.
public static class GetPrompt
{
public static Task<GetPromptResult> InvokeAsync(GetPromptArgs args, InvokeOptions? opts = null)
public static Output<GetPromptResult> Invoke(GetPromptInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPromptResult> getPrompt(GetPromptArgs args, InvokeOptions options)
public static Output<GetPromptResult> getPrompt(GetPromptArgs args, InvokeOptions options)
fn::invoke:
function: aws:connect/getPrompt:getPrompt
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Name string
- Returns information on a specific Prompt by name
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Name string
- Returns information on a specific Prompt by name
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- instance
Id String - Reference to the hosting Amazon Connect Instance
- name String
- Returns information on a specific Prompt by name
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- instance
Id string - Reference to the hosting Amazon Connect Instance
- name string
- Returns information on a specific Prompt by name
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- instance_
id str - Reference to the hosting Amazon Connect Instance
- name str
- Returns information on a specific Prompt by name
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- instance
Id String - Reference to the hosting Amazon Connect Instance
- name String
- Returns information on a specific Prompt by name
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
getPrompt Result
The following output properties are available:
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
