Documentation ¶
Index ¶
- Constants
- func DefaultAwsClientProviders(providers ...func(*config.LoadOptions) error) ([]func(options *config.LoadOptions) error, error)
- type Client
- func (c *Client) ACM() *acm.Client
- func (c *Client) AccessAnalyzer() *accessanalyzer.Client
- func (c *Client) ApiGateway() *apigateway.Client
- func (c *Client) Athena() *athena.Client
- func (c *Client) Autoscaling() *autoscaling.Client
- func (c *Client) Batch() *batch.Client
- func (c *Client) CloudControl() *cloudcontrol.Client
- func (c *Client) CloudTrail() *cloudtrail.Client
- func (c *Client) CloudWatch() *cloudwatch.Client
- func (c *Client) CloudWatchLogs() *cloudwatchlogs.Client
- func (c *Client) Cloudformation() *cloudformation.Client
- func (c *Client) Costexplorer() *costexplorer.Client
- func (c *Client) DynamoDB() *dynamodb.Client
- func (c *Client) EC2() *ec2.Client
- func (c *Client) ECS() *ecs.Client
- func (c *Client) EFS() *efs.Client
- func (c *Client) EKS() *eks.Client
- func (c *Client) ELBv2() *elasticloadbalancingv2.Client
- func (c *Client) EMR() *emr.Client
- func (c *Client) EMRServerless() *emrserverless.Client
- func (c *Client) Elasticache() *elasticache.Client
- func (c *Client) GetAccountID() types.AwsAccountID
- func (c *Client) GetCallerIdentity(ctx context.Context) (*sts.GetCallerIdentityOutput, error)
- func (c *Client) GetRegion() types.AwsRegion
- func (c *Client) Glue() *glue.Client
- func (c *Client) Health() *health.Client
- func (c *Client) IAM() *iam.Client
- func (c *Client) Lambda() *lambda.Client
- func (c *Client) Pricing() *pricing.Client
- func (c *Client) RDS() *rds.Client
- func (c *Client) Route53() *route53.Client
- func (c *Client) S3(optFns ...func(o *s3.Options)) *s3.Client
- func (c *Client) S3Control() *s3control.Client
- func (c *Client) S3Outposts() *s3outposts.Client
- func (c *Client) SES() *ses.Client
- func (c *Client) SNS() *sns.Client
- func (c *Client) SQS() *sqs.Client
- func (c *Client) SSM() *ssm.Client
- func (c *Client) SWF() *swf.Client
- func (c *Client) Savingsplans() *savingsplans.Client
- func (c *Client) SecretsManager() *secretsmanager.Client
- func (c *Client) SecurityHub() *securityhub.Client
- func (c *Client) ServiceCatalog() *servicecatalog.Client
- func (c *Client) ServiceDiscovery() *servicediscovery.Client
- func (c *Client) ServiceQuotas() *servicequotas.Client
- func (c *Client) Sfn() *sfn.Client
- func (c *Client) Shield() *shield.Client
- func (c *Client) Signer() *signer.Client
- func (c *Client) StorageGateway() *storagegateway.Client
- func (c *Client) Sts() *sts.Client
- func (c *Client) Synthetics() *synthetics.Client
- func (c *Client) TimestreamWrite() *timestreamwrite.Client
- func (c *Client) Transfer() *transfer.Client
- func (c *Client) WAF() *waf.Client
- func (c *Client) WAFRegional() *wafregional.Client
- func (c *Client) WAFv2() *wafv2.Client
- type ClientBuilder
- type ClientPool
- func (p *ClientPool) GetClient(accountID types.AwsAccountID, region types.AwsRegion) (*Client, error)
- func (p *ClientPool) GetClients(regions ...types.AwsRegion) ([]*Client, error)
- func (p *ClientPool) GetContext() context.Context
- func (p *ClientPool) ListAccountIDs() ([]types.AwsAccountID, error)
- func (p *ClientPool) ListAssumableRoleArns() ([]iam.RoleArn, error)
Constants ¶
const AwsRetryAttempts = 5
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 (*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) Autoscaling ¶
func (c *Client) Autoscaling() *autoscaling.Client
Autoscaling returns a client for AWS Autoscaling 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) ELBv2 ¶
func (c *Client) ELBv2() *elasticloadbalancingv2.Client
Elasticloadbalancingv2 returns a client for AWS Elasticloadbalancingv2 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 (*Client) S3Outposts ¶
func (c *Client) S3Outposts() *s3outposts.Client
S3Outposts returns a client for AWS S3Outposts 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) StorageGateway ¶
func (c *Client) StorageGateway() *storagegateway.Client
StorageGateway returns a client for AWS StorageGateway 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) WAFRegional ¶
func (c *Client) WAFRegional() *wafregional.Client
WAFRegional returns a client for AWS WAFRegional service
type ClientBuilder ¶
func NewClientBuilder ¶
func NewClientBuilder(ctx context.Context, providers ...func(*config.LoadOptions) error) *ClientBuilder
func (*ClientBuilder) AssumeClient ¶
func (*ClientBuilder) DefaultClient ¶
func (c *ClientBuilder) DefaultClient() (*Client, error)
func (*ClientBuilder) LocalClient ¶
func (c *ClientBuilder) LocalClient(region types.AwsRegion) (*Client, error)
type ClientPool ¶
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)