Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.connect.getPrompt
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 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/v6/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,
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:
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Name string
- Returns information on a specific Prompt by name
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Name string
- Returns information on a specific Prompt by name
- instance
Id String - Reference to the hosting Amazon Connect Instance
- name String
- Returns information on a specific Prompt by name
- instance
Id 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
- instance
Id 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
- ARN of the Prompt.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Name string
- Prompt
Id string - Identifier for the prompt.
- Arn string
- ARN of the Prompt.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Name string
- Prompt
Id string - Identifier for the prompt.
- arn String
- ARN of the Prompt.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - name String
- prompt
Id String - Identifier for the prompt.
- arn string
- ARN of the Prompt.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - name string
- prompt
Id string - Identifier for the prompt.
- arn str
- ARN of the Prompt.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - name str
- prompt_
id str - Identifier for the prompt.
- arn String
- ARN of the Prompt.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - name String
- prompt
Id String - Identifier for the prompt.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi