console

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceMap = map[string]string{
	"":               "console",
	"acm":            "acm",
	"aos":            "aos",
	"apigateway":     "apigateway",
	"apigw":          "apigateway",
	"appsync":        "appsync",
	"athena":         "athena",
	"bedrock":        "bedrock",
	"c9":             "cloud9",
	"ce":             "cost-management",
	"cf":             "cloudfront",
	"cfn":            "cloudformation",
	"cloudformation": "cloudformation",
	"cloudmap":       "cloudmap",
	"cloudwatch":     "cloudwatch",
	"codeartifact":   "codesuite/codeartifact",
	"codecommit":     "codesuite/codecommit",
	"codedeploy":     "codedeploy",
	"codepipeline":   "codepipeline",
	"codesuite":      "codesuite",
	"config":         "config",
	"ct":             "cloudtrail",
	"cw":             "cloudwatch",
	"ddb":            "dynamodbv2",
	"dms":            "dms/v2",
	"dx":             "directconnect/v2",
	"dynamodb":       "dynamodbv2",
	"eb":             "elasticbeanstalk",
	"ebs":            "elasticbeanstalk",
	"ec2":            "ec2/v2",
	"ecr":            "ecr",
	"ecs":            "ecs",
	"eks":            "eks",
	"eventbridge":    "events",
	"events":         "events",
	"gd":             "guardduty",
	"grafana":        "grafana",
	"iam":            "iamv2",
	"kms":            "kms",
	"l":              "lambda",
	"lambda":         "lambda",
	"mwaa":           "mwaa",
	"param":          "systems-manager/parameters",
	"r53":            "route53/v2",
	"ram":            "ram",
	"rds":            "rds",
	"redshift":       "redshiftv2",
	"route53":        "route53/v2",
	"s3":             "s3",
	"sagemaker":      "sagemaker",
	"scrh":           "securityhub",
	"scrm":           "secretsmanager",
	"secretsmanager": "secretsmanager",
	"securityhub":    "securityhub",
	"ses":            "ses",
	"sfn":            "states",
	"sm":             "secretsmanager",
	"sns":            "sns",
	"ssm":            "systems-manager",
	"sso":            "singlesignon",
	"states":         "states",
	"stepfn":         "states",
	"tra":            "trustedadvisor",
	"trustedadvisor": "trustedadvisor",
	"vpc":            "vpc",
	"waf":            "wafv2",
	"wafv2":          "wafv2/homev2",
}

ServiceMap maps CLI flags to AWS console URL paths. e.g. passing in `-s ec2` will open the console at the ec2/v2 URL.

Functions

func GetRegionPrefixFromRegion added in v0.13.0

func GetRegionPrefixFromRegion(region string) string

Types

type AWS

type AWS struct {
	Profile     string
	Region      string
	Service     string
	Destination string
}

func (AWS) URL

func (a AWS) URL(creds aws.Credentials) (string, error)

URL retrieves an authorised access URL for the AWS console. The URL includes a security token which is retrieved by exchanging AWS session credentials using the AWS federation endpoint.

see: https://docs.aws.amazon.com/IAM/latest/UserGuide/example_sts_Scenario_ConstructFederatedUrl_section.html

type PartitionHost

type PartitionHost int
const (
	Default PartitionHost = iota
	Gov
	Cn
	ISO
	ISOB
)

func GetPartitionFromRegion

func GetPartitionFromRegion(region string) PartitionHost

func (PartitionHost) ConsoleHostString

func (p PartitionHost) ConsoleHostString() string

func (PartitionHost) HostString

func (p PartitionHost) HostString() string

func (PartitionHost) RegionalConsoleHostString added in v0.13.0

func (p PartitionHost) RegionalConsoleHostString(region string) string

func (PartitionHost) RegionalHostString added in v0.13.0

func (p PartitionHost) RegionalHostString(region string) string

func (PartitionHost) String

func (p PartitionHost) String() string

Jump to

Keyboard shortcuts

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