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"}
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
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
AccountIds []string
Services schema.ServiceMap
ExtendedMetadata bool
}
func (*ProviderOptions) ParseOptionBlock ¶ added in v1.0.9
func (p *ProviderOptions) ParseOptionBlock(block schema.OptionBlock) error
Click to show internal directories.
Click to hide internal directories.