IniFileLoader
in package
FinalYes
Load and parse AWS iniFile.
Tags
Table of Contents
Constants
- KEY_ACCESS_KEY_ID = 'aws_access_key_id'
- KEY_REGION = 'region'
- KEY_ROLE_ARN = 'role_arn'
- KEY_ROLE_SESSION_NAME = 'role_session_name'
- KEY_SECRET_ACCESS_KEY = 'aws_secret_access_key'
- KEY_SESSION_TOKEN = 'aws_session_token'
- KEY_SOURCE_PROFILE = 'source_profile'
- KEY_SSO_ACCOUNT_ID = 'sso_account_id'
- KEY_SSO_REGION = 'sso_region'
- KEY_SSO_ROLE_NAME = 'sso_role_name'
- KEY_SSO_START_URL = 'sso_start_url'
- KEY_WEB_IDENTITY_TOKEN_FILE = 'web_identity_token_file'
Properties
Methods
- __construct() : mixed
- loadProfiles() : array<string, array<string, string>>
- getHomeDir() : string
- parseIniFile() : array<string, array<string|int, string>>
Constants
KEY_ACCESS_KEY_ID
public
mixed
KEY_ACCESS_KEY_ID
= 'aws_access_key_id'
KEY_REGION
public
mixed
KEY_REGION
= 'region'
KEY_ROLE_ARN
public
mixed
KEY_ROLE_ARN
= 'role_arn'
KEY_ROLE_SESSION_NAME
public
mixed
KEY_ROLE_SESSION_NAME
= 'role_session_name'
KEY_SECRET_ACCESS_KEY
public
mixed
KEY_SECRET_ACCESS_KEY
= 'aws_secret_access_key'
KEY_SESSION_TOKEN
public
mixed
KEY_SESSION_TOKEN
= 'aws_session_token'
KEY_SOURCE_PROFILE
public
mixed
KEY_SOURCE_PROFILE
= 'source_profile'
KEY_SSO_ACCOUNT_ID
public
mixed
KEY_SSO_ACCOUNT_ID
= 'sso_account_id'
KEY_SSO_REGION
public
mixed
KEY_SSO_REGION
= 'sso_region'
KEY_SSO_ROLE_NAME
public
mixed
KEY_SSO_ROLE_NAME
= 'sso_role_name'
KEY_SSO_START_URL
public
mixed
KEY_SSO_START_URL
= 'sso_start_url'
KEY_WEB_IDENTITY_TOKEN_FILE
public
mixed
KEY_WEB_IDENTITY_TOKEN_FILE
= 'web_identity_token_file'
Properties
$logger
private
LoggerInterface
$logger
Methods
__construct()
public
__construct([LoggerInterface|null $logger = null ]) : mixed
Parameters
- $logger : LoggerInterface|null = null
loadProfiles()
public
loadProfiles(array<string|int, string> $filepaths) : array<string, array<string, string>>
Parameters
- $filepaths : array<string|int, string>
Return values
array<string, array<string, string>>getHomeDir()
private
getHomeDir() : string
Return values
stringparseIniFile()
private
parseIniFile(string $filepath) : array<string, array<string|int, string>>
Parameters
- $filepath : string