ivschat

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IvsChatCalls = []types.AWSService{
	{
		Name: "ivsChat:ListRooms",
		Call: func(ctx context.Context, sess *session.Session) (interface{}, error) {
			svc := ivschat.New(sess)
			input := &ivschat.ListRoomsInput{}
			return svc.ListRoomsWithContext(ctx, input)
		},
		Process: func(output interface{}, err error, debug bool) []types.ScanResult {
			var results []types.ScanResult

			if err != nil {
				utils.HandleAWSError(debug, "ivsChat:ListRooms", err)
				return []types.ScanResult{
					{
						ServiceName: "IVSChat",
						MethodName:  "ivsChat:ListRooms",
						Error:       err,
						Timestamp:   time.Now(),
					},
				}
			}

			if roomsOutput, ok := output.(*ivschat.ListRoomsOutput); ok {
				for _, room := range roomsOutput.Rooms {
					results = append(results, types.ScanResult{
						ServiceName:  "IVSChat",
						MethodName:   "ivsChat:ListRooms",
						ResourceType: "room",
						ResourceName: *room.Name,
						Details:      map[string]interface{}{},
						Timestamp:    time.Now(),
					})

					utils.PrintResult(debug, "", "ivsChat:ListRooms", fmt.Sprintf("Room: %s", *room.Name), nil)
				}
			}
			return results
		},
		ModuleName: types.DefaultModuleName,
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL