v2

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: AGPL-3.0 Imports: 70 Imported by: 0

Documentation

Index

Constants

View Source
const AwsRetryAttempts = 5
View Source
const AwsRetryMaxBackoffDelay = 1 * time.Second

Variables

This section is empty.

Functions

func DefaultAwsClientProviders added in v0.1.3

func DefaultAwsClientProviders(providers ...func(*config.LoadOptions) error) ([]func(options *config.LoadOptions) error, error)

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, providers ...func(*config.LoadOptions) error) (*Client, error)

func (*Client) ACM

func (c *Client) ACM() *acm.Client

ACM returns a client for AWS Certificate Manager

func (*Client) AccessAnalyzer

func (c *Client) AccessAnalyzer() *accessanalyzer.Client

AccessAnalyzer returns a client for AWS Access Analyzer

func (*Client) ApiGateway

func (c *Client) ApiGateway() *apigateway.Client

ApiGateway returns a client for AWS ApiGateway service

func (*Client) Athena

func (c *Client) Athena() *athena.Client

Athena returns a client for AWS Athena service

func (*Client) Autoscaling

func (c *Client) Autoscaling() *autoscaling.Client

Autoscaling returns a client for AWS Autoscaling service

func (*Client) Batch

func (c *Client) Batch() *batch.Client

Batch returns a client for AWS Batch service

func (*Client) CloudControl

func (c *Client) CloudControl() *cloudcontrol.Client

CloudControl returns a client for AWS CloudControl service

func (*Client) CloudTrail

func (c *Client) CloudTrail() *cloudtrail.Client

CloudTrail returns a client for AWS CloudTrail service

func (*Client) CloudWatch

func (c *Client) CloudWatch() *cloudwatch.Client

CloudWatch returns a client for AWS CloudWatch service

func (*Client) CloudWatchLogs

func (c *Client) CloudWatchLogs() *cloudwatchlogs.Client

CloudWatchLogs returns a client for AWS CloudWatchLogs service

func (*Client) Cloudformation

func (c *Client) Cloudformation() *cloudformation.Client

Cloudformation returns a client for AWS Cloudformation service

func (*Client) Costexplorer

func (c *Client) Costexplorer() *costexplorer.Client

func (*Client) DynamoDB

func (c *Client) DynamoDB() *dynamodb.Client

DynamoDB returns a client for AWS DynamoDB service

func (*Client) EC2

func (c *Client) EC2() *ec2.Client

EC2 returns a client for AWS EC2 service

func (*Client) ECS

func (c *Client) ECS() *ecs.Client

ECS returns a client for AWS ECS service

func (*Client) EFS

func (c *Client) EFS() *efs.Client

EFS returns a client for AWS EFS service

func (*Client) EKS

func (c *Client) EKS() *eks.Client

EKS returns a client for AWS EKS service

func (*Client) ELBv2

func (c *Client) ELBv2() *elasticloadbalancingv2.Client

Elasticloadbalancingv2 returns a client for AWS Elasticloadbalancingv2 service

func (*Client) EMR

func (c *Client) EMR() *emr.Client

EMR returns a client for AWS EMR service

func (*Client) EMRServerless

func (c *Client) EMRServerless() *emrserverless.Client

EMRServerless returns a client for AWS EMRServerless service

func (*Client) Elasticache

func (c *Client) Elasticache() *elasticache.Client

Elasticache returns a client for AWS Elasticache service

func (*Client) GetAccountID

func (c *Client) GetAccountID() types.AwsAccountID

func (*Client) GetCallerIdentity

func (c *Client) GetCallerIdentity(ctx context.Context) (*sts.GetCallerIdentityOutput, error)

func (*Client) GetRegion

func (c *Client) GetRegion() types.AwsRegion

func (*Client) Glue

func (c *Client) Glue() *glue.Client

Glue returns a client for AWS Glue service

func (*Client) Health

func (c *Client) Health() *health.Client

Health returns a client for AWS Health service

func (*Client) IAM

func (c *Client) IAM() *iam.Client

IAM returns a client for AWS IAM service

func (*Client) Lambda

func (c *Client) Lambda() *lambda.Client

Lambda returns a client for AWS Lambda service

func (*Client) Pricing

func (c *Client) Pricing() *pricing.Client

Pricing returns a client for AWS Pricing service

func (*Client) RDS

func (c *Client) RDS() *rds.Client

RDS returns a client for AWS RDS service

func (*Client) Route53

func (c *Client) Route53() *route53.Client

RDS returns a client for AWS RDS service

func (*Client) S3

func (c *Client) S3(optFns ...func(o *s3.Options)) *s3.Client

S3 returns a client for AWS S3 service

func (*Client) S3Control

func (c *Client) S3Control() *s3control.Client

S3Control returns a client for AWS S3Control service

func (*Client) S3Outposts

func (c *Client) S3Outposts() *s3outposts.Client

