aws

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDefaultConfig

func BuildDefaultConfig(ctx context.Context, region string) (aws.Config, error)

BuildDefaultConfig creates an aws.Config using only the default credential chain and a region. Used by SQS sender/receiver when no explicit `client "aws"` block is referenced.

Types

type AWSClient

type AWSClient struct {
	cfg.BaseClient
	// contains filtered or unexported fields
}

AWSClient is the runtime representation of a `client "aws"` block.

func (*AWSClient) Config

func (c *AWSClient) Config() aws.Config

func (*AWSClient) CtyValue

func (c *AWSClient) CtyValue() cty.Value

CtyValue exposes the AWS client as a plain client capsule so child clients can extract it via type assertion to AWSConnector.

type AWSConfigDefinition

type AWSConfigDefinition struct {
	Region          string         `hcl:"region"`
	AccessKeyID     hcl.Expression `hcl:"access_key_id,optional"`
	SecretAccessKey hcl.Expression `hcl:"secret_access_key,optional"`
	SessionToken    hcl.Expression `hcl:"session_token,optional"`
	RoleARN         string         `hcl:"role_arn,optional"`
	ExternalID      string         `hcl:"external_id,optional"`
	Endpoint        hcl.Expression `hcl:"endpoint,optional"`
	Profile         string         `hcl:"profile,optional"`
	DefRange        hcl.Range      `hcl:",def_range"`
}

AWSConfigDefinition is the HCL schema for `client "aws" "<name>"`.

type AWSConnector

type AWSConnector interface {
	cfg.Client
	Config() aws.Config
}

AWSConnector is the interface child clients use to obtain the shared aws.Config from the base block.

Jump to

Keyboard shortcuts

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