1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Object specifying a channel as a destination.
type ChannelDestinationConfiguration struct {
// ARN of the channel to use for broadcasting. The channel and stage resources
// must be in the same AWS account and region. The channel must be offline (not
// broadcasting).
//
// This member is required.
ChannelArn *string
// ARN of the EncoderConfiguration resource. The encoder configuration and stage
// resources must be in the same AWS account and region.
EncoderConfigurationArn *string
noSmithyDocumentSerde
}
// Object specifying a Composition resource.
type Composition struct {
// ARN of the Composition resource.
//
// This member is required.
Arn *string
// Array of Destination objects. A Composition can contain either one destination (
// channel or s3 ) or two (one channel and one s3 ).
//
// This member is required.
Destinations []Destination
// Layout object to configure composition parameters.
//
// This member is required.
Layout *LayoutConfiguration
// ARN of the stage used as input
//
// This member is required.
StageArn *string
// State of the Composition.
//
// This member is required.
State CompositionState
// UTC time of the Composition end. This is an ISO 8601 timestamp; note that this
// is returned as a string.
EndTime *time.Time
// UTC time of the Composition start. This is an ISO 8601 timestamp; note that
// this is returned as a string.
StartTime *time.Time
// 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
noSmithyDocumentSerde
}
// Summary information about a Composition.
type CompositionSummary struct {
// ARN of the Composition resource.
//
// This member is required.
Arn *string
// Array of Destination objects.
//
// This member is required.
Destinations []DestinationSummary
// ARN of the attached stage.
//
// This member is required.
StageArn *string
// State of the Composition resource.
//
// This member is required.
State CompositionState
// UTC time of the Composition end. This is an ISO 8601 timestamp; note that this
// is returned as a string.
EndTime *time.Time
// UTC time of the Composition start. This is an ISO 8601 timestamp; note that
// this is returned as a string.
StartTime *time.Time
// 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
noSmithyDocumentSerde
}
// Object specifying the status of a Destination.
type Destination struct {
// Configuration used to create this destination.
//
// This member is required.
Configuration *DestinationConfiguration
// Unique identifier for this destination, assigned by IVS.
//
// This member is required.
Id *string
// State of the Composition Destination.
//
// This member is required.
State DestinationState
// Optional details regarding the status of the destination.
Detail *DestinationDetail
// UTC time of the destination end. This is an ISO 8601 timestamp; note that this
// is returned as a string.
EndTime *time.Time
// UTC time of the destination start. This is an ISO 8601 timestamp; note that
// this is returned as a string.
StartTime *time.Time
noSmithyDocumentSerde
}
// Complex data type that defines destination-configuration objects.
type DestinationConfiguration struct {
// An IVS channel to be used for broadcasting, for server-side composition. Either
// a channel or an s3 must be specified.
Channel *ChannelDestinationConfiguration
// Name that can be specified to help identify the destination.
Name *string
// An S3 storage configuration to be used for recording video data. Either a
// channel or an s3 must be specified.
S3 *S3DestinationConfiguration
noSmithyDocumentSerde
}
// Complex data type that defines destination-detail objects.
type DestinationDetail struct {
// An S3 detail object to return information about the S3 destination.
S3 *S3Detail
noSmithyDocumentSerde
}
// Summary information about a Destination.
type DestinationSummary struct {
// Unique identifier for this destination, assigned by IVS.
//
// This member is required.
Id *string
// State of the Composition Destination.
//
// This member is required.
State DestinationState
// UTC time of the destination end. This is an ISO 8601 timestamp; note that this
// is returned as a string.
EndTime *time.Time
// UTC time of the destination start. This is an ISO 8601 timestamp; note that
// this is returned as a string.
StartTime *time.Time
noSmithyDocumentSerde
}
// Settings for transcoding.
type EncoderConfiguration struct {
// ARN of the EncoderConfiguration resource.
//
// This member is required.
Arn *string
// Optional name to identify the resource.
Name *string
// 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
// Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30
// fps
Video *Video
noSmithyDocumentSerde
}
// Summary information about an EncoderConfiguration.
type EncoderConfigurationSummary struct {
// ARN of the EncoderConfiguration resource.
//
// This member is required.
Arn *string
// Optional name to identify the resource.
Name *string
// 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
noSmithyDocumentSerde
}
// An occurrence during a stage session.
type Event struct {
// If the event is an error event, the error code is provided to give insight into
// the specific error that occurred. If the event is not an error event, this field
// is null. INSUFFICIENT_CAPABILITIES indicates that the participant tried to take
// an action that the participant’s token is not allowed to do. For more
// information about participant capabilities, see the capabilities field in
// CreateParticipantToken . QUOTA_EXCEEDED indicates that the number of
// participants who want to publish/subscribe to a stage exceeds the quota; for
// more information, see Service Quotas (https://docs.aws.amazon.com/ivs/latest/RealTimeUserGuide/service-quotas.html)
// . PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a
// publisher that doesn’t exist.
ErrorCode EventErrorCode
// ISO 8601 timestamp (returned as a string) for when the event occurred.
EventTime *time.Time
// The name of the event.
Name EventName
// Unique identifier for the participant who triggered the event. This is assigned
// by IVS.
ParticipantId *string
// Unique identifier for the remote participant. For a subscribe event, this is
// the publisher. For a publish or join event, this is null. This is assigned by
// IVS.
RemoteParticipantId *string
noSmithyDocumentSerde
}
// Configuration information specific to Grid layout, for server-side composition.
// See "Layouts" in Server-Side Composition (https://docs.aws.amazon.com/ivs/latest/RealTimeUserGuide/server-side-composition.html)
// .
type GridConfiguration struct {
// This attribute name identifies the featured slot. A participant with this
// attribute set to "true" (as a string value) in ParticipantTokenConfiguration is
// placed in the featured slot.
FeaturedParticipantAttribute *string
noSmithyDocumentSerde
}
// Configuration information of supported layouts for server-side composition.
type LayoutConfiguration struct {
// Configuration related to grid layout. Default: Grid layout.
Grid *GridConfiguration
noSmithyDocumentSerde
}
// Object describing a participant that has joined a stage.
type Participant struct {
// 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
// The participant’s browser.
BrowserName *string
// The participant’s browser version.
BrowserVersion *string
// ISO 8601 timestamp (returned as a string) when the participant first joined the
// stage session.
FirstJoinTime *time.Time
// The participant’s Internet Service Provider.
IspName *string
// The participant’s operating system.
OsName *string
// The participant’s operating system version.
OsVersion *string
// Unique identifier for this participant, assigned by IVS.
ParticipantId *string
// Whether the participant ever published to the stage session.
Published bool
// The participant’s SDK version.
SdkVersion *string
// Whether the participant is connected to or disconnected from the stage.
State ParticipantState
// Customer-assigned name to help identify the token; this can be used to link a
// participant to a user in the customer’s own systems. 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
noSmithyDocumentSerde
}
// Summary object describing a participant that has joined a stage.
type ParticipantSummary struct {
// ISO 8601 timestamp (returned as a string) when the participant first joined the
// stage session.
FirstJoinTime *time.Time
// Unique identifier for this participant, assigned by IVS.
ParticipantId *string
// Whether the participant ever published to the stage session.
Published bool
// Whether the participant is connected to or disconnected from the stage.
State ParticipantState
// Customer-assigned name to help identify the token; this can be used to link a
// participant to a user in the customer’s own systems. 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
noSmithyDocumentSerde
}
// Object specifying a participant token in a stage. Important: Treat tokens as
// opaque; i.e., do not build functionality based on token contents. The format of
// tokens could change in the future.
type ParticipantToken struct {
// Application-provided attributes to encode into the token and attach to a stage.
// 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.
Capabilities []ParticipantTokenCapability
// Duration (in minutes), after which the participant token expires. Default: 720
// (12 hours).
Duration *int32
// ISO 8601 timestamp (returned as a string) for when this token expires.
ExpirationTime *time.Time
// Unique identifier for this participant token, assigned by IVS.
ParticipantId *string
// The issued client token, encrypted.
Token *string
// Customer-assigned name to help identify the token; this can be used to link a
// participant to a user in the customer’s own systems. 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
noSmithyDocumentSerde
}
// Object specifying a participant token configuration in a stage.
type ParticipantTokenConfiguration struct {
// Application-provided attributes to encode into the corresponding participant
// 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.
Capabilities []ParticipantTokenCapability
// Duration (in minutes), after which the corresponding participant token expires.
// Default: 720 (12 hours).
Duration *int32
// Customer-assigned name to help identify the token; this can be used to link a
// participant to a user in the customer’s own systems. 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
noSmithyDocumentSerde
}
// An object representing a configuration to record a stage stream.
type RecordingConfiguration struct {
// The recording format for storing a recording in Amazon S3.
Format RecordingConfigurationFormat
noSmithyDocumentSerde
}
// A complex type that describes an S3 location where recorded videos will be
// stored.
type S3DestinationConfiguration struct {
// ARNs of the EncoderConfiguration resource. The encoder configuration and stage
// resources must be in the same AWS account and region.
//
// This member is required.
EncoderConfigurationArns []string
// ARN of the StorageConfiguration where recorded videos will be stored.
//
// This member is required.
StorageConfigurationArn *string
// Array of maps, each of the form string:string (key:value) . This is an optional
// customer specification, currently used only to specify the recording format for
// storing a recording in Amazon S3.
RecordingConfiguration *RecordingConfiguration
noSmithyDocumentSerde
}
// Complex data type that defines S3Detail objects.
type S3Detail struct {
// The S3 bucket prefix under which the recording is stored.
//
// This member is required.
RecordingPrefix *string
noSmithyDocumentSerde
}
// A complex type that describes an S3 location where recorded videos will be
// stored.
type S3StorageConfiguration struct {
// Location (S3 bucket name) where recorded videos will be stored. Note that the
// StorageConfiguration and S3 bucket must be in the same region as the
// Composition.
//
// This member is required.
BucketName *string
noSmithyDocumentSerde
}
// Object specifying a stage.
type Stage struct {
// Stage ARN.
//
// This member is required.
Arn *string
// ID of the active session within the stage.
ActiveSessionId *string
// Stage name.
Name *string
// 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
noSmithyDocumentSerde
}
// A stage session begins when the first participant joins a stage and ends after
// the last participant leaves the stage. A stage session helps with debugging
// stages by grouping events and participants into shorter periods of time (i.e., a
// session), which is helpful when stages are used over long periods of time.
type StageSession struct {
// ISO 8601 timestamp (returned as a string) when the stage session ended. This is
// null if the stage is active.
EndTime *time.Time
// ID of the session within the stage.
SessionId *string
// ISO 8601 timestamp (returned as a string) when this stage session began.
StartTime *time.Time
noSmithyDocumentSerde
}
// Summary information about a stage session.
type StageSessionSummary struct {
// ISO 8601 timestamp (returned as a string) when the stage session ended. This is
// null if the stage is active.
EndTime *time.Time
// ID of the session within the stage.
SessionId *string
// ISO 8601 timestamp (returned as a string) when this stage session began.
StartTime *time.Time
noSmithyDocumentSerde
}
// Summary information about a stage.
type StageSummary struct {
// Stage ARN.
//
// This member is required.
Arn *string
// ID of the active session within the stage.
ActiveSessionId *string
// Stage name.
Name *string
// 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
noSmithyDocumentSerde
}
// A complex type that describes a location where recorded videos will be stored.
type StorageConfiguration struct {
// ARN of the storage configuration.
//
// This member is required.
Arn *string
// Name of the storage configuration.
Name *string
// An S3 destination configuration where recorded videos will be stored.
S3 *S3StorageConfiguration
// 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
noSmithyDocumentSerde
}
// Summary information about a storage configuration.
type StorageConfigurationSummary struct {
// ARN of the storage configuration.
//
// This member is required.
Arn *string
// Name of the storage configuration.
Name *string
// An S3 destination configuration where recorded videos will be stored.
S3 *S3StorageConfiguration
// 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
noSmithyDocumentSerde
}
// Settings for video.
type Video struct {
// Bitrate for generated output, in bps. Default: 2500000.
Bitrate *int32
// Video frame rate, in fps. Default: 30.
Framerate *float32
// Video-resolution height. Note that the maximum value is determined by width
// times height , such that the maximum total pixels is 2073600 (1920x1080 or
// 1080x1920). Default: 720.
Height *int32
// Video-resolution width. Note that the maximum value is determined by width
// times height , such that the maximum total pixels is 2073600 (1920x1080 or
// 1080x1920). Default: 1280.
Width *int32
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
|