Dagger
Search

aws-oidc-auth

No long description provided.

Installation

dagger install github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75

Entrypoint

Return Type
AwsOidcAuth
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
func (m *myModule) example() *AwsOidcAuth  {
	return dag.
			AwsOidcAuth()
}
@function
def example() -> dag.AwsOidcAuth:
	return (
		dag.aws_oidc_auth()
	)
@func()
example(): AwsOidcAuth {
	return dag
		.awsOidcAuth()
}

Types

AwsOidcAuth 🔗

loginOidc() 🔗

Return Type
AwsOidcAuthAwsSecrets !
Arguments
NameTypeDefault ValueDescription
tokenString !-OIDC token
roleArnString !-AWS IAM Role to assume
durationSecInteger -Session duration in seconds (min 900s/15min) +default 900
regionString -Default region +default "us-east-1"
sessionNameString -Session name (will appear in logs and billing)
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-oidc --token string --role-arn string
func (m *myModule) example(token string, roleArn string) *AwsOidcAuthAwsSecrets  {
	return dag.
			AwsOidcAuth().
			LoginOidc(token, roleArn)
}
@function
def example(token: str, role_arn: str) -> dag.AwsOidcAuthAwsSecrets:
	return (
		dag.aws_oidc_auth()
		.login_oidc(token, role_arn)
	)
@func()
example(token: string, roleArn: string): AwsOidcAuthAwsSecrets {
	return dag
		.awsOidcAuth()
		.loginOidc(token, roleArn)
}

loginSession() 🔗

Return Type
AwsOidcAuthAwsSecrets !
Arguments
NameTypeDefault ValueDescription
keyIdString !-AWS_ACCESS_KEY_ID
keyString !-AWS_SECRET_ACCESS_KEY
tokenString !-AWS_SESSION_TOKEN
regionString -AWS_DEFAULT_REGION +default "us-east-1"
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string
func (m *myModule) example(keyId string, key string, token string) *AwsOidcAuthAwsSecrets  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token)
}
@function
def example(key_id: str, key: str, token: str) -> dag.AwsOidcAuthAwsSecrets:
	return (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
	)
@func()
example(keyId: string, key: string, token: string): AwsOidcAuthAwsSecrets {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
}

AwsOidcAuthAwsSecrets 🔗

durationSec() 🔗

Return Type
Integer !
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string \
 duration-sec
func (m *myModule) example(ctx context.Context, keyId string, key string, token string) int  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token).
			DurationSec(ctx)
}
@function
async def example(key_id: str, key: str, token: str) -> int:
	return await (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
		.duration_sec()
	)
@func()
async example(keyId: string, key: string, token: string): Promise<number> {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
		.durationSec()
}

fromTsUtc() 🔗

Return Type
Integer !
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string \
 from-ts-utc
func (m *myModule) example(ctx context.Context, keyId string, key string, token string) int  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token).
			FromTsUtc(ctx)
}
@function
async def example(key_id: str, key: str, token: str) -> int:
	return await (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
		.from_ts_utc()
	)
@func()
async example(keyId: string, key: string, token: string): Promise<number> {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
		.fromTsUtc()
}

untilTsUtc() 🔗

Return Type
Integer !
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string \
 until-ts-utc
func (m *myModule) example(ctx context.Context, keyId string, key string, token string) int  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token).
			UntilTsUtc(ctx)
}
@function
async def example(key_id: str, key: str, token: str) -> int:
	return await (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
		.until_ts_utc()
	)
@func()
async example(keyId: string, key: string, token: string): Promise<number> {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
		.untilTsUtc()
}

defaultRegion() 🔗

Return Type
String !
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string \
 default-region
func (m *myModule) example(ctx context.Context, keyId string, key string, token string) string  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token).
			DefaultRegion(ctx)
}
@function
async def example(key_id: str, key: str, token: str) -> str:
	return await (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
		.default_region()
	)
@func()
async example(keyId: string, key: string, token: string): Promise<string> {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
		.defaultRegion()
}

oidctoken() 🔗

Return Type
String !
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string \
 oidctoken
func (m *myModule) example(ctx context.Context, keyId string, key string, token string) string  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token).
			Oidctoken(ctx)
}
@function
async def example(key_id: str, key: str, token: str) -> str:
	return await (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
		.oidctoken()
	)
@func()
async example(keyId: string, key: string, token: string): Promise<string> {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
		.oidctoken()
}

accessKeyId() 🔗

Return Type
String !
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string \
 access-key-id
func (m *myModule) example(ctx context.Context, keyId string, key string, token string) string  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token).
			AccessKeyId(ctx)
}
@function
async def example(key_id: str, key: str, token: str) -> str:
	return await (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
		.access_key_id()
	)
@func()
async example(keyId: string, key: string, token: string): Promise<string> {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
		.accessKeyId()
}

secretAccessKey() 🔗

Return Type
String !
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string \
 secret-access-key
func (m *myModule) example(ctx context.Context, keyId string, key string, token string) string  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token).
			SecretAccessKey(ctx)
}
@function
async def example(key_id: str, key: str, token: str) -> str:
	return await (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
		.secret_access_key()
	)
@func()
async example(keyId: string, key: string, token: string): Promise<string> {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
		.secretAccessKey()
}

sessionToken() 🔗

Return Type
String !
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string \
 session-token
func (m *myModule) example(ctx context.Context, keyId string, key string, token string) string  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token).
			SessionToken(ctx)
}
@function
async def example(key_id: str, key: str, token: str) -> str:
	return await (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
		.session_token()
	)
@func()
async example(keyId: string, key: string, token: string): Promise<string> {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
		.sessionToken()
}

ecrsecret() 🔗

Return Type
String !
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string \
 ecrsecret
func (m *myModule) example(ctx context.Context, keyId string, key string, token string) string  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token).
			Ecrsecret(ctx)
}
@function
async def example(key_id: str, key: str, token: str) -> str:
	return await (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
		.ecrsecret()
	)
@func()
async example(keyId: string, key: string, token: string): Promise<string> {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
		.ecrsecret()
}

json() 🔗

Return Type
String !
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 login-session --key-id string --key string --token string \
 json
func (m *myModule) example(ctx context.Context, keyId string, key string, token string) string  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token).
			Json(ctx)
}
@function
async def example(key_id: str, key: str, token: str) -> str:
	return await (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
		.json()
	)
@func()
async example(keyId: string, key: string, token: string): Promise<string> {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
		.json()
}