diff --git a/internal/config/config.go b/internal/config/config.go index b3ed3ce..7d035c9 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -62,7 +62,7 @@ const ( AWSIAMIdPFlag = "aws-iam-idp" // AWSIAMRoleFlag cli flag const AWSIAMRoleFlag = "aws-iam-role" - // AWSRegion cli flag const + // AWSRegionFlag cli flag const AWSRegionFlag = "aws-region" // CustomScopeFlag cli flag const CustomScopeFlag = "custom-scope" @@ -557,15 +557,17 @@ func (c *Config) SetAWSIAMRole(role string) error { return nil } +// AWSRegion -- +func (c *Config) AWSRegion() string { + return c.awsRegion +} + +// SetAWSRegion -- func (c *Config) SetAWSRegion(region string) error { c.awsRegion = region return nil } -func (c *Config) AWSRegion() string { - return c.awsRegion -} - // AWSSessionDuration -- func (c *Config) AWSSessionDuration() int64 { return c.awsSessionDuration