amazonka-ivs-2.0: Amazon Interactive Video Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IVS.CreateStreamKey

Description

Creates a stream key, used to initiate a stream, for the specified channel ARN.

Note that CreateChannel creates a stream key. If you subsequently use CreateStreamKey on the same channel, it will fail because a stream key already exists and there is a limit of 1 stream key per channel. To reset the stream key on a channel, use DeleteStreamKey and then CreateStreamKey.

Synopsis

Creating a Request

data CreateStreamKey Source #

See: newCreateStreamKey smart constructor.

Constructors

CreateStreamKey' 

Fields

  • tags :: Maybe (HashMap Text Text)

    Array of 1-50 maps, each of the form string:string (key:value). See Tagging Amazon Web Services Resources for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.

  • channelArn :: Text

    ARN of the channel for which to create the stream key.

Instances

Instances details
ToJSON CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

ToHeaders CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

ToPath CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

ToQuery CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

AWSRequest CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Associated Types

type AWSResponse CreateStreamKey #

Generic CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Associated Types

type Rep CreateStreamKey :: Type -> Type #

Read CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Show CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

NFData CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Methods

rnf :: CreateStreamKey -> () #

Eq CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Hashable CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

type AWSResponse CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

type Rep CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

type Rep CreateStreamKey = D1 ('MetaData "CreateStreamKey" "Amazonka.IVS.CreateStreamKey" "amazonka-ivs-2.0-1XuGgGDxNXQ7UL2Yr5LhmE" 'False) (C1 ('MetaCons "CreateStreamKey'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "channelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateStreamKey Source #

Create a value of CreateStreamKey with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateStreamKey, createStreamKey_tags - Array of 1-50 maps, each of the form string:string (key:value). See Tagging Amazon Web Services Resources for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.

CreateStreamKey, createStreamKey_channelArn - ARN of the channel for which to create the stream key.

Request Lenses

createStreamKey_tags :: Lens' CreateStreamKey (Maybe (HashMap Text Text)) Source #

Array of 1-50 maps, each of the form string:string (key:value). See Tagging Amazon Web Services Resources for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.

createStreamKey_channelArn :: Lens' CreateStreamKey Text Source #

ARN of the channel for which to create the stream key.

Destructuring the Response

data CreateStreamKeyResponse Source #

See: newCreateStreamKeyResponse smart constructor.

Constructors

CreateStreamKeyResponse' 

Fields

newCreateStreamKeyResponse Source #

Create a value of CreateStreamKeyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:streamKey:CreateStreamKeyResponse', createStreamKeyResponse_streamKey - Stream key used to authenticate an RTMPS stream for ingestion.

$sel:httpStatus:CreateStreamKeyResponse', createStreamKeyResponse_httpStatus - The response's http status code.

Response Lenses

createStreamKeyResponse_streamKey :: Lens' CreateStreamKeyResponse (Maybe StreamKey) Source #

Stream key used to authenticate an RTMPS stream for ingestion.