Documentation ¶
Overview ¶
Package ivschat provides the API client, operations, and parameter types for Amazon Interactive Video Service Chat.
Introduction The Amazon IVS Chat control-plane API enables you to create and manage Amazon IVS Chat resources. You also need to integrate with the Amazon IVS Chat Messaging API (https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/chat-messaging-api.html), to enable users to interact with chat rooms in real time. The API is an AWS regional service. For a list of supported regions and Amazon IVS Chat HTTPS service endpoints, see the Amazon IVS Chat information on the Amazon IVS page (https://docs.aws.amazon.com/general/latest/gr/ivs.html) in the AWS General Reference. Notes on terminology:
* You create service applications using the Amazon IVS Chat API. We refer to these as applications.
* You create front-end client applications (browser and Android/iOS apps) using the Amazon IVS Chat Messaging API. We refer to these as clients.
Resources The following resources are part of Amazon IVS Chat:
* LoggingConfiguration — A configuration that allows customers to store and record sent messages in a chat room. See the Logging Configuration endpoints for more information.
* Room — The central Amazon IVS Chat resource through which clients connect to and exchange chat messages. See the Room endpoints for more information.
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 Chat 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 Chat API has these tag-related endpoints: TagResource, UntagResource, and ListTagsForResource. The following resource supports tagging: Room. At most 50 tags can be applied to a resource. API Access Security Your Amazon IVS Chat applications (service applications and clients) must be authenticated and authorized to access Amazon IVS Chat resources. Note the differences between these concepts:
* Authentication is about verifying identity. Requests to the Amazon IVS Chat API must be signed to verify your identity.
* Authorization is about granting permissions. Your IAM roles need to have permissions for Amazon IVS Chat API requests.
Users (viewers) connect to a room using secure access tokens that you create using the CreateChatToken endpoint through the AWS SDK. You call CreateChatToken for every user’s chat session, passing identity and authorization information about the user. Signing API Requests HTTP API requests must be signed with an AWS SigV4 signature using your AWS security credentials. The AWS Command Line Interface (CLI) and the AWS SDKs take care of signing the underlying API calls for you. However, if your application calls the Amazon IVS Chat HTTP API directly, it’s your responsibility to sign the requests. You generate a signature using valid AWS credentials for an IAM role that has permission to perform the requested action. For example, DeleteMessage requests must be made using an IAM role that has the ivschat:DeleteMessage permission. For more information:
* Authentication and generating signatures — See Authenticating Requests (Amazon Web Services Signature Version 4) (https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) in the Amazon Web Services General Reference.
* Managing Amazon IVS permissions — See Identity and Access Management (https://docs.aws.amazon.com/ivs/latest/userguide/security-iam.html) on the Security page of the Amazon IVS User Guide.
Amazon Resource Names (ARNs) ARNs uniquely identify AWS resources. An ARN is required when you need to specify a resource unambiguously across all of AWS, such as in IAM policies and API calls. For more information, see Amazon Resource Names (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the AWS General Reference. Messaging Endpoints
* DeleteMessage — Sends an event to a specific room which directs clients to delete a specific message; that is, unrender it from view and delete it from the client’s chat history. This event’s EventName is aws:DELETE_MESSAGE. This replicates the DeleteMessage (https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-deletemessage-publish.html) WebSocket operation in the Amazon IVS Chat Messaging API.
* DisconnectUser — Disconnects all connections using a specified user ID from a room. This replicates the DisconnectUser (https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-disconnectuser-publish.html) WebSocket operation in the Amazon IVS Chat Messaging API.
* SendEvent — Sends an event to a room. Use this within your application’s business logic to send events to clients of a room; e.g., to notify clients to change the way the chat UI is rendered.
Chat Token Endpoint ¶
* CreateChatToken — Creates an encrypted token that is used by a chat participant to establish an individual WebSocket chat connection to a room. When the token is used to connect to chat, the connection is valid for the session duration specified in the request. The token becomes invalid at the token-expiration timestamp included in the response.
Room Endpoints ¶
* CreateRoom — Creates a room that allows clients to connect and pass messages.
* DeleteRoom — Deletes the specified room.
* GetRoom — Gets the specified room.
* ListRooms — Gets summary information about all your rooms in the AWS region where the API request is processed.
* UpdateRoom — Updates a room’s configuration.
Logging Configuration Endpoints ¶
* CreateLoggingConfiguration — Creates a logging configuration that allows clients to store and record sent messages.
* DeleteLoggingConfiguration — Deletes the specified logging configuration.
* GetLoggingConfiguration — Gets the specified logging configuration.
* ListLoggingConfigurations — Gets summary information about all your logging configurations in the AWS region where the API request is processed.
* UpdateLoggingConfiguration — Updates a specified logging 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.
All the above are HTTP operations. There is a separate messaging API for managing Chat resources; see the Amazon IVS Chat Messaging API Reference (https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/chat-messaging-api.html).
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) CreateChatToken(ctx context.Context, params *CreateChatTokenInput, optFns ...func(*Options)) (*CreateChatTokenOutput, error)
- func (c *Client) CreateLoggingConfiguration(ctx context.Context, params *CreateLoggingConfigurationInput, ...) (*CreateLoggingConfigurationOutput, error)
- func (c *Client) CreateRoom(ctx context.Context, params *CreateRoomInput, optFns ...func(*Options)) (*CreateRoomOutput, error)
- func (c *Client) DeleteLoggingConfiguration(ctx context.Context, params *DeleteLoggingConfigurationInput, ...) (*DeleteLoggingConfigurationOutput, error)
- func (c *Client) DeleteMessage(ctx context.Context, params *DeleteMessageInput, optFns ...func(*Options)) (*DeleteMessageOutput, error)
- func (c *Client) DeleteRoom(ctx context.Context, params *DeleteRoomInput, optFns ...func(*Options)) (*DeleteRoomOutput, error)
- func (c *Client) DisconnectUser(ctx context.Context, params *DisconnectUserInput, optFns ...func(*Options)) (*DisconnectUserOutput, error)
- func (c *Client) GetLoggingConfiguration(ctx context.Context, params *GetLoggingConfigurationInput, ...) (*GetLoggingConfigurationOutput, error)
- func (c *Client) GetRoom(ctx context.Context, params *GetRoomInput, optFns ...func(*Options)) (*GetRoomOutput, error)
- func (c *Client) ListLoggingConfigurations(ctx context.Context, params *ListLoggingConfigurationsInput, ...) (*ListLoggingConfigurationsOutput, error)
- func (c *Client) ListRooms(ctx context.Context, params *ListRoomsInput, optFns ...func(*Options)) (*ListRoomsOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) SendEvent(ctx context.Context, params *SendEventInput, optFns ...func(*Options)) (*SendEventOutput, 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) UpdateLoggingConfiguration(ctx context.Context, params *UpdateLoggingConfigurationInput, ...) (*UpdateLoggingConfigurationOutput, error)
- func (c *Client) UpdateRoom(ctx context.Context, params *UpdateRoomInput, optFns ...func(*Options)) (*UpdateRoomOutput, error)
- type CreateChatTokenInput
- type CreateChatTokenOutput
- type CreateLoggingConfigurationInput
- type CreateLoggingConfigurationOutput
- type CreateRoomInput
- type CreateRoomOutput
- type DeleteLoggingConfigurationInput
- type DeleteLoggingConfigurationOutput
- type DeleteMessageInput
- type DeleteMessageOutput
- type DeleteRoomInput
- type DeleteRoomOutput
- type DisconnectUserInput
- type DisconnectUserOutput
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type GetLoggingConfigurationInput
- type GetLoggingConfigurationOutput
- type GetRoomInput
- type GetRoomOutput
- type HTTPClient
- type HTTPSignerV4
- type ListLoggingConfigurationsAPIClient
- type ListLoggingConfigurationsInput
- type ListLoggingConfigurationsOutput
- type ListLoggingConfigurationsPaginator
- type ListLoggingConfigurationsPaginatorOptions
- type ListRoomsAPIClient
- type ListRoomsInput
- type ListRoomsOutput
- type ListRoomsPaginator
- type ListRoomsPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type ResolveEndpoint
- type SendEventInput
- type SendEventOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateLoggingConfigurationInput
- type UpdateLoggingConfigurationOutput
- type UpdateRoomInput
- type UpdateRoomOutput
Constants ¶
const ServiceAPIVersion = "2020-07-14"
const ServiceID = "ivschat"
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 Chat.
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) CreateChatToken ¶
func (c *Client) CreateChatToken(ctx context.Context, params *CreateChatTokenInput, optFns ...func(*Options)) (*CreateChatTokenOutput, error)
Creates an encrypted token that is used by a chat participant to establish an individual WebSocket chat connection to a room. When the token is used to connect to chat, the connection is valid for the session duration specified in the request. The token becomes invalid at the token-expiration timestamp included in the response. Use the capabilities field to permit an end user to send messages or moderate a room. The attributes field securely attaches structured data to the chat session; the data is included within each message sent by the end user and received by other participants in the room. Common use cases for attributes include passing end-user profile data like an icon, display name, colors, badges, and other display features. Encryption keys are owned by Amazon IVS Chat and never used directly by your application.
func (*Client) CreateLoggingConfiguration ¶ added in v1.1.0
func (c *Client) CreateLoggingConfiguration(ctx context.Context, params *CreateLoggingConfigurationInput, optFns ...func(*Options)) (*CreateLoggingConfigurationOutput, error)
Creates a logging configuration that allows clients to store and record sent messages.
func (*Client) CreateRoom ¶
func (c *Client) CreateRoom(ctx context.Context, params *CreateRoomInput, optFns ...func(*Options)) (*CreateRoomOutput, error)
Creates a room that allows clients to connect and pass messages.
func (*Client) DeleteLoggingConfiguration ¶ added in v1.1.0
func (c *Client) DeleteLoggingConfiguration(ctx context.Context, params *DeleteLoggingConfigurationInput, optFns ...func(*Options)) (*DeleteLoggingConfigurationOutput, error)
Deletes the specified logging configuration.
func (*Client) DeleteMessage ¶
func (c *Client) DeleteMessage(ctx context.Context, params *DeleteMessageInput, optFns ...func(*Options)) (*DeleteMessageOutput, error)
Sends an event to a specific room which directs clients to delete a specific message; that is, unrender it from view and delete it from the client’s chat history. This event’s EventName is aws:DELETE_MESSAGE. This replicates the DeleteMessage (https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-deletemessage-publish.html) WebSocket operation in the Amazon IVS Chat Messaging API.
func (*Client) DeleteRoom ¶
func (c *Client) DeleteRoom(ctx context.Context, params *DeleteRoomInput, optFns ...func(*Options)) (*DeleteRoomOutput, error)
Deletes the specified room.
func (*Client) DisconnectUser ¶
func (c *Client) DisconnectUser(ctx context.Context, params *DisconnectUserInput, optFns ...func(*Options)) (*DisconnectUserOutput, error)
Disconnects all connections using a specified user ID from a room. This replicates the DisconnectUser (https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-disconnectuser-publish.html) WebSocket operation in the Amazon IVS Chat Messaging API.
func (*Client) GetLoggingConfiguration ¶ added in v1.1.0
func (c *Client) GetLoggingConfiguration(ctx context.Context, params *GetLoggingConfigurationInput, optFns ...func(*Options)) (*GetLoggingConfigurationOutput, error)
Gets the specified logging configuration.
func (*Client) GetRoom ¶
func (c *Client) GetRoom(ctx context.Context, params *GetRoomInput, optFns ...func(*Options)) (*GetRoomOutput, error)
Gets the specified room.
func (*Client) ListLoggingConfigurations ¶ added in v1.1.0
func (c *Client) ListLoggingConfigurations(ctx context.Context, params *ListLoggingConfigurationsInput, optFns ...func(*Options)) (*ListLoggingConfigurationsOutput, error)
Gets summary information about all your logging configurations in the AWS region where the API request is processed.
func (*Client) ListRooms ¶
func (c *Client) ListRooms(ctx context.Context, params *ListRoomsInput, optFns ...func(*Options)) (*ListRoomsOutput, error)
Gets summary information about all your rooms in the AWS region where the API request is processed. Results are sorted in descending order of updateTime.
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) SendEvent ¶
func (c *Client) SendEvent(ctx context.Context, params *SendEventInput, optFns ...func(*Options)) (*SendEventOutput, error)
Sends an event to a room. Use this within your application’s business logic to send events to clients of a room; e.g., to notify clients to change the way the chat UI is rendered.
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) UpdateLoggingConfiguration ¶ added in v1.1.0
func (c *Client) UpdateLoggingConfiguration(ctx context.Context, params *UpdateLoggingConfigurationInput, optFns ...func(*Options)) (*UpdateLoggingConfigurationOutput, error)
Updates a specified logging configuration.
func (*Client) UpdateRoom ¶
func (c *Client) UpdateRoom(ctx context.Context, params *UpdateRoomInput, optFns ...func(*Options)) (*UpdateRoomOutput, error)
Updates a room’s configuration.
type CreateChatTokenInput ¶
type CreateChatTokenInput struct { // Identifier of the room that the client is trying to access. Currently this must // be an ARN. // // This member is required. RoomIdentifier *string // Application-provided ID that uniquely identifies the user associated with this // token. This can be any UTF-8 encoded text. // // This member is required. UserId *string // Application-provided attributes to encode into the token and attach to a chat // session. Map keys and values can contain UTF-8 encoded text. The maximum length // of this field is 1 KB total. Attributes map[string]string // Set of capabilities that the user is allowed to perform in the room. Default: // None (the capability to view messages is implicitly included in all requests). Capabilities []types.ChatTokenCapability // Session duration (in minutes), after which the session expires. Default: 60 (1 // hour). SessionDurationInMinutes int32 // contains filtered or unexported fields }
type CreateChatTokenOutput ¶
type CreateChatTokenOutput struct { // Time after which an end user's session is no longer valid. This is an ISO 8601 // timestamp; note that this is returned as a string. SessionExpirationTime *time.Time // The issued client token, encrypted. Token *string // Time after which the token is no longer valid and cannot be used to connect to a // room. This is an ISO 8601 timestamp; note that this is returned as a string. TokenExpirationTime *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateLoggingConfigurationInput ¶ added in v1.1.0
type CreateLoggingConfigurationInput struct { // A complex type that contains a destination configuration for where chat content // will be logged. There can be only one type of destination (cloudWatchLogs, // firehose, or s3) in a destinationConfiguration. // // This member is required. DestinationConfiguration types.DestinationConfiguration // Logging-configuration name. The value does not need to be unique. Name *string // Tags to attach 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 Chat has no constraints on tags beyond what is // documented there. Tags map[string]string // contains filtered or unexported fields }
type CreateLoggingConfigurationOutput ¶ added in v1.1.0
type CreateLoggingConfigurationOutput struct { // Logging-configuration ARN, assigned by the system. Arn *string // Time when the logging configuration was created. This is an ISO 8601 timestamp; // note that this is returned as a string. CreateTime *time.Time // A complex type that contains a destination configuration for where chat content // will be logged, from the request. There is only one type of destination // (cloudWatchLogs, firehose, or s3) in a destinationConfiguration. DestinationConfiguration types.DestinationConfiguration // Logging-configuration ID, generated by the system. This is a relative // identifier, the part of the ARN that uniquely identifies the logging // configuration. Id *string // Logging-configuration name, from the request (if specified). Name *string // The state of the logging configuration. When the state is ACTIVE, the // configuration is ready to log chat content. State types.CreateLoggingConfigurationState // Tags attached to the resource, from the request (if specified). Array of maps, // each of the form string:string (key:value). Tags map[string]string // Time of the logging configuration’s last update. This is an ISO 8601 timestamp; // note that this is returned as a string. UpdateTime *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateRoomInput ¶
type CreateRoomInput struct { // Array of logging-configuration identifiers attached to the room. LoggingConfigurationIdentifiers []string // Maximum number of characters in a single message. Messages are expected to be // UTF-8 encoded and this limit applies specifically to rune/code-point count, not // number of bytes. Default: 500. MaximumMessageLength int32 // Maximum number of messages per second that can be sent to the room (by all // clients). Default: 10. MaximumMessageRatePerSecond int32 // Configuration information for optional review of messages. MessageReviewHandler *types.MessageReviewHandler // Room name. The value does not need to be unique. Name *string // Tags to attach 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 Chat has no constraints beyond what is documented // there. Tags map[string]string // contains filtered or unexported fields }
type CreateRoomOutput ¶
type CreateRoomOutput struct { // Room ARN, assigned by the system. Arn *string // Time when the room was created. This is an ISO 8601 timestamp; note that this is // returned as a string. CreateTime *time.Time // Room ID, generated by the system. This is a relative identifier, the part of the // ARN that uniquely identifies the room. Id *string // Array of logging configurations attached to the room, from the request (if // specified). LoggingConfigurationIdentifiers []string // Maximum number of characters in a single message, from the request (if // specified). MaximumMessageLength int32 // Maximum number of messages per second that can be sent to the room (by all // clients), from the request (if specified). MaximumMessageRatePerSecond int32 // Configuration information for optional review of messages. MessageReviewHandler *types.MessageReviewHandler // Room name, from the request (if specified). Name *string // Tags attached to the resource, from the request (if specified). Tags map[string]string // Time of the room’s last update. This is an ISO 8601 timestamp; note that this is // returned as a string. UpdateTime *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteLoggingConfigurationInput ¶ added in v1.1.0
type DeleteLoggingConfigurationInput struct { // Identifier of the logging configuration to be deleted. // // This member is required. Identifier *string // contains filtered or unexported fields }
type DeleteLoggingConfigurationOutput ¶ added in v1.1.0
type DeleteLoggingConfigurationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteMessageInput ¶
type DeleteMessageInput struct { // ID of the message to be deleted. This is the Id field in the received message // (see Message (Subscribe) // (https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-message-subscribe.html) // in the Chat Messaging API). // // This member is required. Id *string // Identifier of the room where the message should be deleted. Currently this must // be an ARN. // // This member is required. RoomIdentifier *string // Reason for deleting the message. Reason *string // contains filtered or unexported fields }
type DeleteMessageOutput ¶
type DeleteMessageOutput struct { // Operation identifier, generated by Amazon IVS Chat. Id *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteRoomInput ¶
type DeleteRoomInput struct { // Identifier of the room to be deleted. Currently this must be an ARN. // // This member is required. Identifier *string // contains filtered or unexported fields }
type DeleteRoomOutput ¶
type DeleteRoomOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DisconnectUserInput ¶
type DisconnectUserInput struct { // Identifier of the room from which the user's clients should be disconnected. // Currently this must be an ARN. // // This member is required. RoomIdentifier *string // ID of the user (connection) to disconnect from the room. // // This member is required. UserId *string // Reason for disconnecting the user. Reason *string // contains filtered or unexported fields }
type DisconnectUserOutput ¶
type DisconnectUserOutput 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 GetLoggingConfigurationInput ¶ added in v1.1.0
type GetLoggingConfigurationInput struct { // Identifier of the logging configuration to be retrieved. // // This member is required. Identifier *string // contains filtered or unexported fields }
type GetLoggingConfigurationOutput ¶ added in v1.1.0
type GetLoggingConfigurationOutput struct { // Logging-configuration ARN, from the request (if identifier was an ARN). Arn *string // Time when the logging configuration was created. This is an ISO 8601 timestamp; // note that this is returned as a string. CreateTime *time.Time // A complex type that contains a destination configuration for where chat content // will be logged. There is only one type of destination (cloudWatchLogs, firehose, // or s3) in a destinationConfiguration. DestinationConfiguration types.DestinationConfiguration // Logging-configuration ID, generated by the system. This is a relative // identifier, the part of the ARN that uniquely identifies the logging // configuration. Id *string // Logging-configuration name. This value does not need to be unique. Name *string // The state of the logging configuration. When the state is ACTIVE, the // configuration is ready to log chat content. State types.LoggingConfigurationState // Tags attached to the resource. Array of maps, each of the form string:string // (key:value). Tags map[string]string // Time of the logging configuration’s last update. This is an ISO 8601 timestamp; // note that this is returned as a string. UpdateTime *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetRoomInput ¶
type GetRoomInput struct { // Identifier of the room for which the configuration is to be retrieved. Currently // this must be an ARN. // // This member is required. Identifier *string // contains filtered or unexported fields }
type GetRoomOutput ¶
type GetRoomOutput struct { // Room ARN, from the request (if identifier was an ARN). Arn *string // Time when the room was created. This is an ISO 8601 timestamp; note that this is // returned as a string. CreateTime *time.Time // Room ID, generated by the system. This is a relative identifier, the part of the // ARN that uniquely identifies the room. Id *string // Array of logging configurations attached to the room. LoggingConfigurationIdentifiers []string // Maximum number of characters in a single message. Messages are expected to be // UTF-8 encoded and this limit applies specifically to rune/code-point count, not // number of bytes. Default: 500. MaximumMessageLength int32 // Maximum number of messages per second that can be sent to the room (by all // clients). Default: 10. MaximumMessageRatePerSecond int32 // Configuration information for optional review of messages. MessageReviewHandler *types.MessageReviewHandler // Room name. The value does not need to be unique. Name *string // Tags attached to the resource. Array of maps, each of the form string:string // (key:value). Tags map[string]string // Time of the room’s last update. This is an ISO 8601 timestamp; note that this is // returned as a string. UpdateTime *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type ListLoggingConfigurationsAPIClient ¶ added in v1.1.0
type ListLoggingConfigurationsAPIClient interface {
ListLoggingConfigurations(context.Context, *ListLoggingConfigurationsInput, ...func(*Options)) (*ListLoggingConfigurationsOutput, error)
}
ListLoggingConfigurationsAPIClient is a client that implements the ListLoggingConfigurations operation.
type ListLoggingConfigurationsInput ¶ added in v1.1.0
type ListLoggingConfigurationsInput struct { // Maximum number of logging configurations to return. Default: 50. MaxResults int32 // The first logging configurations to retrieve. This is used for pagination; see // the nextToken response field. NextToken *string // contains filtered or unexported fields }
type ListLoggingConfigurationsOutput ¶ added in v1.1.0
type ListLoggingConfigurationsOutput struct { // List of the matching logging configurations (summary information only). There is // only one type of destination (cloudWatchLogs, firehose, or s3) in a // destinationConfiguration. // // This member is required. LoggingConfigurations []types.LoggingConfigurationSummary // If there are more logging configurations 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 ListLoggingConfigurationsPaginator ¶ added in v1.1.0
type ListLoggingConfigurationsPaginator struct {
// contains filtered or unexported fields
}
ListLoggingConfigurationsPaginator is a paginator for ListLoggingConfigurations
func NewListLoggingConfigurationsPaginator ¶ added in v1.1.0
func NewListLoggingConfigurationsPaginator(client ListLoggingConfigurationsAPIClient, params *ListLoggingConfigurationsInput, optFns ...func(*ListLoggingConfigurationsPaginatorOptions)) *ListLoggingConfigurationsPaginator
NewListLoggingConfigurationsPaginator returns a new ListLoggingConfigurationsPaginator
func (*ListLoggingConfigurationsPaginator) HasMorePages ¶ added in v1.1.0
func (p *ListLoggingConfigurationsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListLoggingConfigurationsPaginator) NextPage ¶ added in v1.1.0
func (p *ListLoggingConfigurationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListLoggingConfigurationsOutput, error)
NextPage retrieves the next ListLoggingConfigurations page.
type ListLoggingConfigurationsPaginatorOptions ¶ added in v1.1.0
type ListLoggingConfigurationsPaginatorOptions struct { // Maximum number of logging configurations 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 }
ListLoggingConfigurationsPaginatorOptions is the paginator options for ListLoggingConfigurations
type ListRoomsAPIClient ¶
type ListRoomsAPIClient interface {
ListRooms(context.Context, *ListRoomsInput, ...func(*Options)) (*ListRoomsOutput, error)
}
ListRoomsAPIClient is a client that implements the ListRooms operation.
type ListRoomsInput ¶
type ListRoomsInput struct { // Logging-configuration identifier. LoggingConfigurationIdentifier *string // Maximum number of rooms to return. Default: 50. MaxResults int32 // Filters the list to match the specified message review handler URI. MessageReviewHandlerUri *string // Filters the list to match the specified room name. Name *string // The first room to retrieve. This is used for pagination; see the nextToken // response field. NextToken *string // contains filtered or unexported fields }
type ListRoomsOutput ¶
type ListRoomsOutput struct { // List of the matching rooms (summary information only). // // This member is required. Rooms []types.RoomSummary // 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 ListRoomsPaginator ¶
type ListRoomsPaginator struct {
// contains filtered or unexported fields
}
ListRoomsPaginator is a paginator for ListRooms
func NewListRoomsPaginator ¶
func NewListRoomsPaginator(client ListRoomsAPIClient, params *ListRoomsInput, optFns ...func(*ListRoomsPaginatorOptions)) *ListRoomsPaginator
NewListRoomsPaginator returns a new ListRoomsPaginator
func (*ListRoomsPaginator) HasMorePages ¶
func (p *ListRoomsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListRoomsPaginator) NextPage ¶
func (p *ListRoomsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRoomsOutput, error)
NextPage retrieves the next ListRooms page.
type ListRoomsPaginatorOptions ¶
type ListRoomsPaginatorOptions struct { // Maximum number of rooms 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 }
ListRoomsPaginatorOptions is the paginator options for ListRooms
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 SendEventInput ¶
type SendEventInput struct { // Application-defined name of the event to send to clients. // // This member is required. EventName *string // Identifier of the room to which the event will be sent. Currently this must be // an ARN. // // This member is required. RoomIdentifier *string // Application-defined metadata to attach to the event sent to clients. The maximum // length of the metadata is 1 KB total. Attributes map[string]string // contains filtered or unexported fields }
type SendEventOutput ¶
type SendEventOutput struct { // An identifier generated by Amazon IVS Chat. This identifier must be used in // subsequent operations for this message, such as DeleteMessage. Id *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 Chat 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 Chat 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 UpdateLoggingConfigurationInput ¶ added in v1.1.0
type UpdateLoggingConfigurationInput struct { // Identifier of the logging configuration to be updated. // // This member is required. Identifier *string // A complex type that contains a destination configuration for where chat content // will be logged. There can be only one type of destination (cloudWatchLogs, // firehose, or s3) in a destinationConfiguration. DestinationConfiguration types.DestinationConfiguration // Logging-configuration name. The value does not need to be unique. Name *string // contains filtered or unexported fields }
type UpdateLoggingConfigurationOutput ¶ added in v1.1.0
type UpdateLoggingConfigurationOutput struct { // Logging-configuration ARN, from the request (if identifier was an ARN). Arn *string // Time when the logging configuration was created. This is an ISO 8601 timestamp; // note that this is returned as a string. CreateTime *time.Time // A complex type that contains a destination configuration for where chat content // will be logged, from the request. There is only one type of destination // (cloudWatchLogs, firehose, or s3) in a destinationConfiguration. DestinationConfiguration types.DestinationConfiguration // Logging-configuration ID, generated by the system. This is a relative // identifier, the part of the ARN that uniquely identifies the room. Id *string // Logging-configuration name, from the request (if specified). Name *string // The state of the logging configuration. When the state is ACTIVE, the // configuration is ready to log chat content. State types.UpdateLoggingConfigurationState // Tags attached to the resource. Array of maps, each of the form string:string // (key:value). Tags map[string]string // Time of the logging configuration’s last update. This is an ISO 8601 timestamp; // note that this is returned as a string. UpdateTime *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateRoomInput ¶
type UpdateRoomInput struct { // Identifier of the room to be updated. Currently this must be an ARN. // // This member is required. Identifier *string // Array of logging-configuration identifiers attached to the room. LoggingConfigurationIdentifiers []string // The maximum number of characters in a single message. Messages are expected to // be UTF-8 encoded and this limit applies specifically to rune/code-point count, // not number of bytes. Default: 500. MaximumMessageLength int32 // Maximum number of messages per second that can be sent to the room (by all // clients). Default: 10. MaximumMessageRatePerSecond int32 // Configuration information for optional review of messages. Specify an empty uri // string to disassociate a message review handler from the specified room. MessageReviewHandler *types.MessageReviewHandler // Room name. The value does not need to be unique. Name *string // contains filtered or unexported fields }
type UpdateRoomOutput ¶
type UpdateRoomOutput struct { // Room ARN, from the request (if identifier was an ARN). Arn *string // Time when the room was created. This is an ISO 8601 timestamp; note that this is // returned as a string. CreateTime *time.Time // Room ID, generated by the system. This is a relative identifier, the part of the // ARN that uniquely identifies the room. Id *string // Array of logging configurations attached to the room, from the request (if // specified). LoggingConfigurationIdentifiers []string // Maximum number of characters in a single message, from the request (if // specified). MaximumMessageLength int32 // Maximum number of messages per second that can be sent to the room (by all // clients), from the request (if specified). MaximumMessageRatePerSecond int32 // Configuration information for optional review of messages. MessageReviewHandler *types.MessageReviewHandler // Room name, from the request (if specified). Name *string // Tags attached to the resource. Array of maps, each of the form string:string // (key:value). Tags map[string]string // Time of the room’s last update. This is an ISO 8601 timestamp; note that this is // returned as a string. UpdateTime *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_CreateChatToken.go
- api_op_CreateLoggingConfiguration.go
- api_op_CreateRoom.go
- api_op_DeleteLoggingConfiguration.go
- api_op_DeleteMessage.go
- api_op_DeleteRoom.go
- api_op_DisconnectUser.go
- api_op_GetLoggingConfiguration.go
- api_op_GetRoom.go
- api_op_ListLoggingConfigurations.go
- api_op_ListRooms.go
- api_op_ListTagsForResource.go
- api_op_SendEvent.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateLoggingConfiguration.go
- api_op_UpdateRoom.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- serializers.go
- validators.go