AWS v7.10.0 published on Friday, Oct 24, 2025 by Pulumi
aws.ivs.getStreamKey
Data source for managing an AWS IVS (Interactive Video) Stream Key.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ivs.getStreamKey({
channelArn: "arn:aws:ivs:us-west-2:326937407773:channel/0Y1lcs4U7jk5",
});
import pulumi
import pulumi_aws as aws
example = aws.ivs.get_stream_key(channel_arn="arn:aws:ivs:us-west-2:326937407773:channel/0Y1lcs4U7jk5")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ivs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ivs.GetStreamKey(ctx, &ivs.GetStreamKeyArgs{
ChannelArn: "arn:aws:ivs:us-west-2:326937407773:channel/0Y1lcs4U7jk5",
}, 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.Ivs.GetStreamKey.Invoke(new()
{
ChannelArn = "arn:aws:ivs:us-west-2:326937407773:channel/0Y1lcs4U7jk5",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ivs.IvsFunctions;
import com.pulumi.aws.ivs.inputs.GetStreamKeyArgs;
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 = IvsFunctions.getStreamKey(GetStreamKeyArgs.builder()
.channelArn("arn:aws:ivs:us-west-2:326937407773:channel/0Y1lcs4U7jk5")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:ivs:getStreamKey
arguments:
channelArn: arn:aws:ivs:us-west-2:326937407773:channel/0Y1lcs4U7jk5
Using getStreamKey
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 getStreamKey(args: GetStreamKeyArgs, opts?: InvokeOptions): Promise<GetStreamKeyResult>
function getStreamKeyOutput(args: GetStreamKeyOutputArgs, opts?: InvokeOptions): Output<GetStreamKeyResult>def get_stream_key(channel_arn: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetStreamKeyResult
def get_stream_key_output(channel_arn: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStreamKeyResult]func GetStreamKey(ctx *Context, args *GetStreamKeyArgs, opts ...InvokeOption) (*GetStreamKeyResult, error)
func GetStreamKeyOutput(ctx *Context, args *GetStreamKeyOutputArgs, opts ...InvokeOption) GetStreamKeyResultOutput> Note: This function is named GetStreamKey in the Go SDK.
public static class GetStreamKey
{
public static Task<GetStreamKeyResult> InvokeAsync(GetStreamKeyArgs args, InvokeOptions? opts = null)
public static Output<GetStreamKeyResult> Invoke(GetStreamKeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStreamKeyResult> getStreamKey(GetStreamKeyArgs args, InvokeOptions options)
public static Output<GetStreamKeyResult> getStreamKey(GetStreamKeyArgs args, InvokeOptions options)
fn::invoke:
function: aws:ivs/getStreamKey:getStreamKey
arguments:
# arguments dictionaryThe following arguments are supported:
- Channel
Arn string - ARN of the Channel.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Channel
Arn string - ARN of the Channel.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Map of tags assigned to the resource.
- channel
Arn String - ARN of the Channel.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Map of tags assigned to the resource.
- channel
Arn string - ARN of the Channel.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Map of tags assigned to the resource.
- channel_
arn str - ARN of the Channel.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Map of tags assigned to the resource.
- channel
Arn String - ARN of the Channel.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Map of tags assigned to the resource.
getStreamKey Result
The following output properties are available:
- Arn string
- ARN of the Stream Key.
- Channel
Arn string - Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Value string
- Stream Key value.
- Arn string
- ARN of the Stream Key.
- Channel
Arn string - Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- map[string]string
- Map of tags assigned to the resource.
- Value string
- Stream Key value.
- arn String
- ARN of the Stream Key.
- channel
Arn String - id String
- The provider-assigned unique ID for this managed resource.
- region String
- Map<String,String>
- Map of tags assigned to the resource.
- value String
- Stream Key value.
- arn string
- ARN of the Stream Key.
- channel
Arn string - id string
- The provider-assigned unique ID for this managed resource.
- region string
- {[key: string]: string}
- Map of tags assigned to the resource.
- value string
- Stream Key value.
- arn str
- ARN of the Stream Key.
- channel_
arn str - id str
- The provider-assigned unique ID for this managed resource.
- region str
- Mapping[str, str]
- Map of tags assigned to the resource.
- value str
- Stream Key value.
- arn String
- ARN of the Stream Key.
- channel
Arn String - id String
- The provider-assigned unique ID for this managed resource.
- region String
- Map<String>
- Map of tags assigned to the resource.
- value String
- Stream Key value.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
