Documentation ¶
Overview ¶
Index ¶
- Constants
- func AdjustDuration(duration int64) int64
- func BuildSigninTokenRequestURL(tempCreds *TemporaryCredentials, labDuration string) (requestUrl string)
- func BuildSigninURL(signinToken string) (signinUrl string)
- func CreateSigninUrl(ctx context.Context, labDuration int64, labRoleArn string) (string, error)
- func CreateUserAcctAccessCfg(ctx context.Context, labRoleArn string) *aws.Config
- func RequestSigninToken(requestUrl string) (signinToken string, err error)
- type SigninToken
- type TemporaryCredentials
Constants ¶
View Source
const MAX_ACCESS_DURATION = 900 // Lambda functions should be able to do their job in min allowed time.
View Source
const MAX_SIGNIN_URL_DURATION = 3600
View Source
const MIN_SIGNIN_URL_DURATION = 901 // Will be reduced by one.
Signin URL duration in Seconds
View Source
const ORG_ACCT_SESSION = "OrgAcctAccess"
View Source
const REGION = "us-east-1"
View Source
const ( // SigninBaseURL is request endpoint SigninBaseURL string = "https://signin.aws.amazon.com/federation" )
Variables ¶
This section is empty.
Functions ¶
func BuildSigninTokenRequestURL ¶
func BuildSigninTokenRequestURL(tempCreds *TemporaryCredentials, labDuration string) (requestUrl string)
//////////////////
func CreateSigninUrl ¶
//////////////////
func CreateUserAcctAccessCfg ¶
/////////////////////
func RequestSigninToken ¶
//////////////////
Types ¶
type SigninToken ¶
type SigninToken struct {
Token string `json:"SigninToken"`
}
type TemporaryCredentials ¶
type TemporaryCredentials struct { SessionID string `json:"sessionId"` SessionKey string `json:"sessionKey"` SessionToken string `json:"sessionToken"` SessionExpires int64 `json:"sessionExpires"` }
func GetLabRoleTempCreds ¶
func GetLabRoleTempCreds(ctx context.Context, labDuration int64, labRoleArn, sessionName string) (*TemporaryCredentials, error)
//////////////////
Click to show internal directories.
Click to hide internal directories.