Documentation ¶
Overview ¶
Package ivsrealtime provides the API client, operations, and parameter types for Amazon Interactive Video Service RealTime.
Introduction The Amazon Interactive Video Service (IVS) stage API is REST compatible, using a standard HTTP API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses, including errors. Terminology: The IVS stage API sometimes is referred to as the IVS RealTime API. Resources The following resources contain information about your IVS live stream (see Getting Started with Amazon IVS (https://docs.aws.amazon.com/ivs/latest/userguide/getting-started.html) ):
- Stage — A stage is a virtual space where multiple participants can exchange audio and video in real time.
Tagging A tag is a metadata label that you assign to an AWS resource. A tag comprises a key and a value, both set by you. For example, you might set a tag as topic:nature to label a particular video category. See Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS stages has no service-specific constraints beyond what is documented there. Tags can help you identify and organize your AWS resources. For example, you can use the same tag for different resources to indicate that they are related. You can also use tags to manage access (see Access Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html) ). The Amazon IVS stage API has these tag-related endpoints: TagResource , UntagResource , and ListTagsForResource . The following resource supports tagging: Stage. At most 50 tags can be applied to a resource. Stages Endpoints
- CreateParticipantToken — Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire.
- CreateStage — Creates a new stage (and optionally participant tokens).
- DeleteStage — Shuts down and deletes the specified stage (disconnecting all participants).
- DisconnectParticipant — Disconnects a specified participant and revokes the participant permanently from a specified stage.
- GetStage — Gets information for the specified stage.
- ListStages — Gets summary information about all stages in your account, in the AWS region where the API request is processed.
- UpdateStage — Updates a stage’s configuration.
Tags Endpoints
- ListTagsForResource — Gets information about AWS tags for the specified ARN.
- TagResource — Adds or updates tags for the AWS resource with the specified ARN.
- UntagResource — Removes tags from the resource with the specified ARN.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)
- type Client
- func (c *Client) CreateParticipantToken(ctx context.Context, params *CreateParticipantTokenInput, ...) (*CreateParticipantTokenOutput, error)
- func (c *Client) CreateStage(ctx context.Context, params *CreateStageInput, optFns ...func(*Options)) (*CreateStageOutput, error)
- func (c *Client) DeleteStage(ctx context.Context, params *DeleteStageInput, optFns ...func(*Options)) (*DeleteStageOutput, error)
- func (c *Client) DisconnectParticipant(ctx context.Context, params *DisconnectParticipantInput, ...) (*DisconnectParticipantOutput, error)
- func (c *Client) GetStage(ctx context.Context, params *GetStageInput, optFns ...func(*Options)) (*GetStageOutput, error)
- func (c *Client) ListStages(ctx context.Context, params *ListStagesInput, optFns ...func(*Options)) (*ListStagesOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateStage(ctx context.Context, params *UpdateStageInput, optFns ...func(*Options)) (*UpdateStageOutput, error)
- type CreateParticipantTokenInput
- type CreateParticipantTokenOutput
- type CreateStageInput
- type CreateStageOutput
- type DeleteStageInput
- type DeleteStageOutput
- type DisconnectParticipantInput
- type DisconnectParticipantOutput
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type GetStageInput
- type GetStageOutput
- type HTTPClient
- type HTTPSignerV4
- type ListStagesAPIClient
- type ListStagesInput
- type ListStagesOutput
- type ListStagesPaginator
- type ListStagesPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type ResolveEndpoint
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateStageInput
- type UpdateStageOutput
Constants ¶
const ServiceAPIVersion = "2020-07-14"
const ServiceID = "IVS RealTime"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver ¶
func WithEndpointResolver(v EndpointResolver) func(*Options)
WithEndpointResolver returns a functional option for setting the Client's EndpointResolver option.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Amazon Interactive Video Service RealTime.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CreateParticipantToken ¶
func (c *Client) CreateParticipantToken(ctx context.Context, params *CreateParticipantTokenInput, optFns ...func(*Options)) (*CreateParticipantTokenOutput, error)
Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire. Tokens always are scoped to the stage for which they are created. Encryption keys are owned by Amazon IVS and never used directly by your application.
func (*Client) CreateStage ¶
func (c *Client) CreateStage(ctx context.Context, params *CreateStageInput, optFns ...func(*Options)) (*CreateStageOutput, error)
Creates a new stage (and optionally participant tokens).
func (*Client) DeleteStage ¶
func (c *Client) DeleteStage(ctx context.Context, params *DeleteStageInput, optFns ...func(*Options)) (*DeleteStageOutput, error)
Shuts down and deletes the specified stage (disconnecting all participants).
func (*Client) DisconnectParticipant ¶
func (c *Client) DisconnectParticipant(ctx context.Context, params *DisconnectParticipantInput, optFns ...func(*Options)) (*DisconnectParticipantOutput, error)
Disconnects a specified participant and revokes the participant permanently from a specified stage.
func (*Client) GetStage ¶
func (c *Client) GetStage(ctx context.Context, params *GetStageInput, optFns ...func(*Options)) (*GetStageOutput, error)
Gets information for the specified stage.
func (*Client) ListStages ¶
func (c *Client) ListStages(ctx context.Context, params *ListStagesInput, optFns ...func(*Options)) (*ListStagesOutput, error)
Gets summary information about all stages in your account, in the AWS region where the API request is processed.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Gets information about AWS tags for the specified ARN.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds or updates tags for the AWS resource with the specified ARN.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes tags from the resource with the specified ARN.
func (*Client) UpdateStage ¶
func (c *Client) UpdateStage(ctx context.Context, params *UpdateStageInput, optFns ...func(*Options)) (*UpdateStageOutput, error)
Updates a stage’s configuration.
type CreateParticipantTokenInput ¶
type CreateParticipantTokenInput struct { // ARN of the stage to which this token is scoped. // // This member is required. StageArn *string // Application-provided attributes to encode into the token and attach to a stage. // Map keys and values can contain UTF-8 encoded text. The maximum length of this // field is 1 KB total. This field is exposed to all stage participants and should // not be used for personally identifying, confidential, or sensitive information. Attributes map[string]string // Set of capabilities that the user is allowed to perform in the stage. Default: // PUBLISH, SUBSCRIBE . Capabilities []types.ParticipantTokenCapability // Duration (in minutes), after which the token expires. Default: 60 (1 hour). Duration int32 // Name that can be specified to help identify the token. This can be any UTF-8 // encoded text. This field is exposed to all stage participants and should not be // used for personally identifying, confidential, or sensitive information. UserId *string // contains filtered or unexported fields }
type CreateParticipantTokenOutput ¶
type CreateParticipantTokenOutput struct { // The participant token that was created. ParticipantToken *types.ParticipantToken // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateStageInput ¶
type CreateStageInput struct { // Optional name that can be specified for the stage being created. Name *string // Array of participant token configuration objects to attach to the new stage. ParticipantTokenConfigurations []types.ParticipantTokenConfiguration // Tags attached to the resource. Array of maps, each of the form string:string // (key:value) . See Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) // for details, including restrictions that apply to tags and "Tag naming limits // and requirements"; Amazon IVS has no constraints on tags beyond what is // documented there. Tags map[string]string // contains filtered or unexported fields }
type CreateStageOutput ¶
type CreateStageOutput struct { // Participant tokens attached to the stage. These correspond to the participants // in the request. ParticipantTokens []types.ParticipantToken // The stage that was created. Stage *types.Stage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteStageInput ¶
type DeleteStageInput struct { // ARN of the stage to be deleted. // // This member is required. Arn *string // contains filtered or unexported fields }
type DeleteStageOutput ¶
type DeleteStageOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DisconnectParticipantInput ¶
type DisconnectParticipantInput struct { // Identifier of the participant to be disconnected. This is returned by // CreateParticipantToken . // // This member is required. ParticipantId *string // ARN of the stage to which the participant is attached. // // This member is required. StageArn *string // Description of why this participant is being disconnected. Reason *string // contains filtered or unexported fields }
type DisconnectParticipantOutput ¶
type DisconnectParticipantOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type GetStageInput ¶
type GetStageInput struct { // ARN of the stage for which the information is to be retrieved. // // This member is required. Arn *string // contains filtered or unexported fields }
type GetStageOutput ¶
type GetStageOutput struct { // Stage *types.Stage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type ListStagesAPIClient ¶
type ListStagesAPIClient interface {
ListStages(context.Context, *ListStagesInput, ...func(*Options)) (*ListStagesOutput, error)
}
ListStagesAPIClient is a client that implements the ListStages operation.
type ListStagesInput ¶
type ListStagesOutput ¶
type ListStagesOutput struct { // List of the matching stages (summary information only). // // This member is required. Stages []types.StageSummary // If there are more rooms than maxResults , use nextToken in the request to get // the next set. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListStagesPaginator ¶
type ListStagesPaginator struct {
// contains filtered or unexported fields
}
ListStagesPaginator is a paginator for ListStages
func NewListStagesPaginator ¶
func NewListStagesPaginator(client ListStagesAPIClient, params *ListStagesInput, optFns ...func(*ListStagesPaginatorOptions)) *ListStagesPaginator
NewListStagesPaginator returns a new ListStagesPaginator
func (*ListStagesPaginator) HasMorePages ¶
func (p *ListStagesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListStagesPaginator) NextPage ¶
func (p *ListStagesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListStagesOutput, error)
NextPage retrieves the next ListStages page.
type ListStagesPaginatorOptions ¶
type ListStagesPaginatorOptions struct { // Maximum number of results to return. Default: 50. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListStagesPaginatorOptions is the paginator options for ListStages
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The ARN of the resource to be retrieved. The ARN must be URL-encoded. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // Tags attached to the resource. Array of maps, each of the form string:string // (key:value) . // // This member is required. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. If specified in an operation call's functional // options with a value that is different than the constructed client's Options, // the Client's Retryer will be wrapped to use the operation's specific // RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. Currently does not support per operation call // overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // contains filtered or unexported fields }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type TagResourceInput ¶
type TagResourceInput struct { // The ARN of the resource to be tagged. The ARN must be URL-encoded. // // This member is required. ResourceArn *string // Array of tags to be added or updated. Array of maps, each of the form // string:string (key:value) . See Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) // for details, including restrictions that apply to tags and "Tag naming limits // and requirements"; Amazon IVS has no constraints beyond what is documented // there. // // This member is required. Tags map[string]string // contains filtered or unexported fields }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceInput struct { // The ARN of the resource to be untagged. The ARN must be URL-encoded. // // This member is required. ResourceArn *string // Array of tags to be removed. Array of maps, each of the form string:string // (key:value) . See Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) // for details, including restrictions that apply to tags and "Tag naming limits // and requirements"; Amazon IVS has no constraints beyond what is documented // there. // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateStageInput ¶
type UpdateStageOutput ¶
type UpdateStageOutput struct { // The updated stage. Stage *types.Stage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_CreateParticipantToken.go
- api_op_CreateStage.go
- api_op_DeleteStage.go
- api_op_DisconnectParticipant.go
- api_op_GetStage.go
- api_op_ListStages.go
- api_op_ListTagsForResource.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateStage.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- serializers.go
- validators.go