libZSservicesZSamazonka-ivsZSamazonka-ivs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Instances

Instances details
Eq CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Read CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Show CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Generic CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Associated Types

type Rep CreateStreamKey :: Type -> Type #

NFData CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Methods

rnf :: CreateStreamKey -> () #

Hashable CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

ToJSON CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

AWSRequest CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

Associated Types

type AWSResponse 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

type Rep CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

type Rep CreateStreamKey = D1 ('MetaData "CreateStreamKey" "Amazonka.IVS.CreateStreamKey" "libZSservicesZSamazonka-ivsZSamazonka-ivs" '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)))
type AWSResponse CreateStreamKey Source # 
Instance details

Defined in Amazonka.IVS.CreateStreamKey

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:

$sel:tags:CreateStreamKey', createStreamKey_tags - Array of 1-50 maps, each of the form string:string (key:value).

$sel:channelArn: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).

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.