aws

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Services = []string{"ec2", "instance", "route53", "s3", "ecs", "eks", "lambda", "apigateway", "alb", "elb", "lightsail", "cloudfront"}

Functions

This section is empty.

Types

type Provider

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

Provider is a data provider for aws API

func New

func New(block schema.OptionBlock) (*Provider, error)

New creates a new provider client for aws API

func (*Provider) ID added in v1.0.0

func (p *Provider) ID() string

ID returns the name of the provider id

func (*Provider) Name

func (p *Provider) Name() string

Name returns the name of the provider

func (*Provider) Resources

func (p *Provider) Resources(ctx context.Context) (*schema.Resources, error)

func (*Provider) Services added in v1.0.9

func (p *Provider) Services() []string

Services returns the provider services

type ProviderOptions added in v1.0.9

type ProviderOptions struct {
	Id             string
	AccessKey      string
	SecretKey      string
	Token          string
	AssumeRoleName string
	AccountIds     []string
	Services       schema.ServiceMap
}

func (*ProviderOptions) ParseOptionBlock added in v1.0.9

func (p *ProviderOptions) ParseOptionBlock(block schema.OptionBlock) error

Jump to

Keyboard shortcuts

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