1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. StreamKey
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.StreamKey

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleStreamKey = new cloudflare.StreamKey("example_stream_key", {accountId: "023e105f4ecef8ad9ca31a8372d0c353"});
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_stream_key = cloudflare.StreamKey("example_stream_key", account_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewStreamKey(ctx, "example_stream_key", &cloudflare.StreamKeyArgs{
    			AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleStreamKey = new Cloudflare.StreamKey("example_stream_key", new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.StreamKey;
    import com.pulumi.cloudflare.StreamKeyArgs;
    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) {
            var exampleStreamKey = new StreamKey("exampleStreamKey", StreamKeyArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    resources:
      exampleStreamKey:
        type: cloudflare:StreamKey
        name: example_stream_key
        properties:
          accountId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Create StreamKey Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StreamKey(name: string, args: StreamKeyArgs, opts?: CustomResourceOptions);
    @overload
    def StreamKey(resource_name: str,
                  args: StreamKeyArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def StreamKey(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  account_id: Optional[str] = None)
    func NewStreamKey(ctx *Context, name string, args StreamKeyArgs, opts ...ResourceOption) (*StreamKey, error)
    public StreamKey(string name, StreamKeyArgs args, CustomResourceOptions? opts = null)
    public StreamKey(String name, StreamKeyArgs args)
    public StreamKey(String name, StreamKeyArgs args, CustomResourceOptions options)
    
    type: cloudflare:StreamKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args StreamKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args StreamKeyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args StreamKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StreamKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StreamKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var streamKeyResource = new Cloudflare.StreamKey("streamKeyResource", new()
    {
        AccountId = "string",
    });
    
    example, err := cloudflare.NewStreamKey(ctx, "streamKeyResource", &cloudflare.StreamKeyArgs{
    	AccountId: pulumi.String("string"),
    })
    
    var streamKeyResource = new StreamKey("streamKeyResource", StreamKeyArgs.builder()
        .accountId("string")
        .build());
    
    stream_key_resource = cloudflare.StreamKey("streamKeyResource", account_id="string")
    
    const streamKeyResource = new cloudflare.StreamKey("streamKeyResource", {accountId: "string"});
    
    type: cloudflare:StreamKey
    properties:
        accountId: string
    

    StreamKey Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The StreamKey resource accepts the following input properties:

    AccountId string
    Identifier.
    AccountId string
    Identifier.
    accountId String
    Identifier.
    accountId string
    Identifier.
    account_id str
    Identifier.
    accountId String
    Identifier.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StreamKey resource produces the following output properties:

    Created string
    The date and time a signing key was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Jwk string
    The signing key in JWK format.
    Pem string
    The signing key in PEM format.
    Created string
    The date and time a signing key was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Jwk string
    The signing key in JWK format.
    Pem string
    The signing key in PEM format.
    created String
    The date and time a signing key was created.
    id String
    The provider-assigned unique ID for this managed resource.
    jwk String
    The signing key in JWK format.
    pem String
    The signing key in PEM format.
    created string
    The date and time a signing key was created.
    id string
    The provider-assigned unique ID for this managed resource.
    jwk string
    The signing key in JWK format.
    pem string
    The signing key in PEM format.
    created str
    The date and time a signing key was created.
    id str
    The provider-assigned unique ID for this managed resource.
    jwk str
    The signing key in JWK format.
    pem str
    The signing key in PEM format.
    created String
    The date and time a signing key was created.
    id String
    The provider-assigned unique ID for this managed resource.
    jwk String
    The signing key in JWK format.
    pem String
    The signing key in PEM format.

    Look up Existing StreamKey Resource

    Get an existing StreamKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: StreamKeyState, opts?: CustomResourceOptions): StreamKey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created: Optional[str] = None,
            jwk: Optional[str] = None,
            pem: Optional[str] = None) -> StreamKey
    func GetStreamKey(ctx *Context, name string, id IDInput, state *StreamKeyState, opts ...ResourceOption) (*StreamKey, error)
    public static StreamKey Get(string name, Input<string> id, StreamKeyState? state, CustomResourceOptions? opts = null)
    public static StreamKey get(String name, Output<String> id, StreamKeyState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:StreamKey    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    Identifier.
    Created string
    The date and time a signing key was created.
    Jwk string
    The signing key in JWK format.
    Pem string
    The signing key in PEM format.
    AccountId string
    Identifier.
    Created string
    The date and time a signing key was created.
    Jwk string
    The signing key in JWK format.
    Pem string
    The signing key in PEM format.
    accountId String
    Identifier.
    created String
    The date and time a signing key was created.
    jwk String
    The signing key in JWK format.
    pem String
    The signing key in PEM format.
    accountId string
    Identifier.
    created string
    The date and time a signing key was created.
    jwk string
    The signing key in JWK format.
    pem string
    The signing key in PEM format.
    account_id str
    Identifier.
    created str
    The date and time a signing key was created.
    jwk str
    The signing key in JWK format.
    pem str
    The signing key in PEM format.
    accountId String
    Identifier.
    created String
    The date and time a signing key was created.
    jwk String
    The signing key in JWK format.
    pem String
    The signing key in PEM format.

    Import

    $ pulumi import cloudflare:index/streamKey:StreamKey example '<account_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi