aws

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 37 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type ARNComponents added in v1.3.0

type ARNComponents struct {
	Partition    string   // e.g., "aws"
	Service      string   // e.g., "s3", "ec2", "iam"
	Region       string   // e.g., "us-east-1"
	AccountID    string   // e.g., "123456789012"
	Resource     string   // e.g., "bucket/my-bucket" or "instance/i-1234567890abcdef0"
	ResourcePath []string // Resource split by "/" for hierarchical resources
}

func (*ARNComponents) GetResourceName added in v1.3.0

func (a *ARNComponents) GetResourceName() string

GetResourceName returns the last component of the resource path For example: "cluster/my-cluster" returns "my-cluster"

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

func (*Provider) Verify added in v1.2.2

func (p *Provider) Verify(ctx context.Context) error

Verify checks if the provider is valid using simple API calls

type ProviderOptions added in v1.0.9

type ProviderOptions struct {
	Id                    string
	AccessKey             string
	SecretKey             string
	Token                 string
	AssumeRoleArn         string
	AssumeRoleSessionName string
	ExternalId            string
	AssumeRoleName        string
	OrgDiscoveryRoleArn   string
	AccountIds            []string
	ExcludeAccountIds     []string
	Services              schema.ServiceMap
	ExtendedMetadata      bool
}

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