Dagger
Search

aws-oidc-auth

No long description provided.

Installation

dagger install github.com/dariusj1/daggerverse/aws-oidc-auth@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47

Entrypoint

Return Type
AwsOidcAuth
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 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
tokenSecret !-OIDC token
roleArnString !-AWS IAM Role to assume
durationSecInteger 900Session duration in seconds (min 900s/15min)
regionString "us-east-1"Default region
sessionNameString -Session name (will appear in logs and billing)
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
 login-oidc --token env:MYSECRET --role-arn string
func (m *myModule) example(token *Secret, roleArn string) *AwsOidcAuthAwsSecrets  {
	return dag.
			AwsOidcAuth().
			LoginOidc(token, roleArn)
}
@function
def example(token: dagger.Secret, role_arn: str) -> dag.AwsOidcAuthAwsSecrets:
	return (
		dag.aws_oidc_auth()
		.login_oidc(token, role_arn)
	)
@func()
example(token: Secret, roleArn: string): AwsOidcAuthAwsSecrets {
	return dag
		.awsOidcAuth()
		.loginOidc(token, roleArn)
}

loginSession() 🔗

Return Type
AwsOidcAuthAwsSecrets !
Arguments
NameTypeDefault ValueDescription
keyIdSecret !-AWS_ACCESS_KEY_ID
keySecret !-AWS_SECRET_ACCESS_KEY
tokenSecret !-AWS_SESSION_TOKEN
regionString "us-east-1"AWS_DEFAULT_REGION
Example
dagger -m github.com/dariusj1/daggerverse/aws-oidc-auth@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
 login-session --key-id env:MYSECRET --key env:MYSECRET --token env:MYSECRET
func (m *myModule) example(keyId *Secret, key *Secret, token *Secret) *AwsOidcAuthAwsSecrets  {
	return dag.
			AwsOidcAuth().
			LoginSession(keyId, key, token)
}
@function
def example(key_id: dagger.Secret, key: dagger.Secret, token: dagger.Secret) -> dag.AwsOidcAuthAwsSecrets:
	return (
		dag.aws_oidc_auth()
		.login_session(key_id, key, token)
	)
@func()
example(keyId: Secret, key: Secret, token: Secret): AwsOidcAuthAwsSecrets {
	return dag
		.awsOidcAuth()
		.loginSession(keyId, key, token)
}

AwsOidcAuthAwsSecrets 🔗

durationSec() 🔗

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

fromTsUtc() 🔗

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

untilTsUtc() 🔗

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

defaultRegion() 🔗

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

oidctoken() 🔗

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

accessKeyId() 🔗

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

secretAccessKey() 🔗

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

sessionToken() 🔗

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

ecrsecret() 🔗

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

json() 🔗

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