libZSservicesZSamazonka-kinesis-videoZSamazonka-kinesis-video
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.KinesisVideo.GetDataEndpoint

Description

Gets an endpoint for a specified stream for either reading or writing. Use this endpoint in your application to read from the specified stream (using the GetMedia or GetMediaForFragmentList operations) or write to it (using the PutMedia operation).

The returned endpoint does not have the API name appended. The client needs to add the API name to the returned endpoint.

In the request, specify the stream either by StreamName or StreamARN.

Synopsis

Creating a Request

data GetDataEndpoint Source #

See: newGetDataEndpoint smart constructor.

Constructors

GetDataEndpoint' 

Fields

  • streamARN :: Maybe Text

    The Amazon Resource Name (ARN) of the stream that you want to get the endpoint for. You must specify either this parameter or a StreamName in the request.

  • streamName :: Maybe Text

    The name of the stream that you want to get the endpoint for. You must specify either this parameter or a StreamARN in the request.

  • aPIName :: APIName

    The name of the API action for which to get an endpoint.

Instances

Instances details
Eq GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Read GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Show GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Generic GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Associated Types

type Rep GetDataEndpoint :: Type -> Type #

NFData GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Methods

rnf :: GetDataEndpoint -> () #

Hashable GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

ToJSON GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

AWSRequest GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Associated Types

type AWSResponse GetDataEndpoint #

ToHeaders GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

ToPath GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

ToQuery GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

type Rep GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

type Rep GetDataEndpoint = D1 ('MetaData "GetDataEndpoint" "Amazonka.KinesisVideo.GetDataEndpoint" "libZSservicesZSamazonka-kinesis-videoZSamazonka-kinesis-video" 'False) (C1 ('MetaCons "GetDataEndpoint'" 'PrefixI 'True) (S1 ('MetaSel ('Just "streamARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "aPIName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 APIName))))
type AWSResponse GetDataEndpoint Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

newGetDataEndpoint Source #

Create a value of GetDataEndpoint 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:streamARN:GetDataEndpoint', getDataEndpoint_streamARN - The Amazon Resource Name (ARN) of the stream that you want to get the endpoint for. You must specify either this parameter or a StreamName in the request.

$sel:streamName:GetDataEndpoint', getDataEndpoint_streamName - The name of the stream that you want to get the endpoint for. You must specify either this parameter or a StreamARN in the request.

$sel:aPIName:GetDataEndpoint', getDataEndpoint_aPIName - The name of the API action for which to get an endpoint.

Request Lenses

getDataEndpoint_streamARN :: Lens' GetDataEndpoint (Maybe Text) Source #

The Amazon Resource Name (ARN) of the stream that you want to get the endpoint for. You must specify either this parameter or a StreamName in the request.

getDataEndpoint_streamName :: Lens' GetDataEndpoint (Maybe Text) Source #

The name of the stream that you want to get the endpoint for. You must specify either this parameter or a StreamARN in the request.

getDataEndpoint_aPIName :: Lens' GetDataEndpoint APIName Source #

The name of the API action for which to get an endpoint.

Destructuring the Response

data GetDataEndpointResponse Source #

See: newGetDataEndpointResponse smart constructor.

Constructors

GetDataEndpointResponse' 

Fields

  • dataEndpoint :: Maybe Text

    The endpoint value. To read data from the stream or to write data to it, specify this endpoint in your application.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetDataEndpointResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Read GetDataEndpointResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Show GetDataEndpointResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Generic GetDataEndpointResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Associated Types

type Rep GetDataEndpointResponse :: Type -> Type #

NFData GetDataEndpointResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

Methods

rnf :: GetDataEndpointResponse -> () #

type Rep GetDataEndpointResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.GetDataEndpoint

type Rep GetDataEndpointResponse = D1 ('MetaData "GetDataEndpointResponse" "Amazonka.KinesisVideo.GetDataEndpoint" "libZSservicesZSamazonka-kinesis-videoZSamazonka-kinesis-video" 'False) (C1 ('MetaCons "GetDataEndpointResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetDataEndpointResponse Source #

Create a value of GetDataEndpointResponse 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:dataEndpoint:GetDataEndpointResponse', getDataEndpointResponse_dataEndpoint - The endpoint value. To read data from the stream or to write data to it, specify this endpoint in your application.

$sel:httpStatus:GetDataEndpointResponse', getDataEndpointResponse_httpStatus - The response's http status code.

Response Lenses

getDataEndpointResponse_dataEndpoint :: Lens' GetDataEndpointResponse (Maybe Text) Source #

The endpoint value. To read data from the stream or to write data to it, specify this endpoint in your application.