AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getPrompt

Provides details about a specific Amazon Connect Prompt.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Connect.GetPrompt.InvokeAsync(new Aws.Connect.GetPromptArgs
        {
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
            Name = "Beep.wav",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(ConnectFunctions.getPrompt(GetPromptArgs.builder()
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .name("Beep.wav")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.connect.get_prompt(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name="Beep.wav")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.connect.getPrompt({
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name: "Beep.wav",
}));
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,
               opts: Optional[InvokeOptions] = None) -> GetPromptResult
def get_prompt_output(instance_id: Optional[pulumi.Input[str]] = None,
               name: 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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:connect/getPrompt:getPrompt
  Arguments:
    # Arguments dictionary

The following arguments are supported:

InstanceId string

Reference to the hosting Amazon Connect Instance

Name string

Returns information on a specific Prompt by name

InstanceId string

Reference to the hosting Amazon Connect Instance

Name string

Returns information on a specific Prompt by name

instanceId String

Reference to the hosting Amazon Connect Instance

name String

Returns information on a specific Prompt by name

instanceId string

Reference to the hosting Amazon Connect Instance

name string

Returns information on a specific Prompt by name

instance_id str

Reference to the hosting Amazon Connect Instance

name str

Returns information on a specific Prompt by name

instanceId String

Reference to the hosting Amazon Connect Instance

name String

Returns information on a specific Prompt by name

getPrompt Result

The following output properties are available:

Arn string

The Amazon Resource Name (ARN) of the Prompt.

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string
Name string
PromptId string

The identifier for the prompt.

Arn string

The Amazon Resource Name (ARN) of the Prompt.

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string
Name string
PromptId string

The identifier for the prompt.

arn String

The Amazon Resource Name (ARN) of the Prompt.

id String

The provider-assigned unique ID for this managed resource.

instanceId String
name String
promptId String

The identifier for the prompt.

arn string

The Amazon Resource Name (ARN) of the Prompt.

id string

The provider-assigned unique ID for this managed resource.

instanceId string
name string
promptId string

The identifier for the prompt.

arn str

The Amazon Resource Name (ARN) of the Prompt.

id str

The provider-assigned unique ID for this managed resource.

instance_id str
name str
prompt_id str

The identifier for the prompt.

arn String

The Amazon Resource Name (ARN) of the Prompt.

id String

The provider-assigned unique ID for this managed resource.

instanceId String
name String
promptId String

The identifier for the prompt.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.