client

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT-0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *resource.Resource

func NewWithOptions

func NewWithOptions(options *Options) *resource.Resource

Types

type Getter

type Getter struct {
	// contains filtered or unexported fields
}

func NewGetter

func NewGetter(cognitoClient *aws.CognitoUserPoolClient) *Getter

func (*Getter) Get

func (g *Getter) Get(name string, output printer.Output, o resource.Options) error

func (*Getter) GetAllAppClients

func (g *Getter) GetAllAppClients(userPoolID string) ([]*types.UserPoolClientType, error)

func (*Getter) GetAppClientByID

func (g *Getter) GetAppClientByID(appClientID, userPoolID string) (*types.UserPoolClientType, error)

func (*Getter) GetAppClientByName

func (g *Getter) GetAppClientByName(name, userPoolID string) (*types.UserPoolClientType, error)

func (*Getter) Init

func (g *Getter) Init()

type Manager

type Manager struct {
	DryRun bool
	// contains filtered or unexported fields
}

func (*Manager) Create

func (m *Manager) Create(o resource.Options) error

func (*Manager) Delete

func (m *Manager) Delete(o resource.Options) error

func (*Manager) Init

func (m *Manager) Init()

func (*Manager) SetDryRun

func (m *Manager) SetDryRun()

func (*Manager) Update

func (m *Manager) Update(_ resource.Options, _ *cobra.Command) error

type Options

type Options struct {
	resource.CommonOptions
	AppClientName string
	UserPoolID    string
	UserPoolName  string

	// Create
	CallbackUrls []string
	OAuthScopes  []string

	// Get
	AppClientID string
}

func NewOptions

func NewOptions() (options *Options, createFlags, deleteFlags, getFlags cmd.Flags)

func (*Options) SetName

func (o *Options) SetName(name string)

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

func NewPrinter

func NewPrinter(pools []*types.UserPoolClientType) *Printer

func (*Printer) PrintJSON

func (p *Printer) PrintJSON(writer io.Writer) error

func (*Printer) PrintTable

func (p *Printer) PrintTable(writer io.Writer) error

func (*Printer) PrintYAML

func (p *Printer) PrintYAML(writer io.Writer) error

Jump to

Keyboard shortcuts

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