public function toMap()

in src/Credential/Config.php [12:64]


    public function toMap()
    {
        $res = [];
        if (null !== $this->accessKeyId) {
            $res['accessKeyId'] = $this->accessKeyId;
        }
        if (null !== $this->accessKeySecret) {
            $res['accessKeySecret'] = $this->accessKeySecret;
        }
        if (null !== $this->securityToken) {
            $res['securityToken'] = $this->securityToken;
        }
        if (null !== $this->bearerToken) {
            $res['bearerToken'] = $this->bearerToken;
        }
        if (null !== $this->durationSeconds) {
            $res['durationSeconds'] = $this->durationSeconds;
        }
        if (null !== $this->roleArn) {
            $res['roleArn'] = $this->roleArn;
        }
        if (null !== $this->policy) {
            $res['policy'] = $this->policy;
        }
        if (null !== $this->roleSessionExpiration) {
            $res['roleSessionExpiration'] = $this->roleSessionExpiration;
        }
        if (null !== $this->roleSessionName) {
            $res['roleSessionName'] = $this->roleSessionName;
        }
        if (null !== $this->publicKeyId) {
            $res['publicKeyId'] = $this->publicKeyId;
        }
        if (null !== $this->privateKeyFile) {
            $res['privateKeyFile'] = $this->privateKeyFile;
        }
        if (null !== $this->roleName) {
            $res['roleName'] = $this->roleName;
        }
        if (null !== $this->credentialsURI) {
            $res['credentialsURI'] = $this->credentialsURI;
        }
        if (null !== $this->type) {
            $res['type'] = $this->type;
        }
        if (null !== $this->STSEndpoint) {
            $res['STSEndpoint'] = $this->STSEndpoint;
        }
        if (null !== $this->externalId) {
            $res['externalId'] = $this->externalId;
        }
        return $res;
    }