Documentation ¶
Index ¶
- type AWS
- func (a *AWS) NewAutoScaling() *autoscaling.Client
- func (a *AWS) NewDynamoDB() *dynamodb.Client
- func (a *AWS) NewEC2() *ec2.Client
- func (a *AWS) NewECS() *ecs.Client
- func (a *AWS) NewEKS() *eks.Client
- func (a *AWS) NewIAM() *iam.Client
- func (a *AWS) NewRDS() *rds.Client
- func (a *AWS) NewS3() *s3.Client
- func (a *AWS) NewSNS() *sns.Client
- func (a *AWS) NewSQS() *sqs.Client
- type AWSAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWS ¶
type AWS struct { Region string // contains filtered or unexported fields }
AWS implements the AWSAdapter interface and holds the configuration for AWS services.
func (*AWS) NewAutoScaling ¶
func (a *AWS) NewAutoScaling() *autoscaling.Client
NewAutoScaling creates a new Auto Scaling client.
Returns:
- *autoscaling.Client: A new Auto Scaling client.
func (*AWS) NewDynamoDB ¶
NewDynamoDB creates a new DynamoDB client.
Returns:
- *dynamodb.Client: A new DynamoDB client.
func (*AWS) NewEC2 ¶
NewEC2 creates a new Elastic Compute Cloud (EC2) client.
Returns:
- *ec2.Client: A new EC2 client.
func (*AWS) NewECS ¶
NewECS creates a new Elastic Container Service (ECS) client.
Returns:
- *ecs.Client: A new ECS client.
func (*AWS) NewEKS ¶
NewEKS creates a new Elastic Kubernetes Service (EKS) client.
Returns:
- *eks.Client: A new EKS client.
func (*AWS) NewIAM ¶
NewIAM creates a new Identity and Access Management (IAM) client.
Returns:
- *iam.Client: A new IAM client.
func (*AWS) NewRDS ¶
NewRDS creates a new Relational Database Service (RDS) client.
Returns:
- *rds.Client: A new RDS client.
func (*AWS) NewS3 ¶
NewS3 creates a new Simple Storage Service (S3) client.
Returns:
- *s3.Client: A new S3 client.
type AWSAdapter ¶
type AWSAdapter interface { // NewSNS creates a new Simple Notification Service (SNS) client. NewSNS() *sns.Client // NewSQS creates a new Simple Queue Service (SQS) client. NewSQS() *sqs.Client // NewS3 creates a new Simple Storage Service (S3) client. NewS3() *s3.Client // NewRDS creates a new Relational Database Service (RDS) client. NewRDS() *rds.Client // NewEC2 creates a new Elastic Compute Cloud (EC2) client. NewEC2() *ec2.Client // NewIAM creates a new Identity and Access Management (IAM) client. NewIAM() *iam.Client // NewDynamoDB creates a new DynamoDB client. NewDynamoDB() *dynamodb.Client // NewAutoScaling creates a new Auto Scaling client. NewAutoScaling() *autoscaling.Client // NewECS creates a new Elastic Container Service (ECS) client. NewECS() *ecs.Client // NewEKS creates a new Elastic Kubernetes Service (EKS) client. NewEKS() *eks.Client }
AWSAdapter defines an interface for creating various AWS service clients.
func NewAWS ¶
func NewAWS(region string) (AWSAdapter, error)
NewAWS creates a new instance of AWS with the specified region. It requires AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables to be set.
Parameters:
- region: The AWS region to use.
Returns:
- AWSAdapter: An interface for creating AWS service clients.
- error: An error if the AWS configuration could not be loaded.