S3Outposts returns a client for AWS S3Outposts service

func (*Client) SES

func (c *Client) SES() *ses.Client

SES returns a client for AWS SES service

func (*Client) SNS

func (c *Client) SNS() *sns.Client

SNS returns a client for AWS SNS service

func (*Client) SQS

func (c *Client) SQS() *sqs.Client

SQS returns a client for AWS SQS service

func (*Client) SSM

func (c *Client) SSM() *ssm.Client

SSM returns a client for AWS SSM service

func (*Client) SWF

func (c *Client) SWF() *swf.Client

SWF returns a client for AWS SWF service

func (*Client) Savingsplans

func (c *Client) Savingsplans() *savingsplans.Client

Savingsplans returns a client for AWS SNS service

func (*Client) SecretsManager

func (c *Client) SecretsManager() *secretsmanager.Client

SecretsManager returns a client for AWS SecretsManager service

func (*Client) SecurityHub

func (c *Client) SecurityHub() *securityhub.Client

SecurityHub returns a client for AWS SecurityHub service

func (*Client) ServiceCatalog

func (c *Client) ServiceCatalog() *servicecatalog.Client

ServiceCatalog returns a client for AWS ServiceCatalog service

func (*Client) ServiceDiscovery

func (c *Client) ServiceDiscovery() *servicediscovery.Client

ServiceDiscovery returns a client for AWS ServiceDiscovery service

func (*Client) ServiceQuotas

func (c *Client) ServiceQuotas() *servicequotas.Client

ServiceQuotas returns a client for AWS ServiceQuotas service

func (*Client) Sfn

func (c *Client) Sfn() *sfn.Client

Sfn returns a client for AWS Sfn service

func (*Client) Shield

func (c *Client) Shield() *shield.Client

Shield returns a client for AWS Shield service

func (*Client) Signer

func (c *Client) Signer() *signer.Client

Signer returns a client for AWS Signer service

func (*Client) StorageGateway

func (c *Client) StorageGateway() *storagegateway.Client

StorageGateway returns a client for AWS StorageGateway service

func (*Client) Sts

func (c *Client) Sts() *sts.Client

Sts returns a client for AWS Security Token Service

func (*Client) Synthetics

func (c *Client) Synthetics() *synthetics.Client

Synthetics returns a client for AWS Synthetics service

func (*Client) TimestreamWrite

func (c *Client) TimestreamWrite() *timestreamwrite.Client

TimestreamWrite returns a client for AWS TimestreamWrite service

func (*Client) Transfer

func (c *Client) Transfer() *transfer.Client

Transfer returns a client for AWS Transfer service

func (*Client) WAF

func (c *Client) WAF() *waf.Client

WAF returns a client for AWS WAF service

func (*Client) WAFRegional

func (c *Client) WAFRegional() *wafregional.Client

WAFRegional returns a client for AWS WAFRegional service

func (*Client) WAFv2

func (c *Client) WAFv2() *wafv2.Client

WAFv2 returns a client for AWS WAFv2 service

type ClientBuilder

type ClientBuilder struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewClientBuilder

func NewClientBuilder(ctx context.Context, providers ...func(*config.LoadOptions) error) *ClientBuilder

func (*ClientBuilder) AssumeClient

func (c *ClientBuilder) AssumeClient(role iam.RoleArn, region types.AwsRegion) (*Client, error)

func (*ClientBuilder) DefaultClient

func (c *ClientBuilder) DefaultClient() (*Client, error)

func (*ClientBuilder) LocalClient

func (c *ClientBuilder) LocalClient(region types.AwsRegion) (*Client, error)

type ClientPool

type ClientPool struct {
	sync.Mutex
	// contains filtered or unexported fields
}

ClientPool is a concurrent map implementation to store multiple AWS clients.

func NewClientPool

func NewClientPool(ctx context.Context, clientBuilder *ClientBuilder) *ClientPool

NewClientPool creates an AWS client for each permutation of the given profiles and regions. If profiles, regions, or both are empty, credentials and regions are picked up via the usual default provider chain, respectively. For example, if regions are empty, the region is first looked for via the according region environment variable or second the default region for each profile is used from `~/.aws/config`.

func (*ClientPool) GetClient

func (p *ClientPool) GetClient(accountID types.AwsAccountID, region types.AwsRegion) (*Client, error)

func (*ClientPool) GetClients

func (p *ClientPool) GetClients(regions ...types.AwsRegion) ([]*Client, error)

func (*ClientPool) GetContext

func (p *ClientPool) GetContext() context.Context

func (*ClientPool) ListAccountIDs

func (p *ClientPool) ListAccountIDs() ([]types.AwsAccountID, error)

func (*ClientPool) ListAssumableRoleArns

func (p *ClientPool) ListAssumableRoleArns() ([]iam.RoleArn, error)

Jump to

Keyboard shortcuts

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